k4yt3x / video2x

A machine learning-based lossless video super resolution framework. Est. Hack the Valley II, 2018.
https://video2x.org
GNU Affero General Public License v3.0
10.96k stars 1.02k forks source link

Output video always black #77

Closed Ciellent closed 5 years ago

Ciellent commented 5 years ago

video2x.exe -m gpu -r 2 -i C:\Users\REDACTED\Desktop\1\1.mp4 -o C:\Users\REDACTED\Desktop\2\1.mp4

is what i input into the cmd and when it finishes the video is always black right to the end but the audio is working fine.

cr08 commented 5 years ago

Just adding in that I ran into this too recently after syncing my fork back up to upstream. Seemed without the pix_fmt argument added in it was trying to encode to 4:4:4 by default at least with my config. Adding that in seemed to sort it.

I'm also running into an oddity where my filesizes are way off and libx264 options as reported by mediainfo are off as well despite the same ffmpeg arguments being passed as before. I'll post a separate issue for this though.

k4yt3x commented 5 years ago

@cr08 does the above fix work for you?

Ciellent commented 5 years ago

@k4yt3x that video2x works and plays the video perfectly fine with the built-in Windows 10 media player, I think you've fixed it.

k4yt3x commented 5 years ago

@Ciellent perfect. I'll push the update then.

k4yt3x commented 5 years ago

The issue should now be fixed by commit: https://github.com/k4yt3x/video2x/commit/146044505b845224c67c5316580a283f47bd91e8

cr08 commented 5 years ago

@cr08 does the above fix work for you?

It did fix it for me, yes.

arthurreckel commented 2 years ago

I'm using the GUI and it still dont work for me. I tried changing the pixel formats but it still turns out black. I open the folder where it extract the frames and at first it was extracting well, i could see every frame, but after sometime other process started (I dont know the right words, I'm sorry ) and other folder started to be filled with black frames and the normal ones turned into black too. I dont know what to do