[Libav-user] Copy Image Data from Decode Frame To Encode Frame
James Board
jpboard2 at yahoo.com
Sun Sep 15 17:33:32 CEST 2013
>Generally speaking, the answer is yes, you can simply copy encoded
>packets from demuxer to muxer, if you don't change them. I am sure AVI
>container will not be upset, but out in the wild, there could be some
>containers for which this trick may be less straightforward to
>implement.
>
>Generally speaking, the prerequisite is that you copy *all* frames
>from input to output. If you want to "resample" the output (e.g.
>convert 60 fps to 15 fps), or want to add some more frames (e.g. merge
>two video streams into one), or otherwise manipulate the stream or the
>frames in that stream, your mileage may vary.
Okay, that's useful. My input frames are all ffvhuff-encoded and the
output frames will be the same. I don't change any of the video data.
I'm ignoring the audio data. Sounds like copying packets might work.
However, what if I only copy a subset of the input frames to the output
file? Can I still copy the packet? If the answer is no, can I do something
simple to allow me to copy the packet (like modify a timestamp?).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130915/fe125524/attachment.html>
More information about the Libav-user
mailing list