mplayer / vlc compiled with pulseaudio support?!? :(

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
asbesto

mplayer / vlc compiled with pulseaudio support?!? :(

Post by asbesto »

Hi,

I removed / don't wanna use pulseaudio on my systems; since today I solved every kind of audio problem removing this horrible piece of software.

But now I notice linux mint have mplayer and vlc compiled with pulseaudio support!!!

:evil:

And so I have this:

Code: Select all

AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
mplayer: pcm_plug.c:388: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.

Code: Select all

VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0x952738] pulse audio output error: PulseAudio server connection failure: Connection refused
none of them works anymore! :(

Can someone help please?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Jefrystube

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by Jefrystube »

Doing the following has helped me with other programs, it may or may not work for you with this particular issue.
Uninstall Mplayer and VLC. Use the Synaptic Package Manager and mark them for a complete removal.
Reinstall from the Ubuntu store.

Good luck.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by Flemur »

But now I notice linux mint have mplayer and vlc compiled with pulseaudio support!!!

How did you determine that?

Try VLC -> Tools -> Prefs -> Audio -> Output module (select Alsa, probably, not Automatic or pulse).
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
asbesto

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by asbesto »

Noticed that VLC by default start with pulsecrap; selecting ALSA from the menu works. Mplayer don't - it gave me an error starting with -ao alsa

Code: Select all

mplayer: pcm_plug.c:388: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.
about installing ubuntu, i quit with that many years ago...

my setting now in /etc/mplayer/mplayer.conf:

Code: Select all

##################
# audio settings #
##################

# (CENSORED) pulse, then use alsa, then SDL video with the aalib subdriver by default
ao=alsa,sdl:aalib      
but this isn't helpful :(
asbesto

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by asbesto »

At least I solved with mplayer:

Code: Select all

root@localhost:~# apt-get install libmpg123-0
Then

Code: Select all

root@localhost:~# echo “afm=mp3lib” >> /etc/mplayer/mplayer.conf
asbesto

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by asbesto »

Talked too fast. Solved for AVI files, not for FLV, no mp4 or other formats:

Code: Select all


==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.35.0 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Trying to force audio codec driver family mp3lib...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 131.8 kbit/4.67% (ratio: 16471->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
mplayer: pcm_plug.c:388: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.


MPlayer interrupted by signal 6 in module: ao2_init
- MPlayer crashed. This shouldn't happen.

:shock:

Any help? I can't solve this O_O
asbesto

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by asbesto »

I also tried to remove mplayer and install mplayer2 - same problem!

Code: Select all

Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Trying to force audio codec driver family ffmpeg...
Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
AUDIO: 44100 Hz, 2 ch, floatle, 48.7 kbit/1.73% (ratio: 6088->352800)
mplayer: pcm_plug.c:388: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.


MPlayer interrupted by signal 6 in module: ao2_init
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
asbesto@rover ~ $ 
asbesto

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by asbesto »

...also tried recompiling mplayer from scratch, via svn / howto at mplayerhq.hu and http://www.techtimejourney.net/building ... layer-gui/ howto... same problem! :(

:cry:
asbesto

Re: mplayer / vlc compiled with pulseaudio support?!? :(

Post by asbesto »

FINALLY SOLVED

I selected "ao=sdl" in /etc/mplayer/mplayer.conf
Locked

Return to “Sound”