[MPlayer-users] dts in libavcodec not working
Giacomo Comes
comes at naic.edu
Fri Nov 17 20:10:55 CET 2006
On Fri, Nov 17, 2006 at 10:34:53AM -0800, khayos wrote:
> The following was all completed with a fresh rebuild (including 'make
> distclean') of MPlayer-1.0rc1. There are a lot of long pastes in this
> e-mail, as requested, but please make sure to read the very end for
> the victory tale.
>
>
> #### In order to determine which audio tracks exist:
> ~$ mplayer -v dvd://4
> <snip>
> audio stream: 0 format: dts (5.1) language: en aid: 136.
> audio stream: 1 format: ac3 (5.1) language: en aid: 129.
> audio stream: 2 format: ac3 (5.1) language: fr aid: 130.
> number of audio channels on disk: 3.
> </snip>
> ~$
>
>
> #### Just to make sure about AC3:
> ~$ mplayer -ac ac3 -aid 129 dvd://4
> MPlayer 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
> CPU: Intel(R) Pentium(R) 4 CPU 1500MHz (Family: 15, Model: 0, Stepping: 7)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
>
> Playing dvd://4.
> There are 13 titles on this DVD.
> There are 29 chapters in this DVD title.
> There are 1 angles in this DVD title.
> audio stream: 0 format: dts (5.1) language: en aid: 136.
> audio stream: 1 format: ac3 (5.1) language: en aid: 129.
> audio stream: 2 format: ac3 (5.1) language: fr aid: 130.
> number of audio channels on disk: 3.
> subtitle ( sid ): 0 language: en
> subtitle ( sid ): 1 language: es
> subtitle ( sid ): 2 language: fr
> number of subtitles on disk: 3
> MPEG-PS file format detected.
> VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> The selected video_out device is incompatible with this codec.
> Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
> Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
> ==========================================================================
> ==========================================================================
> Forced audio codec: ac3
> Requested audio codec family [ac3] (afm=libac3) not available.
> Enable it at compilation.
> Cannot find codec for audio format 0x2000.
> Read DOCS/HTML/en/codecs.html!
> Audio: no sound
> Starting playback...
> VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
> VO: [x11] 720x480 => 854x480 Planar YV12
> SwScaler: using unscaled yuv420p -> rgb32 special converter
> V: 0.6 12/ 10 ??% ??% ??,?% 0 0
> demux_mpg: 24000/1001fps progressive NTSC content detected, switching
> framerate.
> V: 18.9 451/448 11% 6% 0.0% 0 0
> Exiting... (Quit)
> ~$
>
> ... still no sound, and still the line: "Audio: no sound"
>
>
> #### with "-msglevel demuxer=6:open-6"
> ~$ mplayer -ac ac3 -aid 129 -msglevel demuxer=6:open=6 dvd://4
> MPlayer 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
> CPU: Intel(R) Pentium(R) 4 CPU 1500MHz (Family: 15, Model: 0, Stepping: 7)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
>
> Playing dvd://4.
> URL: dvd://4
> Reading disc structure, please wait...
> There are 13 titles on this DVD.
> There are 29 chapters in this DVD title.
> There are 1 angles in this DVD title.
> DVD successfully opened.
> audio stream: 0 format: dts (5.1) language: en aid: 136.
> audio stream: 1 format: ac3 (5.1) language: en aid: 129.
> audio stream: 2 format: ac3 (5.1) language: fr aid: 130.
> number of audio channels on disk: 3.
> subtitle ( sid ): 0 language: en
> subtitle ( sid ): 1 language: es
> subtitle ( sid ): 2 language: fr
> number of subtitles on disk: 3
> STREAM: [null] dvd://4
> STREAM: Description: DVD stream
> STREAM: Author:
> STREAM: Comment:
> Searching demuxer type for filename dvd://4 ext: (null)
> ==> Found video stream: 0
> ==> Found audio stream: 136
> ==> Found audio stream: 129
> ==> Found audio stream: 130
> ds_fill_buffer: EOF reached (stream: video)
> MPEG-PS file format detected.
> VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> The selected video_out device is incompatible with this codec.
> Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
> Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
> ==========================================================================
> ==========================================================================
> Forced audio codec: ac3
> Requested audio codec family [ac3] (afm=libac3) not available.
> Enable it at compilation.
> Cannot find codec for audio format 0x2000.
> Read DOCS/HTML/en/codecs.html!
> Audio: no sound
> Starting playback...
> VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
> VO: [x11] 720x480 => 854x480 Planar YV12
> SwScaler: using unscaled yuv420p -> rgb32 special converter
> V: 0.6 12/ 10 ??% ??% ??,?% 0 0
> demux_mpg: 24000/1001fps progressive NTSC content detected, switching
> framerate.
> V: 20.0 478/475 11% 9% 0.0% 0 0
> Exiting... (Quit)
> ~$
>
>
> NOW, here's the interesting thing. It may be the clean build, it may
> be the latest version of mplayer, but this time around when I tried
> "-ac ffdts"... it worked! I have sound! So I'm not sure why ac3
> didn't work, but the question now is academic. I can go watch my
> movie!
You should not specify any audio codec with -ac unless you have a special need.
mplayer -aid 136 will play the dts audio track and
mplayer -aid 129 will play the ac3 audio track.
the option -ac ac3 is wrong. You should have used -ac a52.
Giacomo
More information about the MPlayer-users
mailing list