Pimmetje
Posts: 3
Joined: Sat Jan 12, 2013 11:11 am

vlc trouble

Sat Jan 12, 2013 11:26 am

Currently i have several Raspberries. One doing some home automation and audio playback. I use VLC player to play some radio streams (controlled by a Android application or web-interface). I installed VLC player from the repository and it worked right away. I did this several times last year.

Beginning of this year the VLC player stop working. It seems it got a segment fault when my script launches it. I was a bit lazy and reinstalled VLC from the repository. But now i do not get any audio from the analog audio jack. (Only a bit of noise when i try to play something). I took a other raspberry and SD-Card and started reinstalling a fresh copy. But this one gives the same issue. Now i am a bit puzzled about what happened.

I hope anyone has a clue or could try a fresh install of Raspbian & VLC.

Rabbit80
Posts: 23
Joined: Thu Jan 10, 2013 4:39 pm

Re: vlc trouble

Sun Jan 13, 2013 1:11 am

It seems that VLC doesn't like PulseAudio.

If you do a sudo apt-get remove pulseaudio then reboot it should work.

Pimmetje
Posts: 3
Joined: Sat Jan 12, 2013 11:11 am

Re: vlc trouble

Sun Jan 13, 2013 1:18 pm

Thanks for the replay.

Somehow VLC tries to use pulseaudio anyway.

Code: Select all

[email protected] ~ $ cvlc http://icecast.omroep.nl/radio2-bb-mp3.m3u
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0xbaf240] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0xbaf240] main interface error: no suitable interface module
[0xbbc630] main interface error: no suitable interface module
[0xb9b8f0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0xbbc630] dummy interface: using the dummy interface module...
[0xbcdc90] es demux error: cannot peek
[0xd03020] main playlist: stopping playback
[0xc24d48] access_http access: Raw-audio server found, mp3 demuxer selected
[0xbed740] pulse audio output error: PulseAudio server connection failure: Connection refused

Rabbit80
Posts: 23
Joined: Thu Jan 10, 2013 4:39 pm

Re: vlc trouble

Sun Jan 13, 2013 6:19 pm

You may have to specify a device to playback on then... try cvlc -A alsa,none --alsa-audio-device default - though I might be wrong. I don't use the command line version!

Pimmetje
Posts: 3
Joined: Sat Jan 12, 2013 11:11 am

[SOLVED] Re: vlc trouble

Sun Jan 13, 2013 10:45 pm

Thanks that did the trick!

First i had audio on the HDMI.
This forced the audio on analog:

Code: Select all

sudo amixer cset numid=3 1
Source: http://raspberrypi.stackexchange.com/a/45

This saved the settings for next reboot:

Code: Select all

sudo alsactl store 0
source: http://ubuntuforums.org/showpost.php?p= ... ostcount=2

Full command:

Code: Select all

cvlc -A alsa,none --alsa-audio-device default http://icecast.omroep.nl/radio2-bb-mp3.m3u

Rabbit80
Posts: 23
Joined: Thu Jan 10, 2013 4:39 pm

Re: vlc trouble

Mon Jan 14, 2013 12:20 pm

Glad you got it sorted.

terjef
Posts: 1
Joined: Thu Jan 30, 2014 8:02 pm

Re: vlc trouble

Thu Jan 30, 2014 8:10 pm

Excuse me for asking, but where can I find the -A option(s) documented?
Have searched all VLC manuals and plugins, but the -A is nowhere to be found..
Please help

Best regards
Terje

jcreasey
Posts: 6
Joined: Sat Feb 07, 2015 11:09 pm
Location: Seattle, USA

Re: vlc trouble

Fri Feb 27, 2015 4:32 am

Type vlc -H > vlc.doc
This gives you the complete verbose documentation, just use Leafpad to search through it ..... you'll find -A in there.

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: vlc trouble

Fri Feb 27, 2015 1:43 pm

I'm respect all raspbian developers. But i must write raspbian need harware accelerated gui based media player. Can be vlc or smplayer. We need it from repos.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 24 guests