k4yt3x / video2x

A lossless video/GIF/image upscaler achieved with waifu2x, Anime4K, SRMD and RealSR. Started in Hack the Valley II, 2018.
https://video2x.org
GNU Affero General Public License v3.0
10.07k stars 974 forks source link

TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' #1124

Open thatpaulschofield opened 3 months ago

thatpaulschofield commented 3 months ago

When I run video2x with this command line:

video2x -i "C:\Users\thatp\Documents\K-Pop Playalong\Music Videos - Bass Removed\(G)I-DLE - Queencard.m4v" -o "C:\Users\thatp\Documents\K-Pop Playalong\Music Videos - Bass Removed\Upscaled\(G)I-DLE - Queencard.m4v" -c "C:\Program Files (x86)\video2x-4.8.1-win32-full\video2x.yaml"

I get the following error in the logfile:

...
[!] ERROR: An exception has occurred
Traceback (most recent call last):
  File "video2x.py", line 342, in <module>
  File "upscaler.py", line 1022, in run
  File "upscaler.py", line 736, in run
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

Here is what I see at the command line:

[+] INFO: Loading files into processing queue
2024-06-18 07:02:23.279268 [+] INFO: Input path(s): C:\Users\thatp\Documents\K-Pop Playalong\Music Videos - Bass Removed\(G)I-DLE - Queencard.m4v
2024-06-18 07:02:23.283308 [+] INFO: File MIME type: video/x-m4v
[+] INFO: Loaded files into processing queue
2024-06-18 07:02:23.286274 [+] INFO: Input file: C:\Users\thatp\Documents\K-Pop Playalong\Music Videos - Bass Removed\(G)I-DLE - Queencard.m4v
[+] INFO: Reading file information
2024-06-18 07:02:23.287274 [+] INFO: Executing: dependencies\ffmpeg\bin\ffprobe -v quiet -print_format json -show_format -show_streams -i C:\Users\thatp\Documents\K-Pop Playalong\Music Videos - Bass Removed\(G)I-DLE - Queencard.m4v
2024-06-18 07:02:24.187274 [+] INFO: Creating cache directory C:\Users\thatp\AppData\Local\Temp\video2x
2024-06-18 07:02:24.188274 [+] INFO: Extracted frames are being saved to: C:\Users\thatp\AppData\Local\Temp\video2x\tmpur96em0c
2024-06-18 07:02:24.189273 [+] INFO: Upscaled frames are being saved to: C:\Users\thatp\AppData\Local\Temp\video2x\tmp53edaqtv
[+] INFO: Starting upscaling video/GIF
[+] INFO: Getting total number of frames in the file
[+] INFO: Calculating scaling parameters
Cleaning up cache directory: C:\Users\thatp\AppData\Local\Temp\video2x\tmpur96em0c
Cleaning up cache directory: C:\Users\thatp\AppData\Local\Temp\video2x\tmp53edaqtv
Cleaning up cache directory: C:\Users\thatp\AppData\Local\Temp\video2x
[!] ERROR: An exception has occurred
Traceback (most recent call last):
  File "video2x.py", line 342, in <module>
  File "upscaler.py", line 1022, in run
  File "upscaler.py", line 736, in run
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
[!] ERROR: The error log file can be found at: C:\Users\thatp\AppData\Local\Temp\video2x_ftgcz50d.log