Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi All,

here my questions:

1. where i can download a rtsp server ?
2. how can i streaming a video file ?

thanks in advance.

hi tester,
You have to write your own code for each bits for RTSP. As brew does not provide any RTSP/RTP API for the same.
Best of luck.

hi tester,
You have to write your own code for each bits for RTSP. As brew does not provide any RTSP/RTP API for the same.
Best of luck.

RTSP is "kind of" available on most devices that support MPEG4, since they're both handled by the QTV. However, RTSP implementations on devices are not officially supported, nor are they tested during porting, so it wouldn't be surprising if they don't work. You can interface with QTV through IMedia.
You will need the IMediaMPEG4 header files, which are only available to a limited set of developers right now.

RTSP is "kind of" available on most devices that support MPEG4, since they're both handled by the QTV. However, RTSP implementations on devices are not officially supported, nor are they tested during porting, so it wouldn't be surprising if they don't work. You can interface with QTV through IMedia.
You will need the IMediaMPEG4 header files, which are only available to a limited set of developers right now.

hi mohlendo,
Can you tell us how to get access to "IMediaMPEG4 headers".
Thanks.

hi mohlendo,
Can you tell us how to get access to "IMediaMPEG4 headers".
Thanks.

As I said, they're not available publicly.

As I said, they're not available publicly.

RTSP 3GP streaming in a nutshell:
You need a QTV enabled phone (Qualcomm TV? Whatever). I used a VX8100.
Install Quicktime 6 or above.
1) For testing I used Apple's Darwin Streaming Server ("DSS" - free, runs on linux, google it). Set it up, make sure port 554 TCP/UDP is open to your server.
2) Get it working, log into its web admin page (port 1220), allow movie serving to everyone (no authentication)
3) Test it with Quicktime player: use "Open URL" and try
rtsp://your.server/sample_50kbit.3gp
(sample movie provided with DSS) this should play on your desktop Quicktime player. If not, sort it out. It looks like crap, but that's mkay.
4) Get your VX8100 (haven't tried others yet) and make sure it plays video ok from the Verizon ('Get Flix' etc) site.
5) Write Brew app that creates a file in your app directory called "test.url" that is a text file containing a single line, the exact same rtsp: link you used above.
6) use ISHELL_CreateInstance to get a AEECLSID_MEDIAMPEG4 player.
7) use IMEDIA_SetMediaData and tell it to play your file (MMD_FILE_NAME mode) called 'test.url'.
8) Register your Notify function and hit IMEDIA_Play. Wait for a couple of seconds and cross your fingers.
Potential problems;
* RTSP URL's need the spaces escaped (" "=>"%20" etc) of course
* Ummm..
Ok, when you've got that working with the test movie, you will want to encode your own. If you snag some 3GP video off the web, it may well play OK in Quicktime directly, but when you try an RTSP link in the QT player, you get "Bad media" kinda error. If you sniff the packets you'll see the DSS server is refusing to serve it. This is b/c 3GP files for DSS need to be 'hinted' (i.e. add info about how to stream it).
* 3GP Hinting (you should have a working 3GP file converted using other tools, but DSS won't stream it)
Go get MP4Box (linux, part of the GPAC package, see SourceForge) and compile it.
Use;
MP4Box -isma -hint Your3GPFile
This will overwrite the source file, but DSS should then stream it.
The rest of it you can work out for yourself. ;-)
Fabulisticatious!
FL

RTSP 3GP streaming in a nutshell:
You need a QTV enabled phone (Qualcomm TV? Whatever). I used a VX8100.
Install Quicktime 6 or above.
1) For testing I used Apple's Darwin Streaming Server ("DSS" - free, runs on linux, google it). Set it up, make sure port 554 TCP/UDP is open to your server.
2) Get it working, log into its web admin page (port 1220), allow movie serving to everyone (no authentication)
3) Test it with Quicktime player: use "Open URL" and try
rtsp://your.server/sample_50kbit.3gp
(sample movie provided with DSS) this should play on your desktop Quicktime player. If not, sort it out. It looks like crap, but that's mkay.
4) Get your VX8100 (haven't tried others yet) and make sure it plays video ok from the Verizon ('Get Flix' etc) site.
5) Write Brew app that creates a file in your app directory called "test.url" that is a text file containing a single line, the exact same rtsp: link you used above.
6) use ISHELL_CreateInstance to get a AEECLSID_MEDIAMPEG4 player.
7) use IMEDIA_SetMediaData and tell it to play your file (MMD_FILE_NAME mode) called 'test.url'.
8) Register your Notify function and hit IMEDIA_Play. Wait for a couple of seconds and cross your fingers.
Potential problems;
* RTSP URL's need the spaces escaped (" "=>"%20" etc) of course
* Ummm..
Ok, when you've got that working with the test movie, you will want to encode your own. If you snag some 3GP video off the web, it may well play OK in Quicktime directly, but when you try an RTSP link in the QT player, you get "Bad media" kinda error. If you sniff the packets you'll see the DSS server is refusing to serve it. This is b/c 3GP files for DSS need to be 'hinted' (i.e. add info about how to stream it).
* 3GP Hinting (you should have a working 3GP file converted using other tools, but DSS won't stream it)
Go get MP4Box (linux, part of the GPAC package, see SourceForge) and compile it.
Use;
MP4Box -isma -hint Your3GPFile
This will overwrite the source file, but DSS should then stream it.
The rest of it you can work out for yourself. ;-)
Fabulisticatious!
FL

