Skip to contentSkip to conversation

VDPAU videos take forever to start in different applications

Bug 101254 [email protected] 1 participant 19 messages Jun 1, 2017 – Jun 12, 2017 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         QA Contact|[email protected]       |[email protected]
                   |                            |.org
           Assignee|[email protected] |[email protected]
                   |                            |.org
            Product|xorg                        |Mesa
          Component|Driver/Radeon               |Drivers/Gallium/radeonsi
            Version|git                         |unspecified

--- Comment #1 from Michel Dänzer <[email protected]> --- Mesa or the kernel is more likely.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #2 from [email protected] ---
Created attachment 131645
--> https://bugs.freedesktop.org/attachment.cgi?id=131645&action=edit
vdpauinfo

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #3 from [email protected] --- Wasn't aware that Mesa offered both a VDPAU and a VAAPI driver. mpv + VAAPI works fine, mpv + VDPAU is broken.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #131606|0                           |1

is obsolete| |

--- Comment #5 from [email protected] ---
Created attachment 131648
--> https://bugs.freedesktop.org/attachment.cgi?id=131648&action=edit
latest mpv (from git) verbose output - same problem

Same problem with latest mpv from git. Video never starts.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #6 from Andy Furniss <[email protected]> --- (In reply to joeri.exelmans from comment #5)

Quoted 4 lines

Created attachment 131648 [details]
latest mpv (from git) verbose output - same problem

Same problem with latest mpv from git. Video never starts.

OK, that's me out of ideas. I can't reproduce this on my R9 285 card.

FWIW with current ffmpeg, vaapi is not a good workaround as it will eventually use all memory. Older ffmpeg won't.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #7 from [email protected] ---
I used this guide (https://pkg-xorg.alioth.debian.org/howto/build-mesa.html) to
build the mesa project with git version
84012262ea70435507d3b88ddbc0f621781ec275 (Mar 21 2017), and I can use VDPAU again in Kodi.

The configure command that I used:
./configure --enable-vdpau --enable-va --with-gallium-drivers=r600 --with-dri-drivers=radeon --enable-llvm --enable-dri3 --with-llvm-prefix=/usr/lib/llvm-4.0 --enable-gles1 --enable-gles2 --enable-glx-tls

The environment variables when running Kodi:
export LIBGL_DRIVERS_PATH=lib
export LD_LIBRARY_PATH=lib
export VDPAU_DRIVER_PATH=lib
(lib being in the mesa git project dir)

So Kodi works, VLC already worked, but mpv is still broken. The movie starts playing (cause I can hear the audio), which is an improvement, but the player window is entirely blue + a lot of opengl errors in stdout. Maybe because old mesa + new mpv is a bad idea, or maybe I did something wrong building mesa.

I'll continue to search for the specific commit that broke VDPAU in Kodi.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #8 from H4nN1baL <[email protected]> ---
I have this same problem but in r600g since 2017-05-17, my report in mpv:
https://github.com/mpv-player/mpv/issues/4433

In my case, the issue only manifest using: 'mpv --vo=opengl --hwdec=vdpau'

I think this other issue is also related:
https://github.com/mpv-player/mpv/issues/4430

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #9 from [email protected] ---
Interesting, probably a bug in the r600 gallium driver then. Mpv with --hwdec=vdpau-copy (instead of --hwdec=vdpau) seems to work for me as well. Maybe VLC also uses that method.

So far I've built Mesa git versions

84012262ea70435507d3b88ddbc0f621781ec275 (Tue Mar 21 23:15:05 2017 +0100) 566f2ed5716297ce60ca10c57aeddc406835c430 (Fri Apr 14 23:39:15 2017 +0200) 9db9b2e8cd0a0d250c6251a2fef17198616519e7 (Wed May 3 18:37:28 2017 +0200)

and they all work with Kodi and VDPAU.

The blue screen in mpv could be a bug in mpv 0.25 or Mesa still. My guess is mpv because never had that problem with mpv 0.14 from Ubuntu repository.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|VDPAU videos take forever   |VDPAU videos don't start
                   |to start in different       |playing with r600 gallium
                   |applications                |driver
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Drivers/Gallium/radeonsi    |Drivers/Gallium/r600
            Version|unspecified                 |git
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #10 from [email protected] --- Edited summary, changed component Drivers/Gallium/radeonsi -> Drivers/Gallium/r600

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #11 from H4nN1baL <[email protected]> ---
I use mpv 0.25.0-9-g18703b55d until an update of padoka PPA broke vdpau. After
that I have been recompiling ffmpeg and mpv regularly to see if any updates fix the issue, but so far all the results have been unfruitful.
I even did some downgrades to mpv, but I also did not succeed.

The only thing that I not tried is to use an older version of ffmpeg compiled
with the old vdpau API (--enable-gpl --enable-version3) with an mpv version prior to this:
https://github.com/mpv-player/mpv/commit/f59371de2170141fc28540d03c4e7ecc62844ebf

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #12 from [email protected] ---
Okay, I found the (series of) commits that break VDPAU in Kodi and mpv.

They were added to the master branch on 2017-05-15 11:01:33 (GMT), all authored by Marek Olšák <[email protected]>.

This is the last commit that works:

https://cgit.freedesktop.org/mesa/mesa/commit/?id=42fe45b45161e9c9d714436923e88e46fdb3614a
Summary: gallium/radeon: require both WRITE and FLUSH_EXPLICIT in buffer_flush_region

Next there are a number of commits, all by Marek Olšák that won't compile because an include is missing:

https://cgit.freedesktop.org/mesa/mesa/commit/?id=8b5485957e19287f7e694e7e87eed784c44bb1e2
Summary: gallium/radeon: unwrap a context if we get a wrapped one

https://cgit.freedesktop.org/mesa/mesa/commit/?id=e11f7e1d5996532228c6494ff9e93431c5506ef5
Summary: gallium/radeon: handle TC_TRANSFER_MAP_THREADED_UNSYNC

https://cgit.freedesktop.org/mesa/mesa/commit/?id=93d549b2af84158f25842fd08b5882b041b33f62
Summary: gallium/radeon: handle other map buffer flags from the threaded context

The next commit fixes the missing include and hence compiles, but has the bug that this thread is about:

https://cgit.freedesktop.org/mesa/mesa/commit/?id=b4fc399c088f77a8e426742707c9566505f1b7dd
Summary: gallium/radeon: subclass threaded_resource

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #13 from Marek Olšák <[email protected]> --- Created attachment 131771
--> https://bugs.freedesktop.org/attachment.cgi?id=131771&action=edit
possible fix

Can you try this patch?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #14 from [email protected] ---
With the patch, VDPAU works again.

Is it a fix or does it simply disable a feature?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #15 from Marek Olšák <[email protected]> --- It's the real fix.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

--- Comment #16 from [email protected] ---
Thanks!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw

[Bug 101254] VDPAU videos don't start playing with r600 gallium driver

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=101254

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel