[FFmpeg-user] Decode and encode mpeg2 video

Roger Pack rogerdpack2 at gmail.com
Fri Jul 6 22:27:23 CEST 2012


> I am trying to decode mpeg2 video in yuv and then encode it in mpeg2 video.
> I have successfully done it with h264 video by using x264 library of ffmpeg.
> But I did not get proper yuv data while decoding mpeg2 video.
> Let me know if anyone had done it with mpeg2 video.
> May be I am using wrong library.
> pls suggest me the proper AVCodecContext setting to decode and encode
> mpeg2video.

Yours is, I suppose, more of a question for the libav-user group,
but...if I were
you I would try and get it to "work" with ffmpeg on the command line,
then check/see which values it passes through for the pixel format,
etc.
GL!
-r


More information about the ffmpeg-user mailing list