[FFmpeg-user] is it possible to use two passes to generate segments?

Giuliano Catrambone giulianoc at catrasoftware.it
Thu Oct 25 10:50:25 CEST 2012


Hi,
     I'm wondering if it is possible to use two passes to generate segments
     because the command I run failed.

     The following command using passes failed:

ffmpeg -y -i ./maradona.wmv -vcodec libx264 -vprofile main -preset slow 
-b:v 300k -vf scale=480:360 -vbsf h264_mp4toannexb -flags -global_header 
-map 0 -f segment -segment_time 10 -segment_list index.m3u8 -threads 1 
-pass 1 -passlogfile /tmp/ff_maradona.ts -an /dev/null
...
Could not write header for output file #0 (incorrect codec parameters 
?): Muxer not found

     whilst the same command that is not using the two passes was 
successful:

ffmpeg -y -i ./maradona.wmv -vcodec libx264 -vprofile main -preset slow 
-b:v 300k -vf scale=480:360 -vbsf h264_mp4toannexb -flags -global_header 
-map 0 -f segment -segment_time 10 -segment_list index.m3u8 -threads 1 
-acodec libvo_aacenc -b:a 96k /tmp/ff_maradona_191_%04d.ts

     So the question is: can be used two steps to generate segments? And 
if yes, what I'm wronging
     in the above command?

     Thanks




More information about the ffmpeg-user mailing list