x264 uses arm-linux-gcc to arm porting summary (transfer)

Original link:
https://blog.csdn.net/liuzongming1988/article/details/8234893

My development environment is:
1. Redhat Linux6.3
2. Feiling embedded development board OK6410

After testing, it is completely feasible.
It should be noted that
#./x264 –o test.264 mytest.yuv
prompts an error: raw input requires a resolution.
Solution:
save the source file name as foreman_176x144.yuv, and I have encountered the same situation , newer versions of x264 require the resolution to be directly in the filename.

The following is the original text:


PC platform: Linux fedora10—compiler 4.3.3 arm-linux-gcc

X264 source code: Last_x264http://www.videolan.org/developers/x264.html

Porting target: arm9 - linux-2.6.30.4 development board

Generate a configuration file./configure --host=arm-linux --prefix=/usr/local/x264-arm --enable-shared --enable-debug --disable-asm

Modify the configuration file

vi config.mak

put the inside

cc=gcc 改成cc=arm-linux-gcc

LD = arm-linux-gcc

ar=ar rc modified ar=arm-linux-ar rc

Ranlib=ranlib changed to ranlib=arm-linux-ranlib

make

make install

After this is done, I directly found the /usr/local/x264-arm/ directory, and copied the x264 executable file in the bin directory to my arm development board. Operate and it's ready to use.

#rz

#chmod +x x264

#./x264 –o test.264 mytest_640x480.yuv

As a result, the converted test.264 video file is output. Ha ha


Copyright statement: This article is an original article of CSDN blogger "Fu Daniu Erye", following the CC 4.0 by-sa copyright agreement, please attach the original source link and this statement for reprinting.
Original link: https://blog.csdn.net/liuzongming1988/article/details/8234893

Guess you like

Origin blog.csdn.net/u013209189/article/details/99636649