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

Ulion ulion2002 at gmail.com
Sun Nov 25 13:58:57 CET 2007


2007/11/25, Niko Vettenranta <niko.vettenranta at gmail.com>:
> On Nov 25, 2007 4:21 AM, Ulion <ulion2002 at gmail.com> wrote:
>
> > 2007/11/25, Ulion <ulion2002 at gmail.com>:
> > > 2007/11/24, Ulion <ulion2002 at gmail.com>:
> > > > 2007/11/24, Ulion <ulion2002 at gmail.com>:
> > > > > 2007/11/24, Niko Vettenranta <niko.vettenranta at gmail.com>:
> > > > > > stuttering samples now hopefully uploaded, directory name is
> > dts_samples
> > > > > >
> > > > > > I included four samples:
> > > > > > one working DTS track that is created with dtscore from dts hd
> > track
> > > > > > three stuttering DTS tracks created from PCM, LPCM and TruHD
> > tracks with
> > > > > > eac3to and nero
> > > > >
> > > > > Can you descript how you get these three stuttering files detailly?
> > > >
> > >
> > > Both three stuttering dts files passthrough without problem on my mac os
> > x
> > > with creative DDTS-100 receiver. So this could be a bug of ao_alsa or
> > > a bug of alsa or alsalib.
> > > Can you find any other player can passthrough the stuttering dts file
> > > on your machine correctly?
> > > And also need your mplayer's output messages when passthrough these
> > > files, you should add '-v' to mplayer's cmdline to get verbose output
> > > to help locate the problem.
> >
> > Try newest svn version of mplayer and you must on i386 platform with a
> > old version of mplayer, it has bug when swap byte endian of last byte
> > of dts packet.
> >
> >
> > --
> > Ulion
> > _______________________________________________
> > MPlayer-users mailing list
> > MPlayer-users at mplayerhq.hu
> > http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> >
> It is now fixed! I installed the new rc2 version of mplayer-nogui from
> here<http://packages.ubuntu.com/cgi-bin/download.pl?arch=i386&file=pool%2Fmultiverse%2Fm%2Fmplayer%2Fmplayer-nogui_1.0%7Erc2-0ubuntu1%7Egutsy1_i386.deb&md5sum=6e9c55a94ad70a8a367f9fae390d45ee&arch=i386&type=main>(mplayer-nogui_1.0~rc2-0ubuntu1~gutsy1_i386.deb)
> to replace my current
> mplayer that comes from regular Ubuntu repos and now all DTS tracks
> passthrough nicely!
>
> I took those mplayer's output messages (username edited) with the older
> version, just so if someone happens to need them. Here's the output when
> playing the working dts track:
>
> MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
> CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75,
> 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/xxx/.mplayer/codecs.conf'
> Reading /home/xxx/.mplayer/codecs.conf: Can't open
> '/home/xxx/.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' 'working_dts_with_dtscore.dts'
> init_freetype
> /home/xxx/.fonts/calibrib.ttf doesn't look like a bitmap font description,
> ignoring.
> Cannot load bitmap font: /home/xxx/.fonts/calibrib.ttf
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using nanosleep() timing
> get_path('input.conf') -> '/home/xxx/.mplayer/input.conf'
> Can't open input config file /home/xxx.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('working_dts_with_dtscore.dts.conf') -> '/home/xxx
> /.mplayer/working_dts_with_dtscore.dts.conf'
>
> Playing working_dts_with_dtscore.dts.
> get_path('sub/') -> '/home/xxx/mplayer/sub/'
> [file] File size is 12005604 bytes
> STREAM: [file] working_dts_with_dtscore.dts
> STREAM: Description: File
> STREAM: Author: Albeu
> STREAM: Comment: based on the code from ??? (probably Arpi)
> Checking for YUV4MPEG2
> ASF_check: not ASF guid!
> Checking for NuppelVideo
> Checking for REAL
> Checking for SMJPEG
> Searching demuxer type for filename working_dts_with_dtscore.dts ext: .dts
> Checking for Nullsoft Streaming Video
> Checking for MOV
> Checking for VIVO
> AVS: avs_check_file - attempting to open file working_dts_with_dtscore.dts
> AVS: File is too big, aborting...
> Checking for PVA
> Checking for MPEG-TS...
> TRIED UP TO POSITION 70163, FOUND 47, packet_size= 0, SEEMS A TS? 0
> Checking for LMLM4 Stream Format
> Invalid packet in LMLM4 stream: ch=32766 size=-63144534
> LMLM4 Stream Format not found
> sync_mpeg_ps: seems to be MP3 stream...
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG packet stats: p100: 0  p101: 1 p1B6: 0 p12x: 0 sli: 1 a: 0 b: 1 c: 0
> idr: 0 sps: 0 pps: 0 PES: 0  MP3: 101, synced: 0
> Not MPEG System Stream format... (maybe Transport Stream?)
> sync_mpeg_ps: seems to be MP3 stream...
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG packet stats: p100: 0  p101: 1 p1B6: 0 p12x: 0 sli: 1 a: 0 b: 1 c: 0
> idr: 0 sps: 0 pps: 0 PES: 0  MP3: 101, synced: 0
> Not MPEG System Stream format... (maybe Transport Stream?)
> ==> Found video stream: 0
> ds_fill_buffer: EOF reached (stream: video)
> LAVF_check: raw dts
> libavformat file format detected.
> Stream with high frequencies VQ coding
> ==> Found audio stream: 0
> ======= WAVE Format =======
> Format Tag: 8193 (0x2001)
> Channels: 2
> Samplerate: 48000
> avg byte/sec: 0
> Block align: 0
> bits/sample: 0
> cbSize: 0
> ==========================================================================
> LAVF: 1 audio and 0 video streams found
> LAVF: build 3278336
> ==========================================================================
> Forced audio codec: hwac3
> 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 -> 0Hz/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 iec958
> 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...
> Uninit audio filters...
> [libaf] Removing filter dummy
> Uninit audio: hwac3
> alsa-uninit: pcm closed
> vo: x11 uninit called but X11 not inited..
>
> Exiting... (Quit)
>
>
>
> And here is the non-working output:
>
> MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
> CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75,
> 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/xxx/.mplayer/codecs.conf'
> Reading /home/xxx/.mplayer/codecs.conf: Can't open
> '/home/xxx/.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' 'stuttering_dts_lpcm.dts'
> init_freetype
> /home/xxx/.fonts/calibrib.ttf doesn't look like a bitmap font description,
> ignoring.
> Cannot load bitmap font: /home/xxx/.fonts/calibrib.ttf
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using nanosleep() timing
> get_path('input.conf') -> '/home/xxx/.mplayer/input.conf'
> Can't open input config file /home/xxx/.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('stuttering_dts_lpcm.dts.conf') -> '/home/xxx
> /.mplayer/stuttering_dts_lpcm.dts.conf'
>
> Playing stuttering_dts_lpcm.dts.
> get_path('sub/') -> '/home/xxx/.mplayer/sub/'
> [file] File size is 19888440 bytes
> STREAM: [file] stuttering_dts_lpcm.dts
> STREAM: Description: File
> STREAM: Author: Albeu
> STREAM: Comment: based on the code from ??? (probably Arpi)
> Checking for YUV4MPEG2
> ASF_check: not ASF guid!
> Checking for NuppelVideo
> Checking for REAL
> Checking for SMJPEG
> Searching demuxer type for filename stuttering_dts_lpcm.dts ext: .dts
> Checking for Nullsoft Streaming Video
> Checking for MOV
> Checking for VIVO
> AVS: avs_check_file - attempting to open file stuttering_dts_lpcm.dts
> AVS: File is too big, aborting...
> Checking for PVA
> Checking for MPEG-TS...
> TRIED UP TO POSITION 68185, FOUND 47, packet_size= 0, SEEMS A TS? 0
> Checking for LMLM4 Stream Format
> Invalid packet in LMLM4 stream: ch=32766 size=-63144518
> LMLM4 Stream Format not found
> sync_mpeg_ps: seems to be ES/PES stream...
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG packet stats: p100: 838  p101: 185 p1B6: 0 p12x: 39 sli: 275 a: 14 b: 3
> c: 0 idr: 31 sps: 0 pps: 9 PES: 30  MP3: 5217, synced: 0
> sync_mpeg_ps: seems to be ES/PES stream...
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG packet stats: p100: 838  p101: 185 p1B6: 0 p12x: 39 sli: 275 a: 14 b: 3
> c: 0 idr: 31 sps: 0 pps: 9 PES: 30  MP3: 5217, synced: 0
> ==> Found video stream: 0
> ds_fill_buffer: EOF reached (stream: video)
> LAVF_check: raw dts
> libavformat file format detected.
> Stream with high frequencies VQ coding
> ==> Found audio stream: 0
> ======= WAVE Format =======
> Format Tag: 8193 (0x2001)
> Channels: 2
> Samplerate: 48000
> avg byte/sec: 0
> Block align: 0
> bits/sample: 0
> cbSize: 0
> ==========================================================================
> LAVF: 1 audio and 0 video streams found
> LAVF: build 3278336
> ==========================================================================
> Forced audio codec: hwac3
> 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 -> 0Hz/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 iec958
> 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...
> Uninit audio filters...
> [libaf] Removing filter dummy
> Uninit audio: hwac3
> alsa-uninit: pcm closed
> vo: x11 uninit called but X11 not inited..
>
> Exiting... (Quit)
>
> At first I was a little worried that this would have been a bug somewhere in
> alsa, because you were able to passthrough those DTS tracks in os x and for
> me they worked fine in windows xp, just my htpc running ubuntu and mythtv
> could passthrough them to my receiver. But luckily it is now fixed and all
> DTS tracks passthrough beautifully! Thank you so much!

That's great, the swap last byte of dts packet was fixed by Reimar
about two month ago, it resolved your problem. We should thanks to
him. :)

-- 
Ulion



More information about the MPlayer-users mailing list