-
Notifications
You must be signed in to change notification settings - Fork 60
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
Decode error when seeking in H.264 videos #343
Comments
I'm not seeing the same issue here. I have just pushed a few more fixes to master, could you retest? |
Nothing has changed. If I reproduce it inside MPV with hwdec=VAAPI and the --loop flag. I also get errors:
Also, when I play without the --loop flag and go to some timestamp:
This also happens when I try to watch Twitch VODs in Firefox. |
Can you run mpv again with |
|
I also sometime observe decode errors on Twitch when an ad is starting. Edit: |
I can't seem to reproduce this, either with the linked video in the initial post or any of my test clips. Could you upload a file somewhere that causes the issue for you? |
https://drive.google.com/drive/folders/1YHhL5Vve5rcoEhi-Bu7W_IxW8ubyYwpo?usp=sharing |
I can't get any decode errors using that bad.mp4 file. I can get some very bad visual artefacts but it never errors. This might just be due to our different GPUs (your 3060 vs my 1060) treating bad data differently. I'll keep poking around and see if I can find anything. |
What version of Nvidia driver are you using ? |
I'm running 565.77. |
I'm using 565.77 nvidia-open driver |
I'm also using the 565.77 proprietary driver without GSP. |
Maybe you could try running firefox with |
|
Unfortunately there's nothing in the log file that suggests where the error is. You could try raising this Firefox bug, and see if they have more insight into what could cause the issue. Given that the video decodes fine on my machine, it's likely related to how Firefox/FFMPEG handle seeking and some issue there is causing invalid data to be sent to VA-API. |
I also have errors on H.264 videos when seeking in MPV with arrow keys |
When looping is enabled and video starts playing again, a decoding error occurs. It can happen on the first loop or on later ones.
Example video with issue: https://leonardo.osnova.io/be20671e-af21-5324-b36a-78597022c012/-/format/mp4/
Media resource https://leonardo.osnova.io/be20671e-af21-5324-b36a-78597022c012/-/format/mp4/ could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005)
I'm using the git version of nvidia-vaapi-driver
Driver: 565.77-1
GPU: RTX 3060
The text was updated successfully, but these errors were encountered: