Opened 3 years ago

#2189 new defect

Crash when both hwac3 and softvol are set or passed

Reported by: moneytoo Owned by:
Priority: normal Component: undetermined
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no


Mplayer crashes when it's told to prioritize spdif/bitstream ('-afm hwac3') and force to use software mixer ('-volume 50 -softvol') simultaneusly.

I have a video containing AC3 or DTS audio. It plays fine when using any of following commans. PCM is outputed to my AV receiver.

/usr/bin/mplayer big_buck_bunny_720p_surround.avi
/usr/bin/mplayer -volume 50 -softvol big_buck_bunny_720p_surround.avi

If I set preference for spdif, it correctly sends AC3 stream to the receiver.

/usr/bin/mplayer -afm hwac3 big_buck_bunny_720p_surround.avi

However Mplayer crashes when trying to execute following.

/usr/bin/mplayer -afm hwac3 -volume 50 -softvol big_buck_bunny_720p_surround.avi

I understand that it's not exactly valid command - volume of encoded bitstream can't be adjusted. I do not do that but for example Smplayer does - softvol is switched on by default so after enabling SPDIF it just crashes. Users than need to spend time searchfing for answer telling them to disable that right checkbox ("Use software volume control"). The same goes when ~/.mplayer/config contains "afm=hwac3".
I perfectly understand Smplayer should employ some better logic (just like other GUIs but is that the only place or does Mplayer needs some fixing as well?

1) According to manual, afm only specifies priorities and it should fall back if it doesn't work. However neither '-afm hwac3,ffmpeg' doesn't help.

2) Should Mplayer crash at all? IMHO it would make sense if audio would be preffered over volume and stream would be played even if it would be not adjustable.

My mplayer:

% mplayer -v  input
MPlayer SVN-r37051 (C) 2000-2014 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (Family: 6, Model: 58, Stepping: 9)
extended cpuid-level: 8
extended cache-info: 16801856
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/mdop/.mplayer/codecs.conf'
Reading optional codecs config file /home/mdop/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /etc/mplayer/codecs.conf: 207 audio & 440 video codecs
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/mdop/.mplayer/fonts'
Configuration: --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts --disable-liblzo --disable-speex --disable-openal --disable-libdv --disable-musepack --disable-esd --disable-mga --disable-ass-internal --disable-cdparanoia --enable-xvmc --enable-radio --enable-radio-capture --enable-smb --language=all --confdir=/etc/mplayer
CommandLine: '-v' 'input'
Using nanosleep() timing
get_path('input.conf') -> '/home/mdop/.mplayer/input.conf'
Reading optional input config file /home/mdop/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 92 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
get_path('input.conf') -> '/home/mdop/.mplayer/input.conf'

Playing input.
get_path('sub/') -> '/home/mdop/.mplayer/sub/'
File not found: 'input'
Failed to open input.

vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)

Attachments (4)

mplayer-no_params.txt (19.7 KB) - added by moneytoo 3 years ago.
mplayer-softvol.txt (22.3 KB) - added by moneytoo 3 years ago.
mplayer-spdif.txt (25.8 KB) - added by moneytoo 3 years ago.
mplayer-spdif-softvol.txt (10.0 KB) - added by moneytoo 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by moneytoo

Changed 3 years ago by moneytoo

Changed 3 years ago by moneytoo

Changed 3 years ago by moneytoo

Note: See TracTickets for help on using tickets.