LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-27-2008, 03: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, 04:00 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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
Code:
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:
Code:
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:
Code:
AUDIO OUTPUT DRIVERS (MPLAYER ONLY)
       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.

       EXAMPLE:
                 -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, 12:27 PM   #3
K Mishra
LQ Newbie
 
Registered: Jul 2008
Location: Rourkela, India
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Angry

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.
 
  


Reply


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 07:09 AM
problem playing wmv files with mplayer gtludwig Linux - Desktop 5 10-30-2006 05:27 AM
Mplayer are playing the files to fast!!! Sjellest Linux - Newbie 10 07-23-2006 09:50 AM
Playing WMV3 files in mplayer? garnser Linux - Software 4 05-22-2006 06:57 PM
Playing MP'3 files with mplayer Killah Linux - Newbie 14 04-01-2004 03:49 PM


All times are GMT -5. The time now is 01:47 PM.

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