Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I used FFmpeg to generate an HLS stream with the following command:

ffmpeg -y -i test.ts -flags -global_header \
-c:a libfaac -c:v libx264 -profile:v baseline \
-level 31 -r:v 24 -map 0  \
-f segment -segment_time 10 -segment_list test.m3u8  \
-segment_format mpegts  \
tes%03d.ts

The result m3u8 file contains a segment with different durations, and the target duration is greater than 10 seconds.

What's wrong with my command?

share|improve this question
1  
Could you please include the full, uncut FFmpeg console output for your command? –  slhck Jan 4 '13 at 17:06

1 Answer 1

You're trying to create one playlist file and a number of mpegts files to be referenced in the playlist. When using multiple outputs with ffmpeg, you have to provide every output argument you want to every output; I think - though this is a bit of a guess, since the question is quite vague and I've never tried to do anything similar myself, that the following should work:

ffmpeg -y -i test.ts -flags -global_header \
-c:a libfaac -c:v libx264 -profile:v baseline \
-level 31 -r:v 24 -map 0  \
-f segment -segment_time 10 -segment_list test.m3u8  \
-segment_format mpegts -segment_time 10 -segment_list  \
tes%03d.ts
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.