<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 --- - h264 libva capture corrupted results in rgb565 format"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78199">78199</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>h264 libva capture corrupted results in rgb565 format
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ullysses.a.eoff@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The libva h264 capture feature in weston generates corrupt results when output
is using rgb565 gbm-format (16bpp).  Format xrgb8888 (32bpp) works fine.

::Steps::

1. In weston.ini, set the gbm-format for the output to rgb565, for example:
 [output]
 name=HDMI1
 gbm-format=rgb565
2. Launch weston
3. Start h264 capture with: <mod>+<shift>+<space> q
4. Do stuff (i.e. launch apps, move windows, etc.)
5. Stop h264 capture with: <mod>+<shift>+<space> q
6. Playback capture.h264
 $ gst-play-1.0 capture.h264
 or
 $ gst-launch-1.0 filesrc location=capture.h264 \
   ! h264parse ! vaapidecode ! vaapisink
7. Transcode capture.h264 to capture.mp4
 $ gst-launch-1.0 filesrc location=capture.h264 \
   ! h264parse ! mp4mux ! filesink location=capture.mp4

Kernel: 3.13.6-200.fc20
Systemd: 212 (rawhide)
wayland (master) 1.4.92-0-g4a4523f
drm (master) libdrm-2.4.52-0-g46d451c
mesa (master) heads/master-0-gd55e5a3
libva (master) libva-1.2.1-0-g88ed1eb
intel-driver (master) 1.2.2-0-g121e70d
cairo (1.12) heads/1.12-0-g59e2a93
libinput (master) heads/master-0-g97af5c3
weston (master) 1.4.92-0-gd7d71e8
gstreamer (1.2) heads/1.2-0-gf8c6552
gst-plugins-base (1.2) heads/1.2-0-gcf5f7cf
gst-plugins-good (1.2) heads/1.2-0-g28d65fb
gst-plugins-bad (1.2) heads/1.2-0-g4f01875
gst-ffmpeg (1.2) 1.2.4-0-g72f6cb6
gstreamer-vaapi (master) tags/0.5.8-0-gc9af9a8</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>