-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Is there a way around the libavcodec 59 dependency? #1242
Comments
You have Ubuntu 24.04 but downloaded the 22.04 deb package? |
No, sorry, that was a typo.
|
Oh right, for Ubuntu 22.04 you'll also need the Ubuntu Handbook PPA and install FFmpeg 7. The FFmpeg on Ubuntu 22 is just too old and won't work. Try this: sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg7
sudo apt-get update
sudo apt-get install ffmpeg Then install video2x again. |
I admit it's not very well documented. I'll add more docs for it later. The 22.04 version is primarily built for use on Colab, and libplacbeo has some issues with the Ubuntu Handbook build (it can't find the libplacebo filter). If your situation permits, I'd recommend using this on Ubuntu 24.04. The newer officially built FFmpeg has no problems at all. |
To be honest I provisioned an Ubuntu box with an Nvidia GPU to try and avoid issues I was having on macos with ML/AI workloads ( they are painfully slow in most cases and most projects provide mac instructions as an afterthought) and it has proven to be even more frustrating. FYI a manual build of video2x on Ubuntu 22.04 as per https://docs.video2x.org/building/linux.html gives lots of g++ fatal errors which I'm guessing isn't good My provider doesn't offer 24.04 so I think I'll try a container and then give up. |
I'm expecting For installing on Ubuntu 22.04 I think you're just missing the PPA. Remove video2x, install the PPA and the new FFmpeg, then you should be able to install video2x's 22.04 deb. |
I built ffmpeg from source so its recent. The video2x build eventually failed and didn't generate a deb file. I'm not confident a container would be any different.
|
I'd say don't try building it on Ubuntu anymore, try the FFmpeg from the PPA or just Docker. I'm pretty sure the Docker would at least work. |
Thanks. I'll give it a try tomorrow. Can you confirm that the Real-ERSGAN functionality works? I'm not planning on upscaling anime content and don't want to spend more time on it if it won't suit my needs( mostly live action old TV series) There is not much mention of it in the docs. Thanks for getting back to me today - its very much appreciated. |
Yes RealESRGAN works when I test it on Colab which is Ubuntu 22.04. Just use the |
Thanks. Is it slower because of the nature of the footage or because it doesn't make use of the GPU? I'm surprised that one is allowed to install custom Ubuntu packages in Google Collab?! |
I believe the live footage model is slower because it's more complex than anime, so yeah the nature of the video. The quickest way you can check if you're using GPU is to run
If you see your GPU's name, your GPU is recognized and it's fine. If the only one showing up says LLVM, e.g., something like llvmpipe, then it's using the CPU. |
I have build the latest ffmpeg on Ubuntu 22.04 LTS and get the following when trying to install video2x
I got the same error with the ffmpeg version in the ubuntu repo. Is there a way around this without building ffmpeg again?
ffmpeg version:
The text was updated successfully, but these errors were encountered: