-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Setting any value in "Hardware Acceleration" causes conversion to fail immediately #1202
Comments
That's somewhat expected right now. Right now Video2X only initializes and uses the hardware context, but for it to work fully, we'll need to also upload frames to / download frames from hardware when needed, and that's gonna be a complex task that'll be implemented in the future. If you read the tooltip of the hwaccel field, it says:
It's for the same reason. I'll leave this ticket open to track the support for proper hwaccel. |
Oh also, I should add that hwaccel is only for decoding and encoding the video. Normally speaking the bottleneck would be with the upscaling part, which will always use hardware through Vulkan regardless of FFmpeg hwaccel settings. This is why I didn't put it on highest priority. For just H.264+MP4, slow preset, CRF 20 (Video2X default settings), it won't make any difference. If you want to encode using some advanced hardware encoder, hwaccel will help and it will be addressed eventually. |
Got it. Thanks for the details! Another question, from your experience, what would yield the best (and fastest) results for live-action old TV series ripped from a DVD in MKV format 480i picture? |
If you're talking about live action (as in not animation), then I would probably run a deinterlace first with FFmpeg to get rid of the artifacts, then RealESRGAN with the realesrgan-plus model. The other models are all optimized for anime and cartoons. You can also take a short slice of your footage and try the different models, I've seen Anime4K doing better than RealSR on some live action footage in the past. |
Sounds good. Thank you again! ❤️ |
I should amend this statement:
It's actually mostly for decoding the video. For encoding, I'm pretty sure something like |
I think I'll close this issue for now since it's not something I plan to work on soon. hwaccel should mostly affect decoding which isn't really a bottleneck for the program's speed right now. Decoding is usually way faster than processing and encoding. It's something I can come back to when multi-threading, batched inferencing and other features are implemented and there's nothing more to improve on. I'll just close it for now so my todo list is clearer. |
The other thing is that this is tough to implement properly, as enabling hwaccel requires uploading/downloading frames to/from the GPU whenever appropriate. This adds a lot of complexity, and seems a bit difficult to implement properly for all hw codecs. Since the speed here isn't a big problem, I'd put it on hold for now. |
Sounds good. Thanks for the update. |
Setting any value (other than "none") in "Hardware Acceleration (-hwaccel)" causes conversion to fail immediately on start with the standard message "Video processing failed for: ...".
Turning on logs on any level doesn't show anything.
Tried all the values from
ffmpeg -hwaccels
output.Video2X version 6.0.0 on Windows 11.
The text was updated successfully, but these errors were encountered: