Loading a playlist on the command line with HTTP interface

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Shtong
New Cone
New Cone
Posts: 1
Joined: 13 Aug 2011 11:01

Loading a playlist on the command line with HTTP interface

Postby Shtong » 13 Aug 2011 11:46

Hello,

I'm having trouble setting up VLC for a remote radio station configuration. The basic idea is : VLC starts as a background app on a Debian server, loading up a playlist containing some web radios. The server is directly connected to the audio amplifier, and is controlled with a phone connecting through wifi with the HTTP interface.

This is the command I use to launch VLC :

Code: Select all

vlc -I http --http-album-art --http-host=0.0.0.0:8000 --no-playlist-autostart /home/shtong/default.xspf
The XSPF file was created using a graphical Windows version of VLC.

Now, the problem is, I can't find how to make this work for the first play. That is, the HTTP interface does not seem to be able to start playing one of the playlist elements (actually, it can't display the playlist contents either) right after I launch VLC. However, if I launch VLC with console and http interfaces, and I play one of the radios using the console interface, it works. And after the first play works, the http interface also works (can play, stop, and see the playlist's contents).

One weird thing I noticed is, when I ask VLC to start with the console interface (for the first time), I have to ask twice for it to work. Maybe that's related with my problem ? Here's the output :

Code: Select all

$ vlc --extraintf=http --http-album-art --http-host=0.0.0.0:8000 --no-playlist-autostart ~/default.xspf VLC media player 1.1.3 The Luggage (revision exported) [0x14f99b0] main interface: creating httpd Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x150c780] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message [0x150c780] main interface error: no suitable interface module [0x151b720] main interface error: no suitable interface module [0x1418120] main libvlc error: interface "globalhotkeys,none" initialization failed [0x1418120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0x151c130] [rc] lua interface: Listening on host "*console". VLC media player 1.1.3 The Luggage Remote control interface initialized. Type `help' for help. > [0x15055f0] main playlist: stopping playback playlist <-- showing the playlist works, unlike with HTTP +----[ Playlist - Undefined ] | 2 - Playlist | 5 - FIP | 3 - Media Library +----[ End of playlist ] > play 5 <-- First play attempt, will not work > Blocked: call to setenv("_PX_CONFIG_ORDER", "", 1) Warning: call to signal(13, 0x1) Blocked: call to setenv("_PX_CONFIG_ORDER", "", 1) [0x15055f0] main playlist: stopping playback play 5 <-- Second play attempt, will work. HTTP will also work after that > Blocked: call to setenv("_PX_CONFIG_ORDER", "", 1) Warning: call to signal(13, 0x1) [0x213d560] access_http access: Raw-audio server found, mp3 demuxer selected TagLib: Could not open file mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3 Blocked: call to setlocale(1, "C") Blocked: call to setlocale(1, "en_US.UTF-8") Blocked: call to setlocale(1, "C") Blocked: call to setlocale(1, "en_US.UTF-8")
I searched and google'd a lot, but i'm out of ideas here... Any ideas would be appreciated

Thanks

Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 56 guests