[MPlayer-users] field-dominance and yuv

Andy Furniss andyqos at ukfsn.org
Sat Mar 10 12:37:44 CET 2012


Carl Eugen Hoyos wrote:
> Andy Furniss<andyqos<at>  ukfsn.org>  writes:
>
>> I can't get -field-dominance to work with yuv streams, I don't know if
>> it ever worked. All -vo are the same, tried with tfields=1, yadif=1 and
>> vdpau:deint=2.
>
> Both yadif and vdpau:deint only work for yuv streams (as opposed to RGB),
> so I do not understand the problem.
> (Command line and complete, uncut console output missing.)

Yea, sorry I was thinking someone would just tell me it wasn't supported.

Here's a test that shows the issue -

http://streams.videolan.org/samples/MPEG2/interlaced/burosch1.mpg

Chosen because it's bff, if I make a stream.yuv with mplayer using -vo 
yuv4mpeg (:interlaced or :interlaced_bf make no difference) I can't get 
it to deinterlace properly whatever field-dominance I use.

If I replace stream.yuv with burosch1.mpg it works of course - and I can 
break it with -field-dominance 0.

It's not just yuv4mpeg/i420. I first noticed on a v4l capture which was 
avi containing yv12 - Selected video codec: [rawyv12] vfm: raw (RAW YV12)

bash-3.2$ ./mplayer -v -vo gl -vf yadif=1 -field-dominance 1 ~/stream.yuv
MPlayer SVN-r34799-4.2.3 (C) 2000-2012 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 5
CPU: AMD Phenom(tm) II X4 965 Processor (Family: 16, Model: 4, Stepping: 3)
extended cpuid-level: 27
extended cache-info: 33587520
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/andy/.mplayer/codecs.conf'
Reading optional codecs config file /home/andy/.mplayer/codecs.conf: No 
such file or directory
Reading optional codecs config file /usr/local/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') -> '/home/andy/.mplayer/fonts'
Configuration: --enable-debug --enable-xvmc 
--extra-cflags=-I/home/andy/Src/Xorg-git/modular/include 
--extra-libs=-L/home/andy/Src/Xorg-git/modular/lib 
--extra-libs-mplayer=-L/home/andy/Src/Xorg-git/modular/lib
CommandLine: '-v' '-vo' 'gl' '-vf' 'yadif=1' '-field-dominance' '1' 
'/home/andy/stream.yuv'
Using nanosleep() timing
get_path('input.conf') -> '/home/andy/.mplayer/input.conf'
Reading optional input config file /home/andy/.mplayer/input.conf: No 
such file or directory
Reading optional input config file /usr/local/etc/mplayer/input.conf: No 
such file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.
get_path('stream.yuv.conf') -> '/home/andy/.mplayer/stream.yuv.conf'

Playing /home/andy/stream.yuv.
get_path('sub/') -> '/home/andy/.mplayer/sub/'
[file] File size is 465320364 bytes
STREAM: [file] /home/andy/stream.yuv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 54.2.100 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: YUV4MPEG pipe format
libavformat file format detected.
[yuv4mpegpipe @ 0x89c1a00]Probe buffer size limit 5000000 reached
[yuv4mpegpipe @ 0x89c1a00]Estimating duration from bitrate, this may be 
inaccurate
==> Found video stream: 0
======= VIDEO Format ======
   biSize 40
   biWidth 720
   biHeight 576
   biPlanes 0
   biBitCount 0
   biCompression 808596553='I420'
   biSizeImage 0
===========================
[lavf] stream 0: video (rawvideo), -vid 0
LAVF: 0 audio and 1 video streams found
LAVF: build 3539556
VIDEO:  [I420]  720x576  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x30323449  size:720x576  fps:25.000  ftime:=0.0400
Load subtitles in /home/andy/
get_path('sub/') -> '/home/andy/.mplayer/sub/'
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1920x1080 with depth 24 and 32 bpp (":0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[gl] GLX chose visual with ID 0x11c
[gl] Running on OpenGL 'Gallium 0.4 on AMD RV770' by 'X.Org', version 
'2.1 Mesa 8.1-devel (git-f5d0ced)'
[gl] Settings after autodetection: ati-hack = 0, force-pbo = 0, 
rectangle = 0, yuv = 2
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
[gl] Using 0 as slice height (0 means image height).
Opening video filter: [yadif=1]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Planar I420)
Trying filter chain: yadif vo
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x576->1024x576,flags=0,'MPlayer',0x30323449)
REQ: flags=0x64B7  req=0x0
VO: [gl] 720x576 => 1024x576 Planar I420
VO: Description: OpenGL
VO: Author: Reimar Doeffinger <Reimar.Doeffinger at gmx.de>
[gl] GLX chose visual with ID 0x11c
[gl] Running on OpenGL 'Gallium 0.4 on AMD RV770' by 'X.Org', version 
'2.1 Mesa 8.1-devel (git-f5d0ced)'
[gl] Settings after autodetection: ati-hack = 0, force-pbo = 0, 
rectangle = 0, yuv = 2
[gl] Creating 1024x1024 texture...
[gl] Resize: 320x200
Selected video codec: [rawi420] vfm: raw (RAW I420)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
*** [yadif] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [vo] Allocating mp_image_t, 736x576x12bpp YUV planar, 635904 bytes
Unicode font: 5103 glyphs.
Unicode font: 5103 glyphs.
[gl] Resize: 1024x576
V:   0.0   0/  0 ??% ??% ??,?% 0 0
Unicode font: 5103 glyphs.
Unicode font: 5103 glyphs.
V:   2.9   0/  0  0% 30%  0.0% 0 0
Uninit video: raw
vo: uninit ...

Exiting... (Quit)


More information about the MPlayer-users mailing list