-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
mpv drops frames at VO for specific AV1 WebM #6001
Comments
So why does the main website where your sample is show as being seized by the nsa? |
With which Chromium versions is this supposed to work? |
@Hrxn ones which have a devendored ffmpeg that supports AV1, like the one Arch Linux ships. |
I only get one frame drop in the very beginning (nothing unusual) and video plays fine otherwise for me on Windows and Linux. |
Odd thing: I'm getting lots of delayed frames with lachs0r's build, but not with shinchiro's. |
@aufkrawall: Try the latest one. @CounterPillow: Well. Consider the following:
I was able to reproduce the judder on my system with my own Windows builds until I changed the build options. For the record, see this spec file: https://build.opensuse.org/package/view_file/multimedia:libs/libaom/libaom.spec?expand=1 |
Yep, fine now. |
Small nit, don't want to open an issue for this: PS F:\Tools> mpv --V
mpv 0.29.0 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
ffmpeg library versions:
libavutil 56.18.102
libavcodec 58.22.100
libavformat 58.17.101
libswscale 5.2.100
libavfilter 7.26.100
libswresample 3.2.100
ffmpeg version: 4.1+809.g269daf5985
PS F:\Tools> mpv
mpv 0.29.0 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
ffmpeg library versions:
[...]
[...]
Not sure, but probably not intentional? Older builds definitely had their date in that place.. |
@Hrxn that's to make the builds reproducible, AFAIU. |
Good to know, thanks. Then please disregard.. or maybe scrap the |
@lachs0r I've built aom with optimisations now and that didn't change a thing about mpv's framedrops. |
Since this didn't go through last night when I tried to post it:
Some years back there was a bug report that wanted it to be more comprehensive and if the EDIT: I went ahead and opened a pull request. |
Seems rather finicky about dropped frames. The linked vid was pretty short so did some local encodes of a bit longer. Seems minor changes to encoding options can create more or less dropped frames in mpv, don't have any other player to compare.
https://0x0.st/sxjk.tar |
I have the same issue with AV1 1080p of this video from AV1 Beta Launch Playlist. $ mpv --version
mpv 0.29.0-30-g6eb59fea2f-dirty Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
built on Sun Sep 16 23:58:12 MSK 2018
ffmpeg library versions:
libavutil 56.19.101
libavcodec 58.30.100
libavformat 58.18.101
libswscale 5.2.100
libavfilter 7.32.100
libswresample 3.2.100
ffmpeg version: N-91961-g5109c38162
$ aomdec --help | grep av1
av1 - AOMedia Project AV1 Decoder 1.0.0-590-g6fa400604
As you can see, it takes only 4.2 seconds to decode 10 seconds of video (25 fps) on my machine but when I'm trying to play it with mpv I get a lot of VO frame drops. |
Refreshed pakcage: ffmpeg-git
This issue is still present with latest ffmpeg + mpv builds (both Windows & Linux). |
I have a theory that AV1 decoding is limited to a single thread since FFmpeg doesn't support multithreaded encoding for AV1 either. So there's a precedent there. To test it, download a 1080p AV1 video from Youtube:
Then play it with mpv and record the CPU use of the process with
Playback was stuttery with a large number of dropped frames and took 3 minutes 20 seconds to complete for a 2 minute 38 second video. And as you can see, CPU usage was only 89% of the 400% maximum on a 2-core 4-thread CPU. While observing with Now that the latest version of Firefox (v. 63) also supports AV1 decoding we can test that too. The If you can't replicate the test result, then you probably aren't using a dual-core laptop CPU from 7 years ago (mine is an i3-2520M) and can just brute-force through the threading issue. In that case you can try one of Elecard's Holi festival AV1 test files. I'd imagine even the beefiest CPU will run into issues when trying to play the 2160p version on one thread. I can't even play the 720p 3.9 mbps file without dropped frames on mpv, while Firefox is again able to play it just fine. |
At least here mpv & ffplay are ok with av1 files encoded with libaom0, particularly if done thru ffmpeg, higher rez's can have some dropped frames (I'm ok to 1080p. ) However the youtube ones don't, neither in mpv or ffplay. They do in vlc but vlc does not use use ffmpeg libs for decoding av1. What's the difference between local, elecard & youtube I've no idea.. As far as mt encoding in ffmpeg, that is quite possible, ie. with -tile-columns & -tile-rows , ffmpeg needs to be patched for -tile-rows. Maybe by next year there will be a better decoder & mpv/ffmpeg will perform better. (dav1d |
Why this is still open, mpv does not have own decoders any more... |
Because ffmpeg decodes video faster than realtime but there are frame drops in mpv? |
@richardpl maybe you should actually try to reproduce this before making a stupid comment; other applications using the same decoder work fine, and mpv drops frames at vo. |
Issue disappears when using libdav1d instead of libaom. |
Off course.... I told you so. |
Closing this, since it's probably a combination of the following:
With dav1d I still get stutters but they're less severe, so I guess it is just the decoder after all. |
Do you get any anomalies reported? If I'm not mistaken, libdav1d is entirely free of stutter for me. Would have to test this more thoroughly though. |
I still get delayed frames, but that's likely because this is a 2 core 4 thread laptop. |
mpv 0.32.0-515-g685bd6a5f5 |
Plays fine on Windows here. Open a new ticket and don't ignore the issue template, thanks. |
Is suspect using a higher value for --vd-lavc-threads=N has the same or better effect. |
mpv version and platform
Arch Linux x86_64
Reproduction steps
mpv --no-config https://fratti.ch/tmp/wanderers.webm
Expected behavior
Don't drop frames, like vlc, Chromium and ffplay do.
Actual behavior
Severe VO framedrops
Log file
https://0x0.st/sVHf.log
Sample files
The text was updated successfully, but these errors were encountered: