Opened 16 years ago

Last modified 16 years ago

#1000 new defect

-vf screenshot colors are off by one

Reported by: aflist2@… Owned by: reimar
Priority: normal Component: vf
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

hello,

the colors in -vf screenshot are subtracted from one by the real value they are. -vo png has correct output.

create the video with a command such as:

mencoder -nosound -ovc raw -vf format=rgb24 'mf://test????.png'

use such a program like gimp's color picker to check the box of color for correctness.

Attachments (3)

original.png (8.3 KB ) - added by aflist2@… 16 years ago.
source image
vo_png.png (902.0 KB ) - added by aflist2@… 16 years ago.
-vo png output (correct)
vf_screenshot.png (903.3 KB ) - added by aflist2@… 16 years ago.
-vf screenshot output (incorrect)

Download all attachments as: .zip

Change History (9)

by aflist2@…, 16 years ago

Attachment: original.png added

source image

comment:1 by aflist2@…, 16 years ago

by aflist2@…, 16 years ago

Attachment: vo_png.png added

-vo png output (correct)

comment:2 by aflist2@…, 16 years ago

by aflist2@…, 16 years ago

Attachment: vf_screenshot.png added

-vf screenshot output (incorrect)

comment:3 by aflist2@…, 16 years ago

comment:4 by aflist2@…, 16 years ago

using MPlayer dev-SVN-r25826-4.2.3.

comment:5 by reimar, 16 years ago

The problem is _not_ in vf screenshot,
mplayer -vf screenshot -fps 1 mf://t.png,t.png,t.png,t.png,t.png,t.png,t.png,t.png,t.png,t.png,t.png,t.png,t.png

works just fine.

comment:6 by aflist2@…, 16 years ago

-vf screenshot,scale has correct output, -vf screenshot or -vf scale,screenshot have incorrect output. i believe scale is being autoinserted before the screenshot filter.

if playing a rgb24 video with screenshot as the first filter, shouldn't that be passed natively and only have colorspace conversion take place afterwards as any other filter or video out requires it?

MPlayer dev-SVN-r25826-4.2.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) XP 2100+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
117 audio & 238 video codecs

Playing mf://colortest.png,...
MF file format detected.
[mf] filelist: colortest.png,...
[mf] number of files: 25
[demux_mf] file type was not set! trying 'type=png'...
VIDEO: [MPNG] 0x0 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffpng] vfm: ffmpeg (FFmpeg PNG decoder)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: RGB 24-bit)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using RGB 24-bit as output csp (no 5)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x8833660]SwScaler: BICUBIC scaler, from rgb24 to yuv420p using MMX2
[swscaler @ 0x8833660]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x8833660]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x8833660]SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
[swscaler @ 0x8833660]SwScaler: 640x480 -> 640x480
[swscaler @ 0x8833660]No accelerated colorspace conversion found
VO: [xv] 640x480 => 640x480 Planar YV12 [fs]
V: 1.0 25/ 25 50% 30% 0.0% 0 0

Exiting... (End of file)

Note: See TracTickets for help on using tickets.