[Libav-user] Converting YUV 2 MPEG4
moiein2000 at gmail.com
Wed Aug 3 16:50:43 CEST 2011
On Wed, Aug 3, 2011 at 9:37 AM, <muratc15-ffmpeg at yahoo.de> wrote:
> Hello boys and girls,
> I want to convert a YUV signal from my POE-camera into a MPEG4 stream, for which I have used the libavcodec.lib library of yours.
> I am confused with the file-format headers for the target video file. For an instance :
> out_size = avcodec_encode_video(c, outbuf, outbuf_size,
> Is there no mpeg4 specific file format header required, in the beginning of the video file? Or is the library function handling this internally?
I use avformat_write_header() before starting to write frames and
av_write_trailer() afterwords. I think this should do what you want.
> Cheers Murat
> Libav-user mailing list
> Libav-user at ffmpeg.org
More information about the Libav-user