mencoder: white converted to grey
Dear all, I am trying to convert a sequence of images (either png or jpg) to a movie. Using mencoder I can create a movie, but the color white from the images is converted to gray in the output movie. How can I solve this problem? mencoder command and output is included below With kind regards, Pieter Eendebak [MENCODER COMMAND] mencoder mf:///home/eendebak/test/gim*png -mf fps=10:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -nosound -o gim-.avi [MENCODER OUTPUT] MEncoder 1.0rc2-4.1.3 (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (Family: 6, Model: 15, Stepping: 13) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 success: format: 16 data: 0x0 - 0x0 MF file format detected. [mf] search expr: /home/eendebak/test/gim*png [mf] number of files: 8 (32) VIDEO: [MPNG] 0x0 24bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:16 fourcc:0x474E504D size:0x0 fps:10.00 ftime:=0.1000 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffpng] vfm: ffmpeg (FFmpeg PNG decoder) ========================================================================== VDec: vo config request - 420 x 300 (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 @ 0x87867b0]SwScaler: BICUBIC scaler, from rgb24 to yuv420p using MMX2 [swscaler @ 0x87867b0]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling [swscaler @ 0x87867b0]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling [swscaler @ 0x87867b0]SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like) [swscaler @ 0x87867b0]SwScaler: 420x300 -> 420x300 videocodec: libavcodec (420x300 fourcc=34504d46 [FMP4]) [VE_LAVC] High quality encoding selected (non-realtime)! New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. Writing header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Writing header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Pos: 0.1s 1f (14%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.2s 2f (28%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.3s 3f (42%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.4s 4f (57%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.5s 5f (71%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.6s 6f (85%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.7s 7f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.8s 8f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Flushing video frames. Writing index... Writing header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Video stream: 124.170 kbit/s (15521 B/s) size: 12417 bytes 0.800 secs 8 frames
Pieter Eendebak wrote:
Dear all,
I am trying to convert a sequence of images (either png or jpg) to a movie. Using mencoder I can create a movie, but the color white from the images is converted to gray in the output movie. How can I solve this problem? mencoder command and output is included below
[MENCODER COMMAND]
mencoder mf:///home/eendebak/test/gim*png -mf fps=10:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -nosound -o gim-.avi
Total shot in the dark, but does it look better if you add: -vf eq2=0.6 It would help if you post a sample of the input and output.
Dear all, Thanks for the replies, but I have not been successful so far. - Adding -vf eq2=0.6 had no effect on the output - Extracting frames with `mplayer mser.avi -vo png' produced the correct frames (visually identical to the input frames) - The input files had a width and height divisible by 16 The input files and output movie are available on: http://pietereendebak.nl/mencoder/ The command used for creating the movie was: mencoder mf://msertest-0*.jpg -mf fps=10:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -vf eq2=0.6 -nosound -o mser.avi With kind regards, Pieter On Thu, Mar 20, 2008 at 12:40 AM, Phil Ehrens <phil@slug.org> wrote:
Pieter Eendebak wrote:
Dear all,
I am trying to convert a sequence of images (either png or jpg) to a movie. Using mencoder I can create a movie, but the color white from the images is converted to gray in the output movie. How can I solve this problem? mencoder command and output is included below
[MENCODER COMMAND]
mencoder mf:///home/eendebak/test/gim*png -mf fps=10:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -nosound -o gim-.avi
Total shot in the dark, but does it look better if you add:
-vf eq2=0.6
It would help if you post a sample of the input and output. _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
The whites are white when I view the avi. Pieter Eendebak wrote:
Dear all,
Thanks for the replies, but I have not been successful so far.
- Adding -vf eq2=0.6 had no effect on the output - Extracting frames with `mplayer mser.avi -vo png' produced the correct frames (visually identical to the input frames) - The input files had a width and height divisible by 16
The input files and output movie are available on:
http://pietereendebak.nl/mencoder/
The command used for creating the movie was:
mencoder mf://msertest-0*.jpg -mf fps=10:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -vf eq2=0.6 -nosound -o mser.avi
With kind regards, Pieter
On Thu, Mar 20, 2008 at 12:40 AM, Phil Ehrens <phil@slug.org> wrote:
Pieter Eendebak wrote:
Dear all,
I am trying to convert a sequence of images (either png or jpg) to a movie. Using mencoder I can create a movie, but the color white from the images is converted to gray in the output movie. How can I solve this problem? mencoder command and output is included below
[MENCODER COMMAND]
mencoder mf:///home/eendebak/test/gim*png -mf fps=10:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -nosound -o gim-.avi
Total shot in the dark, but does it look better if you add:
-vf eq2=0.6
It would help if you post a sample of the input and output. _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
Dear all, The video does play well on my other computer. On my laptop the white still appears as gray (totem, mplayer and kaffeine-xine under Ubuntu linux), under Vista (media player) the movie plays correctly. With kind regards, Pieter Eendebak On Fri, Mar 21, 2008 at 1:08 AM, Phil Ehrens <phil@slug.org> wrote:
The whites are white when I view the avi.
Pieter Eendebak wrote:
Dear all,
Thanks for the replies, but I have not been successful so far.
- Adding -vf eq2=0.6 had no effect on the output - Extracting frames with `mplayer mser.avi -vo png' produced the correct frames (visually identical to the input frames) - The input files had a width and height divisible by 16
The input files and output movie are available on:
http://pietereendebak.nl/mencoder/
The command used for creating the movie was:
mencoder mf://msertest-0*.jpg -mf fps=10:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -vf eq2=0.6 -nosound -o mser.avi
With kind regards, Pieter
On Thu, Mar 20, 2008 at 12:40 AM, Phil Ehrens <phil@slug.org> wrote:
Pieter Eendebak wrote:
Dear all,
I am trying to convert a sequence of images (either png or jpg) to a movie. Using mencoder I can create a movie, but the color white from the images is converted to gray in the output movie. How can I solve this problem? mencoder command and output is included below
[MENCODER COMMAND]
mencoder mf:///home/eendebak/test/gim*png -mf fps=10:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=2300 -nosound -o gim-.avi
Total shot in the dark, but does it look better if you add:
-vf eq2=0.6
It would help if you post a sample of the input and output. _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
Hi Pieter, On Fri, Mar 21, 2008 at 01:49:35 +0100, Pieter Eendebak wrote:
The video does play well on my other computer. On my laptop the white still appears as gray (totem, mplayer and kaffeine-xine under Ubuntu linux), under Vista (media player) the movie plays correctly.
Here's another guess: All your Linux players on your laptop are using Xv. My Xv (on Matrox G550) is by default always mistuned, i.e. basically quite a few steps too dark.[*] In mplayer, I always start out pressing '2' (or was it '4'?) a few times. You can compare the result e.g. in mplayer if you choose a different output driver, such as -vo x11 or -vo gl2. You can use xvattr (http://www.dtek.chalmers.se/groups/dvd/downloads.shtml) to set your optimal settings from your ~/.xinitrc (or whatever your system uses). I can't recall what the graphical tool was called to test the tuned settings, sorry, but I do remember having tried something. Just a guess, HTH, Moritz [*] At the same time, the whole displayed is a bit misaligned in terms of contrast and color. I will be trying these shorty: http://www.linux.com/articles/113936 http://www.normankoren.com/makingfineprints1A.html
On Thu, 20 Mar 2008 00:13:50 +0100 "Pieter Eendebak" <pieter.eendebak@gmail.com> wrote:
the color white from the images is converted to gray in the output movie.
First, scale to dimentions divisible by 16. Then, use -vo png on the file, and preview the stills with your image viewer to see if it's just a vo problem.
participants (4)
-
Moritz Barsnick -
Phil Ehrens -
Pieter Eendebak -
RC