[FFmpeg-trac] #6888(avformat:new): HLS segmenter doesn't cut .m4s files at its expected duration

FFmpeg trac at avcodec.org
Thu Dec 7 18:17:12 EET 2017

#6888: HLS segmenter doesn't cut .m4s files at its expected duration
             Reporter:  beloko      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  HLS         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by liuzceecs):

 sorry, sir, can you provide the log of segmentation? cause the length of
 every m4s file is pretty OK on my Ubuntu 15.10 with the lastest version

 Here is my command
 ffmpeg -i source.mp4 -an -sn -vcodec libx264 -force_key_frames
 "expr:gte(t,n_forced*4)" -sc_threshold 0 -r 25 -f hls -hls_time 4
 -hls_list_size 99999 -start_number 1 -hls_segment_type fmp4
 -hls_fmp4_init_filename init.mp4 -t 30 -threads 0 big_bunny.m3u8

 Then I get 8 m4s files. The first 7 is 4 seconds long and the last one is
 2 seconds long.

 '''But what is pretty interesting is that my m3u8 file is pretty weird.'''




 It misses the first m4s file. I am still working on that bug. But I need
 to first figure out why your ffmpeg provide different results from me.

Ticket URL: <https://trac.ffmpeg.org/ticket/6888#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list