Recording RTP Audio & Video Streams

Sebastian Dröge sebastian at centricular.com
Tue Dec 1 23:00:51 PST 2015


On Di, 2015-12-01 at 18:18 -0500, Edip Demirbilek wrote:
> 
> Client side:
> SRC=localhost
> DEST=localhost
> VIDEO_CAPS="application/x-rtp,media=(string)video,clock-
> rate=(int)90000,encoding-name=(string)H264"
> AUDIO_CAPS="application/x-rtp,media=(string)audio,clock-
> rate=(int)16000,encoding-name=(string)AMR-WB,encoding-
> params=(string)1,octet-align=(string)1"
> LATENCY=400
> VIDEO_STR=" rtph264depay ! avdec_h264 ! videoconvert ! x264enc !
> qtmux name=mux ! filesink location=<dir>/Captured.3gp"
> AUDIO_STR=" rtpamrdepay ! avdec_amrwb ! audioconvert ! voamrwbenc !
> mux."
>  
> gst-launch-1.0 -v rtpbin name=rtpbin
> latency=$LATENCY                                                \
>            udpsrc caps=$VIDEO_CAPS address=$SRC port=5000 !
> rtpbin.recv_rtp_sink_0                   \
>                          rtpbin. !
> $VIDEO_STR                                                           
>          \
>                        udpsrc caps=$AUDIO_CAPS address=$SRC port=5002
> ! rtpbin.recv_rtp_sink_1                   \
>                          rtpbin. ! $AUDIO_STR
>  
> and when I play the file via GStreamer, I get the following error

Try passing -e to gst-launch-1.0 and then try again. Most likely the
problem is that your file was not finalized because you just stopped
gst-launch-1.0 with ctrl+c. With -e it will first finalize anything it
was doing before shutting down when pressing ctrl+c.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151202/e5ebc439/attachment-0001.sig>


More information about the gstreamer-devel mailing list