[MPlayer-users] audio stutter with DTS in matroska?

Steven Adeff adeffs.mythtv at gmail.com
Fri Nov 2 22:27:38 CET 2007


On 11/1/07, Ulion <ulion2002 at gmail.com> wrote:
> 2007/11/2, Vladimir Mosgalin <mosgalin at vm10124.spb.edu>:
> > Hi Steven Adeff!
> >
> >  On 2007.11.01 at 15:06:31 -0400, Steven Adeff wrote next:
> >
> > > > DTS audio cd is not supported by mplayer.
> > >
> > > darn =(  I'll look for an avi with DTS to test then.
> >
> > Well it may be not supported, but it works, and works very good (for
> > quite a long time, I must say). So don't hesitate to pick a track from
> > audio cd.
>
> Certainly it support decode the dts by libdca, but for passthrough,
> probably not by hwac3.
> I ever has a patch for ./libmpcodecs/ad_hwac3.c to detect all 4 kind
> of DTS streams, but not commited. Current hwac3 only support 48kHz DTS
> passthrough, you can find "DTS: Only 48kHz supported, REPORT BUG" in
> that file. DTS cd or wav probably is 44.1kHz, so the passthrough will
> failed.
> But you can force the audio format to lpcm to passthrough the DTS cd
> or wav, that works because the external decoder normaly can decode
> such dts stream without the passthrough work from hwac3.
>
> Steven, since your AC3 play is no problem, maybe you can give me a
> sample for your problem DTS mkv. And also, try to add '-v' to mplayer
> commandline and grab the output message here to see whether any
> abnormal thing happens.

Here's the output from a DTS CD...
$ mplayer -v LL\ Cool\ J\ -\ All\ World.wav
MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (Family: 15,
Model: 35, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/mythtv/.mplayer/codecs.conf'
Reading /home/mythtv/.mplayer/codecs.conf: Can't open
'/home/mythtv/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open
'/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' 'LL Cool J - All World.wav'
init_freetype
get_path('font/font.desc') -> '/home/mythtv/.mplayer/font/font.desc'
font: can't open file: /home/mythtv/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/mythtv/.mplayer/input.conf'
Can't open input config file /home/mythtv/.mplayer/input.conf: No such
file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 67 binds
Setting up LIRC support...
get_path('LL Cool J - All World.wav.conf') ->
'/home/mythtv/.mplayer/LL Cool J - All World.wav.conf'

Playing LL Cool J - All World.wav.
get_path('sub/') -> '/home/mythtv/.mplayer/sub/'
[file] File size is 781004844 bytes
STREAM: [file] LL Cool J - All World.wav
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 1654784  pre:1677721  eof:0

Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename LL Cool J - All World.wav ext: .wav
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 44100
avg byte/sec: 176400
Block align: 4
bits/sample: 16
cbSize: 0
==========================================================================
[demux_audio] DTS audio in wav, 14 bit, LE
demux_audio: audio data 0x2C - 0x2E8D302C
Audio file file format detected.
==========================================================================
Forced audio codec: hwdts
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
dec_audio: Allocating 8192 bytes for input buffer.
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer.
No accelerated IMDCT transform found
hwac3: switched to AC3, 40000 bps, 48000 Hz
a52: CRC check failed!
AUDIO: 48000 Hz, 2 ch, ac3, 40.0 kbit/2.60% (ratio: 5000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
==========================================================================
Building audio filter chain for 48000Hz/2ch/ac3 -> 48000Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
alsa-init: requested format: 48000 Hz, 2 channels, 100
alsa-init: using ALSA 1.0.14a
alsa-spdif-init: playing AC3, 2 channels
alsa-init: using device digital
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/ac3 -> 48000Hz/2ch/ac3...
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
Video: no video
Freeing 0 unused video chunks.
Starting playback...
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
DTS: Only 48kHz supported, REPORT BUG
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!  893.0 ( 7:44:53.0) ??,?% 76%
a52: CRC check failed!  6200.0 (43:23:20.0) ??,?% 76%
a52: CRC check failed!  525.0 ( 5:25:25.0) ??,?% 72%
a52: CRC check failed!  0167.0 (36:09:27.0) ??,?% 64%
a52: CRC check failed!  050.0 (10:50:50.0) ??,?% 62%
a52: CRC check failed!  2401.0 (86:46:41.0) ??,?% 62%
a52: CRC check failed!  1572.0 (30:59:32.0) 37.7% 53%
A:1298.7 (21:38.7) of 892576.0 (247:56:16.0) 35.0% 53%

MPlayer interrupted by signal 2 in module: play_audio
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: hwac3


MPlayer interrupted by signal 2 in module: enable_cache
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not inited..


and here's the output from a mkv with a DTS track that stutters,
$ mplayer -v Crank.mkv -vo null
MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (Family: 15,
Model: 35, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/mythtv/.mplayer/codecs.conf'
Reading /home/mythtv/.mplayer/codecs.conf: Can't open
'/home/mythtv/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open
'/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' 'Crank.mkv' '-vo' 'null'
init_freetype
get_path('font/font.desc') -> '/home/mythtv/.mplayer/font/font.desc'
font: can't open file: /home/mythtv/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/mythtv/.mplayer/input.conf'
Can't open input config file /home/mythtv/.mplayer/input.conf: No such
file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 67 binds
Setting up LIRC support...
get_path('Crank.mkv.conf') -> '/home/mythtv/.mplayer/Crank.mkv.conf'

Playing Crank.mkv.
get_path('sub/') -> '/home/mythtv/.mplayer/sub/'
[file] File size is 4695617000 bytes
STREAM: [file] Crank.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 778240  pre:1677721  eof:0
Cache fill:  9.57% (802816 bytes)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing seek head ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 5262.257s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 167
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] |  + Language: eng
[mkv] |  + Name: Crank (2006)
[mkv] |  + Video track
[mkv] |   + Pixel width: 1280
[mkv] |   + Pixel height: 720
[mkv] |   + Display width: 16
[mkv] |   + Display height: 9
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_DTS
[mkv] |  + Language: eng
[mkv] |  + Name: DTS 5.1 - 1.5 Mb/s
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 6
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: S_TEXT/UTF8
[mkv] |  + Language: eng
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.777778
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Crank (2006)", -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_DTS) "DTS 5.1 - 1.5 Mb/s", -aid 0, -alang eng
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -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)
[V] filefmt:31  fourcc:0x31637661  size:1280x720  fps:23.98  ftime:=0.0417
get_path('sub/') -> '/home/mythtv/.mplayer/sub/'
[vo] query(Planar YV12) -> 1
[vo] query(Planar I420) -> 1
[vo] query(Planar IYUV) -> 1
[ass] auto-open
get_path('subfont.ttf') -> '/home/mythtv/.mplayer/subfont.ttf'
get_path('fonts') -> '/home/mythtv/.mplayer/fonts'
[ass] Updating font cache
[ass] Init
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: hwdts
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
dec_audio: Allocating 8192 bytes for input buffer.
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer.
No accelerated IMDCT transform found
hwac3: switched to DTS, 1536000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
==========================================================================
Building audio filter chain for 48000Hz/2ch/ac3 -> 48000Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
alsa-init: requested format: 48000 Hz, 2 channels, 100
alsa-init: using ALSA 1.0.14a
alsa-spdif-init: playing AC3, 2 channels
alsa-init: using device digital
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/ac3 -> 48000Hz/2ch/ac3...
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
Starting playback...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
Trying filter chain: ass vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (1280x720->1280x720,flags=1,'MPlayer',0x32315659)
ass_configure: 1280 x 720; margins: l: 0, r: 0, t: 0, b: 0
REQ: flags=0x401  req=0x0
VO: [null] 1280x720 => 1280x720 Planar YV12  [fs]
VO: Description: Null video output
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
*** [ass] Exporting mp_image_t, 1280x720x12bpp YUV planar, 1382400 bytes
*** [vo] Allocating mp_image_t, 1280x720x12bpp YUV planar, 1382400 bytes
A: 147.5 V: 147.5 A-V:  0.001 ct: -0.022 488/488 60%  1%  0.4% 1 0 49%

MPlayer interrupted by signal 2 in module: sleep_timer
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: hwac3
Uninit video: ffmpeg


MPlayer interrupted by signal 2 in module: enable_cache
vo: x11 uninit called but X11 not inited..
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not inited..



-- 
Steve



More information about the MPlayer-users mailing list