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

What FFmpeg version is used? #129

Open
Augusto7743 opened this issue Apr 25, 2023 · 10 comments
Open

What FFmpeg version is used? #129

Augusto7743 opened this issue Apr 25, 2023 · 10 comments

Comments

@Augusto7743
Copy link

Hello.
What ffmpeg version is used internally in shutter enconder ?
4 , 5 , 6 or latest git ?

Have an nice week.

@paulpacifico
Copy link
Owner

Hello,
I'm using the latest git compiled the 2023/03/28.
Paul.

@Augusto7743
Copy link
Author

Thanks for your reply.
Here Shutter Enconder only have access to NVENC if deleting the ffmpeg inside library folder and doing an symbolic link between ffmpeg installed from PPA in /usr/bin and Shutter Enconder library folder.
The ffmpeg version is ffmpeg 4.4.3-0.
I had tried install ffmpeg version 6 , but require private PPA and I not see any other way to install current git version too.

Have any issue using ffmpeg 4.4.3-0 in Shutter Enconder ?
I not known an way to fix the issue not using ffmpeg inside library folder.

@paulpacifico
Copy link
Owner

I suppose you're using Linux OS?
Try with compiled FFmpeg builds from here: https://github.com/BtbN/FFmpeg-Builds/releases
or here: https://johnvansickle.com/ffmpeg/

@Augusto7743
Copy link
Author

Augusto7743 commented Apr 25, 2023

yes Linux Ubuntu 20.04.6.
I will try install ffmpeg from links above now =)

@Augusto7743
Copy link
Author

ffmpeg-master-latest-linux64-gpl.tar
from https://github.com/BtbN/FFmpeg-Builds/releases
installed in /home/username/ffmpeg
after added in path environment and deleted ffmpeg in /usr/bin

Shutter Enconder in settings gpu decoding only show auto and none and trying enable hardware acceleration show
"No Hardware Acceleration Available .. Make sure your drivers are up to date"

If OBS Studio use ffmpeg to access nvenc that feature works ..

In terminal command using
ffmpeg -hwaccels
show

ffmpeg version N-110363-g2aad9765ef-20230424 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (crosstool-NG 1.25.0.152_89671bf)
Hardware acceleration methods:
cuda
vaapi
qsv
drm
opencl
vulkan

is being possible run the ffmpeg in /home .. path was configured correctly

Please I not want several replies from you because you not is forced to doing extreme support ... I only need understand if have any problem in as shutter enconder try run ffmpeg from /home or if anything not is allowing shutter enconder access ffmpeg in /home

@paulpacifico
Copy link
Owner

You need to replace FFmpeg binaries inside Shutter Encoder folder then 'Library' /usr/bin is not used by SE.

@Augusto7743
Copy link
Author

I have done an symbolic link between /home and shutter enconder library.
Now in settings gpu decoding show cuda , vulkan and others options , but trying enable hardware acceleration show
"No Hardware Acceleration Available .. Make sure your drivers are up to date"

See the links
https://launchpad.net/~savoury1/+archive/ubuntu/ffmpeg5

Update (8 Apr 2023): FFmpeg 5.1.3 builds are now with new nv-codec-headers 12.0.16.0 (latest version) which requires nVidia >= 520.56.06 drivers

https://launchpad.net/~savoury1/+archive/ubuntu/ffmpeg6

Update (8 Apr 2023): FFmpeg 5.1.3 builds are now with new nv-codec-headers 12.0.16.0 (latest version) which requires nVidia >= 520.56.06 drivers

....

I had tried
https://github.com/BtbN/FFmpeg-Builds/releases?page=2
Auto-Build 2023-03-31 12:50
ffmpeg-N-110129-gd2e1389285-linux64-gpl

Not any NVENC acceleration.
Here using geforce kepler driver 470.
FFMPEG documentation or changelog not have any information about requirement to use driver 520.
I not see if ffmpeg versions 5 or 6 had any support to driver 470 and what is the correct version to download.

I will try contact with the PPA about it.

@paulpacifico
Copy link
Owner

So you just need to update to 520 driver version to get the hardware acceleration?

@Augusto7743
Copy link
Author

Augusto7743 commented Apr 25, 2023

"So you just need to update to 520 driver version to get the hardware acceleration ?"
for Rob PPA https://launchpad.net/~savoury1 ffmpeg 5 and 6 require driver 520. However both are private PPA.
for BtbN https://github.com/BtbN/FFmpeg-Builds/releases require driver 471.

Here removed the OS ffmpeg and using ffmpeg used is from
https://github.com/BtbN/FFmpeg-Builds/releases

Path environment is working correctly because commands work.
OBS Studio are having NVENC acceleration. OBS Studio require ffmpeg.

BtbN have replied all builds require driver above 471.41 for Video Codec headers 11.1.
Not any build for geforce 600 driver 470.
He have replied is possible create an custom build for driver 470. IMO have chance for doing issues when converting videos.

Rob from PPA had replied the PPA ffmpeg 6 is private support and his ffmpeg 4 current version have dropped hardware acceleration.
He had removed previous version in PPA ... for luck I had an copy of previous version having hardware acceleration.

Possibly Rob's ffmpeg PPA is the more used PPA for installing ffmpeg in Ubuntu distros and the ffmpeg4 is the more used.
I not have information if him or ffmpeg source code for version 4 have dropped hardware acceleration.
That dropped hardware acceleration is recent in current version. If an user have updated ffmpeg will lose NVENC acceleration for any geforce.
Have an chance Shutter Enconder users will post about not having any enconding hardware acceleration for Nvidia.

In moment johnvansickle not have replied.

I need figure an ffmpeg last previous version compatible for geforce 600 driver 470.

What is your choice about Shutter Enconder having compatibility with geforce 600 and some 700 video cards ?
I not understand because Shutter Enconder using the own ffmpeg build installed from shutter-enconder.deb never have worked. When trying enable Nvidia NVENC the Shutter Enconder is halted as if waiting the command to be completed , but is as the commands not are being done or completed.

@chenlung chenlung changed the title What ffmpeg version is used in shutter enconder ? What FFmpeg version is used? Apr 28, 2023
@pato-pan
Copy link

pato-pan commented Jul 15, 2024

I think this issue should be closed.
Shutter-encoder only works if I use symlinks instead of using the libraries that it provides when it's installed (the ones at shutter-encoder/usr/bin/Library/), and I have to create these symlinks every time I update it. I use the aur version.

I am not sure if you want to try and fix this issue, it could be an issue that should be solved by the pkgbuild instead of you. I don't know. To me, I think it makes sense for shutter encoder to always use the latest libraries available in the system, instead of the ones that shutter-encoder provides.

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

3 participants