Take the 2-minute tour ×

Any help on transform the .jpg to .yuv?

I have a.jpg file, and I wanna read the file and transform to a.yuv. How can I do it by using the ffmpeg?

share|improve this question
add comment

1 Answer

From man ffmpeg (modified slightly):

You can output to a raw YUV420P file:

ffmpeg -i mydivx.avi hugefile.yuv


Remember that ffmpeg usage questions are better suited for superuser.com (and therefore you'll probably get better and more detailed answers there too).

share|improve this answer
I wanna use the ffmpeg's API, do you know how to code? –  cyh24 Oct 17 '12 at 9:45
@zerocool No, but you should have mentioned that in the question. –  LordNeckbeard Oct 17 '12 at 17:11
add comment

Your Answer


