Hello all,
I'm having troubles creating mpeg2 files. I'm using this code - http://thefoundry.anywebcam.com/wp-content/uploads/2007/05/transcode_sam ple.c as a base, but when I use the CODEC_ID_MPEG2VIDEO in muxInitVideoStreamCodec() function, I cannot get a proper file (it's either in blocks, or no video at all or looks almost ok, but loses audio or shows "ghosting" of the video - it all depends on the parameters of the AVCodecContext I change). I've tried encoding the same file using the command-line ffmpeg and that works. Can someone please advise me on what parameters should I set in the AVCodecContext for encoding an mpeg2? Are there any caveats that I should be aware of? Thanks in advance for any information. Dennis _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
