• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

VLC Stream & Convert

This VLC Player software is a slippery slope... Like everyone else I've not managed to make it work. For awhile I was at least able to establish the connection between my puter (W7 Home premium 32-bit) and my phone (Droid X, 2.1) but not able to get into the folders. Then I saw a note saying that the RTSP port should be at 5554 instead of 554...and now there's no connection. I've switched the ports back and forth, restarted my phone and puter...and no luck.

Can we go to the developer's home en masse with a bullhorn and demand he talk to us? :) This is crazy.
 
Upvote 0
I have reports mainly from Galaxy S and Desire users that they cannot stream any video over rtsp after the update to v0.5.x. I cannot reproduce this on my Nexus One which makes it hard to debug. I have been trying hard today and already reverted many parts of the code to v0.4.42. It would help to get some more Android logcat output (aLogcat app) or from the logger interface of VLC.

VLC can be started with a batch command like this:

vlc.exe --intf=http --http-src=http/ --http-host=0.0.0.0:8080 --extraintf=logger --verbose=2 --no-quiet --quiet-synchro --file-logging --logfile=vlc-log.txt --language=en --no-interact

This will activate the http interface and write all logs to a file.

Regarding the other big issue with the rtsp port I'm planning to make this more easy to setup in one of the next releases. Currently 5554 seems to work best for many of you, however, when streaming over 3G only port 554 works for me and in my home network I can use any rtsp port. If you have troubles it may be a good idea to allow all ports for VLC in your firewall settings.

And one brief note about streaming over 3G network: Don't rely on the .hosts file!! Restrict the access to your computer by firewall. On Windows go to Control Panel > System & Security > Windows Firewall > Advanced settings > Inbound Rules and in your VLC media player rule (TCP) add the remote addresses that are allowed to connect to your PC, e.g. 192.168.0.0/16 and the external IP of your device.
 
Upvote 0
Hi travel,

I downloaded an update yesterday which I guess is the one you are referring to - still no joy on the video front - I have tried all the permutations in both portrait and landscape mode.

Also tried a variety of ports including 554 and 5554. I even tried running with the firewall off - so I guess that's not it either.
 
Upvote 0
EDIT: Solved, as such. I can load up the playlist as a file renamed to .mp3 under the browse tab. It's kind of weird, but it works now.

OK, I don't get what could possibly be holding me back from having VLC stream my MP3s to my Droid. All I get on VLC S&C is Cannot play: too many errors. I can't figure out the exact error or issue. I used the debug mode in VLC S&C and this is the error code it gave me ERROR -2147483638. I dunno if that helps but it's the best I could do. I can still control the player remotely, but I get no audio streaming to the phone. It doesn't even work when connected to it through the local network, so it's not a latency issue as far as I can tell.

I just can't even figure out where to possibly track down the problem. If anybody here can help me out, it would be greatly appreciated.

Thank you.

Phone: Droid1 on 2.2
PC: Ubuntu 10.10, VLC 1.1.4
 
Upvote 0
And this is the output:


-- logger module started --
main error: option syslog does not exist
main: creating httpd
mp4 warning: unknown box type iods (incompletely loaded)
mp4 warning: unknown box type ctoo (incompletely loaded)
mp4 warning: elst box found
mp4 warning: control query 14 unimplemented
main warning: no more input streams for this mux
mp4 warning: unknown box type iods (incompletely loaded)
mp4 warning: unknown box type ctoo (incompletely loaded)
mp4 warning: elst box found
mp4 warning: control query 14 unimplemented
avi warning: unknown chunk (not loaded)
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
main warning: no more input streams for this mux
avi warning: unknown chunk (not unloaded)
avi warning: unknown chunk (not loaded)
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
avi warning: unknown chunk (not unloaded)
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
main warning: no more input streams for this mux
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL

Help any?
 
Upvote 0
I see that, too. I also can't get any video on my Desire (audio works ok) with version 0.5.4.


Video works with version 0.5.5 (thanks!). Problems with a/v sync, seek does not work. Much better than nothing :)

I have a digital tv receiver which can stream out transport stream video which can be viewed with VLC. Is it possible to stream this video to Android in real time? I tried adding a .m3u file with the streaing URL in it, but when I browse the files from Android, I can't see this file at all. However, if I browse the same directory in VLC, the file is visible and if I select it, I get the stream from the tv receiver.
 
Upvote 0
The newest release seems to have fixed it for me. I was always able to get audio but now video comes in too! Both picture and sound are great for me. I haven't watched too many videos for a long period of time so hopefully the sync holds up when watching/seeking.

I upgraded to pro license as soon as I got it working. Now my only issue is with the VLC .hosts file. Even if I put just 127.0.0.1 in the .hosts file, I'm able to connect from any IP. I've changed my ip numerous times by turning 3g on and off but I'm still always able to connect. Does anybody know why that is?

Lastly, once I do get the .hosts file to correctly restrict access, I'd like to set up an SSH tunnel for all the streaming. I set up a SSH server on my home computer which I can connect to with ConnectBot on my phone. I forwarded ports 8080 and 8081. I'm able to browse all files and even stream music through SSH.

