Question

How can I use it to convert yuv files to avi files? And back. I am currenlty working on a project that needs to process a yuv video into matlab. I only know how to load an avi file by using mmreader. Is there any other way to read yuv files in Matlab?

Était-ce utile?

La solution

What is FFMPEG? Start with FFMPEG home page

The most common format is YUV4:2:0 planar 8-bit (YUV420p). For yuv to uncompressed avi conversion use command:

ffmpeg.exe -s 352x288  -vcodec rawvideo -f rawvideo -pix_fmt yuv420p -i
in.yuv -sameq out.avi

where framesize is set with -s 352x288

And for avi to yuv conversion use command:

ffmpeg -i in.avi -vcodec rawvideo -pix_fmt yuv420p -o out.yuv

Converts any input to 420 planar yuv.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top