Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-27-2008, 02:41 PM   #1
K Mishra
LQ Newbie
Registered: Jul 2008
Location: Rourkela, India
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
Question problem in playing files with mplayer

Every time I am trying to play any audio or video file with mplayer an error is shown that " Could not open/ initialize audio driver -> no sound".
There is no sound but video part is getting played.
Old 07-27-2008, 03:00 PM   #2
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
What audio device do you have? The first thing is to run mplayer from the command line, to see if some additional information about the error is given (if you get some useful information, please post it here). Then you can try to use another audio driver with mplayer: right click on the mplayer main window and select preferences --> Audio, then Configure Driver trying some of the listed ones.

From the command line you can also do
mplayer -ao help
to get a list of the available audio drivers. Then you can select one or more using the same option, for example:
mplayer -ao alsa,oss audio_file
this will try the alsa driver then the oss driver. The following is an excerpt from the mplayer's man page, which explains the usage of the -ao option:
       Audio output drivers are interfaces to different audio output facilities.  The syntax is:

       -ao <driver1[:suboption1[=value]:...],driver2,...[,]>
              Specify a priority list of audio output drivers to be used.

       If the list has a trailing ',' MPlayer will fall back on drivers not contained in the list.  Subop‐
       tions are optional and can mostly be omitted.
       NOTE: See -ao help for a list of compiled-in audio output drivers.

                 -ao alsa,oss,
                      Try the ALSA driver, then the OSS driver, then others.
                 -ao alsa:noblock:device=hw=0.3
                      Sets noblock-mode and the device-name as first card, fourth device.
Hope this helps.
Old 07-28-2008, 11:27 AM   #3
K Mishra
LQ Newbie
Registered: Jul 2008
Location: Rourkela, India
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0

Changing options in preference have helped to little extends ,but changing audio driver to alsa ,has come up with another error "Broken pipe".I do not know what to do now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing mpeg4 files in Mplayer andy_g_gray Linux - Software 7 05-24-2008 06:09 AM
problem playing wmv files with mplayer gtludwig Linux - Desktop 5 10-30-2006 04:27 AM
Mplayer are playing the files to fast!!! Sjellest Linux - Newbie 10 07-23-2006 08:50 AM
Playing WMV3 files in mplayer? garnser Linux - Software 4 05-22-2006 05:57 PM
Playing MP'3 files with mplayer Killah Linux - Newbie 14 04-01-2004 02:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration