hls - Set minimal ts duration in ffmpeg command -


we using ffmpeg convert mp4 video file hls. when video converted, happens last ts chunk 0.03s. , player stalls on chunk while. there special command in ffmpeg set minimal ts duration? or other way avoid such ts chunks? in our command set ts duration use: -segment_time 5

one solution concatenate chunks. if last ts chunk duration 0.03s or less can concatenate previous. avoid last chunk little duration. concatenate chunks can used ffmpeg command: ffmpeg -i "concat:input1.mpg|input2.mpg|input3.mpg" -c copy output.mpg

more information here.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -