[MPlayer-users] Re: Video and audio output problems on OSX

Stefan Gürtler Stefan.guertler at stud.tum.de
Fri May 28 14:23:55 CEST 2004



> It tried to compile mplayer on my PowerBook (Mac OS X 10.3.4). Mencoder
> seems to work fine, but I'm having weird problems with mplayer's video
> output:
>
> -vo quartz:
> The video window can't be activated and stays always behind the
>   terminal window on which the mplayer is running. If I minimize
> the terminal window, then I can see the video, but I can't use
> any keyboard commands. The menu bar hides the top of the picture
> in full-screen mode.
>
> -vo x11:
> Colors are messed up. Either the red and blue are swapped
> in RGB-space or chroma channels are swapped in YUV-space.
> Full-screen is not truly full-screen because the menu bar and
> a narrow stripe of desktop at the bottom stay visible.
> The image is squeezed smaller, not masked like -vo quartz,
> but the resize-widget masks part of the image in non-fs mode.
>
> -vo x11 on remote display:
> Colors are messed up differently. This time it's definitely in
> RGB-space: red is lost, green comes out as red and blue as green.
>
> -vo gl:
> Yet another way to mess up colors. Red becomes green, green
> becomes blue and blue is lost. This is same on local and
> remote display. Trying to switch to full-screen turns the whole
> picture white and then it stays white even when back at non-fs.
> Issues with menu bar and resize-widget same as x11.
>
> -vo gl2:
> Colors ok. Otherwise same as gl.
>
> Full mplayer output from -vo quartz run follows.
>
> --
>  Ville
>
>
>
> MPlayer dev-CVS-040527-15:58-3.3 (C) 2000-2004 MPlayer Team
>
> AltiVec found
> CPU: PowerPC
> Reading config file /i/mplayer-cvs/etc/mplayer/mplayer.conf: No such file
or directory
> Reading config file /Users/vs/.mplayer/config
> Reading /Users/vs/.mplayer/codecs.conf: Can't open
'/Users/vs/.mplayer/codecs.conf': No such file or directory
> Reading /i/mplayer-cvs/etc/mplayer/codecs.conf: Can't open
'/i/mplayer-cvs/etc/mplayer/codecs.conf': No such file or directory
> Using built-in default codecs.conf.
> CommandLine: '-vo' 'quartz' '-af' 'resample=44100' '-v' '-frames' '1'
'Mike's_New_Car.avi'
> init_freetype
> get_path('font/font.desc') -> '/Users/vs/.mplayer/font/font.desc'
> font: can't open file: /Users/vs/.mplayer/font/font.desc
> font: can't open file: /i/mplayer-cvs/share/mplayer/font/font.desc
> Using Unoptimized OnScreenDisplay
> Using usleep() timing
> get_path('input.conf') -> '/Users/vs/.mplayer/input.conf'
> Can't open input config file /Users/vs/.mplayer/input.conf: No such file
or directory
> Can't open input config file /i/mplayer-cvs/etc/mplayer/input.conf: No
such file or directory
> Falling back on default (hardcoded) input config
> get_path('Mike's_New_Car.avi.conf') ->
'/Users/vs/.mplayer/Mike's_New_Car.avi.conf'
>
> Playing Mike's_New_Car.avi.
> [file] File size is 33466920 bytes
> STREAM: [file] Mike's_New_Car.avi
> STREAM: Description: File
> STREAM: Author: Albeu
> STREAM: Comment: based on the code from ??? (probably Arpi)
> AVI file format detected.
> list_end=0x146
> ======= 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: 5382   initial: 0
> streams: 2
> Suggested BufferSize: 0
> Size:  512 x 384
> ==========================
> list_end=0xD4
> ==> Found video stream: 0
> ====== STREAM Header =====
> Type: sdiv   FCC: XVID (58564944)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 250000/10000 = 25.000
> Start: 0   Len: 5382
> Suggested BufferSize: 67733
> Quality 0
> Sample size: 0
> ==========================
> found 'bih', 40 bytes of 40
> ======= VIDEO Format ======
>   biSize 40
>   biWidth 512
>   biHeight 384
>   biPlanes 1
>   biBitCount 24
>   biCompression 1482049860='XVID'
>   biSizeImage 589824
> ===========================
> Regenerating keyframe table for DIVX 4 video
> list_end=0x146
> ==> Found audio stream: 1
> ====== STREAM Header =====
> Type: sdua   FCC:  (55)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 48000/1152 = 41.667
> Start: 0   Len: 8991
> Suggested BufferSize: 672
> Quality 0
> Sample size: 0
> ==========================
> found 'wf', 30 bytes of 18
> ======= WAVE Format =======
> Format Tag: 85 (0x55)
> Channels: 2
> Samplerate: 48000
> avg byte/sec: 12694
> Block align: 1152
> bits/sample: 0
> cbSize: 12
> mp3.wID=256
> mp3.fdwFlags=0x2000000
> mp3.nBlockSize=32772
> mp3.nFramesPerBlock=256
> mp3.nCodecDelay=0
> ===========================
> list_end=0x17E
> hdr=Software  size=36
> Software  : MEncoder dev-CVS-040202-13:40-3.2.2
> list_end=0x1FB27D0
> Found movie at 0x80C - 0x1FB27D0
> Reading INDEX block, 14373 chunks for 5382 frames (fpos=0x0)
> AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x6C)
> Auto-selected AVI audio ID = 1
> Auto-selected AVI video ID = 0
> AVI: Searching for audio stream (id:1)
> AVI video size=30377953 (5382) audio size=2739264 (8991)
> VIDEO:  [XVID]  512x384  24bpp  25.000 fps  1128.9 kbps (137.8 kbyte/s)
> [V] filefmt:3  fourcc:0x58564944  size:512x384  fps:25.00  ftime:=0.0400
> Clip info:
>  Software: MEncoder dev-CVS-040202-13:40-3.2.2
> get_path('sub/') -> '/Users/vs/.mplayer/sub/'
> get_path('default.sub') -> '/Users/vs/.mplayer/default.sub'
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
> mp3lib: using generic C decore!
> MP3lib: init layer2&3 finished, tables done
>
> MPEG 1.0, Layer III, 48000 Hz 32 kbit Joint-Stereo, BPF: 96
> Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
> AUDIO: 48000 Hz, 2 ch, 16 bit (0x20), ratio: 4000->192000 (32.0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> INFO: libavcodec init OK!
> Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
> ==========================================================================
> Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
> [libaf] Adding filter resample
> [resample] Changing sample rate to 44100Hz
> [resample] Using integer processing and inexact frequecy conversion.
> [resample] New filter designed up: 147 down: 160
> AF_pre: af format: 2 bps, 2 ch, 44100 hz, big endian signed int
> AF_pre: 44100Hz 2ch Signed 16-bit (Big-Endian)
> AO: [macosx] hardware format...
> AO: [macosx] 44100.000000 mSampleRate
> AO: [macosx]  lpcm mFormatID
> AO: [macosx]     8 mBytesPerPacket
> AO: [macosx]     1 mFramesPerPacket
> AO: [macosx]     8 mBytesPerFrame
> AO: [macosx]     2 mChannelsPerFrame
> AO: [macosx]  4096 ao->buffer_len
> AO: [macosx] 44100Hz 2ch Floating Point (4 bps)
> AO: Description: Darwin/Mac OS X native audio output
> AO: Author: Timothy J. Wood & Dan Christiansen
> Building audio filter chain for 48000Hz/2ch/16bit -> 44100Hz/2ch/32bit...
> [resample] Using integer processing and inexact frequecy conversion.
> [libaf] Adding filter format
> [format] Changing sample format from 16bit big endian signed int to 32bit
big endian float
> [resample] Using integer processing and inexact frequecy conversion.
> [format] Changing sample format from 16bit big endian signed int to 32bit
big endian float
> Starting playback...
> [libaf] Reallocating memory in module resample, old len = 0, new len =
8192
> [libaf] Reallocating memory in module format, old len = 0, new len = 16388
> XXX initial  v_pts=0.000  a_pos=2016 (0.159)
> A:   0.0 V:   0.0 A-V: -0.016 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
> [ffmpeg] aspect_ratio: 1.333333
> VDec: vo config request - 512 x 384 (preferred csp: Planar YV12)
> Trying filter chain: vo
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO Config (512x384->512x384,flags=0,'MPlayer',0x32315659)
> VO: [quartz] 512x384 => 512x384 Planar YV12
> VO: Description: Mac OSX (Quartz)
> VO: Author: Nicolas Plourde <nicolasplourde at hotmail.com>, Romain Dolbeau
<romain at dolbeau.org>
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> *** [vo] Allocating (slices) mp_image_t, 512x384x12bpp YUV planar, 294912
bytes
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> A:   0.1 V:   0.1 A-V:  0.037 ct:  0.004    2/  2   0%  0%  0.0% 0 0 0%
> EOF code: 1
>
> Uninit audio filters...
> [libaf] Removing filter resample
> [libaf] Removing filter format
> uninit audio: mp3lib
> uninit video: ffmpeg
> DEMUXER: freeing demuxer at 0x180c800
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> AO: [macosx] Buffer underrun
> vo: x11 uninit called but X11 not inited..
>
> Exiting... (End of file)

Some cards will not work in the color spaces yv12
Try to forde the use of nother colorspace and see if it gets better.
To disable yv12:
mplayer -vf noformat=yv12
Or actually force another colourspacer, e.g.
mplayer -vf yuy2
or
mplaer -vf format=yuy2,scale
Second one works with other colourspaces like rgb16, rgb32, bgr16,
bgr32,too.
List of colorspaces with mplayer -vf format=fmt=help

Stefan




More information about the MPlayer-users mailing list