srini vasan wrote:
> Hi all,
>
> I need some information on writing the MPEG4 video to an AVI file.
> Currently i am using the output_example.c and modified the code to write the
> encoded MPEG4 video to an AVI output file. I am writing only the video data
> to the output file and it works fine.
>
> I set the "video_codec" to CODEC_ID_MPEG4 and disabled the audio part.
> In the output AVI bitstream, the video info was mentioned as "vidsFMP4".
> But it should be "vidsmp4v" right? correct me if i am wrong.
>
> Can i use "guess_format()" with an avi file? Bcos when using "guess_format
> ()", the default audio and video codec formats are different. Then I changed
> it to the required format i.e "audio_codec = CODEC_ID_NONE" and "video_codec
> = CODEC_ID_MPEG4". Is that right?
>
> pls someone suggest me the right approach...
>
>
>
You must set param codec_tag for AVCodecContext. For example:
pCodecCtx->codec_tag = MKTAG('m', 'p', '4', 'v');
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user