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.