How can I be qualified in order to get the coveted "IMediaMPEG4 headers"?

How can I be qualified in order to get the coveted "IMediaMPEG4 headers"?

I have not found them necessary. What I posted above compiles on Brew 2 for me.

I have not found them necessary. What I posted above compiles on Brew 2 for me.

You don't really need anything beyond the base SDK unless you want it to work in the Simulator or enable RTSP recording.

You don't really need anything beyond the base SDK unless you want it to work in the Simulator or enable RTSP recording.

Thank you FlyingLizard. RTSP is working on my VX8100 also.
Thank you mohlendo for the clarification.

Thank you FlyingLizard. RTSP is working on my VX8100 also.
Thank you mohlendo for the clarification.

Sweet. Pls confirm whether you can play stream beyond 120 seconds. I had issues with it but have not been back that way recently to experiment further. Thanks.

Sweet. Pls confirm whether you can play stream beyond 120 seconds. I had issues with it but have not been back that way recently to experiment further. Thanks.

I have the same issue. what is with the mpeg4 player, that it always quits on its own after a few min? anyway to circumvent that?

I have the same issue. what is with the mpeg4 player, that it always quits on its own after a few min? anyway to circumvent that?

I am unable to play video beyond 120 seconds also.

I am unable to play video beyond 120 seconds also.

I am playing RTSP feed on razor and MOT E815 and after 120 secs video stops playing on both the devices . any idea ??
Thanks alot

I am playing RTSP feed on razor and MOT E815 and after 120 secs video stops playing on both the devices . any idea ??
Thanks alot

I am playing RTSP feed on razor and MOT E815 and after 120 secs video stops playing on both the devices . any idea ??
Thanks alot

I am playing RTSP feed on razor and MOT E815 and after 120 secs video stops playing on both the devices . any idea ??
Thanks alot

My suspicion would be that this is a network/carrier limitation, but as I've said multiple times, RTSP through BREW is not officially supported and you generally shouldn't rely on it working.

My suspicion would be that this is a network/carrier limitation, but as I've said multiple times, RTSP through BREW is not officially supported and you generally shouldn't rely on it working.

Hi all,
I am working o streaming. MY DSS is working fine with quick time and other players. I recorded one video from the mobile and tried to again stream back to phone using DSS(Using Motorola V3C)
The streaming is working properly,but not device is not able play either audio or video.
I triead all the option posted earlier.
My question is
"How we can decide media (audio or video) codec for a device."
Please helpe out..
Regards,
Amriatanshu Agrawal

Hi all,
I am working o streaming. MY DSS is working fine with quick time and other players. I recorded one video from the mobile and tried to again stream back to phone using DSS(Using Motorola V3C)
The streaming is working properly,but not device is not able play either audio or video.
I triead all the option posted earlier.
My question is
"How we can decide media (audio or video) codec for a device."
Please helpe out..
Regards,
Amriatanshu Agrawal

Try with 3GP or 3GPP format, it should work on Razr (I didn't have any problem).

Try with 3GP or 3GPP format, it should work on Razr (I didn't have any problem).

max wrote:You don't really need anything beyond the base SDK unless you want it to work in the Simulator or enable RTSP recording.
I can play the video file on simulator but the above rtsp streaming video I cannot able to play on simulator. Can you please help me out?
Thanks In Advance.
Swami

max wrote:You don't really need anything beyond the base SDK unless you want it to work in the Simulator or enable RTSP recording.
I can play the video file on simulator but the above rtsp streaming video I cannot able to play on simulator. Can you please help me out?
Thanks In Advance.
Swami