id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
1842,Incorrect segmented HTTP Live Streaming playlists,teric,,"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.
",defect,closed,normal,avformat,git-master,fixed,"segment,hls,m3u8",blacktrash@…,,,0,0
