WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mplayer alsa support  (Read 4673 times)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
mplayer alsa support
« on: February 06, 2010, 07:29:00 AM »
From this:
Code: [Select]
$ mplayer -ao alsa:device=bluetooth /mnt/sda1/Music/f00/aayw.mp3
MPlayer dev-SVN-r27471-4.1.2 (C) 2000-2008 MPlayer Team
...
Playing /mnt/sda1/Music/f00/aayw.mp3.
Audio only file format detected.
...
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
No such audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
..it looks like Mplayer-nodeps and MPlayer-svn-gtk2 were built without alsa support? if so, would it be possible to compile alsa support in since bluetooth does not support oss?

Note that mpg123 (now that it has alsa support) plays fine through a2dp bluetooth headphones, but it would be good to be able to listen to a movie with them  :)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mplayer alsa support
« Reply #1 on: February 06, 2010, 07:49:14 AM »
I'd rather keep -nodeps as the name says, libasound would be one.

However, did you try the aoss wrapper? "aoss mplayer myfile.mp3", it might be enough to route things through alsa.
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mplayer alsa support
« Reply #2 on: February 06, 2010, 08:26:20 AM »
The gtk2 version of Mplayer has been deprecated upstream for a while, and any rebuilds of it had proved to be unusably  buggy.  I tried many times last year to update or rebuild for various reasons but could not reproduce the stability of the mplayer-gtk2 in the repo.  Mplayer-gtk2 is there for those who want to use it, but I generally recommend using either cli Mplayer or a different media player.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: mplayer alsa support
« Reply #3 on: February 06, 2010, 09:00:53 AM »
However, did you try the aoss wrapper? "aoss mplayer myfile.mp3", it might be enough to route things through alsa.

..doesn't work for mplayer, but "aoss xmms" and then the alsa plugin and device bluetooth does work  :)

..guess I need to make an mplayer-nodeps-except-alsa extension  :P
« Last Edit: February 06, 2010, 09:14:31 AM by Juanito »

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: mplayer alsa support
« Reply #4 on: February 06, 2010, 09:19:16 AM »
aoss mplayer works for me since many months
dCore user

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: mplayer alsa support
« Reply #5 on: February 06, 2010, 09:40:34 AM »
what I should have done is used MPlayer-svn-gtk1 - problem now solved  ;D

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mplayer alsa support
« Reply #6 on: February 06, 2010, 09:42:21 AM »
Piecing things through, looks like Mplayer gtk2 is being deprecated, and there would be use for everything-but-gtk-opengl mplayer. No opengl to not have Xorg as a dep.

SMplayer is considered to be a stable gui for mplayer, and it uses the binary instead of linking.

If someone builds a full-feature mplayer like that, I'll create a copy of smplayer, with that as a dep instead of -nodeps. Then we could promote this as the best gui solution.
The only barriers that can stop you are the ones you create yourself.