Apply patch on ffmepg package
s0301132 opened this issue · 1 comments
s0301132 commented
Hi, Nvidia jetson nano/ Xavier NX using custom ffmepg
with nvv4ldec
decoder support, after git clone the ffmepg it needs to apply some patch before config and build the package, how can I git apply the patch before I build ffmepg?
There are some document:
http://ffmpeg.org/pipermail/ffmpeg-devel/2020-June/263746.html
Steps to apply the patch:
1) Clone the ffmpeg master branch:
git clone git://source.ffmpeg.org/ffmpeg
2) cd ffmpeg
3) Apply the patch 0001-ffmpeg-Accelerated-hardware-decode-support-on-Jetson.patch
Command to apply the patch:
git apply 0001-ffmpeg-Accelerated-hardware-decode-support-on-Jetson.patch
Steps to compile:
1) Install "jetson_multimedia_api" package from latest Jetpack release.
Follow link to install jetpack on jetson: https://developer.nvidia.com/embedded/jetpack
2) Install below dependent packages on target using the command (if not already installed by jetpack):
sudo apt install libv4l-dev
sudo apt install gcc
sudo apt install pkg-config
sudo apt install libegl1-mesa-dev
3) Run following commands to build and install:
./configure --enable-nvv4l2dec --enable-libv4l2 --enable-shared --extra-libs="-L/usr/lib/aarch64-linux-gnu/tegra -lnvbuf_utils" --extra-cflags="-I /usr/src/jetson_multimedia_api/include/"
make
sudo make install
avih commented
how can I git apply the patch before I build ffmepg?
run ./update
and then continue with 2) cd ffmpeg
...
To add the configure options, see https://github.com/mpv-player/mpv-build#name_options-files-where-name-is-ffmpegmpvlibassfribidi