[Libav-user] Copy Image Data from Decode Frame To Encode Frame
Francesco Damato
francesco.damato7 at gmail.com
Wed Nov 27 15:33:21 CET 2013
Hi James,
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??
Thanks
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
> something
> >> 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
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
--
Francesco Damato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131127/05015ccc/attachment.html>
More information about the Libav-user
mailing list