Jump to content

No sound from MPlayer [solved]


Recommended Posts

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Esd is not a codec but a sound deamon (software mixer). Just do -ao esd. That should do it. Don't worry about the codecs, you can always download them from the mplayer site.

 

edit: and stay away from gmplayer till everything works. You need the console output to find the errors :)

Link to comment
Share on other sites

You can get mplayer through apt-get. Did you follow the howto ubuntuguide on how to setup the repo.? You could try it and see if iti solved your problem.

 

http://ubuntuguide.org/#extrarepositories

 

http://ubuntuguide.org/

Link to comment
Share on other sites

Mplayer can play sound in different ways. You can set this with -ao (audio out). Mplayer -ao help tells you what ways are available. This has all nothing to do with codecs. If you compile mplayer you can tell which options (ways) you want build with mplayer. Default most are.

 

Now linux and sound: oss and alsa are the basic building blocks.,, the sound architecture. Oss is old and alsa is new and you need only one. You are using alsa, it works, so don't touch it. It's working fine.

 

Mixing: if your soundcard doesn't do hardware mixing only one application at a time can play sound. That's why software mixers like esd (and arts, dmix) are needed.

 

Mplayer should automatically discover your sound setup (alsa or oss). If that doesn work for whatever reason you can tell t to use alsa to give it the -ao alsa option. If that doesn't work chances are that some other app is keeping the soundcard occupied. That means you should use a mixer (-ao esd). That's it. There is nothing more that you should know to get things working. Just make sure mplayer has these options (-ao help).

 

Got to go now. Good luck.

Link to comment
Share on other sites

Oh. My. God. I think I'm on to something. If I launch MPlayer from a custom launcher that I made, MPlayer and the external dock shows up, I get no audio. This is where I've been for the past two weeks. Now for some reason, I can right-click on a show and select play with mplayer, mplayer launches but the external dock doesn't show up, and i get audio. What in the world is going on?

Link to comment
Share on other sites

It's better to start mplayer from the command line. The errors you get there are quite usefull :). Ok if mplayer gets you sound but no video that is a codec problem. But just to be sure, open a console, type: mplayer -ao alsa (or esd, whatever works) <path to file and name of movie>. Do you hear sound?

 

If yes, go to the mplayer site, download all the codecs and put them in /usr/lib/win32. If you don't have a folder win32 just make one and put the codecs in it.

 

Then try again. Good luck.

Link to comment
Share on other sites

I just downloaded the codecs package all-20050115 and essential-20050115 and put both in the /usr/lib/win32 folder. Still no audio. The only way I can get audio with mplayer is to right click on a file and chose Open With MPlayer. I think the external dock is the culprit. I even went to the command line and typed:

 

root@WaynesWorld:/home/ctt1wbw # cd /home/ctt1wbw/Videos

root@WaynesWorld:/home/ctt1wbw/Videos # mplayer -ao esd BattlestarGalactica1x12.avi

MPlayer 1.0pre6-3.3.4 © 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias (Family: 6, Stepping: 5)

Detected cache-line size is 64 bytes

CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

 

 

77 audio & 188 video codecs

Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)

Playing BattlestarGalactica1x12.avi.

AVI file format detected.

VIDEO: [XVID] 640x368 24bpp 25.000 fps 1036.6 kbps (126.5 kbyte/s)

Clip info:

Software: transcode-0.6.14

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)

Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

vo: X11 running at 1280x800 with depth 24 and 32 bpp (":0.0" => local display)

==========================================================================

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)

==========================================================================

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int

AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)

[AO ESD] esd_open_sound failed: Success

Could not open/initialize audio device -> no sound.

Audio: no sound

Starting playback...

VDec: vo config request - 640 x 368 (preferred csp: Planar YV12)

VDec: using Planar YV12 as output csp (no 0)

Movie-Aspect is 1.74:1 - prescaling to correct movie aspect.

VO: [xv] 640x368 => 640x368 Planar YV12

root@WaynesWorld:/home/ctt1wbw/Videos # mplayer -ao alsa BattlestarGalactica1x12.avi

MPlayer 1.0pre6-3.3.4 © 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias (Family: 6, Stepping: 5)

Detected cache-line size is 64 bytes

CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

 

 

77 audio & 188 video codecs

Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)

Playing BattlestarGalactica1x12.avi.

AVI file format detected.

VIDEO: [XVID] 640x368 24bpp 25.000 fps 1036.6 kbps (126.5 kbyte/s)

Clip info:

Software: transcode-0.6.14

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)

Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

vo: X11 running at 1280x800 with depth 24 and 32 bpp (":0.0" => local display)

==========================================================================

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)

==========================================================================

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int

AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)

Could not open/initialize audio device -> no sound.

Audio: no sound

Starting playback...

VDec: vo config request - 640 x 368 (preferred csp: Planar YV12)

VDec: using Planar YV12 as output csp (no 0)

Movie-Aspect is 1.74:1 - prescaling to correct movie aspect.

VO: [xv] 640x368 => 640x368 Planar YV12

root@WaynesWorld:/home/ctt1wbw/Videos # mplayer -ao oss BattlestarGalactica1x12.avi

MPlayer 1.0pre6-3.3.4 © 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias (Family: 6, Stepping: 5)

Detected cache-line size is 64 bytes

CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

 

 

77 audio & 188 video codecs

Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)

Playing BattlestarGalactica1x12.avi.

AVI file format detected.

VIDEO: [XVID] 640x368 24bpp 25.000 fps 1036.6 kbps (126.5 kbyte/s)

Clip info:

Software: transcode-0.6.14

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)

Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

vo: X11 running at 1280x800 with depth 24 and 32 bpp (":0.0" => local display)

==========================================================================

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)

==========================================================================

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int

AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)

[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory

Could not open/initialize audio device -> no sound.

Audio: no sound

Starting playback...

VDec: vo config request - 640 x 368 (preferred csp: Planar YV12)

VDec: using Planar YV12 as output csp (no 0)

Movie-Aspect is 1.74:1 - prescaling to correct movie aspect.

VO: [xv] 640x368 => 640x368 Planar YV12

root@WaynesWorld:/home/ctt1wbw/Videos #

 

As you can see, I got no audio, even though the external dock did not appear. Should I let MPLayer's site know about this or what?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...