My problem is that you can't forward port 554 with connect bot because it's < 1024. That sucks because my phone seems to only be able to receive RTSP over 554. Anybody know of a workaround for this?

Gonna go donate some money to TravelDevel. Thank you man, you rock.

Btw this is on Windows Vista, VLC 1.1.2, VLCSC 0.5.5
 
Upvote 0
@biterror:
Unfortunately audio sync has always been an issue. It was better when VLC 1.1.0 came out but still not great. Sometimes it's synced for a while, then suddenly the audio lags for 1 or 2 seconds. Try to tweak fps (usually original frame rate reduces the problems?), audio sync option (maybe off is better?) and other settings. With H.263 codec audio sync works better for me btw.

@painless:
Please keep us updated about the tunneling. I like to put some instructions about that on the app website if it works well.
I have also recognized on Windows that the .hosts file is ignored under certain situations. Try to start VLC with the lua http interface:
Setup - TravelDevel

@max-greece:
"Cannot set video display." is a known issue for X10, My Touch, ... What's your device and Android version?
 
Upvote 0
I might be missing something, but I can't get it to connect. I can if I am sitting in my house and it is over wifi, but I want to be able to stream things over 3g and 4g. All I get is an error saying cannot connect to the ip address I enter. I know this is something simple, I'm just missing it!! Help please!!

Did you open all the correct ports in your router? If you can't even connect to the VLC server then either your ports are blocked or you didn't edit the .hosts file. By default I believe .hosts only allows local connections. Add the external IP your connecting from to the file and you should be able to connect.

A few posts ago TravelDevel talks about issues with the .hosts file on windows. He suggested starting VLC with the lua http interface. That worked perfect for me. There's a link in his post. Now I'm able to restrict access to whomever I like.
 
Upvote 0
I'd like to set up an SSH tunnel for all the streaming. I set up a SSH server on my home computer which I can connect to with ConnectBot on my phone. I forwarded ports 8080 and 8081. I'm able to browse all files and even stream music through SSH.

My problem is that you can't forward port 554 with connect bot because it's < 1024. That sucks because my phone seems to only be able to receive RTSP over 554. Anybody know of a workaround for this?

Still can't stream RTSP through SSH. I've been streaming music through ssh fine now though for the past couple of days. I've tried numerous ports... 8080, 8081, 7070, 8554 (read this is alternate RTSP port), and a bunch of other random ports. Until I can find a port above 1024 that my phone can accept RTSP on, I'm out of luck.

Does anybody know of other ports for RTSP? What ports work on your phones? Even if we have different phones I'm willing to try anything at this point.
 
Upvote 0
Still can't stream RTSP through SSH. I've been streaming music through ssh fine now though for the past couple of days. I've tried numerous ports... 8080, 8081, 7070, 8554 (read this is alternate RTSP port), and a bunch of other random ports. Until I can find a port above 1024 that my phone can accept RTSP on, I'm out of luck.

Does anybody know of other ports for RTSP? What ports work on your phones? Even if we have different phones I'm willing to try anything at this point.


Ok I just did even more testing trying to tunnel RTSP through SSH. WITHOUT tunneling, now I can get RTSP over port 5554 over both wi-fi and 3G. (For it to work over 3g, use DroidGnome's workaround of enabling wi-fi antenna without connecting to wi-fi). I couldn't get this to work before but now I can stream over 5554 on wifi and 3g if I connect to the VLC server directly. (Maybe v0.5.7 fixed it for me or I was doing it all wrong before.)

Theoretically I should be able to forward port 5554 with no problems, but it's not working. When I tunnel rtsp through 5554, the screen enlarges like it's sizing the video and the counter goes up. After around 15 seconds I get 'Buffering failed.' After I click stop it keeps flashing ERROR -38/0 until I go menu -> stop and exit.

I dunno why I can tunnel ports 8080 and 8081 for audio just fine but RTSP doesn't work.
 
Upvote 0
Traveldevel, one thing I want to do is to stream live TV to my phone. I have a setup that uses Windows Media Encoder that I used to use with my WinMo phone, but since WMV streaming isn't supported by Android I've been working on a method using VLC.

But if this functionality could be added to your app it would definitely be cleaner. Instead of picking a media file to stream, you would select a tuner to capture from. Even if the channels or inputs had to be preconfigured that would be fine. For me, I stream from one of two channels using one capture card.

Do you think something like this could be added to your app? Thanks!
 
Upvote 0
Hey TravelDevel,
I dunno if this will help much with solving the SSH issues but here's the log from VLC when I tried to play a video tunneled through SSH.

-- logger module started --
lua: Lua HTTP interface
main: creating httpd
main warning: client still connected
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
main warning: client still connected


Here's the log when I played a couple over wifi with no problems:

-- logger module started --
lua: Lua HTTP interface
main: creating httpd
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL


The only difference I see is the 'main warning: client still connected'

I hope that helps a bit. Thanks
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones