How to convert images in JPG and other formats into YUV

Source: Internet
Author: User

It took a great deal of effort to get it done. Here's how to talk about it.

1. Download ffmpeg, transcoding pictures and videos of the sharp weapon ah. Official free download Address: http://www.ffmpeg.org/download.html

2. No installation is required and can be used after decompression. You need to use the cmd of Windows to run the command line for transcoding:

First navigate to the following Bin folder:

   CD C:\ffmpeg-20141104-git-37425fc-win64-static\bin

Then run the command line:

   Ffmpeg-i test.jpg-s 640x480-pix_fmt yuv420p TEST.YUV

can also use test%d.jpg to batch processing pictures, test1.jpg,test2.jpg ...

3. The output YUV file will appear under the Bin folder. If you need to convert a picture in another format, simply replace the JPG with a BMP or PNG. It is important to note that:

-pix_fmt yuv420p need to add on, if not add, often transcoding results to yuv444 format, not the general reader needs. Additional input images need to be placed below the Bin folder.

Attached: Recommend a YUV player: http://www.yuvplayer.com/free and convenient.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.