Update to apply remoting plugin 04/21604/2 7.99.2 halibut/7.99.2 halibut_7.99.2
authorHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Wed, 12 Jun 2019 05:12:03 +0000 (14:12 +0900)
committerHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Wed, 12 Jun 2019 05:15:53 +0000 (14:15 +0900)
Remoting plugin uses jpeg element as default.

This pipeline is refered from sample script in
https://gitlab.freedesktop.org/wayland/weston/blob/master/doc/remoting-client-receive.bash

Bug-AGL : SPEC-2420

Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Change-Id: I83e3bf9e75af24d80993ed1ef78c01154ae94c1b

app/main.cpp

index 967f5e4..0494b5f 100644 (file)
@@ -53,13 +53,13 @@ int main(int argc, char *argv[])
        //
 
        std::string pipeline_str = \
-               "udpsrc port=5005 ! application/x-rtp,media=video,encoding-name=H264 ! queue ! rtph264depay ! h264parse config-interval=1 disable-passthrough=true ! decodebin ! ";
+               "rtpbin name=rtpbin udpsrc caps=\"application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=JPEG,payload=26\" port=5005 !    rtpbin.recv_rtp_sink_0 rtpbin. ! rtpjpegdepay ! jpegdec ! ";
        GstPlugin *plugin = gst_registry_find_plugin(gst_registry_get (), "vaapisink");
        if(plugin) {
                pipeline_str += "vaapisink";
                gst_object_unref(plugin);
        } else {
-               pipeline_str += "videoconvert ! video/x-raw,format=BGRx,width=384,height=368 ! waylandsink";
+               pipeline_str += "waylandsink";
        }
 #ifdef DEBUG
        std::cout << "Using pipeline: " << pipeline_str << std::endl;