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

ajay parashar ajay_382000 at yahoo.co.in
Wed Oct 8 11:34:10 CEST 2014



On Wed, Oct 08, 2014 at 13:08:56 +0800, ajay parashar wrote:
> 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

I tried to reproduce this with testsrc, otherwise using the similar
(video!) properties and arguments as you, and I don't see any issues.
Perhaps you can try with testsrc as well?

Moritz

barsnick at sunshine:~/tmp/ffmpeg_segment_test > ffmpeg -f lavfi -i 'testsrc=size=704x480:duration=00\\:01\\:02.76' -vcodec libx264 -f ssegment -hls_list_size 10 -segment_list playlist.m3u8 -segment_time 10 -segment_list_flags +live out%03d.ts
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers

*******************************************************************************************
testsrc input and even in my case giving local file as input is working well at my end. I am facing this issue when i am receiving stream from network.
In my Scenario I am sending UDP stream from machine 1 using VLC and receivng this UDP stream  on machine 2 by ffmpeg command. Playlist.m3u8 file  skips last segment entry.
Last segment out005.ts is vailable on my machine and it is having valid data also ,Please let me know why playlist.m3u8 is skipping last segment entry while receiving UDP stream?

Ajay


More information about the ffmpeg-user mailing list