Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques ffmpeg adding white frames & extending end of .mov due to longer audio

  • ffmpeg adding white frames & extending end of .mov due to longer audio

    Posted by Chris Graham on February 15, 2012 at 3:53 pm

    hey guys we’re using ffmpeg to output a H264 .mov from a series of .png’s @24fps

    works fine without audio

    however when we add the .aifc audio ( that is supposed to be the same length ) it adds a couple frames of white at the end

    is there a simple way to just truncate the audio to the length of the footage, if it is too long?

    thanks!

    Stephen Dixon replied 14 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Stephen Dixon

    February 16, 2012 at 11:49 am

    use -shortest. As in ffmpeg -shortest -i inputone-%05d.png -i inputtwo.wav -map 0:0 -map 1:0 output.mov. It will truncate the output to the length of the shortest input stream

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy