succesfull build of ffmpeg and kodi containers
This commit is contained in:
@@ -11,18 +11,21 @@ apt_install_permanent sudo linux-libc-dev
|
||||
cd /opt
|
||||
git clone https://github.com/lutris/ffmpeg-nvenc.git
|
||||
sed -i "s,\(ffmpeg_version=\).*,\1\"$FFMPEG_VERSION\"," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,\s*--enable-x11grab \\\s*,," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,\s*--enable-shared \\\s*,," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,\s*--extra-ldexeflags.*,," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,\(-pie\)\s*\\\,\1," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,--enable-x11grab,," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,--enable-shared,," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,--enable-libvpx,," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,--extra-ldexeflags\n,," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,\(sdk_url=\).*,\1\"$SDK_URL\"," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s,\(sdk_basename=\).*,\1\"$SDK_BASENAME\"," /opt/ffmpeg-nvenc/build.sh
|
||||
sed -i "s, BuildVpx, ," /opt/ffmpeg-nvenc/build.sh
|
||||
/opt/ffmpeg-nvenc/build.sh
|
||||
|
||||
## Enable libraries and binaries
|
||||
mv /opt/ffmpeg-nvenc/ffmpeg-nvenc/ /opt/ffmpeg
|
||||
echo "/opt/ffmpeg/lib" >> /etc/ld.so.conf
|
||||
ldconfig
|
||||
ln -s /opt/ffmpeg/bin/* /usr/local/bin
|
||||
rm -r /opt/ffmpeg/lib/pkgconfig
|
||||
ln -s /opt/ffmpeg/bin/* /usr/bin
|
||||
ln -s /opt/ffmpeg/lib/* /usr/lib
|
||||
|
||||
## Clean installation files
|
||||
if [ $MODE == "minimal" ]; then
|
||||
|
||||
Reference in New Issue
Block a user