vlc playing rtsp streaming strangeness

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Fluf
New Cone
New Cone
Posts: 3
Joined: 12 Jun 2011 21:23

vlc playing rtsp streaming strangeness

Postby Fluf » 12 Jun 2011 21:36

Heya,

I'm pretty darn sure this will be windows specific. I'm on Win7 Ultimate.
I'm trying to play back an rtsp stream on port 554 on the same computer vlc is running on.
No hubs etc involved. It should all be local net traffic. (I'm putting <hostname> instead of my actual hostname).

If I enter the address as : rtsp://<hostname>:554/stream3.0
I get Connection failed: VLC could not connect to <hostname>:554

But if I put : rtsp://127.0.0.1:554/stream3.0
OR rtsp://localhost:554/stream3.0

It works fine!
Unfortunately the software that calls VLC insists on using <hostname> format, so "Why don't you just put 127.0.0.1" isn't a solution.

To add to the insanity. If I use ZoneAlarm as a firewall instead of Windows firewall. It works. But ZoneAlarm doesn't seem to like Win7 much and sometimes fails to initialise at bootup. So I'd rather not go with that.
I've punched holes in the Windows firewall for VLC and the streaming server and it's still borked.
Even adding "127.0.0.1 <hostname>" to the hosts file in c:\windows makes no difference.

Anyone got a clue?
Thanks!!!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: vlc playing rtsp streaming strangeness

Postby VLC_help » 13 Jun 2011 18:50

Does anything else work with <hostname> ? Like http server or ...

Fluf
New Cone
New Cone
Posts: 3
Joined: 12 Jun 2011 21:23

Re: vlc playing rtsp streaming strangeness

Postby Fluf » 13 Jun 2011 19:07

Heya,
Yes, a few other things like local webserver (cassini) work fine with <hostname>
Am afraid it's a "fixed by god knows how".

I used the Default W7 Ultimate 64 SP1 Start v1.00.zip ~ Version 1.00 ~ December 16, 2010 from http://www.blackviper.com/Windows_7/registry.htm
To make sure nothing had tinkered with windows services.

I also changed to Comodo Firewall http://personalfirewall.comodo.com/free-download.html , which is a pain as it learns what's safe to run, but I found easier to configure than Windows Firewall.

And having done that! I reinstalled the MediaPortal TVservice I was trying to stream from and let it through the firewall.

Together, the above seems to have fixed it. But I'm still mystified why it failed in the first place, because it looks like a hostname resolution problem to me and I don't think any of the above actually changed how windows 7 resolves your hostname to it's IP address. O.o

Anyway .. who knows. The above might help others in trouble. BlackVipers site is a very useful reference IMHO. Kudos due.

carlesls
Blank Cone
Blank Cone
Posts: 24
Joined: 17 Jun 2011 13:42

Re: vlc playing rtsp streaming strangeness

Postby carlesls » 22 Jun 2011 13:28

could you show us the code?
thanks a lot.

Fluf
New Cone
New Cone
Posts: 3
Joined: 12 Jun 2011 21:23

Re: vlc playing rtsp streaming strangeness

Postby Fluf » 22 Jun 2011 13:54

Uhm what code?
I've done some digging and it seems to be related to how Win7 resolves the local hostname. You may have to have "use NetBios" turned on for your internet connection, and the Win7 hosts and lmhosts files have moved to C:\Windows\System32\drivers\etc if that helps? There's also a diabolically hidden and permission changed "hosts" file somewhere lurking in your winsxs folder. (Is it just me or is that pronounced "WinSucks"?)

In the end though I opened up the MpTV mysql database and changed the server name in there to 127.0.0.1 so vlc gets called with the right IP address.
Strangely some apps seem to be able to resolve the hostname just fine while others choke, and it *might* be related to upgraded security in Win7 networking.

Soz but that's as far as I've managed to kick this can so far.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 30 guests