[gst-devel] Audio + video with RTP

Wim Taymans wim.taymans at gmail.com
Mon Aug 25 17:09:10 CEST 2008


On Mon, 2008-08-25 at 16:42 +0200, Rémi BUISSON wrote:
> Hi,
> 
> How can I send both audio and video with RTP ?
> 
> I tried this but it doesn't seem to work :
> 
> sender:
> gst-launch filesrc 
> location=../../../partage/Videos/superman_originale.avi ! decodebin 
> name=dec \ dec. ! queue ! x264enc ! rtph264pay ! rtpbin localport=5001 
> destinations=192.168.1.2:5000 sync=false \ dec. ! queue ! x264enc ! 
> rtph264pay ! rtpbin localport=5003 destinations=192.168.1.2:5002 sync=false
> 
> receiver:
> gst-launch udpsrc port=5000 caps="application/x-rtp,media=(string)video" 
> ! rtph264depay ! decodebin ! xvimagesink (just for video for now)
> 

That's old deprecated rtpbin, use the new gstrtpbin element instead.
Here are some examples of audio and video sending and receiving
pipelines: 

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/examples/rtp/


> 
> without "\ dec. ! queue ! x264enc ! rtph264pay ! rtpbin localport=5003 
> destinations=192.168.1.2:5002 sync=false" it works.
> 
> I thought audio could be encoded with h264 ... ?

It can't, H264 is a video only codec.

Wim
> 
> Thanks for your reply.
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list