[FFmpeg-devel] [PATCH] '-longest' command-line argument realization
Fri Feb 6 19:13:51 CET 2009
On Feb 6, 2009, at 10:03 AM, Michael Niedermayer wrote:
> On Tue, Feb 03, 2009 at 03:01:58PM +0300, Michael N. Pritula wrote:
>> I suggest patch to realize '-longest' key with following semantics:
>> All video and audio streams with needed encoding in output file
>> will be
>> same time length and this length will be equal to longest stream in
>> file. For every shorter audio stream it will be continued with
>> silence, and
>> for every shorter video stream it will be continued with last
>> encoded to this stream.
>> Waiting for your comments.
> for what is it good to lengthen streams to a common point?
Some players (<cough>QuickTime</cough>) show white video when audio
runs longer or preceeds video. It's quite annoying, especially in
fullscreen mode. QT's solution is to tell users (and developers) to
trim the file so the tracks are equal length.
I can't think of any other arguments...
More information about the ffmpeg-devel