On Wed, Aug 3, 2011 at 9:37 AM, <[email protected]> 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, > outpic); > 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.
Matt > Cheers Murat > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
