RTSP reading - Windows Mobile Development and Hacking General

Hi,
I'm currently developing an application that browses a server to get a list of rtsp streams (webradios), using C# and the .Net CompactFramework.
What would be the easiest way to read those rtsp streams ?
My first guess would be to launch a third party player, pushing the stream url as a command line parameter, but I couldn't find any free rtsp player that accept arguments on the command line.
The other way I'm thinking of would be to play the stream directly from within my program. But the audio APIs from the .NetCF seem pretty limitted.
Thanks in advance.

UP
Anyone has an idea ?

I am not sure if this would work but try it
HTC Real Player

Related

Live video streaming from pocketpc to pocketpc

Has anyone got an idea how to use one pocketpc to act as an webcam and stream the video to another pocketpc (Both wm5) over a wifi or gprs connection?
Been searching for a solution several weeks now.
Webcamplus (ateksoft) almost does the job. It can stream from a pocketpc to any computer connected on the web, but can't seem to stream it to another pocketpc directly.
(H)
www.comvu.com
Server there makes streaming possible
The comvu streamer encoder is nice, but the service is bloated and too expensive. The typical american/canadian $$$ ****. I'm trying to get things working with a current build of VLC for WinCE.
Actually the Ateksoft solution looks nice. If it is a standard streaming protocol it should be possible to play the stream with coreplayer or VLC for WinCE.
Update:
I had a closer look to both apps. Ateksoft WebcameraPlus sends full jpeg images to PC via TCP to port 2047. Framerate is around 1.5-2.5 fps. Not impressive.
The pocketvu executable includes all DLLs it needs and the core is made of VCTMID_CODEC.dll made by HTC. I think it is possible to reroute traffic directly to PC or Mobile device instead of to the Comvu server. I think it'll be possible to stream directly from the mobile to VLC or Coreplayer. Must do some sniffing to see if that's really feasible.
Nice work!
Will you keep me posted here?
We've been experimenting with comvu here, but connections are really unstable.
With sniffing you should try to find out whether it uses DNS to find the comvu host to send the stream to. If that is the case one can use DNS spoofing to reroute the traffic to your own host. Next thing to do is to find out what streaming protocol and which container is used. The easiest way to do that is to open the rerouted stream in VLC and try all stream formats (http, rtp, udp, ..). VLC will recognize the codecs automatically. If your lucky they don't use a proprietary protocol. Once you can open their stream it is easy to redistribute it to your clients. If you can sniff the traffic, it is also possible to find out what protocol and codecs they use by analyzing the packets. I don't have much time lately so if you don't wonna wait for me then hook up your wlan router and PC to a hub and install Wireshark on the PC and start sniffing. There are also sniffers running on your mobile device, might be a bit easier.

10$ for helping me.

Hi!
Im currently searching for this application:
http://www.youtube.com/watch?v=E2ZflgE4kXs
Its a program that lets you recive Dreambox restreams from a computer, i think its name is Mobile Grab Client but i can't find it anywhere. And iam not searching for TCPMP.
I will give 10$ to the person that first writes me a working link or something where i can find THIS application and its server. Payment will be done with Paypal.
The reason for posting this in this forum is because i have a smal memmory of reading about it here first.
//Mautana
hope this helps : http://translate.google.com/transla...cket+pc&hl=en&client=opera&rls=en&hs=XaU&sa=G
Well i already know how to stream, i need the application that changes channel and also to start streaming in one application.
Hi,
Is this the one : MobileGrab
(Its in french)
Thats a negative! Keep on searching folks!
Mautana said:
Well i already know how to stream, i need the application that changes channel and also to start streaming in one application.
Click to expand...
Click to collapse
The Mobile Grab client in the youtube video is launching TCPMP in full screen.
TheMostToys said:
The Mobile Grab client in the youtube video is launching TCPMP in full screen.
Click to expand...
Click to collapse
I already know that, as said iam not searching for TCPMP. The app iam searching for is The Mobile Grab client!
so it's an application which selects the correct url and opens it up on TCPMP.
where do we find it ?
anyone interesed ?
i know this post will be deleted & i will most likely be called an idiot but it your trying to broadcast your television from home and tune it on on your mobile device....then you can use www.slingbox.com
nobody will call you idiot, but it is not a good way to do it.
if we have capability of directly connecting and streaming why put another node ?
so nobody has this little piece of software ?
Why buy a slingbox when the Dreambox seems to be capable of doing it itself? Any way, long time has passed and my quesion still is, does any one know how to get this software?
yep. still waiting...
Closest thing i could find...
http://m4rtin.dnsalias.net/re-stream/index.php?page=installation
From what i've seen with this app, it does what you want it to do.
Since it's opensource and written in PHP, i think it can be modified to contain pre-selected settings just for PDA viewing.
Btw, i think you can forget about just a single program without a middleman doing the transcoding, since the Dreambox is incapable of transcoding its stream.
What the Youtube video could be is a website showing links to all the channels, and by clicking on them it launches TCPMP with the stream.
moullas,
you are wrong. why ? because Dreambox uses mpeg2 streaming which is the easisest codec to decode for any client type. That's why a middleman is not required.
And if we had the VLC player for ppc, we could watch directly Dreambox channels.
Here is the VLC player for PPC
http://www.pocketpcfreeware.com/en/index.php?soft=1545
unfortunately it does not run on Hermes (as far as I remember)
that's why I tried to compile it from source a while ago but I couldn't succeed.
if it runs well on anyone's wm6 device , please let us know.
mrmrmrmr said:
moullas,
you are wrong. why ? because Dreambox uses mpeg2 streaming which is the easisest codec to decode for any client type. That's why a middleman is not required.
And if we had the VLC player for ppc, we could watch directly Dreambox channels.
Click to expand...
Click to collapse
What do you want VLC to do that TCPMP or CorePlayer cannot?
Well that restreamer seems to be okay, but its not as simple as that application that he uses. Maby i should try it... The problem for me isnt that it need to be compressed true another computer but that i need the simplicity from the application, cklick and play!

