Hi, <br><br>I am using the rtp/udp script below.<br><br>I have 3 questions:<br><br>How can i watch and store the received video (mpeg4) with audio using one gstreamer command?<br><br>The client saves the received video but the gstreamer not stop. How can i solve that? <br>
<br>How can i change the video resolution and also convert the .flv to .mp4? <br><br>Thanks,<br><br>Diego Silva,<br><br><br>Server:<br>DEST=127.0.0.1<br>gst-launch -v gstrtpbin name=rtpbin filesrc location=filesrc location=sample.mp4 ! decodebin2 name=dec dec. ! queue name=dec dec. ! x264enc ! rtph264pay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink port=5000 host=$DEST ts-offset=0 name=vrtpsink rtpbin.send_rtcp_src_0 ! udpsink port=5001 host=$DEST sync=true async=false name=vrtcpsink udpsrc port=5005 name=vrtpsrc ! rtpbin.recv_rtcp_sink_0 dec. ! queue ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! rtpbin.send_rtp_sink_1 rtpbin.send_rtp_src_1 ! udpsink port=5002 host=$DEST ts-offset=0 name=artpsink rtpbin.send_rtcp_src_1 ! udpsink port=5003 host=$DEST sync=true async=false name=artcpsink udpsrc port=5007 name=artpsrc ! rtpbin.recv_rtcp_sink_1<br>
<br>Client:<br><br>gst-launch -v gstrtpbin name=rtpbin latency=0 udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" port=5000 ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay ! decodebin2 name=dec dec. ! queue name=dec dec. ! x264enc speed-preset=superfast tune=zerolatency byte-stream=true ! mp4mux ! filesink location=sample-received.mp4 udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 rtpbin.send_rtcp_src_0 ! udpsink port=5005 host=$DEST sync=true async=false udpsrc caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA" port=5002 ! rtpbin.recv_rtp_sink_1 rtpbin. ! rtppcmadepay ! decodebin ! audioconvert ! audioresample ! alsasink udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1 rtpbin.send_rtcp_src_1 ! udpsink port=5007 host=$DEST sync=true async=false <br>