Opened 4 years ago

Closed 3 years ago

#2374 closed defect (fixed)

.yuv playback doesn't work on Mac, but works on Ubuntu

Reported by: Pixeldust Owned by: beastd
Priority: normal Component: MPlayer OS X
Version: unspecified Severity: blocker
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Summary of the bug:
mplayer on Mac (1.4 via brew) differ compared to the ubuntu version.
Playing foreman.yuv on Mac (MacOS 10.15.7) displays only a black image with a green square, while on ubuntu it plays fine with both 1.3 and 1.4

How to reproduce:
$ mplayer foreman.yuv -demuxer rawvideo -rawvideo w=352:h=288
Video file: https://its-git.fh-salzburg.ac.at/fhs41601/medien/blob/a1b1b832429aa7463f98d699a9398ec01e2af917/foreman.yuv

% mplayer -v  input:
MPlayer 1.4-12.0.0 (C) 2000-2019 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (Family: 6, Model: 70, Stepping: 1)
extended cpuid-level: 8
extended cache-info: 16801856
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX CMOV
get_path('codecs.conf') -> '/Users/user/.mplayer/codecs.conf'
Reading optional codecs config file /Users/user/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /usr/local/Cellar/mplayer/1.4_2/etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/Users/user/.mplayer/fonts'
Configuration: --cc=clang --host-cc=clang --disable-cdparanoia --prefix=/usr/local/Cellar/mplayer/1.4_2 --disable-x11 --enable-caca --enable-freetype --disable-libbs2b
CommandLine: '-v' 'foreman.yuv' '-demuxer' 'rawvideo' '-rawvideo' 'w=352:h=288'
Using Darwin accurate timing
get_path('input.conf') -> '/Users/user/.mplayer/input.conf'
Reading optional input config file /Users/user/.mplayer/input.conf: No such file or directory
Reading optional input config file /usr/local/Cellar/mplayer/1.4_2/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Can't init Apple Remote.
get_path('foreman.yuv.conf') -> '/Users/user/.mplayer/foreman.yuv.conf'

Playing foreman.yuv.
get_path('sub/') -> '/Users/user/.mplayer/sub/'
[file] File size is 45619200 bytes
STREAM: [file] foreman.yuv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
rawvideo file format detected.
==> Found video stream: 0
[V] filefmt:26  fourcc:0x30323449  size:352x288  fps:25.000  ftime:=0.0400
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 288 (preferred colorspace: Planar I420)
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 I420 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (352x288->352x288,flags=0,'MPlayer',0x30323449)
[swscaler @ 0x7f8d4efec000] bicubic scaler, from yuv420p to yuyv422 using MMXEXT
REQ: flags=0x8437  req=0x0  
VO: [corevideo] 352x288 => 352x288 Packed YUY2 
VO: Description: Mac OS X Core Video
VO: Author: Nicolas Plourde <nicolas.plourde@gmail.com>
Selected video codec: [rawi420] vfm: raw (RAW I420)
==========================================================================
Load subtitles in ./
get_path('sub/') -> '/Users/user/.mplayer/sub/'
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
*** [scale] Exporting mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
*** [vo] Allocating mp_image_t, 352x288x16bpp YUV packed, 202752 bytes
Unicode font: 737 glyphs.
Unicode font: 737 glyphs.

Attachments (2)

Foreman.yuv on Mac.png (200.6 KB ) - added by Pixeldust 4 years ago.
Image produced playing foreman.yuv on Mac
Foreman.yuv on Ubuntu 20.04.png (209.9 KB ) - added by Pixeldust 4 years ago.
Image produced playing foreman.yuv on Ubuntu

Download all attachments as: .zip

Change History (4)

by Pixeldust, 4 years ago

Attachment: Foreman.yuv on Mac.png added

Image produced playing foreman.yuv on Mac

by Pixeldust, 4 years ago

Image produced playing foreman.yuv on Ubuntu

comment:1 by reimar, 3 years ago

I can't reproduce on 1.5. However I'd suggest -vo gl over -vo corevideo in any case.

comment:2 by reimar, 3 years ago

Resolution: fixed
Status: newclosed

I'll close it on the assumption that it was fixed somewhere between 1.4 and 1.5, reopen if you can reproduce with 1.5 or later.

Note: See TracTickets for help on using tickets.