[Libav-user] Copy Image Data from Decode Frame To Encode Frame
francesco.damato7 at gmail.com
Wed Nov 27 15:33:21 CET 2013
I have the doc/examples programs compiled and running. I use the program
demuxing.c to decode an AVI file. From the source code, it looks it calls
its own subroutine decode_packet() to decode the next video or audio
packet, and that subroutine calls avcodec_decode_video2()to decode the next
frame. Now i want to encode this frames in h264, so i want to know how i
can pass the frames into avcodec_encode_video2 function. I'm interested
only video frames.
Can you help me??
2013/9/15 James Board <jpboard2 at yahoo.com>
> >> 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
> >> simple to allow me to copy the packet (like modify a timestamp?).
> >The best advice again would be to try and see if there is some
> >problem. Yes, you probably want to manipulate the timestamps.
> That's okay, but I'd really like to understand how it works behind the
> scenes so I know it works for sure.
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user