Find the answer to your Linux question:
Results 1 to 6 of 6

Thread: Mplayer & Flash

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie Andy_Crowd's Avatar
    Join Date
    Sep 2013
    Location
    日不落
    Posts
    121

    Question Mplayer & Flash


    Hi!

    I made a script to play my favorite radio station with Mplayer in the background while I am working in Linux.

    Problem is when I start "radio" and then open a flash video in a webbroser then I am getting a flashplayer crashes and errors like:

    Code:
    ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
    But when I begin with watching of flashvideo (youtube) and then starting "radio" then I getting no errors. Is it any way to make it work without changing of the start order?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    Try using VLC instead of mplayer. It is much more capable and stable (in my opinion). I have never had an issue with it, even when using mplayer, kaffeine, vlc, or others to play videos, or flash in my browsers. In fact I am running a streaming audio on my vlc player right now, and can run flash in my browser at the same time without issues.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    hello again andy crowd!
    same arch linux install here?
    do you have pulse audio installed?
    this sounds more like an issue with alsa than with mplayer.
    could you just post the whole script?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie Andy_Crowd's Avatar
    Join Date
    Sep 2013
    Location
    日不落
    Posts
    121
    Here is my Radio script

    Code:
    #!/bin/bash
    
    XX="X"$1;
    PLAYIT='mplayer  -loop 0 -playlist http://*.*.*.*:8000/listen.pls';
    
    if [ "$XX" == "Xstop" ];then
    
    killall mplayer;
    
     else
    
    nohup  $PLAYIT > /dev/null & disown;
    
    fi

  6. #5
    Linux Newbie Andy_Crowd's Avatar
    Join Date
    Sep 2013
    Location
    日不落
    Posts
    121
    I solved the problem by

    Code:
    modprobe -r snd_pcm_dmix_open
    WindowMaker dock app wmmixer needed it and I added "snd_pcm_dmix_open" to the "/etc/modprobe.d/ " for the autoload.
    ...one good working app made other crash... it would be more easy if wmmixer could work without using of the "snd_pcm_dmix_open".
    Last edited by Andy_Crowd; 12-16-2013 at 08:27 PM. Reason: more details

  7. #6
    Linux Newbie Andy_Crowd's Avatar
    Join Date
    Sep 2013
    Location
    日不落
    Posts
    121

    Lightbulb

    Now I know that alsa-oss may cause a lot of problems and it was hard to find someone who could help to compile wmmixer-alsa, but I found a replacement for it. The "alsamixer-dockapp" is a port of Mixer.app that is based on OSS as wmmixer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •