SDP file with VLC

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

SDP file with VLC

de_ninja
Hello,

I hope i can find some help here.

I want to stream from my raspberry to my windows computer.
I have a working pipeline:

gst-launch-1.0 alsasrc device=plughw:Device ! mulawenc ! rtppcmupay ! udpsink host=127.0.0.1 port=5000

I can receive the stream on my windows computer with gstreamer. I need the stream to be played with vlc so I tried to make a sdp file. When I open it on my Windows computer (client) nothing happens. Am I doing something wrong? I'm pretty new to this so thanks for helping!

my SDP file:
v=0
m=audio 5000 RTP/AVP 0
c=IN IP4 127.0.0.1
a=rtpmap:0 PCMU/8000
Reply | Threaded
Open this post in threaded view
|

AW: SDP file with VLC

Thornton, Keith
127.0.0.1 is localhost you need to put the proper IP address in your sdp file

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von de_ninja
Gesendet: Dienstag, 12. April 2016 08:57
An: [hidden email]
Betreff: SDP file with VLC

Hello,

I hope i can find some help here.

I want to stream from my raspberry to my windows computer.
I have a working pipeline:

gst-launch-1.0 alsasrc device=plughw:Device ! mulawenc ! rtppcmupay !
udpsink host=127.0.0.1 port=5000

I can receive the stream on my windows computer with gstreamer. I need the stream to be played with vlc so I tried to make a sdp file. When I open it on my Windows computer (client) nothing happens. Am I doing something wrong?
I'm pretty new to this so thanks for helping!

my SDP file:
v=0
m=audio 5000 RTP/AVP 0
c=IN IP4 127.0.0.1
a=rtpmap:0 PCMU/8000



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/SDP-file-with-VLC-tp4676852.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: SDP file with VLC

de_ninja
Thank you very much for your help!
 One more question:
I am using a raspberry pi as a host. is there a way to deposit the sdp file there and to receive it by opening a network stream on the client with rtp://@<ip>:<port>/stream.sdp?
Reply | Threaded
Open this post in threaded view
|

AW: AW: SDP file with VLC

Thornton, Keith
Rtp doesn't specify how the sdp file is distributed. There are various ways to achieve this such as having a mini web server and getting it with http get.

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von de_ninja
Gesendet: Dienstag, 12. April 2016 10:12
An: [hidden email]
Betreff: Re: AW: SDP file with VLC

Thank you very much for your help!
 One more question:
I am using a raspberry pi as a host. is there a way to deposit the sdp file there and to receive it by opening a network stream on the client with rtp://@<ip>:<port>/stream.sdp?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/SDP-file-with-VLC-tp4676852p4676855.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: AW: SDP file with VLC

Sebastian Dröge-3
On Di, 2016-04-12 at 09:13 +0000, Thornton, Keith wrote:
> Rtp doesn't specify how the sdp file is distributed. There are
> various ways to achieve this such as having a mini web server and
> getting it with http get. 

Or just use RTSP (e.g. gst-rtsp-server), which is basically (as used
most often) like HTTP to get an SDP for RTP streams.

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


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

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: AW: AW: SDP file with VLC

de_ninja
Thanks for the answers.
I uploaded an sdp file to my homepage, it worked.
My goal was to receive the streams on mobile devices. This worked too, I could open the file on my webpage with the vlc app for Android. Unfortunately the quality is kinda bad and the latency is about 2 seconds (same pipeline with gstreamer on windows has about 0.1-0.2 seconds).
Is there any way to get decent quality and near real time audio on my mobile devices with apps that already exist?
I want to connect my raspberry pi to a tv in my fitness centre, which doesn't have speakers, so multiple people can listen to the tv's audio with an app in real time.
Reply | Threaded
Open this post in threaded view
|

Re: AW: AW: SDP file with VLC

de_ninja
This post was updated on .
Maybe another codec/payload could help?
I also get horrible dropouts when using an .255 ip for broadcasting