[Libav-user] How to correctly split AVFrame with audio samples on encoding
hatred
adrozdoff at gmail.com
Fri Nov 16 01:51:08 CET 2012
Nicolas, thanks for answer. Currently I implement this solution but I have
a warning message:
Que input is backward in time
but I think I will resolve it :-)
2012/11/15 Nicolas George <nicolas.george at normalesup.org>
> Le quintidi 25 brumaire, an CCXXI, hatred a écrit :
> > I think that I must split one AVFrame into two or more and encode this
> > resulting frames. Is it valid way? Do I must do it manualy with
> > av_samples_copy?
>
> Yes. This is clumsy but currently unavoidable. A simpler API was suggested
> at some point, but no one did anything for it.
>
> You could use a filter to do the work, but it would probably be overkill.
>
> > How I can recalculate PTS for resulting frames?
>
> A simple extrapolation based on the sample rate versus time base, using
> av_rescale_q. If the time base is the same as the sample rate, it is even
> easier.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121116/929c195c/attachment.html>
More information about the Libav-user
mailing list