Re : Help with RTP

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

Re : Help with RTP

Aurelien Grimaud (elzz)
Hi, I think you need a server here to handle the negotiations (sdp exchange).
Then, you can use RTCP sent by client to detect network congestion.

Darwin streaming server is a rtsp server and may be a good start to handle rtsp.
It also supports easy plugin writting, in which you can alter your stream the way you want, without re-writting a rtsp stack from scratch.

Aurelien

----- Message d'origine ----
De : Rémi BUISSON <[hidden email]>
À : Daiane Angolini <[hidden email]>
Cc : Discussion of the development of GStreamer <[hidden email]>
Envoyé le : Jeudi, 7 Août 2008, 8h37mn 59s
Objet : Re: [gst-devel] Help with RTP

Hi and thanks for your reply !

OK I will try today and I will tell you if it works for me.

My goal is to write a streaming server which can transcode, transrate,
... a stream and using a file for clients may be some kind of a
do-it-yourself solution.

For instance, the client send a message to the server for starting the
streaming of a file. Next, imagine the network is overloaded. Then, the
client will ask to the server to decrease the bitrate of the stream.

The client may be VLC, MPlayer, ...

Have you any idea to do it ?

I think it's possible because the streams are standardized.
Moreover, I tried to read a video streamed by flumotion over HTTP and it
works perfectly with VLC.

Thanks again.

Daiane Angolini wrote:

> Hello Remi!
>
> If you want to see streaming using VLC you can use a SDP file.
>
> Try this:
>
>
> *v=0*
> *o=- 37 614155991 IN IP4 127.0.0.0*
> *s=QuickTime*
> *t=0 0*
> *a=range:npt=now-*
> *m=audio 5432 RTP/AVP 0*
> *c=IN IP4 10.29.241.6*
> *b=AS:63*
> *m=video 5434 RTP/AVP 96*
> *c=IN IP4 10.29.241.6*
> *a=rtpmap:96 H263-2000/90000*
> *a=fmtp:96  *
> *a=cliprect:0,0,144,176*
> *a=framesize:96 176-144*
>
> In this file you have both audio and video.
> But if you need a simple one, you can try this:
>
> *v=0*
> *m=video 5434 RTP/AVP 96*
> *c=IN IP4 10.29.240.186*
> *a=rtpmap:96 MP4V-ES/90000  *
> *a=fmtp:96
> config=000001b002000001b59113000001000000012000c488800f50584121443f;profile-level-id=2*
>
> The *config* and *profile-level-id* you can get from the return value
> of *gst-lauch -v* command. In the caps property.
>
> Ah!
> To use VLC with SDP file use:
>
> vlc -vvv file.sdp
>
> I hope it works
>
>
> Daiane
>
>
>
>
> On Wed, 2008-08-06 at 16:21 +0200, Rémi BUISSON wrote:
>> Hi everyone,
>>
>> I have some troubles streaming video file over the network.
>>
>> First of all, I tired this :
>>
>> server:
>> gst-launch filesrc location=../partage/Videos/superman_originale.avi !
>> decodebin ! x264enc ! video/x-h264 ! rtph264pay pt=96 ! udpsink
>> host=192.168.1.2 port=5000 sync=false
>>
>> client:
>> gst-launch udpsrc port=5000 ! rtph264depay  ! decodebin ! xvimagesink
>>
>> It works but I can't read it with vlc : vlc udp://@:5000 : is it normal ?
>>
>> Now I would like to do the same thing with an RTP pipeline :
>>
>> server:
>> gst-launch filesrc location=../partage/Videos/superman_originale.avi !
>> decodebin ! x264enc ! rtph264pay ! rtpbin localport=5001
>> destinations=127.0.0.1:5000
>>
>> client:
>> gst-launch udpsrc port=5000 ! rtph264depay ! decodebin ! xvimagesink -->
>> this works
>> gst-launch rtpbin localport=5000 ! rtph264depay ! decodebin !
>> xvimagesink --> this doesn't work
>>
>> How can I receive my stream ? with vlc ?
>>
>> Thanks in advance !
>>
>> -------------------------------------------------------------------------
>> 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=/ <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email] <mailto:[hidden email]>
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>   

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente.
-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re : Help with RTP

Rémi BUISSON
Thanks.

With this server, can I stream from dvb source for instance ?

In fact, I am in an internship and the program I have to write must
exchange SIP message for the commands. So my question is: can I interact
easily with Darwin from my C program ? with a plugin ?

Thanks again !

Rémi

Aurelien Grimaud wrote:

