[Live-devel] Re: About setting a multicast On Demand server

Achraf GAZDAR achraf_g at yahoo.fr
Wed Jul 14 10:10:39 PDT 2004



live-devel-request at ns.live.com wrote:Send live-devel mailing list submissions to
live-devel at lists.live.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.live.com/mailman/listinfo/live-devel
or, via email, send a message with subject or body 'help' to
live-devel-request at lists.live.com

You can reach the person managing the list at
live-devel-owner at lists.live.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of live-devel digest..."


Today's Topics:

1. RE: On demand RTSP Unicast server question (Ross Finlayson)
2. RE: On demand RTSP Unicast server question (Dixon Siu)
3. About setting a multicast On Demand server (Achraf GAZDAR)
4. Re: WinCE compilation (Gabriel Bouvigne)
5. problem with AMR RTP client (Gabriel Bouvigne)
6. Re: problem with AMR RTP client (Gabriel Bouvigne)
7. Re: About setting a multicast On Demand server (Ross Finlayson)
8. Re: About setting a multicast On Demand server (John M. Zwiebel)
9. Re: problem with AMR RTP client (Ross Finlayson)
10. Re: WinCE compilation (Ross Finlayson)


----------------------------------------------------------------------

Message: 1
Date: Mon, 12 Jul 2004 13:22:45 -0700
From: Ross Finlayson 
Subject: RE: [Live-devel] On demand RTSP Unicast server question
To: "LIVE.COM Streaming Media - development & use"


Message-ID: <6.1.2.0.1.20040712131549.069a41c0 at localhost>
Content-Type: text/plain; charset="us-ascii"; format=flowed


>Thank you very much for the reply. To confirm what you said, you mean stream
>a MPEG video stream from a file, right.

Yes. That is what "testOnDemandRTSPServer" does.

>So it is no way to stream not from a file.

To stream a MPEG-1 or 2 Video Elementary Stream, unicast, on demand, from 
something that's not a file, you will need to do the following:
1/ Write your own 'source' object that encapsulates your video stream source.
2/ Create your own subclass of "OnDemandServerMediaSubsession", and use 
this *instead of* "MPEG1or2FileServerMediaSubsession". Your new class will 
be similar to "MPEG1or2FileServerMediaSubsession", except that the 
"createNewStreamSource()" virtual member function will create an object of 
your own source class (defined in 1/), *instead of* a "ByteStreamFileSource".


Ross Finlayson
LIVE.COM



------------------------------

Message: 2
Date: Tue, 13 Jul 2004 09:59:10 +0900
From: "Dixon Siu" 
Subject: RE: [Live-devel] On demand RTSP Unicast server question
To: "LIVE.COM Streaming Media - development & use"


Message-ID: 
Content-Type: text/plain; charset="us-ascii"

Hi Ross,

Thanks for the suggestion which is exactly what I need. It will be similar
to what I did in DeviceSource which handles buffer reading instead of file
reading.

> To stream a MPEG-1 or 2 Video Elementary Stream, unicast, on demand, from
> something that's not a file, you will need to do the following:
> 1/ Write your own 'source' object that encapsulates your video
> stream source.
> 2/ Create your own subclass of "OnDemandServerMediaSubsession", and use
> this *instead of* "MPEG1or2FileServerMediaSubsession". Your new
> class will
> be similar to "MPEG1or2FileServerMediaSubsession", except that the
> "createNewStreamSource()" virtual member function will create an
> object of
> your own source class (defined in 1/), *instead of* a
> "ByteStreamFileSource".
Challenging! Hope that this time I will do it correctly so that live.com can
use my code to benefit other users. :P

Regards,
Dixon


------------------------------

Message: 3
Date: Tue, 13 Jul 2004 11:13:25 +0200 (CEST)
From: Achraf GAZDAR 
Subject: [Live-devel] About setting a multicast On Demand server
To: live-devel at ns.live.com
Message-ID: <20040713091325.25090.qmail at web25101.mail.ukl.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"


Hi all,
I want to change testOnDemand to play media on demand by using multicast in stead of using unicast. Is live can do this or I need to make some changes to it. If yes please say which classes must be changed.
thanks in advance 



---------------------------------
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live.com/pipermail/live-devel/attachments/20040713/ca982f3e/attachment-0001.html

------------------------------

Message: 4
Date: Tue, 13 Jul 2004 11:28:08 +0200
From: Gabriel Bouvigne 
Subject: Re: [Live-devel] WinCE compilation
To: "LIVE.COM Streaming Media - development & use"


Message-ID: <40F3AB28.9080406 at resonate-mp4.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Ross Finlayson a écrit :

> Thanks for contributing this. I have now updated the released code 
> (2004.07.06) with your patch. Please download it and check whether it 
> still compiles and works OK for you.

I tryed and it compiles.
However, in some places some try/catch are used. Under winCE 2002, 
exceptions are not available. In means that the catch will be inoperant.

Regards,

-- 

Gabriel Bouvigne
Resonate mp4
Tel: (+33) 142 411 665

------------------------------

Message: 5
Date: Tue, 13 Jul 2004 13:18:11 +0200
From: Gabriel Bouvigne 
Subject: [Live-devel] problem with AMR RTP client
To: live-devel at ns.live.com
Message-ID: <40F3C4F3.8020808 at resonate-mp4.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Hello

I am encountering some problems when trying to receive the amr stream of 
a 3gp file. (the server is Darwin)

The data I am receiving in my sink does not correspond to the amr data, 
and its size is 31 bytes instead of 32.

I noticed that in BufferedPacket::use, the fBuf buffer includes the 
correct data, however fHead is 18 while I can see that my data is 
starting in 18th position from the start of the buffer (so the fHead 
index should be 17).

