<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Nicolas, <br></div><div><br></div><div>Thank you for the response. I tried putting vaapipostproc in between and got:</div><div><br></div><div>gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw,format=I420,width=1920,height=1080,framerate=60/1 ! vaapipostproc ! vaapijpegenc ! rtpjpegpay ! multiudpsink clients=192.168.0.15<br></div><div><br></div><div>libva info: VA-API version 0.39.0<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so<br>libva info: Found init function __vaDriverInit_0_39<br>libva info: va_openDriver() returns 0<br>Setting pipeline to PAUSED ...<br>ERROR: Pipeline doesn't want to pause.<br>Got context from element 'vaapipostproc0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;<br>Setting pipeline to NULL ...<br>Freeing pipeline ...</div><div><br></div><div>Then I tried videoconvert:<br></div><div><br></div><div>gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw,format=I420,width=1920,height=1080,framerate=60/1 ! videoconvert ! vaapijpegenc ! rtpjpegpay ! multiudpsink clients=192.168.0.15</div><div><br></div><div>Setting pipeline to PAUSED ...<br>libva info: VA-API version 0.39.0<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so<br>libva info: Found init function __vaDriverInit_0_39<br>libva info: va_openDriver() returns 0<br>Pipeline is live and does not need PREROLL ...<br>Got context from element 'vaapiencodejpeg0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;<br>Setting pipeline to PLAYING ...<br>New clock: GstSystemClock<br>ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.<br>Additional debug info:<br>gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:<br>streaming task paused, reason not-negotiated (-4)<br>Execution ended after 0:00:00.448719003<br>Setting pipeline to PAUSED ...<br>Setting pipeline to READY ...<br>Setting pipeline to NULL ...<br>Freeing pipeline ...<br></div><div><br></div><div>For NVENC I am not seeing a JPEG encode or decode, is JPEG encode or decode supported? Also do you think there is something else to try for vaapi based on these errors?</div><div><br></div><div>Thanks</div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 3:59 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le lundi 03 décembre 2018 à 13:07 -0600, skyline220 a écrit :<br>
> skyline220 via <a href="http://lists.freedesktop.org" rel="noreferrer" target="_blank">lists.freedesktop.org</a> <br>
>       <br>
> 1:57 PM (9 minutes ago)<br>
>       <br>
> to gstreamer-devel<br>
> Be careful with this message<br>
> <br>
> This may be a spoofed message. The message claims to have been sent from<br>
> your account, but Gmail couldn’t verify the actual source. Avoid clicking<br>
> links or replying with sensitive information, unless you are sure you<br>
> actually sent this message. (No need to reset your password, the real sender<br>
> does not actually have access to your account!)<br>
> Hi All,<br>
> <br>
> I have installed vdpau with the hopes of enabling the G-streamer VAAPI based<br>
> plugins on my graphics card. When I type in vainfo in the terminal I get:<br>
> <br>
> vainfo<br>
> <br>
> libva info: VA-API version 0.39.0<br>
> libva info: va_getDriverName() returns 0<br>
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so<br>
> libva info: Found init function __vaDriverInit_0_39<br>
> libva info: va_openDriver() returns 0<br>
> vainfo: VA-API version: 0.39 (libva 1.7.0)<br>
> vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API -<br>
> 0.7.4<br>
> vainfo: Supported profile and entrypoints<br>
>       VAProfileMPEG2Simple            : VAEntrypointVLD<br>
>       VAProfileMPEG2Main              : VAEntrypointVLD<br>
>       VAProfileMPEG4Simple            : VAEntrypointVLD<br>
>       VAProfileMPEG4AdvancedSimple    : VAEntrypointVLD<br>
>       VAProfileH264Baseline           : VAEntrypointVLD<br>
>       VAProfileH264Main               : VAEntrypointVLD<br>
>       VAProfileH264High               : VAEntrypointVLD<br>
>       VAProfileVC1Simple              : VAEntrypointVLD<br>
>       VAProfileVC1Main                : VAEntrypointVLD<br>
>       VAProfileVC1Advanced            : VAEntrypointVLD<br>
> <br>
> I then installed gstreamer1.0-vaapi plugins however when I go to run a<br>
> pipeline with a vaapi plugin, for example:<br>
> <br>
> gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true !<br>
> video/x-raw,format=I420,width=1920,height=1080,framerate=60/1 ! vaapijpegenc<br>
> ! rtpjpegpay ! multiudpsink clients=192.168.0.15<br>
> <br>
> I get:<br>
> <br>
> Setting pipeline to PAUSED ...<br>
> libva info: VA-API version 0.39.0<br>
> libva info: va_getDriverName() returns 0<br>
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so<br>
> libva info: Found init function __vaDriverInit_0_39<br>
> libva info: va_openDriver() returns 0<br>
> Pipeline is live and does not need PREROLL ...<br>
> Got context from element 'vaapiencodejpeg0': gst.vaapi.Display=context,<br>
> gst.vaapi.Display=(GstVaapiDisplay)NULL;<br>
> Setting pipeline to PLAYING ...<br>
> New clock: GstSystemClock<br>
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal<br>
> data flow error.<br>
> Additional debug info:<br>
> gstbasesrc.c(2948): gst_base_src_loop ():<br>
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:<br>
> streaming task paused, reason not-negotiated (-4)<br>
<br>
This indicated that v4l2src and vaapijpegenc are not "compatible". You<br>
may need vaapipostproc and/or videoconvert in between. On NVIDIA<br>
though, it is recommended to use the new interface NVENC/NVDEC.<br>
<br>
> Execution ended after 0:00:00.478047083<br>
> Setting pipeline to PAUSED ...<br>
> Setting pipeline to READY ...<br>
> Setting pipeline to NULL ...<br>
> Freeing pipeline ...<br>
> <br>
> When I run this same pipeline with jpegenc the software encoder instead of<br>
> vaapijpegenc it runs fine. How can I fix this? I would like to be able to<br>
> use the G-Streamer VAAPI plugins.<br>
> <br>
> <br>
> <br>
> --<br>
> Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>