> Hi, I think you need a server here to handle the negotiations (sdp
> exchange).
> Then, you can use RTCP sent by client to detect network congestion.
>
> Darwin streaming server is a rtsp server and may be a good start to
> handle rtsp.
> It also supports easy plugin writting, in which you can alter your
> stream the way you want, without re-writting a rtsp stack from scratch.
>
> Aurelien
>
> ----- Message d'origine ----
> De : Rémi BUISSON <[hidden email]>
> À : Daiane Angolini <[hidden email]>
> Cc : Discussion of the development of GStreamer
> <[hidden email]>
> Envoyé le : Jeudi, 7 Août 2008, 8h37mn 59s
> Objet : Re: [gst-devel] Help with RTP
>
> Hi and thanks for your reply !
>
> OK I will try today and I will tell you if it works for me.
>
> My goal is to write a streaming server which can transcode, transrate,
> ... a stream and using a file for clients may be some kind of a
> do-it-yourself solution.
>
> For instance, the client send a message to the server for starting the
> streaming of a file. Next, imagine the network is overloaded. Then, the
> client will ask to the server to decrease the bitrate of the stream.
>
> The client may be VLC, MPlayer, ...
>
> Have you any idea to do it ?
>
> I think it's possible because the streams are standardized.
> Moreover, I tried to read a video streamed by flumotion over HTTP and it
> works perfectly with VLC.
>
> Thanks again.
>
> Daiane Angolini wrote:
> > Hello Remi!
> >
> > If you want to see streaming using VLC you can use a SDP file.
> >
> > Try this:
> >
> >
> > *v=0*
> > *o=- 37 614155991 IN IP4 127.0.0.0*
> > *s=QuickTime*
> > *t=0 0*
> > *a=range:npt=now-*
> > *m=audio 5432 RTP/AVP 0*
> > *c=IN IP4 10.29.241.6*
> > *b=AS:63*
> > *m=video 5434 RTP/AVP 96*
> > *c=IN IP4 10.29.241.6*
> > *a=rtpmap:96 H263-2000/90000*
> > *a=fmtp:96  *
> > *a=cliprect:0,0,144,176*
> > *a=framesize:96 176-144*
> >
> > In this file you have both audio and video.
> > But if you need a simple one, you can try this:
> >
> > *v=0*
> > *m=video 5434 RTP/AVP 96*
> > *c=IN IP4 10.29.240.186*
> > *a=rtpmap:96 MP4V-ES/90000  *
> > *a=fmtp:96
> >
> config=000001b002000001b59113000001000000012000c488800f50584121443f;profile-level-id=2*
> >
> > The *config* and *profile-level-id* you can get from the return value
> > of *gst-lauch -v* command. In the caps property.
> >
> > Ah!
> > To use VLC with SDP file use:
> >
> > vlc -vvv file.sdp
> >
> > I hope it works
> >
> >
> > Daiane
> >
> >
> >
> >
> > On Wed, 2008-08-06 at 16:21 +0200, Rémi BUISSON wrote:
> >> Hi everyone,
> >>
> >> I have some troubles streaming video file over the network.
> >>
> >> First of all, I tired this :
> >>
> >> server:
> >> gst-launch filesrc location=../partage/Videos/superman_originale.avi !
> >> decodebin ! x264enc ! video/x-h264 ! rtph264pay pt=96 ! udpsink
> >> host=192.168.1.2 port=5000 sync=false
> >>
> >> client:
> >> gst-launch udpsrc port=5000 ! rtph264depay  ! decodebin ! xvimagesink
> >>
> >> It works but I can't read it with vlc : vlc udp://@:5000 : is it
> normal ?
> >>
> >> Now I would like to do the same thing with an RTP pipeline :
> >>
> >> server:
> >> gst-launch filesrc location=../partage/Videos/superman_originale.avi !
> >> decodebin ! x264enc ! rtph264pay ! rtpbin localport=5001
> >> destinations=127.0.0.1:5000
> >>
> >> client:
> >> gst-launch udpsrc port=5000 ! rtph264depay ! decodebin !
> xvimagesink -->
> >> this works
> >> gst-launch rtpbin localport=5000 ! rtph264depay ! decodebin !
> >> xvimagesink --> this doesn't work
> >>
> >> How can I receive my stream ? with vlc ?
> >>
> >> Thanks in advance !
> >>
> >>
> -------------------------------------------------------------------------
> >> 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=/ 
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/ 
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
> >> _______________________________________________
> >> gstreamer-devel mailing list
> >> [hidden email]
> <mailto:[hidden email]>
> <mailto:[hidden email]
> <mailto:[hidden email]>>
> >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >>  
>
> -------------------------------------------------------------------------
> 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=/ 
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> <mailto:[hidden email]>
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> ------------------------------------------------------------------------
> Envoyé avec Yahoo! Mail
> <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html>.
> Une boite mail plus intelligente.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel