Skip to content
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

"failed to read frame from video" #7

Closed
Platorius opened this issue Apr 28, 2024 · 1 comment
Closed

"failed to read frame from video" #7

Platorius opened this issue Apr 28, 2024 · 1 comment

Comments

@Platorius
Copy link

Platorius commented Apr 28, 2024

I tried this, but i get always an error, that frames are failed to read. I tried different videos and i tried .mkv and .mp4 but it's always the same. I also tried to manually define the checkpoint.pth because i thought maybe it is wrong. But i still get the same error.

I got this error:

(TAPE) userr@USERRNAME:~/TAPE$  python real_world_inference.py --input-path /home/userr/Videos/vhstest/VHS-Kamera-Test.mp4 --output-path /home/userr/Videos/vhstest/output/VHS-Restauration1.mp4
Extracting frames from the video...
 99%|███████████████████████████████████████████████████████████████████████████████▌| 160/161 [00:01<00:00, 111.88it/s]
Traceback (most recent call last):
  File "/home/userr/TAPE/real_world_inference.py", line 235, in <module>
    real_world_test(args)
  File "/home/userr/TAPE/real_world_inference.py", line 52, in real_world_test
    raise Exception("Failed to read frame from video")
Exception: Failed to read frame from video

First it looks like it would work, but then it always stops on the second last frame.

Edit: It does run now with original (uncut) video. When i cut it to a short one with avidemux or virtualdub2 it does not work anymore. Dont know why. But it runs now.

@LorenzoAgnolucci
Copy link
Collaborator

Hi @Platorius!

Maybe try to cut the video using ffmpeg. I am not familiar with avidemux and virtualdub2 so I can't help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants