ffmpeg流编码出来,产生一个流,每次启动时显示不同的程序

时间:2018-10-15 14:17:25

标签: ffmpeg video-streaming streaming hls m3u8

我使用ffmpeg已经快一年了,我的视频流最近开始表现不佳。

ffmpeg屏幕上的行在重新流式传输时开始快速疯狂运行,从而导致更多的CPU(无编码)。我已将流映射为仅选择一个流。但是问题甚至在于映射,每次播放时我都会得到不同的程序。

它所播放的每个程序还不到一分钟。 ffmpeg屏幕上没有显示特定的错误消息。只有输出表现不佳

我什至尝试了ffmpeg 3.3、3.4和4.0版本,结果相同。

它的分辨率很高,所以我只选择了分辨率最高的33(视频)和34(音频)。

ffmpeg -i "http://insourceip/stream.m3u8" -err_detect explode  -c copy -map 0:33? -map 0:34?  -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 out/music.m3u8

请帮助我。

下面是输出:启动后(不再接收播放列表8)开始疯狂运行。

Program 11
    Metadata:
      variant_bitrate : 1088000
    Stream #0:33: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x480 [SAR 12:11 DAR 16:11], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 1088000
    Stream #0:34: Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 1088000
    Stream #0:35: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 1088000
[hls @ 0x7a64120] Opening '/music1.ts' for writing
Output #0, hls, to '/music.m3u8':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x480 [SAR 12:11 DAR 16:11], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Metadata:
      variant_bitrate : 1088000
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 1088000
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 1088000
Stream mapping:
  Stream #0:33 -> #0:0 (copy)
  Stream #0:34 -> #0:1 (copy)
  Stream #0:35 -> #0:2 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0x3d57120] No longer receiving playlist 10
[hls,applehttp @ 0x3d57120] No longer receiving playlist 1
[hls,applehttp @ 0x3d57120] No longer receiving playlist 3
[hls,applehttp @ 0x3d57120] No longer receiving playlist 5
[hls,applehttp @ 0x3d57120] No longer receiving playlist 7
[hls,applehttp @ 0x3d57120] No longer receiving playlist 9
[hls,applehttp @ 0x3d57120] No longer receiving playlist 0
[hls,applehttp @ 0x3d57120] No longer receiving playlist 2
[hls,applehttp @ 0x3d57120] No longer receiving playlist 4
[hls,applehttp @ 0x3d57120] No longer receiving playlist 6
[hls,applehttp @ 0x3d57120] No longer receiving playlist 8
***[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957897_1_av-b.ts' for reading
[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957898_1_av-b.ts' for reading
[hls @ 0x7a64120] Opening '/music2.ts' for writing
[hls @ 0x7a64120] Opening '/music.m3u8.tmp' for writing
[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957899_1_av-b.ts' for reading
[hls @ 0x7a64120] Opening '/music3.ts' for writing***

0 个答案:

没有答案