[MPlayer-users] AC3 via optical out on Mac Mini (Intel),

Ulion ulion2002 at gmail.com
Sat May 3 02:58:10 CEST 2008


2008/5/3 Mike Z <zimcomm at hotmail.com>:
>
>
>  > ------------------------------
>  >
>  > Message: 2
>  > Date: Fri, 2 May 2008 11:28:05 +0800
>  > From: Ulion <ulion2002 at gmail.com>
>  > Subject: Re: [MPlayer-users] AC3 via optical out on Mac Mini (Intel),
>  >       10.5?
>  > To: "MPlayer usage questions, feature requests,       bug reports"
>  >       <mplayer-users at mplayerhq.hu>
>  > Message-ID:
>  >       <81b02f020805012028m46ba1906j43852300f2dda083 at mail.gmail.com>
>  > Content-Type: text/plain; charset=ISO-8859-1
>  >
>  > 2008/5/2 Mike Z <zimcomm at hotmail.com>:
>  > >
>  > >  I've done a bunch of searching (including thru the archives here) and can't find a definitive answer.
>  > >
>  > >  I'm wondering if mplayer can output 5.1 channel Dolby Digital over the optical audio out on my Mac Mini.  I have it working with another un-named vmedia player :) on the same file on the same system.  Just can't figure out how to convince mplayer to do the same.  Some other posts seem to imply it might be possible, but I have not been able to replicate that result.
>  > >
>  > >  With mplayer I have tried
>  > >
>  > >  -ac hwac3  (I get pulsing static)
>  > >  -channels 6
>  > >  -ao macosx
>  > >  -ao pcm
>  > >
>  > >  and several others in various combinations.  But the only 2 sounds I've been able to get are
>  > >
>  > >  - downmixed to 2 ch audio
>  > >  - the pulsing static
>  > >
>  > >  I compile the latest source with
>  > >
>  > >  ./configure --disable-x11
>  > >
>  > >  Dunno if there are other libraries I need, etc.
>  > >
>  > >  Thanks for any suggestions.
>  >
>  > just -ac hwac3 should work
>  > else attach your mplayer's full output message here. you may add '-v'
>  > parameter to let mplayer output more verbose output.
>  >
>  >
>  >
>  > --
>  > Ulion
>
>  All I get is the pulsing static...
>
>  >mp -v -afm hwac3 VideoTest.avi
>  MPlayer 1.0rc2-4.0.1 (C) 2000-2007 MPlayer Team
>  CPU: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz (Family: 6, Model: 15, Stepping: 6)
>  CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
>  Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
>  get_path('codecs.conf') -> '/Users/zimmy/.mplayer/codecs.conf'
>  Reading /Users/zimmy/.mplayer/codecs.conf: Can't open '/Users/zimmy/.mplayer/codecs.conf': No such file or directory
>  Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
>  Using built-in default codecs.conf.
>  Configuration: --disable-x11
>  CommandLine: '-v' '-afm' 'hwac3' 'VideoTest.avi'
>  get_path('font/font.desc') -> '/Users/zimmy/.mplayer/font/font.desc'
>  font: can't open file: /Users/zimmy/.mplayer/font/font.desc
>  font: can't open file: /usr/local/share/mplayer/font/font.desc
>  Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
>  Using Darwin accurate timing
>  get_path('input.conf') -> '/Users/zimmy/.mplayer/input.conf'
>  Can't open input config file /Users/zimmy/.mplayer/input.conf: No such file or directory
>  Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
>  Falling back on default (hardcoded) input config
>  get_path('VideoTest.avi.conf') -> '/Users/zimmy/.mplayer/VideoTest.avi.conf'
>
>  Playing VideoTest.avi.
>  get_path('sub/') -> '/Users/zimmy/.mplayer/sub/'
>  [file] File size is 1703300278 bytes
>  STREAM: [file] VideoTest.avi
>  STREAM: Description: File
>  STREAM: Author: Albeu
>  STREAM: Comment: based on the code from ??? (probably Arpi)
>  LAVF_check: avi format
>  AVI file format detected.
>  list_end=0x1E4
>  ======= AVI Header =======
>  us/frame: 40000  (fps=25.000)
>  max bytes/sec: 0
>  padding: 0
>  MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
>  frames  total: 131306   initial: 0
>  streams: 2
>  Suggested BufferSize: 0
>  Size:  720 x 304
>  ==========================
>  list_end=0x114
>  ==> Found video stream: 0
>  [aviheader] Video stream found, -vid 0
>  ====== STREAM Header =====
>  Type: vids   FCC: XVID (44495658)
>  Flags: 0
>  Priority: 0   Language: 0
>  InitialFrames: 0
>  Rate: 25/1 = 25.000
>  Start: 0   Len: 201290
>  Suggested BufferSize: 109984
>  Quality 0
>  Sample size: 0
>  ==========================
>  Found 'bih', 40 bytes of 40
>  ======= VIDEO Format ======
>   biSize 40
>   biWidth 720
>   biHeight 304
>   biPlanes 1
>   biBitCount 12
>   biCompression 1145656920='XVID'
>   biSizeImage 328320
>  ===========================
>  Regenerating keyframe table for MPEG-4 video.
>  ====== AVI Super Index Header ========
>   FCC (indx) dwSize (56) wLongsPerEntry(4)
>   bIndexSubType (0) bIndexType (0)
>   nEntriesInUse (2) dwChunkId (00dc)
>   dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)
>  ===========================
>  ODML (00dc): [0] 0x00000000656bc2a6 0x1003e0 131192
>  ODML (00dc): [1] 0x00000000657bc686 0x88eb0 70098
>  list_end=0x1CC
>  ==> Found audio stream: 1
>  [aviheader] Audio stream found, -aid 1
>  ====== STREAM Header =====
>  Type: auds   FCC:  (2000)
>  Flags: 0
>  Priority: 0   Language: 0
>  InitialFrames: 0
>  Rate: 48000/1 = 48000.000
>  Start: 0   Len: 386474496
>  Suggested BufferSize: 24000
>  Quality 0
>  Sample size: 1
>  ==========================
>  Found 'wf', 36 bytes of 18
>  ======= WAVE Format =======
>  Format Tag: 8192 (0x2000)
>  Channels: 5
>  Samplerate: 48000
>  avg byte/sec: 48000
>  Block align: 1
>  bits/sample: 0
>  cbSize: 18
>  Unknown extra header dump: [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0]
>  ==========================================================================
>  ====== AVI Super Index Header ========
>   FCC (indx) dwSize (56) wLongsPerEntry(4)
>   bIndexSubType (0) bIndexType (0)
>   nEntriesInUse (2) dwChunkId (01wb)
>   dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)
>  ===========================
>  ODML (01wb): [0] 0x0000000065845536 0x14820 251891520
>  ODML (01wb): [1] 0x0000000065859d56 0xaf60 134582976
>  list_end=0x1E4
>  AVI: dmlh found (size=4) (total_frames=131306)
>  list_end=0x21A
>  hdr=Software  size=34
>  Software  : MEncoder dev-CVS-051126-18:35-3.3
>  list_end=0x3FDD3EEA
>  Found movie at 0x100C - 0x3FDD3EEA
>  Reading INDEX block, 141812 chunks for 131306 frames (fpos=1071464178).
>  Additional RIFF header...
>  list_end=0x65864CB6
>  Found movie at 0x100C - 0x65864CB6
>  AVI: ODML: Building ODML index (2 superindexchunks).
>  ====== AVI Standard Index Header ========
>   FCC (ix00) dwSize (1049560) wLongsPerEntry(2)
>   bIndexSubType (0) bIndexType (1)
>   nEntriesInUse (131192) dwChunkId (00dc)
>   qwBaseOffset (0x6DDC) dwReserved3 (0)
>  ===========================
>  ====== AVI Standard Index Header ========
>   FCC (ix00) dwSize (560808) wLongsPerEntry(2)
>   bIndexSubType (0) bIndexType (1)
>   nEntriesInUse (70098) dwChunkId (00dc)
>   qwBaseOffset (0x3FC1B466) dwReserved3 (0)
>  ===========================
>  ====== AVI Standard Index Header ========
>   FCC (ix01) dwSize (83992) wLongsPerEntry(2)
>   bIndexSubType (0) bIndexType (1)
>   nEntriesInUse (10496) dwChunkId (01wb)
>   qwBaseOffset (0x1014) dwReserved3 (0)
>  ===========================
>  ====== AVI Standard Index Header ========
>   FCC (ix01) dwSize (44888) wLongsPerEntry(2)
>   bIndexSubType (0) bIndexType (1)
>   nEntriesInUse (5608) dwChunkId (01wb)
>   qwBaseOffset (0x3FC08E4C) dwReserved3 (0)
>  ===========================
>  AVI index offset: 0x0 (movi=0x100C idx0=0x100C idx1=0x6DD4)
>  Auto-selected AVI audio ID = 1
>  Auto-selected AVI video ID = 0
>  AVI: Searching for audio stream (id:1)
>  AVI video size=1310973754 (201290) audio size=386474496 (386474496)
>  VIDEO:  [XVID]  720x304  12bpp  25.000 fps  1302.6 kbps (159.0 kbyte/s)
>  [V] filefmt:3  fourcc:0x44495658  size:720x304  fps:25.00  ftime:=0.0400
>  Clip info:
>   Software: MEncoder dev-CVS-051126-18:35-3.3
>  get_path('sub/') -> '/Users/zimmy/.mplayer/sub/'
>  ==========================================================================
>  Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
>  INFO: libavcodec init OK!
>  Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
>  ==========================================================================
>  ==========================================================================
>  Trying to force audio codec driver family hwac3...
>  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, 384000 bps, 48000 Hz
>  AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000)
>  Selected audio codec: [hwac3] afm: hwac3 (AC3 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
>  AO: [macosx] source:  48000.0Hz 8bit [lpcm] int BE S packed
>  AO: [macosx] using    24 chunks of 4096 bytes (buffer len 102400 bytes)
>  AO: [macosx] 48000Hz 2ch ac3 (1 bytes per sample)
>  AO: Description: Darwin/Mac OS X native audio output
>  AO: Author: Timothy J. Wood & Dan Christiansen & Chris Roccati
>  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...
>  XXX initial  v_pts=0.000  a_pos=24000 (0.500)
>  [ffmpeg] aspect_ratio: 2.368421
>  VDec: vo config request - 720 x 304 (preferred colorspace: Planar YV12)
>  Trying filter chain: vo
>  Could not find matching colorspace - retrying with -vf scale...
>  Opening video filter: [scale]
>  SwScale params: -1 x -1 (-1=no scaling)
>  Trying filter chain: scale vo
>  VDec: using Planar YV12 as output csp (no 0)
>  Movie-Aspect is 2.37:1 - prescaling to correct movie aspect.
>  VO Config (720x304->720x304,flags=0,'MPlayer',0x32315659)
>  SwScaler: reducing / aligning filtersize 1 -> 4
>  SwScaler: reducing / aligning filtersize 1 -> 4
>  SwScaler: reducing / aligning filtersize 1 -> 1
>  SwScaler: reducing / aligning filtersize 5 -> 4
>  [swscaler @ 0x671850]SwScaler: BICUBIC scaler, from yuv420p to yuyv422 using MMX2
>  [swscaler @ 0x671850]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
>  [swscaler @ 0x671850]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
>  [swscaler @ 0x671850]SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
>  [swscaler @ 0x671850]SwScaler: 720x304 -> 720x304
>  [swscaler @ 0x671850]SwScaler:Lum srcW=720 srcH=304 dstW=720 dstH=304 xInc=65536 yInc=65536
>  [swscaler @ 0x671850]SwScaler:Chr srcW=360 srcH=152 dstW=360 dstH=304 xInc=65536 yInc=32768
>  REQ: flags=0x37  req=0x0
>  VO: [macosx] 720x304 => 720x304 Packed YUY2
>  VO: Description: Mac OSX Core Video
>  VO: Author: Nicolas Plourde <nicolas.plourde at gmail.com>
>  *** [vo] Allocating mp_image_t, 720x304x16bpp YUV packed, 437760 bytes
>  *** [scale] Allocating (slices) mp_image_t, 720x304x12bpp YUV planar, 328320 bytes
>  *** [scale] Allocating (slices) mp_image_t, 720x304x12bpp YUV planar, 328320 bytes
>  *** [scale] Allocating (slices) mp_image_t, 720x304x12bpp YUV planar, 328320 bytes
>  Uninit audio filters...-1.481 ct: -0.220  56/ 56  7%  3%  0.1% 0 0
>  [libaf] Removing filter dummy
>  Uninit audio: hwac3
>  Uninit video: ffmpeg

OK, your mplayer version isn't the newest, indeed, the code to support
of ac3 output on macosx was commited just after the 1.0rc2 timestamp.
But you can found the usable version of mplayer in the MPlayer OSX
1.0rc2 in the mplayer's download page, it use some later code of
mplayer, and have many very useful improvements.

-- 
Ulion



More information about the MPlayer-users mailing list