-
-
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
6.1.0 Error encoding/writing frame: Invalid argument #1222
Comments
I'll publish 6.1.1 soon which may fix this issue. |
Could you plz try 6.1.1? |
I have tried 6.1.1, and I am getting the same error. On another system with an AMD GPU I am also getting the exact same error. My guess is that it has to do with my particular video file. I will provide a link to a download of the file below. https://drive.google.com/file/d/1xm6gck4dHxtDfGw20KMGQqjfFLObzAsJ/view?usp=drive_link |
@HauptlingHD You aren't sharing it correctly. It's asking me to sign in. |
Sorry, my bad. Here you go: https://drive.google.com/file/d/1xm6gck4dHxtDfGw20KMGQqjfFLObzAsJ/view?usp=sharing |
OK thanks I'm working on it now. |
I was able to reproduce the error: Yeah I think it's just compatibility issue with the old video codec format. Video2X passes the frame to the H.264 encoder without changing anything, and H.264 can't handle it. I'll see how I can fix it. At the mean time, you could first re-encode the video with the modern H.264 format with FFmpeg and then Video2X would be able to correctly process that: ffmpeg -i '001. Warum betreibt man Astronomie (27.09.98).avi' -c:v libx264 astronomie.mp4 |
OK, I thought so. I was hoping to avoid re-encoding so I wouldn't lose any quality. I guess I'll just re-encode the video at a stupidly high quality and try again. Thanks for checking! |
I don't think you'll be losing much quality over this re-encode... but if you really want lossless, you could try using a lossless codec like: ffmpeg -i astronomie.avi -c:v ffv1 astronomie.mkv ... and Video2X should be able to process that output file without issues. |
Thanks for the quick update. For now the workaround of re-encoding the video first seems to work with 6.1.1. |
I've pushed the fix in commit. It will be rolled out in the next release. |
I'm trying to use realesrgan-plus in the latest release (6.1.0) and always run into the error in the title. (full log below) I'm using a somewhat old .avi file as input. The output file I get is always 12,7 KB in size and also ends in .avi (.processed.avi) despite the Container Format being the default .mp4. All details of the output file are correct as reported by Windows file probates (25 fps, Sterio Audio, etc.) but the file seams to only contain one frame.
Other system Info:
Win 11
Core Ultra 7 165U (Using iGPU)
32 GB RAM
The text was updated successfully, but these errors were encountered: