Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong version in compiled ffmpeg #197

Open
klogg416 opened this issue May 6, 2023 · 4 comments
Open

Wrong version in compiled ffmpeg #197

klogg416 opened this issue May 6, 2023 · 4 comments

Comments

@klogg416
Copy link

klogg416 commented May 6, 2023

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.

@fxpoet
Copy link

fxpoet commented May 11, 2023

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.

@biochem-fan
Copy link

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.

@biochem-fan
Copy link

I confirmed the above works.

@markus-perl
Copy link
Owner

Please see #104

This only happens if you did a git clone. Either delete or rename the .git folder to solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants