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
Post a Comment