就 download libx264 跟 ffmpeg 的 source..
然後 config 要讓 ffmpeg 找到
pi@ubuntu:~/ffempg-static/libx264-git$ ./configure --prefix=/home/pi/ffmpeg-static/workspace --enable-static --enable-pic platform: AARCH64 byte order: little-endian system: LINUX cli: yes libx264: internal shared: no static: yes asm: yes interlaced: yes avs: avxsynth lavf: no ffms: no mp4: no gpl: yes thread: posix opencl: yes filters: crop select_every debug: no gprof: no strip: no PIC: yes bit depth: 8 chroma format: all You can run 'make' or 'make fprofiled' now.
make 完後..install
pi@ubuntu:~/ffempg-static/libx264-git$ make install install -d /home/pi/ffmpeg-static/workspace/bin install x264 /home/pi/ffmpeg-static/workspace/bin install -d /home/pi/ffmpeg-static/workspace/include install -d /home/pi/ffmpeg-static/workspace/lib install -d /home/pi/ffmpeg-static/workspace/lib/pkgconfig install -m 644 ./x264.h /home/pi/ffmpeg-static/workspace/include install -m 644 x264_config.h /home/pi/ffmpeg-static/workspace/include install -m 644 x264.pc /home/pi/ffmpeg-static/workspace/lib/pkgconfig install -m 644 libx264.a /home/pi/ffmpeg-static/workspace/lib ranlib /home/pi/ffmpeg-static/workspace/lib/libx264.a
然後是 ffmpeg..
./configure --prefix=/home/pi/ffmpeg-static/workspace \ --extra-version=patrickz --disable-debug --disable-shared --enable-static \ --disable-doc --enable-gpl --enable-nonfree --enable-version3 \ --pkg-config-flags="--static" \ --enable-libx264 \ --enable-filters \ --extra-cflags="-I--prefix=/home/pi/ffmpeg-static/workspace/include -static" \ --extra-ldflags="-L--prefix=/home/pi/ffmpeg-static/workspace/lib -static"...
接著來 enable neon 看看...
沒有留言:
張貼留言