Streaming video from vlc to G1?

I am trying to restream some online windows formatted video streams to my G1 using VLC.
I have tried to get this working myself, with the help of google.
But I just can't get it working.
This should work... in theory:
cvlc -vvv "<url>" --sout '#transcode{soverlay,ab=42,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=328,height=288,fps=15,vb=200,venc=x264{vbv-bufsize=500,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,trellis=2,direct=auto,qcomp=0.0,qpmax=51}}:gather:rtp{mp4a-latm,sdp=rtsp://0.0.0.0:8000/news.sdp}'
I have alswo tried streaming over http: std{access=http,mux=ts,dst=0.0.0.0:8000}'
Whenever I try, Meridian just says "sorry, this video cannot be played."
This is the output from logcat:
I/ActivityManager( 97): Starting activity: Intent { data=rtsp://xx.xx.xx.xx:8000 flags=0x10000000 comp={org.iii.ro.meridian/org.iii.ro.meridian.VideoPlayActivity} }
I/ActivityManager( 97): Stopping service: org.iii.ro.meridian/.MusicPlaybackService
I/HTCIMEService( 260): [finishInput]:
W/ActivityManager( 97): Unable to start service Intent { action=com.htc.android.mail.eassvc.EASAppSvc }: not found
E/HTCIMEService( 260): ^^^^^^^^^^^^^^^^^^^^^^Fail to bind EAS AppSvc!
W/ActivityManager( 97): Unbind failed: could not find connection for [email protected]
V/VideoView( 6200): reset duration to -1 in openVideo
I/ActivityManager( 97): Displayed activity org.iii.ro.meridian/.VideoPlayActivity: 891 ms
E/PlayerDriver( 37): Command PLAYER_INIT completed with an error or info PVMFFailure
E/MediaPlayer( 6200): error (1, -1)
E/MediaPlayer( 6200): Error (1,-1)
D/VideoView( 6200): Error: 1,-1
E/MediaPlayer( 6200): stop called in state 0
E/MediaPlayer( 6200): error (-38, 0)
W/MediaPlayer( 6200): mediaplayer went away with unhandled events
W/InputManagerService( 97): Window already focused, ignoring focus gain of: [email protected]
D/dalvikvm( 97): GC freed 31607 objects / 1294288 bytes in 475ms
honestly i just use ORB. It streams and converts the video(files, music, pictures, etc) on the fly to your phone. It is about as easy as it gets.
ggolemg said:
honestly i just use ORB. It streams and converts the video(files, music, pictures, etc) on the fly to your phone. It is about as easy as it gets.
Click to expand...
Click to collapse
orb is pretty terrible in that it is restricted to windonkey on the server side. VLC is open source and probably the #1 media server/player for *nix, though also works for the donkey.
@DarkFoxDK: have you been able to transcode a static file for playback using VLC? I haven't tried with VLC yet (just mencoder). That is definitely a first step, to make sure that the encoding you are using is proper for the device. When you have that working, then try with the streaming. Is meridian even capable of receiving streaming video? I suppose that the best approach would be to develop a VLC-port for android.
ggolemg said:
honestly i just use ORB. It streams and converts the video(files, music, pictures, etc) on the fly to your phone. It is about as easy as it gets.
Click to expand...
Click to collapse
Windows is just not an option... besides, I don't want to rely on a 3rd party service.
lbcoder said:
@DarkFoxDK: have you been able to transcode a static file for playback using VLC? I haven't tried with VLC yet (just mencoder). That is definitely a first step, to make sure that the encoding you are using is proper for the device. When you have that working, then try with the streaming. Is meridian even capable of receiving streaming video? I suppose that the best approach would be to develop a VLC-port for android.
Click to expand...
Click to collapse
I haven't actually tried that yet, I'll do that as soon as I have the time.
Meridian is using the video view-thing in android like all the other apps, so yes. (Also, there's an "Open URL" option, with rtsp:// in it as default).
Yes, the mobile equivalent of VLC is CorePlayer and they're working on it: http://forum.corecodec.com/viewtopic.php?f=22&t=1327. I'ts pay-for but it'll play pretty much anything you throw at it (within limits).
Yes, it does indeed play with no problems, when I save it to a file.
Using std{access=file,dst=/home/martin/test.mp4}
I really have no clue where to go from here.
I had a similar adventure trying to get VLC streaming working a few months back. I pretty much got to the same spot you are. I then found that what Android supports is RTSP, not RTP streams (or at least that is how I interpreted it). From how I understood it RTSP is basically just a control channel for delivering RTP and other streams. Luckily VLC has VLM which is supposed to do RTSP stream management. You get to it in vlc->tools->VLM Configuration. I played around with that for a few hours, but never got it actually streaming. I got discouraged when I found someone reporting that RTSP was broken in the current 1.0 android build, but I never went back and tried again with cupcake. This is all from memory so might not be totally accurate. If you do figure it out, please post! If I get to hacking on it again I will do the same.
I almost got this working...
I set up Darwin Streaming Server and the sample files work (except for the h264 ones..).
But I just can't get VLC working...
According to this thread it seems to be a problem/bug with VLC: http://forum.videolan.org/viewtopic.php?f=4&t=58616
did any of u guys try that feature in gmote ?? it has an otion of playback into phone..i tried with a mp3 file but it took me ages to buffer a 3mb file tho...
Dare{D}evil said:
did any of u guys try that feature in gmote ?? it has an otion of playback into phone..i tried with a mp3 file but it took me ages to buffer a 3mb file tho...
Click to expand...
Click to collapse
It doesn't work outside your own LAN, so it doesn't really work for that purpose..
GMote will stream over 3G, just follow the steps in its FAQ to forward ports and you're all set.
innerspace said:
GMote will stream over 3G, just follow the steps in its FAQ to forward ports and you're all set.
Click to expand...
Click to collapse
Ok, But can it take a live video stream and transcode it to a digestible format for the G1?
Anyways, I got restreaming working with these settings
Code:
vlc rtsp://streamer-01.dr.nordija.dk/dr1lowmp4 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320,height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=0.0.0.0,port=1234,sdp=file:///usr/local/movies/t.sdp,mp4a-latm}"
DarkFoxDK said:
Anyways, I got restreaming working with these settings
Code:
vlc rtsp://streamer-01.dr.nordija.dk/dr1lowmp4 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320,height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=0.0.0.0,port=1234,sdp=file:///usr/local/movies/t.sdp,mp4a-latm}"
Click to expand...
Click to collapse
Can you please give more specifics on this? I am desperately trying to get the output from my Linksys WVC54GCA visible on my HTC Hero and I think this may be the key. The cam already outputs RTSP stream which I can view in VLC but Android players won't open it.
I assume that I could just substitute my source video for the one you're using, but then how would I view this on my device? Is there a specific URL I would use? (Note: my device, camera, and VLC are all on the same LAN)
Thanks for your help, I've been pulling my hair out over this, I'm pretty handy with a Linux shell but am not very knowledgeable about this streaming stuff.
OK, I figured out the last bit. I just need to replace the sdp= part with an rtsp:// URL, and then that's the URL I send to Meridian Player or Doga Player on my Android device. So the full vlc command is:
Code:
vlc -v http://<CAMERA_IP>/img/video.asf -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320,height=180,acodec=none,ab=64,vb=384}:rtp{dst=,port=1234,sdp=rtsp://<COMPUTER_IP>:1234/stream.sdp,mp4a-latm}"
So then in Android I open the rtsp://<COMPUTER_IP>:1234/stream.sdp URL, which I assume is not the real data stream but rather is just info on how to open the video and audio streams.
It still doesn't look great but at least it's working, I'll mess around with the rest of the settings to try to get it to look decent (I'm guessing the closer I can get it to the original stream the better it will look).
Thanks for posting this, once I get it all working the way I want I'll post the final solution I came up with...
Happy streamer
I've been streaming media files and live satellite feeds with VLC to all my mobile devices for several years.
I just want to share my settings with you guys so you could try out what i've been happy with for many years.
I'm using VLC 0.8.6i and have all the settings in a m3u file. For media files replace the <media> with what you would like to stream.
The settings gives good quality stream and work great for streaming on a 3G and HSDPA network.
Code:
#EXTM3U
#EXTVLCOPT:sout=#transcode{vcodec=div3,vb=650,width=400,height=240,acodec=mp3,ab=96,channels=2,fps=25.0,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=:88}} :sout-all
<media>
This m3u file can be used for streaming all types of media just replace <media> with what ever you like to stream.
Happy streaming.
bulldog64 said:
Code:
#EXTM3U
#EXTVLCOPT:sout=#transcode{vcodec=div3,vb=650,width=400,height=240,acodec=mp3,ab=96,channels=2,fps=25.0,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=:88}} :sout-all
<media>
Click to expand...
Click to collapse
hy bulldog64!
thx for that input - but i do not quite get it - do you http-serve the m3u file to the android-device via apache or do you just launch it on the server? when i execute your m3u-file it plays my video, but vlc outputs:"cant find file.."<your code>". how is it supposed to be set up? whats the url to call on the android-broswer (<ip>:88/<??which file>) ? thanks a lot! i have been trying to stream localy (from localhost to localhost) for some hours, but vlc´s syntax is too much for me, and after all i dont know the basics of streaming..
tinyDVR app works
tobiasly said:
OK, I figured out the last bit. I just need to replace the sdp= part with an rtsp:// URL, and then that's the URL I send to Meridian Player or Doga Player on my Android device. So the full vlc command is:
Thanks for posting this, once I get it all working the way I want I'll post the final solution I came up with...
Click to expand...
Click to collapse
Was hoping for a update here for a while. Looked all over for a solution... And just tonight found one!
TinyDVR (free via market)!
All other apps failed miserably. (At least with the WVC54GCA linksys cams) Even that 'IP cam viewer - lite' app failed. (i wasnt willing to shell out 10 bucks for the pro.)
Anyway! Yay
i found this to work locally:
Code:
vlc <path-to-video-file> :sout=#transcode {vcodec=h264,vb=256,width=320,height=280,scale=1,acodec=mpga,ab=64,channels=2}:duplicate{dst=std{access=http,mux=asf,dst=:8085}} :sout-all
but now, which (free) client on android can open streams ?? got a galaxy and the browser wont launch the player.
You can use Dogaplayer to get the stream.
Do you have the option with the M3U file of Bulldog64 working?
I have the same problem:
VLC plays the file, but doesn't stream anything if I start the M3U on my server.
For me it would be great to get it working!
I have made a M3U file with a playlist of all my DVB-T TV card channels.
So when it's possible to get the stream code working in the M3U file , I can watch and zap TV on my mobile.
hy
no dogaplayer wont access 3g on my galaxy s - "cant play video"- i got no network activity, so i assume it has trouble getting out to the network. so far i have found "vlc stream&convert" an app that can remote control vlc, browse directories and start streming and play the stream. on my galaxy s it starts streaming (network activity, vlc log file shows start) bit it doesnt show any video or audio.
Try TCP port 554 for streaming and open your dynamic UDP ports (I think all > 41000)in your router. This works for me. I use Vodafone as a provider and they only allow rtsp video streams over TCP port 554. Music (mp3) streams is also possible over http.
Have you any results with M3U playfiles?
I use VLC Stream & Convert too, but if I select the M3U playlist file and start VLC web interface on my PC server, I see in Stream & Convert all information about the actual playlist file, but I receive no video and sound signal. Other video files (such as MPG, MP4) works OK, so it is not a settings problem. I don't have a credit card, so I don't know if you have to have the Pro version for this. Can anyone tell me?
This is also the reason I want the M3U file to contain streaming & convert settings, so I can view the stream with Dogaplayer, so without the use the app. Stream & Convert.

Using native AMR codec

Hi
This pops up from time to time on google but I have not seen any info on anyone beeing successful with this.
What I want to do is use the embedded codec in a Windows Mobile phone to encode/decode AMR-nb data.
There are some posts like this one:
http://forum.soft32.com/pda/AMR-WB-codec-ftopict62049.html
That lists the available dll functions but I have not found info about someone managing to use them.
Anyone here know?
/Johan
I've been bugging Kinoma to do this
But they claim the codec is "locked". They say the phone restricts third party app access to it. That's why phone shot videos played with Kinoma dont play the audio.

RTSP streaming on X10

I have just bought this phone and I am trying to figure out if this phone support Real Time Streamin Protocol (RTSP). I was told that iphone can do it via ip cam but not sure about android phones. Anyone knows?
U can use Applications like Lukluk or Stream Media Player for this.
Thanks, the Stream media player works wonderfully but I can't key in the rtsp address using Lukluk. Any suggestions?
i can't find Stream media player on the market any download link? tnx

Categories

Resources