[FFmpeg-devel] [PATCH] '-longest' command-line argument realization
Fri Feb 6 19:20:06 CET 2009
On Fri, Feb 06, 2009 at 10:13:51AM -0800, David DeHaven wrote:
> 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:
> >> Hello.
> >> 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
> >> output
> >> file. For every shorter audio stream it will be continued with
> >> silence, and
> >> for every shorter video stream it will be continued with last
> >> picture,
> >> 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...
either way it should be enough to inject a single audio/video frame
for each stream with the last timestamp, ffmpeg should generate the
stuff in between when needed ...
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel