[FFmpeg-trac] #5811(avformat:reopened): live_start_index option doesn't work.
FFmpeg
trac at avcodec.org
Tue Aug 30 14:16:33 EEST 2016
#5811: live_start_index option doesn't work.
------------------------------------+------------------------------------
Reporter: smalukav | Owner:
Type: defect | Status: reopened
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: hls | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by smalukav):
{{{
$ /opt/ffmpeg/bin/ffmpeg -re -f lavfi -i testsrc -vcodec mpeg1video
-hls_time 10 -hls_list_size 0 hls_stream/stream.m3u8
ffmpeg version N-81495-g11a631d Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --extra-cflags=-I/opt/ffmpeg/include --extra-
ldflags=-L/opt/ffmpeg/lib --enable-rpath --prefix=/opt/ffmpeg
--toolchain=hardened --enable-shared --enable-gpl --enable-nonfree
--enable-openssl --enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libebur128
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 54.101 / 57. 54.101
libavformat 57. 48.101 / 57. 48.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 58.100 / 6. 58.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, lavfi, from 'testsrc':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240
[SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[hls @ 0x1010d80] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
Output #0, hls, to 'hls_stream/stream.m3u8':
Metadata:
encoder : Lavf57.48.101
Stream #0:0: Video: mpeg1video, yuv420p, 320x240 [SAR 1:1 DAR 4:3],
q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc57.54.101 mpeg1video
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg1video (native))
Press [q] to stop, [?] for help
}}}
{{{
$ cat hls_stream/stream.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.080000,
stream0.ts
#EXTINF:10.080000,
stream1.ts
#EXTINF:10.080000,
stream2.ts
#EXTINF:10.080000,
stream3.ts
#EXTINF:10.080000,
stream4.ts
#EXTINF:9.600000,
stream5.ts
#EXTINF:10.080000,
stream6.ts
#EXTINF:10.080000,
stream7.ts
#EXTINF:10.080000,
stream8.ts
#EXTINF:10.080000,
stream9.ts
#EXTINF:10.080000,
stream10.ts
#EXTINF:9.600000,
stream11.ts
#EXTINF:10.080000,
stream12.ts
#EXTINF:10.080000,
stream13.ts
#EXTINF:10.080000,
stream14.ts
}}}
{{{
$ /opt/ffmpeg/bin/ffmpeg -i hls_stream/stream.m3u8 -vcodec mpeg1video
-live_start_index 0 -v 45 new_video.mp4
ffmpeg version N-81495-g11a631d Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --extra-cflags=-I/opt/ffmpeg/include --extra-
ldflags=-L/opt/ffmpeg/lib --enable-rpath --prefix=/opt/ffmpeg
--toolchain=hardened --enable-shared --enable-gpl --enable-nonfree
--enable-openssl --enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libebur128
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 54.101 / 57. 54.101
libavformat 57. 48.101 / 57. 48.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 58.100 / 6. 58.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream12.ts',
offset 0, playlist 0
Input #0, hls,applehttp, from 'hls_stream/stream.m3u8':
Duration: N/A, start: 121.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 @ 0x837540] w:320 h:240 pixfmt:yuv420p
tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2
[mp4 @ 0x85c420] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
Output #0, mp4, to 'new_video.mp4':
Metadata:
encoder : Lavf57.48.101
Stream #0:0: Video: mpeg1video, 1 reference frame (j[0][0][0] /
0x006A), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps,
12800 tbn, 25 tbc
Metadata:
variant_bitrate : 0
encoder : Lavc57.54.101 mpeg1video
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) -> mpeg1video (native))
Press [q] to stop, [?] for help
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream13.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream14.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream15.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream16.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream17.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream18.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream19.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream20.ts',
offset 0, playlist 0
[hls,applehttp @ 0x837820] HLS request for url 'hls_stream/stream21.ts',
offset 0, playlist 0
}}}
> Is this only reproducible with -vcodec copy?
No, it doesn't depend on the codec. I guess it's only demuxer problem.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5811#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list