https://bugs.freedesktop.org/show_bug.cgi?id=39782
Summary: [r300g] XvMC playback fails with MPEG2 video and RV350 Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r300 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: rankincj@googlemail.com
Created an attachment (id=49853) --> (https://bugs.freedesktop.org/attachment.cgi?id=49853) Verbose output from mplayer
Trying to play captured DVB-T/MPEG2 data with mplayer gives the following error:
Unsupported PixelFormat 61 Unsupported PixelFormat 53 Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp.
Full output from the following command is attached: $ MPLAYER_VERBOSE=1 mplayer -msglevel all=9 -nosound -vo xvmc <file>
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #1 from Michel Dänzer michel@daenzer.net 2011-08-02 23:21:47 PDT --- Does your X driver have commit f59c3b294b0f715fc96e2bbe25893f2b31aa488b ('Register XvMC video decoding acceleration') required for XvMC?
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #2 from Chris Rankin rankincj@googlemail.com 2011-08-03 01:17:16 PDT --- (In reply to comment #1)
Does your X driver have commit f59c3b294b0f715fc96e2bbe25893f2b31aa488b ('Register XvMC video decoding acceleration') required for XvMC?
Yes:
[ 54.139] (II) Solid [ 54.139] (II) Copy [ 54.139] (II) Composite (RENDER acceleration) [ 54.139] (II) UploadToScreen [ 54.139] (II) DownloadFromScreen [ 54.140] (II) RADEON(0): Acceleration enabled [ 54.140] (**) RADEON(0): DPMS enabled [ 54.140] (==) RADEON(0): Silken mouse enabled [ 54.169] (II) RADEON(0): Set up textured video [ 54.169] (II) RADEON(0): [XvMC] Associated with Radeon Textured Video. [ 54.170] (II) RADEON(0): [XvMC] Extension initialized.
The latest commit in my X driver is:
commit 104b2d7c071f29266b1bc4184a74e9714d14febc Author: Alex Deucher alexander.deucher@amd.com Date: Mon Aug 1 10:05:30 2011 -0400
kms: fix possible leak in pageflip code
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #3 from Michel Dänzer michel@daenzer.net 2011-08-03 01:35:09 PDT --- Does adding
-vc ffmpeg12mc
to the mplayer command line help?
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #4 from Chris Rankin rankincj@googlemail.com 2011-08-03 02:17:04 PDT --- (In reply to comment #3)
Does adding
-vc ffmpeg12mc
to the mplayer command line help?
Yes, in the sense that I now get a video window. Albeit an almost completely green one. New output log attached.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #5 from Chris Rankin rankincj@googlemail.com 2011-08-03 02:20:00 PDT --- Created an attachment (id=49866) --> (https://bugs.freedesktop.org/attachment.cgi?id=49866) Verbose output from mplayer with ffmpeg12mc
This time, mplayer displayed a video window. However, the contents were unrecognisable. And green.
I stopped playback manually after a few seconds.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #6 from Chris Rankin rankincj@googlemail.com 2011-08-03 02:31:07 PDT --- (In reply to comment #3)
Does adding
-vc ffmpeg12mc
to the mplayer command line help?
I've just tried repeating this with my RV790, and using
$ mplayer -vo xvcm <file>
also fails in the exact same way as my RV350. However, *unlike* my RV350, adding
-vc ffmpeg12mc
makes playback work with my RV790.
Since mplayer's XvMC support is obviously working correctly, I am now assuming the problems I am seeing with xine are due to bugs in xine itself.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
Chris Rankin rankincj@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #49853|0 |1 is obsolete| |
https://bugs.freedesktop.org/show_bug.cgi?id=39782
Chris Rankin rankincj@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|Other |x86 (IA32) OS/Version|All |Linux (All)
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #7 from Chris Rankin rankincj@googlemail.com 2011-08-11 06:28:20 PDT --- Also gives green and blobby playback with M66GL chip (RV535?) in my Lenovo T60p.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #8 from almos aaalmosss@gmail.com 2011-10-15 11:41:37 PDT --- I think this is a duplicate of my report in bug 39309. I haven't tried xvmc yet, as vdpau is much easier to set up (and I'm lazy).
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #9 from Chris Rankin rankincj@googlemail.com 2012-01-04 15:35:06 PST --- The following commit does not resolve this bug:
commit 7b181d16c3b954bf567563e90e5e94bda833fab8 Author: Christian König deathsimple@vodafone.de Date: Wed Jan 4 15:59:29 2012 +0100
vl/mpeg2: simple fix to get xine running again
Otherwise xines xxmc plugin will just display green blocks.
Signed-off-by: Christian König deathsimple@vodafone.de
xine is still showing a green video window with my RV350.
$ mplayer -vo xvmc -vc ffmpeg12mc <MPEG2 file>
isn't working here either.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #10 from 414N grsfdhj@tiscali.it 2012-02-20 04:50:04 PST --- Created attachment 57314 --> https://bugs.freedesktop.org/attachment.cgi?id=57314 xvmc log obtained via RADEON_DEBUG=all
Having a similar problem on a R420. When using mplayer -vo xvmc to play an MPEG-2 file (recorded from DVB) I can only see a window filled with a majority of green squares flashing. On stderr, the following message is shown:
r300 FP: Compiler Error: compiler/r300_fragprog_emit.c::begin_tex(): Too many texture indirections Using a dummy shader instead.
I then played the same video setting the RADEON_DEBUG environment variable to "all", because I don't know what can be excluded. I then cut the lines following the error message from the log, assuming those where the lines regarding the dummy shader used as a failsafe by the r300 driver. I'm using a self-compiled git snapshot of mesa obtained on 2012-02-15 on a Slackware64 13.37 running kernel 3.2.6. Please tell me if more info are needed.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #11 from Tom Stellard tstellar@gmail.com 2012-04-22 18:10:00 PDT --- (In reply to comment #10)
Created attachment 57314 [details] xvmc log obtained via RADEON_DEBUG=all
Having a similar problem on a R420. When using mplayer -vo xvmc to play an MPEG-2 file (recorded from DVB) I can only see a window filled with a majority of green squares flashing. On stderr, the following message is shown:
r300 FP: Compiler Error: compiler/r300_fragprog_emit.c::begin_tex(): Too many texture indirections Using a dummy shader instead.
Can you try the latest version of mesa from git? I don't think xvmc playback works, but that error message should be fixed. If you still see that error, please use the environment variable RADEON_DEBUG=fp,vp and post the output.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #12 from 414N grsfdhj@tiscali.it 2012-04-23 02:53:34 PDT --- Created attachment 60474 --> https://bugs.freedesktop.org/attachment.cgi?id=60474 xvmc log obtained via RADEON_DEBUG=fp,vp on mesa-git @ 20120423
(In reply to comment #11)
Can you try the latest version of mesa from git? I don't think xvmc playback works, but that error message should be fixed. If you still see that error, please use the environment variable RADEON_DEBUG=fp,vp and post the output.
Still getting the same error message on a git snapshot taken a few hours ago. In the attached log I cut the text after that error message as in the first one. Do you need more info to narrow down the issue?
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #13 from Tom Stellard tstellar@gmail.com 2012-04-23 17:56:54 PDT --- Created attachment 60501 --> https://bugs.freedesktop.org/attachment.cgi?id=60501 Possible fix for too many indirections on r400
Do you still see the error message with this patch?
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #14 from 414N grsfdhj@tiscali.it 2012-04-24 03:03:58 UTC --- Created attachment 60517 --> https://bugs.freedesktop.org/attachment.cgi?id=60517 fp,vp log on patched mesa-git @20120424 on R420 hardware
(In reply to comment #13)
Created attachment 60501 [details] [review] Possible fix for too many indirections on r400
Do you still see the error message with this patch?
I now see an additional "too many textures indirections" error message while playing a file in mplayer with -vo xvmc, so I guess it's not working as expected. Attached is an updated fp,vp log.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #15 from 414N grsfdhj@tiscali.it 2012-08-05 07:50:38 UTC --- Still no clue of what could be going awry? This is still happening on recent git checkouts, regardless of the previous patch. Please do tell me if you need more information to narrow down the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
--- Comment #16 from Marek Olšák maraeo@gmail.com --- XvMC support has been removed.
https://bugs.freedesktop.org/show_bug.cgi?id=39782
Marek Olšák maraeo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX
dri-devel@lists.freedesktop.org