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.
UPDATE: VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded. There is still a tiny bit of audio lag, but no where near as bad as my methods below.
I am on CM6 nightly.
--- original post ---
Just wanted to share what I use to stream both pre-recorded and live video to the native video player on the EVO. I am using the latest Ubuntu 10.04 with VLC and a Video4Linux compatible BTTV card. The settings I have here are 320x180 res at a very low bitrate as I use this mostly over 3G. Adjust the 'width' 'height' 'vb' and 'ab' to your pleasure.
This is a work-in-progress and any other methods or contributions are greatly appreciated!
To play a movie:
Code:
# vlc -v video.avi -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=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my Dish Network feed (Composite):
Code:
vlc -v vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=1 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 -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=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my home security cameras (ATSC US Cable #104):
Code:
vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=0 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 :v4l2-tuner=0 :v4l2-tuner-frequency=673250 -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=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
------
Start Movie Client Stream on Android:
- Open browser
- Browse to “rtsp://server:4555/stream.sdp”
- Watch stream!
** Also worth noting the VLC HTTP interface seems to be working partially and apparently you may be able to setup playlists and such within there. I mainly am using this method to view live content so I havent explored much of that yet.
** Someone with more time than I could theoretically whip up a simple PHP page that enumerates a directory and launches vlc for video library type of support.
Thanks OP.
Forgive my ignorace. But for stored content, this doesn't start the stream until the Android client opens it, right? Not sure since you say that you usually use it for live streams.
I've been looking for a way to stream movies from my 7MC box to the EVO. This might work if the windows version of VLC has the same function. What kind of quality can you get from a stream on the local network vs. WAN?
Well I've been trying this on the windows machine and I'm starting to think this is not a very polished solution. What I would like is to be able browse the media in folders and start a video stream all from android. I'm not sure how possible this is. I have found so far:
Gmote - can only stream one format I think. I don't feel like converting
Orb - closer, but I'd really like to do all this through the home wifi network, not involving an orb server at all. Plus the video quality is a bit less that what I was hoping for.
VLC - can supposedly transcode on the fly from nearly any format to mp4 to play on Android. But I don't see a way to start a stream from android. I can use the HTTP interface to start the player but I don't see how to start a stream or browse more than a playlist (can't create one).
Maybe I missed something.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Search market for AndroStream... Supposedly an app that uses VLC for streaming AND lets you initiate streams from your phone. I tried it but couldn't get it to stream over WAN.
nhutpham said:
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Click to expand...
Click to collapse
Thanks for the tip. I'll try it out. Will this work on a sense Rom tho? Might have to flash cm6
nhutpham said:
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
Click to expand...
Click to collapse
I'm just running with the stock settings for the most part. Changed the resolution to whatever my bandwidth can tolerate at the time and make sure audio sync is turned on.
Sent from my PC36100 using XDA App
Got to try this app last night. Wow, very cool. Easy setup (visit the devs website), decent video quality, easily browse the pc for media. Dev has a donation version that i'll pick up for sure.
Another +1 for this app. Wish it did a better job with aspect ratios, but it still streams most of my media great.
Sent from my blah blah blah blah
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
I know its 2 months old.
Anyone have any tips on setting up the VLC convert app to work with Mac. I am unable to find the file that the developer is suggesting I modify.
Thanks
engagedtosmile said:
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
Click to expand...
Click to collapse
Don't know if you've done it already but, turn on your wifi (no need to connect to a network, just turn on)
read this http://traveldevel.com/vlc-stream-convert/streaming-over-3g
Hi there,
I have just bought an i9000.
I would like to listen to online stream radio.
The content of the files is as followed:
For the ram file,
*rtsp://mslive01.881903.com/encoder/cr-02-rm*
For the asf file,
please see the attachement.
Anyone know how to get the phone to player?
What kind of app do i need?
I have tried realplayer and rockplayer, but they could not open them.
Thanks a lot!
Bao
Could anyone suggest a free app where I could play mms:// or rtsp:// ?
yxplayer streams video. Stream media player by psa should also play audio streams.
Sent from my GT-I9000 using XDA App
[Q] Can't play live radio on .asx files
Hey guys,
Anyone have an idea/app that can play an .asx streaming radio?
used to be able to do it with the hero from a link in yourmuze.fm but since changed to the SG nothing works.
Tried several live streaming radio apps like "A online radio". Also obviously tried just using the link in a the stations web page and that opens the video player that can't handle the file format.
any ideas?
thanks
Roi
I found it!!!
Sorry guys, my stupidity, I wan't straming from the mobile site of Yourmuze.fm ie //m.yourmuze.fm but from the main site and therefore the files being streamed were't set up for the mobile / android. now it all works fine, you just link your radio station stream ip address and the yourmuze server digests it for you format and download speed requirement.
perfect!!!
[Q] Internet radio recording app ?
The iphone has the Tunein radio app that allows playback of a huge number of internet radio stations and the ability to record them.
Is there an app like this for the Galaxy S ?
i usually do this on my PC in winamp
but i guess there could be times when you listen to something good on the phone and you want to grab it
it'll be hady to have an app to do this
BrooveAdore is one but still beta
Online radio help
I'm using An Online Radio, which I also used on my nexus one.
But on the SGS, I cannot manage to input the url of my favorite radio station.
If I try to search it from aor, it's not that effective, so I would prefer to just copy the radio link.
i save the links for my favorite streaming radio stations somewhere in my phone so that when i need to save them in a new app i just copy them and paste them. much easier than trying to type them out if you cant find them in the apps list
In order to play .asx files anywhere like in windows phones, windows media player, ipod, ipad, itunes, mp3 or mp4 player, android, samsung galaxy, a recommend solution is to convert .asx to other video or audio formats on Mac or Windows
Just google search Step by Step Guide on How to Convert ASX toASX to MP3, WMA, AVI, MP4, WAV
You will find a simple solution