[FFmpeg-devel] [PATCH] ffmpeg: remove obsolete workaround in trim insertion.

Nicolas George nicolas.george at normalesup.org
Fri Aug 9 15:22:32 CEST 2013

Le duodi 22 thermidor, an CCXXI, Paul B Mahol a écrit :
> But is such behaviour correct?

What do you mean?

If you have an input stream with 2048 samples frames, and request 1 second
at 44100 Hz, the old behaviour would transmit 22 frames, and therefore 956
samples beyond what you requested. The new behaviour will transmit 21 frames
and 1091 samples from the 22nd, and therefore exactly 44100 samples.

(If the output codec is framed, the result will then be padded to its frame
size with zeroes, that can not be avoided, and at least it is silence.)

The same, I suppose, happens for the start time.

I consider this behaviour more correct. I had started working on something
similar a long time ago, but never finished it.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130809/00b16c45/attachment.asc>

More information about the ffmpeg-devel mailing list