From 869388493dbebbc7ab1bd95be68b12dcf3f76d4d Mon Sep 17 00:00:00 2001 From: Harunobu Kurokawa Date: Wed, 12 Jun 2019 14:12:03 +0900 Subject: Update to apply remoting plugin 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 Change-Id: I83e3bf9e75af24d80993ed1ef78c01154ae94c1b --- app/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.cpp b/app/main.cpp index 967f5e4..0494b5f 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -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; -- cgit 1.2.3-korg