<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Corrupted videos VA-API HW encoding radeonsi"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98278">98278</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Corrupted videos VA-API HW encoding radeonsi
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Gallium/radeonsi
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>neatnoise@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Hello,
There is an issue in hardware encoding using radeonsi driver and VA-API. It
happens when 2 encoding software - gstreamer and avconf are used. Generated
output videos are corrupted, full of green and purple colors. There is no error
in the terminal output.
There is no problem in HW decoding, it generates valid output.
I've tried to use omx HW acceleration, but gstreamer couldn't even initialize
gst-omx plugin.
Generated video: <a href="https://www.youtube.com/watch?v=XJlWCdgB4Lc">https://www.youtube.com/watch?v=XJlWCdgB4Lc</a>
gst command: LIBVA_DRIVER_NAME=radeonsi gst-launch-1.0 -e ximagesrc
display-name=:0 use-damage=0 startx=0 starty=0 endx=1919 endy=1079 ! multiqueue
! video/x-raw,format=BGRx,framerate=60/1 ! vaapipostproc format=i420 !
video/x-raw,format=I420,framerate=60/1 ! multiqueue ! vaapih264enc bitrate=3000
dct8x8=true ! h264parse ! multiqueue ! matroskamux name=muxer muxer. !
progressreport name=Rec_time ! filesink location=test.mp4
glxinfo:
OpenGL renderer string: Gallium 0.4 on AMD BONAIRE (DRM 2.46.0 / 4.8.1-1-ARCH,
LLVM 4.0.0)
OpenGL core profile version string: 4.3 (Core Profile) Mesa 12.1.0-devel
(git-b7d9677)
kernel driver: radeon
vainfo:
libva info: VA-API version 0.39.3
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.2)
vainfo: Driver version: mesa gallium vaapi
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileNone : VAEntrypointVideoProc
omx:
Scanning directory /usr/lib/bellagio/
Scanning library /usr/lib/bellagio/libomxclocksrc.so
Component OMX.st.clocksrc registered with 0 quality levels
Specific role OMX.st.clocksrc registered
Scanning library /usr/lib/bellagio/libomx_mesa.so
Component OMX.mesa.video_decoder registered with 0 quality levels
Specific role OMX.mesa.video_decoder.mpeg2 registered
Specific role OMX.mesa.video_decoder.avc registered
Specific role OMX.mesa.video_decoder.hevc registered
Component OMX.mesa.video_encoder registered with 0 quality levels
Specific role OMX.mesa.video_encoder.avc registered
Scanning library /usr/lib/bellagio/libomxvideosched.so
Component OMX.st.video.scheduler registered with 2 quality levels
Specific role OMX.st.video.scheduler registered
Scanning library /usr/lib/bellagio/libomxaudio_effects.so
Component OMX.st.volume.component registered with 2 quality levels
Specific role OMX.st.volume.component registered
Component OMX.st.audio.mixer registered with 1 quality levels
Specific role OMX.st.audio.mixer registered
6 OpenMAX IL ST static components in 4 libraries succesfully scanned</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>