Opened 14 years ago

Last modified 13 years ago

#1709 new defect

Not work bitstreaming AC3-Embedded from Dolby TrueHD on S/PDIF

Reported by: pravda123@… Owned by: reimar
Priority: normal Component: ad
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Hi.
"-ac help" does not offer any other options for bitstreaming AC3, except "hwac3". But this decoder does not work with embedded AC3 from TrueHD.

If try "-ac hwac3" with TrueHD + AC3 Embedded, you get:

Forced audio codec: hwac3
Cannot find codec for audio format 0x44485254.
Audio: no sound

Using mplayer version 1.0_rc4_p20100506.

Change History (4)

comment:1 by reimar, 14 years ago

You can disable this check with -ac +hwac3
However I am not sure this will actually work, please report.

comment:2 by pravda123@…, 14 years ago

(In reply to comment #1)

You can disable this check with -ac +hwac3
However I am not sure this will actually work, please report.

No, it no working.
If I try play file wich Dolby TrueHD+AC3 Embedded I get no sound and alert "Too many video packets in the buffer" for each frame:

Forced audio codec: +hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 160000 bps, 44100 Hz
AUDIO: 44100 Hz, 2 ch, ac3be, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: conf.c:4484:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:4617:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hw:0,1,AES0=6
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 44100Hz 2ch ac3le (2 bytes per sample)
Starting playback...

Too many video packets in the buffer: (605 in 33563118 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264 @ 0xa38de0]number of reference frames exceeds max (probably corrupt input), discarding one
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [x11] 1920x1080 => 1920x1080 Planar YV12
[swscaler @ 0xb39040]using unscaled yuv420p -> bgra special converter

A:4224.9 V:4199.9 A-V: 25.012 ct: 0.000 2/ 2 ??% ??% ??,?% 0 0 49%
Too many video packets in the buffer: (603 in 33562834 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A:4224.9 V:4200.0 A-V: 24.976 ct: 0.004 3/ 3 ??% ??% ??,?% 0 0 49%
Too many video packets in the buffer: (602 in 33562692 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A:4225.0 V:4200.0 A-V: 24.975 ct: 0.008 4/ 4 ??% ??% ??,?% 0 0 49%

For other file reports differ:

Forced audio codec: +hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 192000 bps, 22050 Hz
AUDIO: 22050 Hz, 2 ch, ac3be, 192.0 kbit/27.21% (ratio: 24000->88200)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: conf.c:4484:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:4617:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hw:0,1,AES0=6
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 44100Hz 2ch ac3le (2 bytes per sample)
[format] Sample format big-endian AC3 not yet supported
Couldn't find matching filter/ao format!
Audio: no sound
Starting playback...

But result is the same - no sound. In both cases AC3 Embedded has such properties: 5.1/48 kHz/640 kbps.

comment:3 by compn, 13 years ago

Owner: changed from r_togni@… to reimar

comment:4 by pravda123@…, 13 years ago

Bug solved.
lavf learned to recognize the AC3-Embedded as a separate track, and it has no problem bitstreaming:

mplayer -cache 102400 -vo gl:colorspace=2 -ao alsa:device=hw=0.1 -ac hwdts,hwac3 /mnt/cdrom/BDMV/STREAM/00003.m2ts -demuxer lavf -aid 2

MPlayer SVN-r33094-4.4.5 (C) 2000-2011 MPlayer Team

Playing /mnt/cdrom/BDMV/STREAM/00003.m2ts.
Cache fill: 0.00% (0 bytes)

libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (pcm_bluray), -aid 0
[lavf] stream 2: audio (truehd), -aid 1
[lavf] stream 3: audio (ac3), -aid 2
[lavf] stream 4: audio (truehd), -aid 3
[lavf] stream 5: audio (ac3), -aid 4
[lavf] stream 6: subtitle (pgssub), -sid 0
[lavf] stream 7: subtitle (pgssub), -sid 1
LAVF: Program 1
VIDEO: [H264] 1920x1080 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: hwdts
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 640000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3be, 640.0 kbit/41.67% (ratio: 80000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: conf.c:4514:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:4647:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM hw:0,1,AES0=6
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch ac3le (2 bytes per sample)
Starting playback...

Sorry that is not reported earlier.

Note: See TracTickets for help on using tickets.