[FFmpeg-trac] #1842(FFmpeg:new): create
FFmpeg
trac at avcodec.org
Wed Oct 24 10:22:17 CEST 2012
#1842: create
-------------------------------------+-------------------------------------
Reporter: teric | Type:
Status: new | enhancement
Component: FFmpeg | Priority: important
Keywords: | Version: 1.0
segment,hls,m3u8 | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
{{{
% ffmpeg -i -threads 2 -i rtmp://10.10.80.80/live/shandong_HD live=1 -re
-copyts -acodec libfaac -vcodec libx264 -vprofile baseline -bsf
h264_mp4toannexb -v error -map 0 -b:v 500k -b:a 64k -f ssegment
-segment_list livelist.m3u8 -segment_list_flags +live -segment_list_size 3
-segment_time 10 d%05d.ts
ffmpeg 1.0
}}}
Firstly, iPad or VLC expect the adjacent lists(m3u8) includes '''overlaped
items''', OR VLC will stop always and iPad will stop/jitter occasionally.
eg.
'''list 1'''
{{{
#EXTM3U
#EXT-X-MEDIA-SEQUENCE:1240780828
#EXT-X-TARGETDURATION:10
#EXTINF:12,
d1240781828.ts
#EXTINF:10,
d1240781829.ts
#EXTINF:10,
d1240781830.ts
}}}
'''list 2'''
{{{
#EXTM3U
#EXT-X-MEDIA-SEQUENCE:1240780829
#EXT-X-TARGETDURATION:10
#EXTINF:10,
d1240781829.ts
#EXTINF:10,
d1240781830.ts
#EXTINF:10,
d1240781831.ts
}}}
Secondly, when the stream is restarted, ffmpeg(segment) should create
segments with different filenames, OR these files will stay stale in CDN
cache
eg.stale segments because file name begin at 000
'''first times'''
{{{
000.ts
001.ts
002.ts
...
}}}
'''after restart'''
{{{
000.ts
001.ts
002.ts
...
000.ts
001.ts
002.ts
}}}
'''so we can use timestamp as the init segment index.'''
You can refer to my patch for detail.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1842>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list