Anyone encountered problems when trying to receive an amr stream through 
an ISMA server?

Regards,

-- 

Gabriel Bouvigne
Resonate mp4
Tel: (+33) 142 411 665

------------------------------

Message: 6
Date: Tue, 13 Jul 2004 16:38:31 +0200
From: Gabriel Bouvigne 
Subject: Re: [Live-devel] problem with AMR RTP client
To: "LIVE.COM Streaming Media - development & use"


Message-ID: <40F3F3E7.5030307 at resonate-mp4.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Gabriel Bouvigne a écrit :

> I am encountering some problems when trying to receive the amr stream of 
> a 3gp file. (the server is Darwin)

Updates related to my problem:

In my tests, there are 5 AMR samples per rtp packet. However my sink 
(inheriting from MediaSink) addData function is only called for the 5th 
sample extracted from the RTP packet, but not for the 4 starting ones in 
each rtp packet.

Moreover, the data received by my sink does not includes the frame type 
at the beginning. This data (FT) is part of the ToC entry stored in the 
RTP packet.


Feedback from previous experience using live.com to receive amr streams 
would be welcome.

Regards,

-- 

Gabriel Bouvigne
Resonate mp4
Tel: (+33) 142 411 665

------------------------------

Message: 7
Date: Tue, 13 Jul 2004 09:04:34 -0700
From: Ross Finlayson 
Subject: Re: [Live-devel] About setting a multicast On Demand server
To: "LIVE.COM Streaming Media - development & use"


Message-ID: <6.1.2.0.1.20040713090012.0244a5a0 at localhost>
Content-Type: text/plain; charset="us-ascii"; format=flowed


>I want to change testOnDemand to play media on demand by using multicast 
>in stead of using unicast.

I'm not sure that this is something that makes much sense.

"On demand" means that a new stream will be created in response to each new 
client. Why would you want each new stream to be multicast?

Note that the existing "test*Streamer" applications contain a RTSP server 
that streams via multicast.

What is it exactly that you want to do?


Ross Finlayson
LIVE.COM



------------------------------

Message: 8
Date: Tue, 13 Jul 2004 09:17:09 -0700
From: "John M. Zwiebel" 
Subject: Re: [Live-devel] About setting a multicast On Demand server
To: "LIVE.COM Streaming Media - development & use"


Message-ID: <176CAB20-D4E8-11D8-86D7-0003936A6062 at cruzio.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jul 13, 2004, at 9:04 AM, Ross Finlayson wrote:

>
>> I want to change testOnDemand to play media on demand by using 
>> multicast in stead of using unicast.
>
> I'm not sure that this is something that makes much sense.
>
> "On demand" means that a new stream will be created in response to 
> each new client. Why would you want each new stream to be multicast?
>

For your consideration:

There is a protocol called MSNIP which is used as a reverse IGMP
that allows a first-hop router to signal a given source that (S,G)
state has been created so the source should start sending.

It hasn't been deployed.

2cents


------------------------------

Message: 9
Date: Tue, 13 Jul 2004 09:41:04 -0700
From: Ross Finlayson 
Subject: Re: [Live-devel] problem with AMR RTP client
To: "LIVE.COM Streaming Media - development & use"


Message-ID: <6.1.2.0.1.20040713093355.033cd040 at localhost>
Content-Type: text/plain; charset="us-ascii"; format=flowed


>I am encountering some problems when trying to receive the amr stream of a 
>3gp file. (the server is Darwin)
>
>The data I am receiving in my sink does not correspond to the amr data, 
>and its size is 31 bytes instead of 32.

Gabriel,

Have you tried using "openRTSP" to receive the stream? Is it working 
correctly?

(By the way, do you know about the "AMRAudioFileSink" class? It is a 
subclass of "FileSink" that prepends the output file with appropriate AMR 
header information. It is used by "openRTSP" when receiving AMR audio data.)

If "openRTSP" is not working correctly (when recording a AMR/RTP stream), 
then please point me at a (publically-accessible) "rtsp://" URL that 
illustrates this problem.

(If you're feeling adventurous, take a look at "AMRAudioRTPSource.cpp". If 
there's a bug, it's probably there...)



------------------------------

Message: 10
Date: Tue, 13 Jul 2004 09:57:45 -0700
From: Ross Finlayson 
Subject: Re: [Live-devel] WinCE compilation
To: "LIVE.COM Streaming Media - development & use"


Message-ID: <6.1.2.0.1.20040713094500.033c9710 at localhost>
Content-Type: text/plain; charset="us-ascii"; format=flowed


>>Thanks for contributing this. I have now updated the released code 
>>(2004.07.06) with your patch. Please download it and check whether it 
>>still compiles and works OK for you.
>
>I tryed and it compiles.
>However, in some places some try/catch are used. Under winCE 2002, 
>exceptions are not available. In means that the catch will be inoperant.

Currently, C++ language exceptions are used in the stream parsing code 
(which is used for parsing things like MPEG headers), to deal with the 
(exceptional) situation where the parser runs into the end of the input 
buffer (and so new data needs to be read from the input source).

I'd love to be able to get rid of the use of C++ exceptions here (because 
you're not the only person to have tried using a C++ SDK in which 
exceptions aren't available), but right now I don't see any way of doing 
this without turning "StreamParser.hh" (and much of "StreamParser.cpp") 
into a hideous mess of macros.



------------------------------

_______________________________________________
live-devel mailing list
live-devel at lists.live.com
http://lists.live.com/mailman/listinfo/live-devel


End of live-devel Digest, Vol 9, Issue 9
****************************************


		
---------------------------------
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live.com/pipermail/live-devel/attachments/20040714/253c3380/attachment.html


More information about the live-devel mailing list