Opened 8 years ago

Last modified 8 years ago

#2267 new defect

can't open audio device /dev/dsp: no such file or directory

Reported by: gabiszoke Owned by: beastd
Priority: normal Component: ao
Version: 1.2 Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: yes

Description

Summary of the bug:
How to reproduce:

when trying to play any video file, there's no audio. Pls see Terminal output below. I know this is not bug, but I just don't know how to solve it, and this is the only player, which can play video of 1 mkv type. When I press fullscreen on GUI it doesn't make the video fullscreen, only the window.
Thx
{
[gabi@oc4016163830 Videos]$ mplayer xx.mp4
Warning unknown option device at line 5
MPlayer 1.2-4.4.7 (C) 2000-2015 MPlayer Team

Playing xx.mp4.
libavformat version 56.40.101 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f5359ec3ce0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (mp3), -aid 0, -alang unk
VIDEO:  [H264]  320x480  24bpp  35.728 fps  850.1 kbps (103.8 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf54.63.104
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, floatle, 128.0 kbit/9.07% (ratio: 15999->176400)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
DVB card number must be between 1 and 4
AO: [null] 44100Hz 1ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 0.67:1 - prescaling to correct movie aspect.
VO: [x11] 320x480 => 320x480 Planar YV12 
[swscaler @ 0x7f5359eeaac0]bicubic scaler, from yuv420p to bgra using MMXEXT
[swscaler @ 0x7f5359eeaac0]using unscaled yuv420p -> bgra special converter
A:   2.5 V:   2.5 A-V:  0.001 ct: -0.055   0/  0  9%  4%  0.4% 0 0              

Exiting... (Quit)
}

MPlayer version (C) 1.2
...

Patches should be submitted to the mplayer-dev-eng mailing list and not this bug tracker.

Change History (8)

comment:1 by gabiszoke, 8 years ago

I know this is not a bug, but I just can't solve it, and this is the only player, which can play 1 MKV type. Also when I press fullscreen on GUI, it doesn't make the vide fullscreen, only the window.
Thx

comment:2 by rxt, 8 years ago

Analyzed by developer: set
Priority: highnormal
Severity: criticalnormal

Do you have a config file? What's its content?

Did you compiled MPlayer yourself? If yes, do you have devel packages installed for your audio oputput (alsa or pulse probably)?

If you need help for non-bugs, please use the mplayer-users http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users mailing list; you can also try #mplayer on freenode.

comment:3 by gabiszoke, 8 years ago

I have a config file, but it's empty..

I compiled mplayer myself following instructions in the readme, like that:
"./configure --enable-gui
make
make install"

I found as installed following:
pulseaudio-libs-devel-0.9.21-21.el6 (x86_64)
alsa-lib-devel-1.0.22-3.el6 (x86_64)

comment:4 by ib, 8 years ago

You seem to use ALSA, not OSS, so you won't have a /dev/dsp.

Configure MPlayer to use ALSA by

ao=alsa

in your ~/.mplayer/config file.

comment:5 by gabiszoke, 8 years ago

adding
{{{
ao=alsa
}}}

to config file gives following error:
Option {{{ needs a parameter at line 3
Option }}} needs a parameter at line 5

adding
ao=alsa
to config file gives following error, still no sound:
No such audio driver 'alsa'
Could not open/initialize audio device -> no sound.

comment:6 by ib, 8 years ago

What does

mplayer -ao help

say?

comment:7 by gabiszoke, 8 years ago

This is the output:

Available audio output drivers:

oss OSS/ioctl audio output
mpegpes DVB audio output
v4l2 V4L2 MPEG Audio Decoder output
null Null audio output
pcm RAW PCM/WAVE file writer audio output

comment:8 by ib, 8 years ago

How is your linux kernel configured?

If ALSA is configured (and you're having a /dev/snd directory), then you'd need the ALSA libraries as well in order to compile MPlayer.

If (for some reason) you're only using the OSS emulation and kernel configuration is OK, then there should be a /dev/dsp created by the kernel.

Overall, this seems to be rather a kernel/library problem than an MPlayer one.

Note: See TracTickets for help on using tickets.