mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

AC3 passthrough SPDIF crashes gnome-mplayer ( blocks /dev/snd devices) #468

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start gnome-mplayer and select the AC3 passthrough option
2. Open video file with AC3 audio stream

What is the expected output? What do you see instead?
gnome-mplayer hangs when opening the file and blocks the /dev/snd devices 
afterwards.
mplayer with ac3 passthrough from the cli works perfectly though.

What version of the product are you using? On what operating system?
gnome-mplayer: gnome-mplayer 0.9.2, gnome-mplayer 1.0.0
alsa: alsa-lib-1.0.23
OS:gentoo 2.6.35-r12

Please provide any additional information below.
gnome-mplayer -v example.mkv

"Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
ERROR: No accelerated IMDCT transform found
hwac3: switched to AC3, 192000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 192.0 kbit/12.50% (ratio: 24000->192000)
ID_AUDIO_BITRATE=192000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
ID_AUDIO_CODEC=hwac3
ERROR: [format] Sample format big-endian AC3 not yet supported 
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
ERROR: 
Thread completing
shutting down threadquery for example.mkv"

Original issue reported on code.google.com by pinkusp...@wp.pl on 9 Dec 2010 at 4:12

GoogleCodeExporter commented 8 years ago
Can you please post the entire output. Along with a working mplayer command 
line. It is most likely that gnome-mplayer is adding a filter that is not 
compatible with the hwac3 ao.

I don't have this hardware, so it is difficult for me to test.

Original comment by kdeko...@gmail.com on 9 Dec 2010 at 4:14

GoogleCodeExporter commented 8 years ago
We may also need the --reallyverbose option to see why this is failing.

Original comment by kdeko...@gmail.com on 9 Dec 2010 at 4:16

GoogleCodeExporter commented 8 years ago
here is the full output with --reallyverbose:
gnome-mplayer --reallyverbose example.mkv

"GNOME MPlayer v0.9.9.2
vo = xv ao = alsa
Running with GIO support
Running with panscan enabled (mplayer svn r29565 or higher required)
Master Playback is 1
Master Range is 0 to 39 
Master Current Volume 39, multiplier = 2.564103
Scaled Volume is 100.000003
Using volume of 100.00
Using softvol, setting volume to max (will be limited by mixer 100% of 100%)
opening example.mkv
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0x0
example.mkv is not a device name
file:///media/data/local/downloads/example.mkv is not a device name
file:///media/data/local/downloads/example.mkv is not a device name
Streaming media 'file:///media/data/local/downloads/example.mkv' = 0
opening playlist
Eߣ�B��matroskaB��B��S�g is not a device name
file:///media/data/local/downloads/Eߣ�B��matroskaB��B��S�g
 is not a device name
