The commands I use are below.<br>When i use &#39;xvimagesink&#39; instead of &#39;filesink location=filesink location=received.yuv&#39; in the client. The video has a poor quality and when i run &#39;ffmpeg -s received.yuv received.mp4&#39; the mp4 has a quality even worse. <br>
I am using the loopback interface (127.0.0.1).  <br><br>What i need to change in this commands to store the received (rtp/udp) videos?<br><br>Server:<br><br>#!/bin/bash<br><br>DEST=127.0.0.1<br><br>gst-launch -v gstrtpbin name=rtpbin \<br>
filesrc location=filesrc location=sample-480p.mp4 ! decodebin name=dec \<br>dec. ! queue ! x264enc tune=zerolatency byte-stream=true ! rtph264pay ! rtpbin.send_rtp_sink_0 \<br>rtpbin.send_rtp_src_0 ! udpsink port=5000 host=$DEST ts-offset=0 name=vrtpsink \<br>
rtpbin.send_rtcp_src_0 ! udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink \<br>udpsrc port=5005 name=vrtpsrc ! rtpbin.recv_rtcp_sink_0 \<br>dec. ! queue ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! rtpbin.send_rtp_sink_1 \<br>
rtpbin.send_rtp_src_1 ! udpsink port=5002 host=$DEST ts-offset=0 name=artpsink \<br>rtpbin.send_rtcp_src_1 ! udpsink port=5003 host=$DEST sync=false async=false name=artcpsink \<br>udpsrc port=5007 name=artpsrc ! rtpbin.recv_rtcp_sink_1<br>
<br>_________________________<br><br>Client:<br><br>#!/bin/bash<br><br>DEST=127.0.0.1<br><br>gst-launch -v gstrtpbin name=rtpbin latency=0 \<br>udpsrc caps=&quot;application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264&quot; port=5000 ! rtpbin.recv_rtp_sink_0 \<br>
rtpbin. ! rtph264depay ! decodebin ! filesink location=filesink location=received.yuv \<br>udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \<br>rtpbin.send_rtcp_src_0 ! udpsink port=5005 host=$DEST sync=false async=false \<br>
udpsrc caps=&quot;application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA&quot; port=5002 ! rtpbin.recv_rtp_sink_1 \<br>rtpbin. ! rtppcmadepay ! decodebin ! audioconvert ! audioresample ! alsasink \<br>
udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1 \<br>rtpbin.send_rtcp_src_1 ! udpsink port=5007 host=$DEST sync=false async=false<br><br><br>