[FFmpeg-trac] #5811(avformat:closed): live_start_index option doesn't work.

FFmpeg trac at avcodec.org
Tue Aug 30 14:37:27 EEST 2016


#5811: live_start_index option doesn't work.
------------------------------------+--------------------------------------
             Reporter:  smalukav    |                    Owner:
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:  worksforme
             Keywords:  hls         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+--------------------------------------
Changes (by cehoyos):

 * status:  reopened => closed
 * resolution:   => worksforme


Comment:

 {{{
 $ ffmpeg -v 45 -live_start_index 0 -i stream.m3u8 out.avi
 ffmpeg version N-81473-gb2c6a11 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      55. 29.100 / 55. 29.100
   libavcodec     57. 54.100 / 57. 54.100
   libavformat    57. 48.100 / 57. 48.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 57.100 /  6. 57.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 [hls,applehttp @ 0x35c3440] HLS request for url 'stream0.ts', offset 0,
 playlist 0
 Input #0, hls,applehttp, from 'stream.m3u8':
   Duration: N/A, start: 1.440000, bitrate: 104857 kb/s
   Program 0
     Metadata:
       variant_bitrate : 0
     Stream #0:0: Video: mpeg1video, 1 reference frame ([2][0][0][0] /
 0x0002), yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 25 fps, 25
 tbr, 90k tbn, 25 tbc
     Metadata:
       variant_bitrate : 0
 [graph 0 input from stream 0:0 @ 0x361baa0] w:320 h:240 pixfmt:yuv420p
 tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2
 [avi @ 0x35e8d00] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf57.48.100
     Stream #0:0: Video: mpeg4, 1 reference frame (FMP4 / 0x34504D46),
 yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25
 tbc
     Metadata:
       variant_bitrate : 0
       encoder         : Lavc57.54.100 mpeg4
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg1video (native) -> mpeg4 (native))
 Press [q] to stop, [?] for help
 [hls,applehttp @ 0x35c3440] HLS request for url 'stream1.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x35c3440] HLS request for url 'stream2.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x35c3440] HLS request for url 'stream3.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x35c3440] HLS request for url 'stream4.ts', offset 0,
 playlist 0
 frame= 1056 fps=0.0 q=9.4 Lsize=    1363kB time=00:00:42.24 bitrate=
 264.3kbits/s speed= 140x
 video:1332kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 2.320622%
 Input file #0 (stream.m3u8):
   Input stream #0:0 (video): 1057 packets read (1382348 bytes); 1057
 frames decoded;
   Total: 1057 packets (1382348 bytes) demuxed
 Output file #0 (out.avi):
   Output stream #0:0 (video): 1056 frames encoded; 1056 packets muxed
 (1363729 bytes);
   Total: 1056 packets (1363729 bytes) muxed
 }}}
 {{{
 $ ffmpeg -v 45 -live_start_index 11 -i stream.m3u8 out.avi
 ffmpeg version N-81473-gb2c6a11 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      55. 29.100 / 55. 29.100
   libavcodec     57. 54.100 / 57. 54.100
   libavformat    57. 48.100 / 57. 48.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 57.100 /  6. 57.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 [hls,applehttp @ 0x2be1440] HLS request for url 'stream11.ts', offset 0,
 playlist 0
 Input #0, hls,applehttp, from 'stream.m3u8':
   Duration: N/A, start: 111.840000, bitrate: 104857 kb/s
   Program 0
     Metadata:
       variant_bitrate : 0
     Stream #0:0: Video: mpeg1video, 1 reference frame ([2][0][0][0] /
 0x0002), yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 25 fps, 25
 tbr, 90k tbn, 25 tbc
     Metadata:
       variant_bitrate : 0
 [graph 0 input from stream 0:0 @ 0x2bf6280] w:320 h:240 pixfmt:yuv420p
 tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2
 [avi @ 0x2bf2640] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf57.48.100
     Stream #0:0: Video: mpeg4, 1 reference frame (FMP4 / 0x34504D46),
 yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25
 tbc
     Metadata:
       variant_bitrate : 0
       encoder         : Lavc57.54.100 mpeg4
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg1video (native) -> mpeg4 (native))
 Press [q] to stop, [?] for help
 [hls,applehttp @ 0x2be1440] HLS request for url 'stream12.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x2be1440] HLS request for url 'stream13.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x2be1440] HLS request for url 'stream14.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x2be1440] HLS request for url 'stream15.ts', offset 0,
 playlist 0
 frame= 1141 fps=0.0 q=7.6 Lsize=    1450kB time=00:00:45.64 bitrate=
 260.3kbits/s speed= 152x
 video:1417kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 2.321591%
 Input file #0 (stream.m3u8):
   Input stream #0:0 (video): 1142 packets read (1160452 bytes); 1142
 frames decoded;
   Total: 1142 packets (1160452 bytes) demuxed
 Output file #0 (out.avi):
   Output stream #0:0 (video): 1141 frames encoded; 1141 packets muxed
 (1451289 bytes);
   Total: 1141 packets (1451289 bytes) muxed
 }}}
 {{{
 $ ffmpeg -v 45 -live_start_index -15 -i stream.m3u8 out.avi
 ffmpeg version N-81473-gb2c6a11 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      55. 29.100 / 55. 29.100
   libavcodec     57. 54.100 / 57. 54.100
   libavformat    57. 48.100 / 57. 48.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 57.100 /  6. 57.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 [hls,applehttp @ 0x1ece440] HLS request for url 'stream24.ts', offset 0,
 playlist 0
 Input #0, hls,applehttp, from 'stream.m3u8':
   Duration: N/A, start: 241.440000, bitrate: 104857 kb/s
   Program 0
     Metadata:
       variant_bitrate : 0
     Stream #0:0: Video: mpeg1video, 1 reference frame ([2][0][0][0] /
 0x0002), yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 25 fps, 25
 tbr, 90k tbn, 25 tbc
     Metadata:
       variant_bitrate : 0
 [graph 0 input from stream 0:0 @ 0x1f0c780] w:320 h:240 pixfmt:yuv420p
 tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2
 [avi @ 0x1ef41e0] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf57.48.100
     Stream #0:0: Video: mpeg4, 1 reference frame (FMP4 / 0x34504D46),
 yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25
 tbc
     Metadata:
       variant_bitrate : 0
       encoder         : Lavc57.54.100 mpeg4
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg1video (native) -> mpeg4 (native))
 Press [q] to stop, [?] for help
 [hls,applehttp @ 0x1ece440] HLS request for url 'stream25.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x1ece440] HLS request for url 'stream26.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x1ece440] HLS request for url 'stream27.ts', offset 0,
 playlist 0
 [hls,applehttp @ 0x1ece440] HLS request for url 'stream28.ts', offset 0,
 playlist 0
 frame= 1119 fps=0.0 q=11.0 Lsize=    1423kB time=00:00:44.76 bitrate=
 260.5kbits/s speed= 149x
 video:1391kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 2.328217%
 Input file #0 (stream.m3u8):
   Input stream #0:0 (video): 1120 packets read (1140142 bytes); 1120
 frames decoded;
   Total: 1120 packets (1140142 bytes) demuxed
 Output file #0 (out.avi):
   Output stream #0:0 (video): 1119 frames encoded; 1119 packets muxed
 (1424266 bytes);
   Total: 1119 packets (1424266 bytes) muxed
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5811#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list