playlist detection = 0
adding file:///media/data/local/downloads/example.mkv to playlist (cancel = 0)
file:///media/data/local/downloads/example.mkv is not a device name
file:///media/data/local/downloads/example.mkv is not a device name
Streaming media 'file:///media/data/local/downloads/example.mkv' = 0
file:///media/data/local/downloads/example.mkv is not a device name
file:///media/data/local/downloads/example.mkv is not a device name
getting file metadata for /media/data/local/downloads/example.mkv
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
playing - file:///media/data/local/downloads/example.mkv
is playlist 0
METADATA:MPlayer SVN-r29796-4.4.4 (C) 2000-2009 MPlayer Team
METADATA:
METADATA:Playing /media/data/local/downloads/example.mkv.
METADATA:ID_VIDEO_ID=0
METADATA:[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
METADATA:ID_AUDIO_ID=0
METADATA:ID_AID_0_LANG=ger
METADATA:[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang ger
METADATA:ID_SUBTITLE_ID=0
METADATA:ID_SID_0_LANG=ger
METADATA:[mkv] Track ID 3: subtitles (S_VOBSUB), -sid 0, -slang ger
METADATA:ID_AUDIO_ID=1
METADATA:ID_AID_1_LANG=eng
METADATA:[mkv] Track ID 4: audio (A_DTS), -aid 1, -alang eng
METADATA:ID_SUBTITLE_ID=1
METADATA:ID_SID_1_LANG=eng
METADATA:[mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
METADATA:[mkv] Will play video track 1.
METADATA:Matroska file format detected.
METADATA:VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
METADATA:ID_FILENAME=/media/data/local/downloads/example.mkv
METADATA:ID_DEMUXER=mkv
METADATA:ID_VIDEO_FORMAT=avc1
METADATA:ID_VIDEO_BITRATE=0
METADATA:ID_VIDEO_WIDTH=1280
METADATA:ID_VIDEO_HEIGHT=720
METADATA:ID_VIDEO_FPS=23.976
METADATA:ID_VIDEO_ASPECT=1.7778
METADATA:ID_AUDIO_FORMAT=8192
METADATA:ID_AUDIO_BITRATE=0
METADATA:ID_AUDIO_RATE=48000
METADATA:ID_AUDIO_NCH=2
METADATA:ID_LENGTH=2676.55
METADATA:ID_SEEKABLE=1
METADATA:ID_CHAPTERS=0
METADATA:=======================================================================
===
METADATA:Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
METADATA:Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
METADATA:=======================================================================
===
METADATA:ID_VIDEO_CODEC=ffh264
METADATA:=======================================================================
===
METADATA:Opening audio decoder: [liba52] AC3 decoding with liba52
METADATA:AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
METADATA:ID_AUDIO_BITRATE=192000
METADATA:ID_AUDIO_RATE=48000
METADATA:ID_AUDIO_NCH=2
METADATA:Selected audio codec: [a52] afm: liba52 (AC3-liba52)
METADATA:=======================================================================
===
METADATA:AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
METADATA:ID_AUDIO_CODEC=a52
METADATA:Starting playback...
METADATA:
METADATA:
METADATA:Exiting... (End of file)
METADATA:ID_EXIT=EOF
METADATA:
METADATA:Using SSE optimized IMDCT transform
METADATA:Using MMX optimized resampler
METADATA:
file:///media/data/local/downloads/example.mkv is not a device name
Streaming media 'file:///media/data/local/downloads/example.mkv' = 0
file:///media/data/local/downloads/example.mkv is not a device name
file:///media/data/local/downloads/example.mkv is not a device name
file:///media/data/local/downloads/example.mkv is not a device name
Streaming media 'file:///media/data/local/downloads/example.mkv' = 0
/media/data/local/downloads/example.mkv is not a device name
/media/data/local/downloads/example.mkv is not a device name
Streaming media '/media/data/local/downloads/example.mkv' = 0
file:///media/data/local/downloads/example.mkv is not a device name
Streaming media 'file:///media/data/local/downloads/example.mkv' = 0
file:///media/data/local/downloads/example.mkv is not a device name
Streaming media 'file:///media/data/local/downloads/example.mkv' = 0
media size = 0 x 0
current size = 0 x 0 
Changing window size to 1280 x 720 visible = 1
video present = 1
movie size = 1280 x 720
movie allocation new_width 372 new_height 1
actual movie new_width 0 new_height 0
original movie width -1 height -1
new_width 368 new_height 0
video present = 1
movie size = 1280 x 720
movie allocation new_width 372 new_height 1
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 368 new_height 0
media size = 1280 x 720
video present = 1
movie size = 1280 x 720
movie allocation new_width 372 new_height 1
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 368 new_height 0
video present = 1
movie size = 372 x 1
movie allocation new_width 372 new_height 1
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 368 new_height 0
mplayer -profile gnome-mplayer -afm hwac3, -slave -identify -softvol -volume 
100 -mixer-channel Master -framedrop -noconsolecontrols -noidle -osdlevel 0 
-nomouseinput -nocache -wid 0x3600045 -fs -ss 0 -ass -embeddedfonts 
-ass-font-scale 1.00 -ass-color ffffff00 -channels 4 -vf-add screenshot 
-dvd-device /dev/dvd /media/data/local/downloads/example.mkv 
Spawn succeeded for filename /media/data/local/downloads/example.mkv
current size = 372 x 1 
Changing window size to 1280 x 720 visible = 1
media size = 1280 x 720
video present = 1
movie size = 1280 x 720
movie allocation new_width 1280 new_height 720
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 1280 new_height 720
video present = 1
movie size = 1280 x 720
movie allocation new_width 1280 new_height 720
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 1280 new_height 720
thread reader: MPlayer SVN-r29796-4.4.4 (C) 2000-2009 MPlayer Team
thread reader: 
thread reader: Playing /media/data/local/downloads/example.mkv.
thread reader: ID_VIDEO_ID=0
thread reader: [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
thread reader: ID_AUDIO_ID=0
thread reader: ID_AID_0_LANG=ger
thread reader: [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang ger
thread reader: ID_SUBTITLE_ID=0
thread reader: ID_SID_0_LANG=ger
thread reader: [mkv] Track ID 3: subtitles (S_VOBSUB), -sid 0, -slang ger
thread reader: ID_AUDIO_ID=1
thread reader: ID_AID_1_LANG=eng
thread reader: [mkv] Track ID 4: audio (A_DTS), -aid 1, -alang eng
thread reader: ID_SUBTITLE_ID=1
thread reader: ID_SID_1_LANG=eng
thread reader: [mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
thread reader: [mkv] Will play video track 1.
thread reader: Matroska file format detected.
thread reader: VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 
kbyte/s)
thread reader: ID_FILENAME=/media/data/local/downloads/example.mkv
thread reader: ID_DEMUXER=mkv
thread reader: ID_VIDEO_FORMAT=avc1
thread reader: ID_VIDEO_BITRATE=0
thread reader: ID_VIDEO_WIDTH=1280
thread reader: ID_VIDEO_HEIGHT=720
thread reader: ID_VIDEO_FPS=23.976
thread reader: ID_VIDEO_ASPECT=1.7778
thread reader: ID_AUDIO_FORMAT=8192
thread reader: ID_AUDIO_BITRATE=0
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=2
thread reader: ID_LENGTH=2676.55
video present = 1
movie size = 1280 x 720
movie allocation new_width 1280 new_height 722
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 1280 new_height 0
video present = 1
movie size = 1280 x 722
movie allocation new_width 1280 new_height 722
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 1280 new_height 0
thread reader: ID_SEEKABLE=1
thread reader: ID_CHAPTERS=0
thread reader: [ass] auto-open
thread reader: Opening video filter: [screenshot]
thread reader: Opening video filter: [eq2]
thread reader: [ass] Init
thread reader: [ass] Updating font cache.
thread reader: 
==========================================================================
thread reader: Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
thread reader: Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
thread reader: 
==========================================================================
thread reader: ID_VIDEO_CODEC=ffh264
thread reader: 
==========================================================================
thread reader: Trying to force audio codec driver family hwac3...
thread reader: Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
thread reader error: No accelerated IMDCT transform found
thread reader: hwac3: switched to AC3, 192000 bps, 48000 Hz
thread reader: AUDIO: 48000 Hz, 2 ch, ac3, 192.0 kbit/12.50% (ratio: 
24000->192000)
thread reader: ID_AUDIO_BITRATE=192000
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=2
thread reader: Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
thread reader: 
==========================================================================
thread reader: AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
send command = pausing_keep get_property switch_audio

thread reader: ID_AUDIO_CODEC=hwac3
thread reader: [Mixer] No hardware mixing, inserting volume filter.
thread reader error: [format] Sample format big-endian AC3 not yet supported 
thread reader: Starting playback...
thread reader error: 
Thread Error: state = QUIT, shutting down
ERROR: 
Thread completing
video present = 1
movie size = 1280 x 722
movie allocation new_width 1280 new_height 722
actual movie new_width 372 new_height 1
original movie width -1 height -1
new_width 1280 new_height 0
shutting down threadquery for /media/data/local/downloads/example.mkv since 
threaddata->done is TRUE"

and here the working mplayer command:
mplayer -ac hwac3 example.mkv 

"MPlayer SVN-r29796-4.4.4 (C) 2000-2009 MPlayer Team

Playing example.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang ger
[mkv] Track ID 3: subtitles (S_VOBSUB), -sid 0, -slang ger
[mkv] Track ID 4: audio (A_DTS), -aid 1, -alang eng
[mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 192000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12 
A:  63.4 V:  63.4 A-V: -0.000 ct:  0.780   0/  0 30%  1%  0.4% 0 0 
Exiting... (Quit)"

Original comment by pinkusp...@wp.pl on 9 Dec 2010 at 5:35

GoogleCodeExporter commented 8 years ago
Couple of things to recommend..

1. Might want to upgrade mplayer because of this error in the log

[format] Sample format big-endian AC3 not yet supported 

2. try this command line

mplayer -profile gnome-mplayer -afm hwac3, -slave -identify -softvol -volume 
100 -mixer-channel Master -framedrop -noconsolecontrols -noidle -osdlevel 0 
-nomouseinput -nocache -fs -ss 0 -ass -embeddedfonts -ass-font-scale 1.00 
-ass-color ffffff00 -channels 4 -vf-add screenshot -dvd-device /dev/dvd 
/media/data/local/downloads/example.mkv 

if it fails, try dropping the -softvol and probably -volume 100 (if you don't 
remove that it will be REALLY loud) parameter and see if that helps

Original comment by kdeko...@gmail.com on 9 Dec 2010 at 5:42

GoogleCodeExporter commented 8 years ago
i don´t think, that this is a problem with mplayer. 
if started from the command-line, ac3 passthrough works fine with mplayer. 
there are no errors like "[format] Sample format big-endian AC3 not yet 
supported".
Errors only occur when gnome-mplayer is used as GUI. 

Original comment by pinkusp...@wp.pl on 9 Dec 2010 at 7:34

GoogleCodeExporter commented 8 years ago
Please test as requested, otherwise I cannot fix the issue. Some of the extra 
options that are added as part of the gnome-mplayer command line to mplayer may 
be causing the format errors. I need to isolate that option so I can tell the 
code not to use it when starting mplayer when using the hwac3 afm.

Original comment by kdeko...@gmail.com on 9 Dec 2010 at 7:49

GoogleCodeExporter commented 8 years ago
tested from command-line: mplayer svn-r29796-4.4.4

mplayer -profile gnome-mplayer -afm hwac3, -slave -identify -softvol -volume 
100 -mixer-channel Master -framedrop -noconsolecontrols -noidle -osdlevel 0 
-nomouseinput -nocache -fs -ss 0 -ass -embeddedfonts -ass-font-scale 1.00 
-ass-color ffffff00 -channels 4 -vf-add screenshot -dvd-device /dev/dvd 
example.mkv

"MPlayer SVN-r29796-4.4.4 (C) 2000-2009 MPlayer Team

Playing example.mkv.
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=ger
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang ger
ID_SUBTITLE_ID=0
ID_SID_0_LANG=ger
[mkv] Track ID 3: subtitles (S_VOBSUB), -sid 0, -slang ger
ID_AUDIO_ID=1
ID_AID_1_LANG=eng
[mkv] Track ID 4: audio (A_DTS), -aid 1, -alang eng
ID_SUBTITLE_ID=1
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=example.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=4074.32
ID_SEEKABLE=1
ID_CHAPTERS=0
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [eq2]
[ass] Init
[ass] Updating font cache.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 192000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 192.0 kbit/12.50% (ratio: 24000->192000)
ID_AUDIO_BITRATE=192000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
ID_AUDIO_CODEC=hwac3
[Mixer] No hardware mixing, inserting volume filter.
[format] Sample format big-endian AC3 not yet supported 
Starting playback...

MPlayer interrupted by signal 11 in module: decode_audio
ID_SIGNAL=11
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug."

And with mplayer svn-r32624 not much of a change...

"MPlayer SVN-r32624-4.4.4 (C) 2000-2010 MPlayer Team

Playing example.mkv.
libavformat file format detected.
[matroska,webm @ 0xaa92160] max_analyze_duration reached
[matroska,webm @ 0xaa92160] Estimating duration from bitrate, this may be 
inaccurate
ID_VIDEO_ID=0
[lavf] stream 0: video (h264), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=ger
[lavf] stream 1: audio (ac3), -aid 0, -alang ger
ID_SUBTITLE_ID=0
ID_SID_0_LANG=ger
[lavf] stream 2: subtitle (dvdsub), -sid 0, -slang ger
ID_AUDIO_ID=1
ID_AID_1_LANG=eng
[lavf] stream 3: audio (dca), -aid 1, -alang eng
ID_SUBTITLE_ID=1
ID_SID_1_LANG=eng
[lavf] stream 4: subtitle (unknown), -sid 1, -slang eng
VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=example.mkv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=192000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=4074.32
ID_SEEKABLE=1
ID_CHAPTERS=0
Opening video filter: [ass auto=1]
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [eq2]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 192000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3be, 192.0 kbit/12.50% (ratio: 24000->192000)
ID_AUDIO_BITRATE=192000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch ac3le (2 bytes per sample)
ID_AUDIO_CODEC=hwac3
[Mixer] No hardware mixing, inserting volume filter.
[format] Sample format big-endian AC3 not yet supported 
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
[swscaler @ 0x87dc300]using unscaled yuv420p -> rgb24 special converter
VO: [xv] 1280x720 => 1280x720 Planar YV12  [fs]

MPlayer interrupted by signal 11 in module: av_sync
ID_SIGNAL=11
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug."

Original comment by pinkusp...@wp.pl on 10 Dec 2010 at 8:09

GoogleCodeExporter commented 8 years ago
Ok, that is what I expected. Can you remove the -softvol and -volume 100 
options and test again?

Original comment by kdeko...@gmail.com on 10 Dec 2010 at 1:42

GoogleCodeExporter commented 8 years ago
without the -softvol and -volume it seems to work.

mplayer -profile gnome-mplayer -afm hwac3, -slave -identify -mixer-channel 
Master -framedrop -noconsolecontrols -noidle -osdlevel 0 -nomouseinput -nocache 
-fs -ss 0 -ass -embeddedfonts -ass-font-scale 1.00 -ass-color ffffff00 
-channels 4 -vf-add screenshot -dvd-device /dev/dvd example.mkv

"MPlayer SVN-r29796-4.4.4 (C) 2000-2009 MPlayer Team

Playing example.mkv.
ID_VIDEO_ID=0
ID_VID_0_NAME=BSG - S03E06
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "BSG - S03E06", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=AC3 5.1 @ 448 kbps
ID_AID_0_LANG=ger
[mkv] Track ID 2: audio (A_AC3) "AC3 5.1 @ 448 kbps", -aid 0, -alang ger
ID_AUDIO_ID=1
ID_AID_1_NAME=AC3 2.0 @ 224 kbps
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_AC3) "AC3 2.0 @ 224 kbps", -aid 1, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x720  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=example.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=6
ID_LENGTH=2515.64
ID_SEEKABLE=1
ID_CHAPTERS=0
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [eq2]
[ass] Init
[ass] Updating font cache.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 448000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 448.0 kbit/29.17% (ratio: 56000->192000)
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
ID_AUDIO_CODEC=hwac3
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
[swscaler @ 0x87e9c60]No accelerated colorspace conversion found.
[swscaler @ 0x87e9c60]using unscaled yuv420p -> rgb24 special converter
VO: [xv] 1280x720 => 1280x720 Planar YV12  [fs]
A:   2.0 V:   2.0 A-V:  0.000 ct:  0.000   0/  0 25%  3%  0.1% 0 0 
Exiting... (Quit)
ID_EXIT=QUIT"

Original comment by pinkusp...@wp.pl on 10 Dec 2010 at 2:38

GoogleCodeExporter commented 8 years ago
So disable software volume control in gnome-mplayer on the Edit->Preferences 
[mplayer]. And I'll put in fix to disable and uncheck software volume control 
when AC/3 is enabled. 

Original comment by kdeko...@gmail.com on 10 Dec 2010 at 2:48

GoogleCodeExporter commented 8 years ago
Should be fixed in r1803. You might need to reselect AC3 support to make sure 
everything is configured right.

Original comment by kdeko...@gmail.com on 10 Dec 2010 at 3:19

GoogleCodeExporter commented 8 years ago
ok, that helped.
i have not considered that software volume control could be the cause for the 
errors, because i thought it would be irrelevant for the digital spdif anyway.
thank you for pointing this out.

Original comment by pinkusp...@wp.pl on 10 Dec 2010 at 6:17

GoogleCodeExporter commented 8 years ago
I believe this problem has been fixed in SVN as selecting software volume 
control with AC/3 enabled is no longer possible.

Original comment by kdeko...@gmail.com on 1 Jan 2011 at 5:22