Why video convert is needed while RGB & YUY2 both are supported by videoflip.

Vikas vikas.aricent at gmail.com
Thu Nov 7 09:50:16 UTC 2019


realsensebinsrc name=a align=false device=0 a.src_color !
video/x-raw,format=YUY2,width=1280,height= 720,framerate=30/1 !
aspectratiocrop name=aspectRatio aspect-ratio=4/3 ! queue max-size-buffers=1
leaky=downstream ! *videoconvert ! videoflip name=flip method = 0 *!
vaapivp8enc ! rtpvp8pay !
application/x-rtp,media=video,encoding-name=VP8,payload=96 ! webrtcendpoint
name=webrtcendpointElement

When I tried without videoconvert streaming was not happening.
Why video convert is needed while RGB & YUY2 both are supported by
videoflip.
====================================================================================
Here we are using videoflip plugin to flip video stream during running
pipeline.

const gchar * videoFlipMethodName = (appData.invert == 1) ? "rotate-180" :
"none";
GstElement *videoFlip = gst_bin_get_by_name(GST_BIN(appData.pipeline),
"flip");

            if (videoFlip)
            {
                gint currMethod = 0;
                g_object_get(videoFlip, "method", &currMethod, NULL);

                if (currMethod != videoFlipMethodValue)
                {
                    gst_util_set_object_arg((GObject *)videoFlip, "method",
videoFlipMethodName);

                }
            }


Sometimes core is generated because of videoflip plugin with SIGABRT signal.

(gdb) bt
#0  0x00007f94e7d43160 in raise () at /lib64/libc.so.6
#1  0x00007f94e7d44741 in abort () at /lib64/libc.so.6
#2  0x00007f94e985ed3d in g_assertion_message () at
/usr/lib64/libglib-2.0.so.0
#3  0x00007f94e985edca in g_assertion_message_expr () at
/usr/lib64/libglib-2.0.so.0
#4  0x00007f94d8c48b41 in gst_video_flip_semi_planar_yuv ()
    at /home/xruser/lib/gstreamer-1.0/libgstvideofilter.so
#5  0x00007f94d8c4db55 in gst_video_flip_transform_frame ()
    at /home/xruser/lib/gstreamer-1.0/libgstvideofilter.so
#6  0x00007f94eaf8febf in gst_video_filter_transform () at
/home/xruser/lib/libgstvideo-1.0.so.0
#7  0x00007f94ea0e9831 in default_generate_output () at
/home/xruser/lib/libgstbase-1.0.so.0
#8  0x00007f94ea0e8fb5 in gst_base_transform_chain () at
/home/xruser/lib/libgstbase-1.0.so.0
#9  0x00007f94e9ddedf5 in gst_pad_push_data () at
/home/xruser/lib/libgstreamer-1.0.so.0
#10 0x00007f94e9de6723 in gst_pad_push () at
/home/xruser/lib/libgstreamer-1.0.so.0
#11 0x00007f94ea0e90e0 in gst_base_transform_chain () at
/home/xruser/lib/libgstbase-1.0.so.0
#12 0x00007f94e9ddedf5 in gst_pad_push_data () at
/home/xruser/lib/libgstreamer-1.0.so.0
#13 0x00007f94e9de6723 in gst_pad_push () at
/home/xruser/lib/libgstreamer-1.0.so.0
#14 0x00007f94d90aa7ba in gst_queue_loop () at
/home/xruser/lib/gstreamer-1.0/libgstcoreelements.so
#15 0x00007f94e9e17d59 in gst_task_func () at
/home/xruser/lib/libgstreamer-1.0.so.0
#16 0x00007f94e9860530 in  () at /usr/lib64/libglib-2.0.so.0
#17 0x00007f94e985fb66 in  () at /usr/lib64/libglib-2.0.so.0
#18 0x00007f94e7af6569 in start_thread () at /lib64/libpthread.so.0
#19 0x00007f94e7e059ef in clone () at /lib64/libc.so.6
(gdb) 




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list