Page 1 of 1

VP9 video playback is stuttering

Posted: 2018-12-06, 19:42
by chaldon
The problem is present since v28.2.0, at least with the official 64-bit tarball on Debian stable. When playing any HD video on YouTube the video is stuttering/dropping frames. In the terminal I see the lines appearing:

Code: Select all

[vp9 @ 0x7fe369539000] The deprecated avcodec_decode_* API cannot return all the frames for this decoder. Some frames will be dropped. Update your code to the new decoding API to fix this.

Re: VP9 video playback is stuttering

Posted: 2018-12-06, 22:57
by Night Wing
I don't experience any stuttering/dropping frames when watching YouTube videos in HD, mostly 720p which is what I usually watch HD videos in YouTube. But I'm not using Debian Stable and I'm also not using the older version of Pale Moon 28.2.0 either.

I'm using 64 bit linux Pale Moon 28.2.2 running in 64 bit linux Mint 19 (Tara) Xfce. Have you tried version (28.2.2)?

Re: VP9 video playback is stuttering

Posted: 2018-12-07, 17:07
by chaldon
Yes, the problem is still present in v28.2.2. I've found out more details: the problem is not present on my old netbook PC with the integrated Intel graphics card, while my main PC, which has the problem, has the modern AMD Baffin (Polaris11) based card. I guess VP9 decoder tries to use some kind of hardware acceleration but can't do it correctly for some reason (may be libavcodec used to build Pale Moon is too old?). The problem is present only in Pale Moon - Firefox and Waterfox, for example, run HD videos smoothly.

Update: Steven Pusser's build has this problem as well.

Re: VP9 video playback is stuttering

Posted: 2018-12-07, 19:06
by Night Wing
You're using Debian and I'm using Mint. I'm guessing your linux Pale Moon is installed and my linux Pale Moon is "not" installed. And also, I do not use Steven Pusser's builds. I get my 64 bit linux Pale Moon tarball directly from the Pale Moon home page site at the link below.

http://linux.palemoon.org/download/mainline/

Re: VP9 video playback is stuttering

Posted: 2018-12-08, 10:26
by chaldon
I'm also using the tarball. Just unpacked it into ~/bin and run. Steven Pusser's builds did not work for me for quite some time requiring "Mozilla runtime" at start so it's about half a year as I don't use them.

I'm going to try to build Pale Moon from the source code, although I'm not sure if I'll succeed. But it's worth a try.

Re: VP9 video playback is stuttering

Posted: 2018-12-09, 14:25
by chaldon
Succeeded in building v28.2.2 from the source but alas, the issue is still there. Playback is jerky and there are the same messages in the terminal:

Code: Select all

[vp9 @ 0x7f06bc559800] The deprecated avcodec_decode_* API cannot return all the frames for this decoder. Some frames will be dropped. Update your code to the new decoding API to fix this.
[vp9 @ 0x7f06bb13a800] The deprecated avcodec_decode_* API cannot return all the frames for this decoder. Some frames will be dropped. Update your code to the new decoding API to fix this.

Re: VP9 video playback is stuttering

Posted: 2018-12-12, 00:27
by trava90
VP9 playback has been smooth on my systems; I've been unable to reproduce any stuttering. Just curious, can you reproduce the problem with Pale Moon 28.1.0?

Re: VP9 video playback is stuttering

Posted: 2018-12-14, 19:51
by chaldon
trava90 wrote:VP9 playback has been smooth on my systems; I've been unable to reproduce any stuttering. Just curious, can you reproduce the problem with Pale Moon 28.1.0?
No no, it's all fine and smooth in 28.1.0. I've mentioned in the first post that the problem first appeared in the v28.2.0.

Re: VP9 video playback is stuttering

Posted: 2018-12-14, 20:02
by trava90
In about:config, can you temporarily flip the pref "media.ffvpx.enabled" to false and see if VP9 continues to stutter?

Re: VP9 video playback is stuttering

Posted: 2018-12-18, 11:58
by chaldon
trava90 wrote:In about:config, can you temporarily flip the pref "media.ffvpx.enabled" to false and see if VP9 continues to stutter?
It's worked! It's all playing smoothly now. Thank you a lot. And merry Christmas!

Re: VP9 video playback is stuttering

Posted: 2018-12-18, 12:09
by New Tobin Paradigm
Off-topic:
Glad we have preferences for these things

Re: VP9 video playback is stuttering

Posted: 2018-12-18, 12:55
by trava90
Looks like updating to the latest version of ffvpx may have introduced a performance regression then. I'll look into it.

Re: VP9 video playback is stuttering

Posted: 2018-12-18, 13:43
by roytam1
trava90 wrote:Looks like updating to the latest version of ffvpx may have introduced a performance regression then. I'll look into it.
there is a discussion in #ffmpeg-devel http://mplayerhq.hu/pipermail/ffmpeg-de ... 05443.html

also: https://bugzilla.mozilla.org/show_bug.cgi?id=1487792

Re: VP9 video playback is stuttering

Posted: 2018-12-18, 15:34
by trava90

Re: VP9 video playback is stuttering

Posted: 2018-12-29, 20:56
by Moonchild
New unstable versions have been created with patches for this issue; it would be great if people who reported these issues can give the unstable version a try and let us know if the performance issues have been solved.

Re: VP9 video playback is stuttering

Posted: 2018-12-30, 08:11
by badnick
It seems that the problem is solved at least for me with te latest unstable version.

Re: VP9 video playback is stuttering

Posted: 2018-12-30, 15:22
by trava90
Thanks for testing badnick.

New Linux unstable is now available as well. @chaldon, can you please see if the problem persists in the unstable build?

Re: VP9 video playback is stuttering

Posted: 2018-12-30, 17:37
by badnick
trava90 wrote:Thanks for testing badnick.
Nop.

The best way to see if there is any little stuttering is to watch videos where objects or image is moving with a constant speed, e.g: https://www.youtube.com/watch?v=HSsqzzuGTPo