Streaming MP4 (video + audio) by RTP
Ariel Argañaraz
arielin82 at gmail.com
Mon Sep 9 11:41:44 PDT 2013
Hi all,
I am new to gstreamer and i'm trying to create a pipeline to streaming by
RTP a mp4 file with audio and video to an specific IP address after that I
want to receive it and play it with VLC.
I was able to send only a video using this:
gst-launch videotestsrc ! ffenc_mpeg4 ! rtpmp4vpay send-config=true !
udpsink host=127.0.0.1 port=5000
test.sdp file:
v=0
m=video 5000 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 MP4V-ES/90000
and then it can be played with VLC:
vlc test.sdp
But I don't know how to configure a .sdp file to receive audio. For example
for this pipeline:
gst-launch audiotestsrc ! ffenc_ac3 ! rtpac3pay ! udpsink
host=192.168.0.221 port=5000
I would like to know which is the best way to streaming a video with its
audio by RTP?
I think that there are 2 possible ways of doing that with gstreamer but I
not sure.
1) One of them is sending the video as I've mention before to an IP and
port (for example 127.0.0.1:5000) and the audio to the same IP but to a
different port (for example 127.0.0.1:5001) Both using the same pipeline.
2) The other way I've been trying is with the "rtpmux" element, my idea
here is to mix audio rtp stream and video rtp stream into a single rtp
stream.
In both case I don't where to find information of how I must configure de
SDP files. I don't even know if i can do it with a single file (second
case) or if I need 2 files one for audio and another for the video (first
case).
So, if someone could tell where I can found a good tutorial about sdp files
it would be great.
Sorry for my english.
--
Ariel Argañaraz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130909/5c4cdf73/attachment.html>
More information about the gstreamer-devel
mailing list