-
-
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
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 have tried 6.2.0. Unfortunately, the error is unchanged.
|
Hmm for real? That's weird. |
So I tested it, and it ended up not being a timestamp issue again. It's that the avi container doesn't support the audio codec format for some reason. If you change it to .mkv, it'll process just fine. I'm thinking maybe I should set the default suffix to mkv or mp4. |
I think this ultimately comes down to user guidance and error message handling. It would be a separate issue. |
I can confirm this partially. As far as I have tested, only ".mkv" as a suffix works. Any other container format I have tested leads to the same error. (avi, mp4, mov) I have also opened a related issue #1263 regarding the auto generated suffixes in the GUI. |
Hi, I got the same error with a video today. I'm trying with MKV now. Also using the GUI. I'm sharing my log hoping that helps in any way.
I wanted to try a different file-format as .mkv seem to be unplayable on my VLC, black screen with sound but I think that's a separate issue. My video editing software opens it fine and I just export in as .mp4 Thanks for all your work |
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: