Update FFmpeg for L4T platforms

This commit is contained in:
Cameron Gutman
2024-08-23 04:50:08 +00:00
parent af1a5069d9
commit fc21a63a1d
4 changed files with 3 additions and 9 deletions

2
.gitmodules vendored
View File

@@ -18,7 +18,7 @@
url = https://github.com/cgutman/userland.git
[submodule "FFmpeg-l4t"]
path = FFmpeg-l4t
url = https://gitlab.com/switchroot/switch-l4t-multimedia/FFmpeg.git
url = https://github.com/cgutman/FFmpeg.git
[submodule "dav1d"]
path = dav1d
url = https://code.videolan.org/videolan/dav1d.git

View File

@@ -82,9 +82,3 @@ cd /opt/FFmpeg
./configure $BASE_FFMPEG_ARGS $EXTRA_FFMPEG_ARGS $DAV1D_FFMPEG_ARGS
make -j$(nproc)
make install
if [ "$TARGET" == "l4t" ]; then
# Patch libavcodec.pc to provide the proper library path for libnvbuf_utils.so
sed -i 's|-lnvbuf_utils|-L/usr/lib/aarch64-linux-gnu/tegra -Wl,-rpath=/usr/lib/aarch64-linux-gnu/tegra -lnvbuf_utils|g' /usr/local/lib/pkgconfig/libavcodec.pc
cat /usr/local/lib/pkgconfig/libavcodec.pc
fi