LibVLC can't read stream from network
Posted: 25 Mar 2013 22:34
Hi,
This is my first post here. I'm new to libVLC. I want to use it with Python, using the bindings with vlc.py.
I followed this example (the one with the wrapper classes) :
http://git.videolan.org/?p=vlc/bindings ... b;f=README
It all works fine when I try to play a local file, but it doesn't work with a stream from the web (a web radio). This very same stream works fine in VLC (with the GUI).
I have tested this in Win XP and in Debian (on a Raspberry Pi). In XP "p.play()" returns 0, but I cannot hear any sound and 'p.is_playing()' returns 0. In Debian, I get a "cannot peek" error in the terminal, but i don't get any audio either.
I have no idea what's wrong. I checked my firewall in XP and both VLC and python have exceptions.
Any help is most welcome, this is a bit frustrating...
Cheers!
This is my first post here. I'm new to libVLC. I want to use it with Python, using the bindings with vlc.py.
I followed this example (the one with the wrapper classes) :
http://git.videolan.org/?p=vlc/bindings ... b;f=README
It all works fine when I try to play a local file, but it doesn't work with a stream from the web (a web radio). This very same stream works fine in VLC (with the GUI).
I have tested this in Win XP and in Debian (on a Raspberry Pi). In XP "p.play()" returns 0, but I cannot hear any sound and 'p.is_playing()' returns 0. In Debian, I get a "cannot peek" error in the terminal, but i don't get any audio either.
I have no idea what's wrong. I checked my firewall in XP and both VLC and python have exceptions.
Any help is most welcome, this is a bit frustrating...
Cheers!