Turning this gst-launch-1.0 command into a C++ app?

rick b rick_blacker at hotmail.com
Thu Nov 10 20:23:42 UTC 2016


Here is debug level 3.  I realize that I need to configure vaapi, but... TO
be honest, being so new to GStreamer, I'm not sure exactly what that would
look like/how to do it.



> ~~~~~~~~~~~~~~~~~ video device = /dev/video13 
> ~~~~~~~~~~~~~~~~~ udp sink host = 192.168.1.3 
> ~~~~~~~~~~~~~~~~~ udp sink port = 5600 
> 
> 
> error: XDG_RUNTIME_DIR not set in the environment.
> libva info: VA-API version 0.39.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib/dri/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_39
> libva info: va_openDriver() returns 0
> 0:00:00.320809833   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:589:is_chroma_type_supported: We only support YUV 4:2:0
> and YUV 4:2:2 for encoding. Please try to use vaapipostproc to convert the
> input format.
> 0:00:00.320888060   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:629:set_context_info: failed to determine chroma type
> for format YUY2
> 0:00:00.320914636   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:697:gst_vaapi_encoder_reconfigure_internal: failed to
> update VA context
> 0:00:00.320936449   735       0x785450 WARN            videoencoder
> gstvideoencoder.c:674:gst_video_encoder_setcaps:
> <videoEncoder>
>  rejected caps video/x-raw, format=(string)YUY2, width=(int)1920,
> height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
> interlace-mode=(string)progressive, framerate=(fraction)30/1
> 0:00:00.321170219   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:589:is_chroma_type_supported: We only support YUV 4:2:0
> and YUV 4:2:2 for encoding. Please try to use vaapipostproc to convert the
> input format.
> 0:00:00.321189820   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:629:set_context_info: failed to determine chroma type
> for format YUY2
> 0:00:00.321210483   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:697:gst_vaapi_encoder_reconfigure_internal: failed to
> update VA context
> 0:00:00.321230546   735       0x785450 WARN            videoencoder
> gstvideoencoder.c:674:gst_video_encoder_setcaps:
> <videoEncoder>
>  rejected caps video/x-raw, format=(string)YUY2, width=(int)1920,
> height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
> interlace-mode=(string)progressive, framerate=(fraction)30/1
> 0:00:00.321266372   735       0x785450 WARN    #[00;01;31;41m           
> GST_PADS gstpad.c:4081:gst_pad_peer_query:
> <videoConvert:src>
>  could not send sticky events
> 0:00:00.327260305   735       0x785450 WARN          v4l2bufferpool
> gstv4l2bufferpool.c:748:gst_v4l2_buffer_pool_start:
> <videoSource:pool:src>
>  Uncertain or not enough buffers, enabling copy threshold
> 0:00:00.332172490   735       0x785450 WARN          v4l2bufferpool
> gstv4l2bufferpool.c:1196:gst_v4l2_buffer_pool_dqbuf:
> <videoSource:pool:src>
>  Driver should never set v4l2_buffer.field to ANY
> 0:00:00.332225516   735       0x785450 WARN          v4l2bufferpool
> gstv4l2bufferpool.c:1958:gst_v4l2_buffer_pool_process:
> <videoSource:pool:src>
>  Dropping corrupted buffer without payload
> 0:00:00.332260617   735       0x785450 WARN          v4l2bufferpool
> gstv4l2bufferpool.c:1958:gst_v4l2_buffer_pool_process:
> <videoSource:pool:src>
>  Dropping corrupted buffer without payload
> 0:00:00.332287743   735       0x785450 WARN          v4l2bufferpool
> gstv4l2bufferpool.c:1958:gst_v4l2_buffer_pool_process:
> <videoSource:pool:src>
>  Dropping corrupted buffer without payload
> 0:00:00.332314669   735       0x785450 WARN          v4l2bufferpool
> gstv4l2bufferpool.c:1958:gst_v4l2_buffer_pool_process:
> <videoSource:pool:src>
>  Dropping corrupted buffer without payload
> 0:00:00.744814146   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:589:is_chroma_type_supported: We only support YUV 4:2:0
> and YUV 4:2:2 for encoding. Please try to use vaapipostproc to convert the
> input format.
> 0:00:00.744951800   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:629:set_context_info: failed to determine chroma type
> for format YUY2
> 0:00:00.744995127   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:697:gst_vaapi_encoder_reconfigure_internal: failed to
> update VA context
> 0:00:00.745033641   735       0x785450 WARN            videoencoder
> gstvideoencoder.c:674:gst_video_encoder_setcaps:
> <videoEncoder>
>  rejected caps video/x-raw, format=(string)YUY2, width=(int)1920,
> height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
> interlace-mode=(string)progressive, framerate=(fraction)30/1
> 0:00:00.745462429   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:589:is_chroma_type_supported: We only support YUV 4:2:0
> and YUV 4:2:2 for encoding. Please try to use vaapipostproc to convert the
> input format.
> 0:00:00.745503368   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:629:set_context_info: failed to determine chroma type
> for format YUY2
> 0:00:00.745539707   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:697:gst_vaapi_encoder_reconfigure_internal: failed to
> update VA context
> 0:00:00.745576146   735       0x785450 WARN            videoencoder
> gstvideoencoder.c:674:gst_video_encoder_setcaps:
> <videoEncoder>
>  rejected caps video/x-raw, format=(string)YUY2, width=(int)1920,
> height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
> interlace-mode=(string)progressive, framerate=(fraction)30/1
> 0:00:00.745689674   735       0x785450 WARN                 basesrc
> gstbasesrc.c:2948:gst_base_src_loop:
> <videoSource>
>  error: Internal data flow error.
> 0:00:00.745727326   735       0x785450 WARN                 basesrc
> gstbasesrc.c:2948:gst_base_src_loop:
> <videoSource>
>  error: streaming task paused, reason not-negotiated (-4)
> 0:00:00.746191491   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:589:is_chroma_type_supported: We only support YUV 4:2:0
> and YUV 4:2:2 for encoding. Please try to use vaapipostproc to convert the
> input format.
> 0:00:00.746229129   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:629:set_context_info: failed to determine chroma type
> for format YUY2
> 0:00:00.746265231   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:697:gst_vaapi_encoder_reconfigure_internal: failed to
> update VA context
> 0:00:00.746300532   735       0x785450 WARN            videoencoder
> gstvideoencoder.c:674:gst_video_encoder_setcaps:
> <videoEncoder>
>  rejected caps video/x-raw, format=(string)YUY2, width=(int)1920,
> height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
> interlace-mode=(string)progressive, framerate=(fraction)30/1
> 0:00:00.746687857   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:589:is_chroma_type_supported: We only support YUV 4:2:0
> and YUV 4:2:2 for encoding. Please try to use vaapipostproc to convert the
> input format.
> 0:00:00.746726208   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:629:set_context_info: failed to determine chroma type
> for format YUY2
> 0:00:00.746762659   735       0x785450 ERROR                  vaapi
> gstvaapiencoder.c:697:gst_vaapi_encoder_reconfigure_internal: failed to
> update VA context
> 0:00:00.746798023   735       0x785450 WARN            videoencoder
> gstvideoencoder.c:674:gst_video_encoder_setcaps:
> <videoEncoder>
>  rejected caps video/x-raw, format=(string)YUY2, width=(int)1920,
> height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
> interlace-mode=(string)progressive, framerate=(fraction)30/1





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Turning-this-gst-launch-1-0-command-into-a-C-app-tp4680502p4680602.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list