<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Problems during playback of h264 files using UVD and VLC on AMD E-350 CPU"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=68792">68792</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Problems during playback of h264 files using UVD and VLC on AMD E-350 CPU
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rvdb@cryptolab.net
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/r600
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=84971" name="attach_84971" title="vlc -vvv output log">attachment 84971</a> <a href="attachment.cgi?id=84971&action=edit" title="vlc -vvv output log">[details]</a></span>
vlc -vvv output log

I have a small system with a E350 CPU in it and try to use a recent git pull of
VLC, mesa and xfree86-video-ati, on a 3.11rc6 kernel, to run with VDPAU and the
UVD chip on the CPU.
VLC indeed manages to play H264 files in DVD resolution but :

1/ It seems to fail on color space matrix :

[0x7ffa0f00c288] vdpau_chroma filter debug: using video mixer sharpness feature
[0x7ffa0f00c288] vdpau_chroma filter error: video color space matrix failure:
An invalid pointer was provided. Typically, this means that a NULL pointer was
provided for an 'output' parameter.
[0x7ffa0f00c288] vdpau_chroma filter debug: using video mixer 7


2/ it regularly spits "vo messages like this :

[0x7ffa14001248] vdpau_display vout display debug: surface status: 2


3/ regularly, it spits "warning: picture is too late to be displayed (missing
113 ms)" messages

4/ regularly stalls with messages like this :

[CODE][0x7f08e0c1f3f8] main input error: ES_OUT_SET_(GROUP_)PCR  is called too
late (pts_delay increased to 1000 ms
[0x7f08e0c1f3f8] main input error: ES_OUT_RESET_PCR called
[0x7f08a0001248] vdpau_display vout display debug: surface status: 2
[0x7f08d91e7188] main decoder warning: early picture skipped[/CODE]


On the same system, mplayer from 2013/08/19 plays the same file, using VDPAU
and UVD (checked watching the CPU usage) fine.

I opened a bug on the VLC bug tracker
(<a href="https://trac.videolan.org/vlc/ticket/9281">https://trac.videolan.org/vlc/ticket/9281</a>) but according to them, the problem
seems to come from the Galllium VDPAU state tracker as they should not get
"surface status : 2" at this stage of their code (they obviously tested their
VDPAU implementation using Nvidia binary driver, which does not use the VDPAU
Gallium state tracker).
Mplayer doesn't seem to have problem here as it seems to not even try to
support 
CSC matrix generation or decoder capabilities.

I'm sorry if this bug report is a bit of a mess. There may be several issues
involved here, and some may be more VLC-related that mesa, but I don't know at
all how to sort them out. 
The VLC devs at least seem to consider that the "surface status : 2" and CSC
matrix generation problem are Gallium-related and need to be fixed before they
can look into the problem if it's still there.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>