Easiest thing to do is to work your way through the example in 
 
ffmpeg/libavcodec/apiexample.c
 
You should be able to build and run it, and then modify it as required.
 
Without looking at your code, it is hard to work out your bug, but at a guess 
you should probably pay attention to how you are packing your AVFrames before 
encoding.

________________________________

From: [email protected] on behalf of Muhammad Ali
Sent: Wed 18/02/2009 09:06
To: [email protected]
Subject: [libav-user] Encoding MPEG2VIDEO




Hello all,



I'm having troubles creating mpeg2 files. from the MPG format video.
I am using the avcodec example to encode the video.. its run properly. 
but when i run the decode the encode video its lost original video 
picture .. we can see onle differents colors..

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?

I am new  in using the ffmpeg ...so please advise me  the whats i do 
and if you have any metrial about this please advise  me..

Thanks in Advance
--
Zeshan ALI
Phd Student
Tu-Braunschewig Germany

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user



http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                        

<<winmail.dat>>

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to