[Ffmpeg-devel] [Ffmpeg-devel-old] rtp mpeg4 packetize problem
Wed Jul 20 10:50:40 CEST 2005
Zoltan NAGY wrote:
> how can I get a frame out of an mpeg4 video file? I mean, I suspected
> av_read_frame(), but that gives back an AVPacket, and that's only 52 bytes
> (according to sizeof(AVPacket) )...
> so, how can I get one frame out of a video using libavcodec?
The AVPacket doesn't contain the actual data -- that's in a buffer
pointed to by the "data" element of AVPacket. The length of the buffer
is given in "size".
Inst. f. Neuro- and Bioinformatics
Ratzeburger Allee 160, D-23538 Luebeck
Phone: +49 451 500 5514
Fax: +49 451 500 5502
boehme at inb.uni-luebeck.de
More information about the ffmpeg-devel