ffmpeg-build-script
ffmpeg-build-script copied to clipboard
Wrong version in compiled ffmpeg
I compiled this afternoon after making some of the changes related to ffnvcodec
in issues #183 and #187. However the complied version reports as the ffmpeg-build-script
version 1.45
and not ffmpeg 6.0
.
$ /usr/bin/ffmpeg
ffmpeg version v1.45 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04)
configuration: --enable-nonfree --enable-gpl --enable-openssl --enable-libdav1d --enable-libsvtav1 --enable-libx264 --enable-libx265 --enable-libvpx --enable-libxvid --enable-libvidstab --enable-libaom --enable-libzimg --enable-lv2 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libfdk-aac --enable-libwebp --enable-libsrt --enable-cuda-nvcc --enable-cuvid --enable-nvenc --enable-cuda-llvm --enable-libnpp --nvccflags='-gencode arch=compute_52,code=sm_52' --enable-amf --disable-debug --disable-doc --disable-shared --enable-pthreads --enable-static --enable-small --enable-version3 --enable-ffnvcodec --extra-cflags='-I/home/kyle/git/ffmpeg-build-script/workspace/include -I/home/kyle/git/ffmpeg-build-script/workspace/include/lilv-0 -I/usr/local/cuda/include' --extra-ldexeflags= --extra-ldflags='-L/home/kyle/git/ffmpeg-build-script/workspace/lib -L/usr/local/cuda/lib64' --extra-libs='-ldl -lpthread -lm -lz' --pkgconfigdir=/home/kyle/git/ffmpeg-build-script/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/home/kyle/git/ffmpeg-build-script/workspace --extra-version=
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
Really appreciate you preparing and maintaining this script, such a frustration saver.
same problem. (ubuntu 22.04 LTS + Cuda 12.1) in console logs.
... building ffmpeg - version 6.0 FFmpeg-release-6.0.tar.gz has already downloaded. Extracted FFmpeg-release-6.0.tar.gz ...
$cat ./pacakges/FFmpeg-release-6.0/RELEASE 6.0
why...? I think it is ffmpeg's problem.
I also encountered this problem.
Apparently FFmpeg's build system picks up the version number from Git (https://github.com/FFmpeg/FFmpeg/blob/master/ffbuild/version.sh#L6).
Building outside the ffmpeg-build-script
directory or using a non-Git version of this script (i.e. a ZIP archive from the release page, not from git clone
) probably solves the issue, although I myself didn't test it by repeating the build process.
I confirmed the above works.
Please see https://github.com/markus-perl/ffmpeg-build-script/issues/104
This only happens if you did a git clone. Either delete or rename the .git folder to solve the issue.