[FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry

ajay parashar ajay_382000 at yahoo.co.in
Wed Oct 8 07:08:56 CEST 2014



On 9/30/2014 4:11 PM, ajay parashar wrote:
>>> #EXTM3U
>>> #EXT-X-VERSION:3
>>> #EXT-X-MEDIA-SEQUENCE:0
>>> #EXT-X-ALLOW-CACHE:YES
>>> #EXT-X-TARGETDURATION:17
>>> #EXTINF:15.015000,
>>> out000.ts
>>> #EXTINF:8.341667,
>>> out001.ts
>>> #EXTINF:8.341667,
>>> out002.ts
>>> #EXTINF:8.341667,
>>> out003.ts
>>> #EXTINF:16.683333,
>>> out004.ts
>>>
>>>
>> You should add "#EXT-X-ENDLIST" for a VOD hls.
> ***********************************
> Should I add ENDLIST tag manually or ffmpeg should do this for user while generating playlist.m3u8 file.
>

Actually, "#EXT-X-ENDLIST" is not added because you have specified 
"-segment_list_flags +live" in your ffmpeg command.
If you want to generate a live HLS stream, use +live flag and the tag 
will not be added (like in your example), if you want to generate a VOD 
stream, remove the flag and the tag will be added.

However this won't fix the issue you are reporting that "out005.ts" 
isn't added to the playlist and I can't help you with that, sorry.
Just wondering: are you sure that out005.ts contains useful data?
-- 
Claudiu
************************************************************************************
Yes i am sure out005.ts contains valid data as i can play this out005.ts in VLC player smoothly.
when i manually add this segment to playlist file then also it plays as part of playlist file.
I want to know why this segment out005.ts is not adding to playlist file ? 
Is it known issue ? or i need to provide some other options to command line.

below is the command that currently i am using
ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=50000&overrun_nonfatal=1' 
-map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment 
-hls_list_size 10 -segment_list playlist.m3u8 -segment_list_flags +live 
-segment_time 10 out%03d.ts


More information about the ffmpeg-user mailing list