How to save in mpeg4 format.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to save in mpeg4 format.

Diego Silva
Hi,

I am using the rtp/udp script below.

I have 3 questions:

How can i watch and store the received video (mpeg4) with audio using one gstreamer command?

The client saves the received video but the gstreamer not stop. How can i solve that?

How can i change the video resolution and also convert the .flv to .mp4?

Thanks,

Diego Silva,


Server:
DEST=127.0.0.1
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

Client:

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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel