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

FFmpeg super slow - probably not using nvenc - how to fix? #605

Closed
GalGreenfield opened this issue Feb 27, 2022 · 3 comments
Closed

FFmpeg super slow - probably not using nvenc - how to fix? #605

GalGreenfield opened this issue Feb 27, 2022 · 3 comments
Labels
component:FFmpeg FFmpeg related issue

Comments

@GalGreenfield
Copy link

Hello, FFmpeg is being super slow - I can upscale a 4GB 1080p file to 4K in about 30 minutes, with the file stitching by FFmpeg not being completeld even after a few hours. It's probably not using nvenc - how can I fix it?

@k4yt3x
Copy link
Owner

k4yt3x commented Feb 27, 2022

I'll suggest you to not use NVENC since H.264 will give you better quality with the same bitrate. FFmpeg shouldn't take that long to process the frames. Are there any error logs or anything or is it just hanging there? Do you observe any CPU usages by FFmpeg?

@k4yt3x k4yt3x added the component:FFmpeg FFmpeg related issue label Feb 27, 2022
@GalGreenfield
Copy link
Author

GalGreenfield commented Feb 27, 2022

I think I'm not using nvenc - I tried with just the default settings, and still FFmpeg doesn't even finish building the video file after hours of running, and IIRC I also get eventually some error failure shout it.

Here's a detailed issue I posted on Anime4KCPP's repo.

@k4yt3x
Copy link
Owner

k4yt3x commented Feb 27, 2022

It will be helpful if you have the error log, but in the past few reports of this same problem nobody was able to provide the error log since FFmpeg just hangs. I don't have the dev environment to debug the old 4.8.1 version either.

v2x was completely redesigned in 5.0.0 and this problem shouldn't exist in 5.0.0. The issue here is that it only supports command line so far as I haven't written a GUI for it. I also haven't added Anime4K support for it yet since the newest A4K is written in GLSL or C++ if I want to use Anime4KCPP. I'll need to figure out how to write a Python FFI for those two libraries to be able to use them.

With that said, 5.0.0 does run quite well with waifu2x, SRMD, RealSR, and RIFE. If you feel comfortable playing with command line stuff, maybe try v2x on Colab or the container image

@k4yt3x k4yt3x closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:FFmpeg FFmpeg related issue
Projects
None yet
Development

No branches or pull requests

2 participants