<div dir="ltr">set "num-views=2" to vaapih264enc</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 26, 2017 at 6:22 PM, Jérôme Carretero <span dir="ltr"><<a href="mailto:cJ-gst@zougloub.eu" target="_blank">cJ-gst@zougloub.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<br>
Did not get a reply... is there any documentation available or I should<br>
dig in the code?<br>
<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
cJ<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, 28 Dec 2016 17:49:37 -0500<br>
Jérôme Carretero <<a href="mailto:cJ-gst@zougloub.eu">cJ-gst@zougloub.eu</a>> wrote:<br>
<br>
> Hi Víctor,<br>
><br>
><br>
> (adding Jan because I saw<br>
> <a href="https://gstreamer.freedesktop.org/data/events/gstreamer-conference/2015/Jan%20Schmidt%20-%20Stereoscopic%203D%20Redux.pdf" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.<wbr>org/data/events/gstreamer-<wbr>conference/2015/Jan%20Schmidt%<wbr>20-%20Stereoscopic%203D%<wbr>20Redux.pdf</a>)<br>
><br>
><br>
> Yes, the hardware supports MVC encoding (intel SkyLake).<br>
> Definitely the fact that the downstream caps weren't used wasn't<br>
> helping there.<br>
><br>
> After some further Googling based on your hint “MVC encoding is<br>
> selected is if the number of views in upstream is equal or bigger<br>
> than 2”, I found in the glstereomix docs the<br>
> "multiview-mode=side-by-side" which is added at the output of<br>
> glstereomix.<br>
><br>
><br>
> Because I already have mixed video in one of my cases (top-bottom or<br>
> left-right), so I tried:<br>
><br>
>   ! ... \<br>
>   ! video/x-raw,format=I420,<wbr>multiview-mode=side-by-side \<br>
>   ! vaapih264enc \<br>
>   ! h264parse ! ...<br>
><br>
> But to no avail.<br>
><br>
><br>
> Is the StereoHigh encoder expecting these side-by-side buffers, and<br>
> I'm missing "metadata", or does it prefer to use separate buffers?<br>
><br>
><br>
> To "reproduce" a similar situation:<br>
><br>
> # Get a random SBS video on youtube, I believe it's clearly fair use<br>
><br>
> youtube-dl EgD5_7u2NvQ<br>
> mv *EgD5_7u2NvQ*.mp4 sbs.mp4<br>
><br>
> # Attempt to recompress using StereoHigh<br>
><br>
> gst-launch-1.0 --verbose --no-fault \<br>
>  filesrc location=sbs.mp4 \<br>
>  ! qtdemux name=demux \<br>
>  demux.audio_0 ! queue ! fakesink \<br>
>  demux.video_0 \<br>
>  ! queue name=q_dec\<br>
>   ! h264parse \<br>
>   ! avdec_h264 \<br>
>   ! vaapipostproc \<br>
>  ! queue name=q_enc \<br>
>   ! video/x-raw,format=I420,<wbr>multiview-mode=side-by-side \<br>
>   ! vaapih264enc \<br>
>   ! h264parse \<br>
>   ! mp4mux fragment-duration=1000 \<br>
>   ! filesink location=test-stereohigh.mp4<br>
><br>
> GST_DEBUG=GST_CAPS:5 gst-launch-1.0 \<br>
>  filesrc location=test-stereohigh.mp4 ! qtdemux ! h264parse !<br>
> fakesink \<br>
>  2>&1 | grep stream-format | head -n 1<br>
><br>
> # video/x-h264, parsed=(boolean)true, stream-format=(string){ avc,<br>
> avc3, # byte-stream }, alignment=(string){ au, nal }<br>
><br>
><br>
> Regards,<br>
><br>
<br>
</div></div><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br><br>Sreerenj Balachandran<br>Intel Open Source Technology Center</div>
</div>