Geerating YUV files from an input file
Hi, I am trying to see what is the exact requirement to genrate a YUV file as oput using the ffmpeg.exe file.I give my command as ffmpeg -i test.mpg frame1.yuv. When I try to view this particular frame1.yuv file, using a YUV viewer I am not able to see the right output. The ouput is distorted. I have tried generating a YUV file from the same test.mpg input using the tutorial by Martin BOhme and I am able to view theYUV420 file in the YUV viewer. Can anybody please let me know what is wrong in the above command I have given, to generate a YUV file using ffmpeg.exe. Thanks in advance! Jayshree The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On date Friday 2007-04-27 11:43:25 +0530, jayashree.sripada at wipro.com encoded:
Hi, I am trying to see what is the exact requirement to genrate a YUV file as oput using the ffmpeg.exe file.I give my command as
ffmpeg -i test.mpg frame1.yuv.
When I try to view this particular frame1.yuv file, using a YUV viewer I am not able to see the right output. The ouput is distorted. I have tried generating a YUV file from the same test.mpg input using the tutorial by Martin BOhme and I am able to view theYUV420 file in the YUV viewer.
Can anybody please let me know what is wrong in the above command I have given, to generate a YUV file using ffmpeg.exe.
In order to decode rawvideo you need to specify the size of each video frame. For example you can use: ffplay -s <size> -r <rate> movie.yuv or you can encode each frame into a distinct file with: ffmpeg -i movie.avi -s <size> -pix_fmt yuv420p -f image2 movie/frame-%04d.yuv HTH.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
*Please*, save us bandwidth and avoid to send this nonsensical corporative blog when posting to public mailing-lists. Cheers -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
participants (2)
-
jayashree.sripada@wipro.com -
stefano.sabatini-lala@poste.it