X264 In the 2440 Development Board Linux and. 264 file playback

Source: Internet
Author: User

Arm9-linux-2.6.30.4

X264 for yuv420 video conversion.

 

Various error results:

[Root @ embedsky/media] #./x264-O qq.264 foreman_qcif.yuv 176x144

Raw [Error]: raw input requires a resolution.

X264 [Error]: cocould not open input file 'foreman _ qcif. yuv'

 

Then we can see a classic article on the Internet:

Raw [Error]: raw input requires a resolution

X264 encode error, while encode a file like "x264-O test.264 filename. CIF 352x288"

Naming the file something like 'filename _ widthxheight. yuv'; x264 can read resolution from a filename

The file name should be named filename _ resolution. YUV format, so that x264 will automatically get the resolution.

So it is as follows:

I insert, the X should not be in upper case, but should be in lower case. I first got stuck there for a long time and didn't find it:

[Root @ embedsky/media] # mv foreman_176x144.yuv filename_176x144.yuv

[Root @ embedsky/media] #./x264-O qq.264 filename_176x144.yuv

YUV [info]: 176x144 p 0: 0 @ 25/1 FPS (CFR)

X264 [info]: using CPU capabilities: none!

X264 [info]: Profile high, level 1.1

..........

You can start the conversion.

Other settings, such as Frame Rate Settings, can be as follows:

./X264-FPS 2-O test.264 test_640x480.yuv

 

Compress on the arm Development Board. copy the 264 file to the window. The job to do now is to verify that the file is correct. I found the VLC player on the network for a few days. What else. 264 A bunch of players won't work in the test. I began to suspect that my compression was faulty. As a result, I directly used the QQ audio and video player on my computer. I pulled the file in, then QQ audio and video began to say that the download decoder, I think there is no, the results will be casually waiting, Ah, finally opened my. 264 file, started playing. The video I made myself is very short. I want to set it to a single loop to play the video, and then I can see the image. Otherwise, I will just shake it and it will be invisible.

Related Article

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.