Recording RTP Audio & Video Streams

Edip Demirbilek edip.demirbilek at gmail.com
Wed Dec 2 08:24:02 PST 2015


Passing -e to gst-launch made it work. Many thanks Sebastian.

Edip

-----Original Message-----
From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Sebastian Dröge
Sent: December 2, 2015 2:01 AM
To: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Subject: Re: Recording RTP Audio & Video Streams

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




More information about the gstreamer-devel mailing list