WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mplayer problems  (Read 15320 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mplayer problems
« Reply #15 on: July 10, 2009, 07:17:15 PM »
TC 2.x with ALSA plays sound too fast on my snd_intel8x0 chip.  I found a workaround that may help for the fast playback.  Basically this in the bootlocal.sh file:

modprobe snd_intel8x0 ac97_clock=4100
/usr/local/etc/init.d/alsasound start

That sets the sound to a normal speed for me.

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: mplayer problems
« Reply #16 on: July 11, 2009, 02:09:46 AM »
Thanks, I'll give it a try!

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: mplayer problems
« Reply #17 on: July 11, 2009, 03:02:22 PM »
The clock instruction altered the sound, but I need to play with it some more.

I did leave in the alsasound start instruction. It's nice not to have to type 'sudo alsaconf' every time I boot! I'll review the posts on alsa sound persistence and see if I can save the volume settings. Thanks for the help!

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: mplayer problems
« Reply #18 on: August 03, 2009, 02:46:40 AM »
Not sure it's the complete solution, but putting this:

rmmod snd-intel8x0

in bootlocal.sh prior to the modprobe instruction lets the modprobe alter the sound. Right now I'm setting ac97_clock=44100 but that may change.

edit: changed the setting to ac97_clock=41194
« Last Edit: August 03, 2009, 04:08:33 PM by thane »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mplayer problems
« Reply #19 on: August 04, 2009, 07:35:27 AM »
Youre right, I forgot to mention to rmmod the module before modprobing it again.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: mplayer problems
« Reply #20 on: October 05, 2009, 02:08:58 AM »
Can't get MPlayer-svn-gtk2.tc  sound with ALSA using version tinycore_2.4rc4.  xmms is working fine.
In the audio prefs, it looks like only an oss driver is available and it doesn't like /dev/dsp. I think I had this working with a prior version. 

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: mplayer problems
« Reply #21 on: October 05, 2009, 03:56:25 AM »
I'm using the gtk2 MPlayer with ALSA in TCL 2.3.1. Other than the problem above (related to the PC chipset and affecting sound in all apps) it's worked OK.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: mplayer problems
« Reply #22 on: October 05, 2009, 04:14:54 AM »
u can install the alsa-oss extension and start mplayer like this:
Code: [Select]
aoss mplayer
dCore user

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: mplayer problems
« Reply #23 on: October 05, 2009, 04:27:25 AM »
u can install the alsa-oss extension and start mplayer like this:
Code: [Select]
aoss mplayer

Hey...that worked!   Thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
Re: mplayer problems
« Reply #24 on: October 05, 2009, 04:36:17 AM »
Otherwise, you might not have had the alsa oss modules loaded. They aren't loaded automatically, but the init script loads them. With them loaded, no aoss needed.
The only barriers that can stop you are the ones you create yourself.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: mplayer problems
« Reply #25 on: October 05, 2009, 04:43:44 AM »
Otherwise, you might not have had the alsa oss modules loaded. They aren't loaded automatically, but the init script loads them. With them loaded, no aoss needed.
can u explain this better? Can u tell us the commands?
dCore user

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
Re: mplayer problems
« Reply #26 on: October 05, 2009, 05:11:35 AM »
Without the script:
Quote
sudo modprobe snd-seq-oss
sudo modprobe snd-pcm-oss
The only barriers that can stop you are the ones you create yourself.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: mplayer problems
« Reply #27 on: October 05, 2009, 06:00:07 AM »
so alsa-oss extension can by removed from the repository.
Plz add this 2 modprobe commands in the info file of mplayer.
dCore user

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
Re: mplayer problems
« Reply #28 on: October 05, 2009, 06:33:29 AM »
Some apps do require alsa-oss, let's not be hasty.

The modprobing is done by the alsa script, so I think they aren't needed in individual packages' info files.
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mplayer problems
« Reply #29 on: October 05, 2009, 06:53:20 AM »
I agree.  As a minimum running /usr/local/etc/init.d/alsasound is expected to make use of alsa, and when that does not work using alsaconf can be used.  Some systems may hear sound without running either by the simple action of udev loading the modules, but that does not mean alsa has been set up completely.