QualityScaler icon indicating copy to clipboard operation
QualityScaler copied to clipboard

[BUG] Upscale error

Open BugTickler opened this issue 9 months ago • 20 comments

Hello,

My problem is that at the very end of the upscaling process I get an error. I have no idea what could be causing it. In the folder where all the frames are unpacked there are also all the frames that are correctly upscaled, but it seems that the program is not able to put it back into a movie. Input format AVI. In the meantime I am trying to use a different model than in the attached screenshot, but the time needed to process a 6-minute video in the case of other models is too long to make sense (1 - 2.5 hours). I am using version 4.1. I also had one attempt where the error did not appear, the message said that the process was successful, but I did not get the output file.

Error message: Image

My settings: Image

CPU spec: AMD Ryzen 7 4800H RTX 2060 6GB VRAM RAM 16GB

BugTickler avatar Feb 20 '25 21:02 BugTickler

One of the problems was the wrong location of ffmpeg.exe, I fixed it but I still have a problem getting the output file

Image

BugTickler avatar Feb 20 '25 22:02 BugTickler

Hi my friend,

the 1. problem was that ffmpeg.exe was not correctly installed.

In the second photo i can see that ffmpeg completed without problem, the red text is only a warning; so the upscaled video should be in the path you selected or in the same directory of the original file (as the default setting)

Djdefrag avatar Feb 21 '25 08:02 Djdefrag

How can I find my logs? I have the same issue and none of the codecs work.

Setup: Ryzen 7 2700x RTX 3070

TheBoxyBear avatar Mar 15 '25 02:03 TheBoxyBear

@TheBoxyBear

Hi my friend, check ffmpeg.exe position.

You need to put it in Assets folder

Djdefrag avatar Mar 15 '25 06:03 Djdefrag

So it doesn't check for FFmpeg at the start? It could be something to consider adding with a more appropriate error message. Also, checking if FFmpeg is installled as a global command as it is the case on my setup.

TheBoxyBear avatar Mar 16 '25 16:03 TheBoxyBear

yes the app gives an error if does not find ffmpeg.exe, the error is in the terminal

Djdefrag avatar Mar 16 '25 17:03 Djdefrag

How do I open the console to see errors?

TheBoxyBear avatar Mar 18 '25 02:03 TheBoxyBear

are you running the python script?

Djdefrag avatar Mar 18 '25 07:03 Djdefrag

I can't seem to find such script. I'm using the version from itch.io. I also can't find the Assets folder to put ffmpeg

TheBoxyBear avatar Mar 19 '25 23:03 TheBoxyBear

if you are using itch version everything is already installed, what problem do you get?

In any case try to execute the app as Administrator. Sometimes Windows is annoying

Right click on QualityScaler.exe > run as Administrator

Djdefrag avatar Mar 20 '25 06:03 Djdefrag

I still get the codec error from the original issue.

TheBoxyBear avatar Mar 21 '25 00:03 TheBoxyBear

can you share a screen of your QS settings? and a screen of your PC infos?

Djdefrag avatar Mar 21 '25 08:03 Djdefrag

Image

Image

Image

TheBoxyBear avatar Mar 27 '25 01:03 TheBoxyBear

Hi my friend,

the settings seem correct to me based on your pc.

I ask you one last thing, when the app is going to create the upscaled video, after upscaling the frames, it creates a txt file named after the file needed to create the video.

Can you see this txt file? (It is in the same location as the upscaled frames.) Could it be that it is not created correctly

Djdefrag avatar Mar 27 '25 05:03 Djdefrag

The file is created with just lists of all the frames. Although strangely I have files from multiple runs all with slightly different sizes.

TheBoxyBear avatar Mar 27 '25 21:03 TheBoxyBear

Mh are you upscaling the same video with the same settings? Input resolution, output resolution and AI model?

the app should restart where it finished last time.

In any case it seems that the error is related solely to encoding via ffmpeg.

My advice is to do a good restore and start from a clean situation:

  • Delete the app and re-download it from itch.io
  • Update your pc to the latest version of Windows
  • Update the GPU and motherboard drivers and CPU (https://www.amd.com/en/support/download/drivers.html)
  • Install the Visual C libraries (https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/) download the file .zip, extract everything and click install_all.bat

That way you should start from as clean a situation as possible

Djdefrag avatar Mar 28 '25 07:03 Djdefrag

After these suggestions I tried with another video and it worked. It just seems to not like this one particular video, despite it coming from the same source so it should be encoded the same way. So I'm not too sure if it's a QualityScaler or ffmpeg issue.

TheBoxyBear avatar Apr 04 '25 18:04 TheBoxyBear

@TheBoxyBear oh this is really strange

if you want, send me the video on telegram or in another way

so i can test this specific video, thank you :)

Djdefrag avatar Apr 05 '25 05:04 Djdefrag

Hello @BugTickler,

I've encountered this due to a ' in the file name. See here: https://github.com/Djdefrag/QualityScaler/issues/133

antipiot avatar Apr 14 '25 07:04 antipiot

My filename doesn't have a ' but it does contain the emote :( that could alco be problematic characters.

TheBoxyBear avatar Apr 21 '25 18:04 TheBoxyBear