<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,<br>
</p>
<div class="moz-cite-prefix">Le 2023-11-03 à 10 h 46, xaterus--- via
gstreamer-devel a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAOYSOcCF-C+f6jE3Dm8dxdGrqPqn1eO+venqF82=G339txtKDg@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">With great interest I have read this article about Gstreamer DMABuf
modifier negotiation in
GStreamer(<a class="moz-txt-link-freetext" href="https://blogs.igalia.com/vjaquez/2023/08/08/dmabuf-modifier-negotiation-in-gstreamer/">https://blogs.igalia.com/vjaquez/2023/08/08/dmabuf-modifier-negotiation-in-gstreamer/</a>).
So I want to encode an DMA Buf with the format <a class="moz-txt-link-freetext" href="BGRx:0x0100000000000001">BGRx:0x0100000000000001</a>
into a h264 video stream using the VAAPI with the GStreamer VA Plugin.
Using gst-inspect on vah264enc I can see I need to convert it to:
video/x-raw(<a class="moz-txt-link-freetext" href="memory:DMABuf">memory:DMABuf</a>)
width: [ 32, 4096 ]
height: [ 32, 4096 ]
format: DMA_DRM
drm-format: <a class="moz-txt-link-freetext" href="NV12:0x0100000000000002">NV12:0x0100000000000002</a>
So I thought about using vapostproc to convert it. So using
gst-inspect again I found out that: the src pad of vapostproc supports
<a class="moz-txt-link-freetext" href="NV12:0x0100000000000002">NV12:0x0100000000000002</a> (<a class="moz-txt-link-freetext" href="memory:DMABuf">memory:DMABuf</a>) which is great. But the sink
pad does not support <a class="moz-txt-link-freetext" href="BGRx:0x0100000000000001">BGRx:0x0100000000000001</a>.
Now I ask myself, is it my hardware that does not support the
conversion between <a class="moz-txt-link-freetext" href="BGRx:0x010000000000000001">BGRx:0x010000000000000001</a> and
<a class="moz-txt-link-freetext" href="NV12:0x010000000000000002">NV12:0x010000000000000002</a>, or is it Intel VAAPI or the gstreamer va
plugin? Does the gstreamer va plugin support all hardware
capabilities?</pre>
</blockquote>
<p>This is what the Intel dedicated video hardware support as far as
I know.<span style="white-space: pre-wrap">
</span></p>
<blockquote type="cite"
cite="mid:CAOYSOcCF-C+f6jE3Dm8dxdGrqPqn1eO+venqF82=G339txtKDg@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">Also is there any other method to convert a DMA Buffer with
<a class="moz-txt-link-freetext" href="BGRx:0x0100000000000001">BGRx:0x0100000000000001</a> with gstreamer in h264?</pre>
</blockquote>
<p>The question to ask is were did you get this format from, and how
can you influence that.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAOYSOcCF-C+f6jE3Dm8dxdGrqPqn1eO+venqF82=G339txtKDg@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">
Yours sincerely
Michael
</pre>
</blockquote>
</body>
</html>