On Sunday 15 April 2007, Joe Friedrichsen wrote:
> On 4/15/07, Anne Wilson <[EMAIL PROTECTED]> wrote:

Maybe it's time to call in the mjpegtools team, so I'm cross-posting this.

> If you have ImageMagick installed, you can see how many colours are in
> your overlays with:
>
> $ identify -verbose highlight.png
>
> Look for something like:
>
>   Colors: 2
>   Histogram:
>     345516: (    0,    0,    0,65535)   freeze
>         84: (65535,65535,    0,    0)   yellow
>
With the current versions of the pngs -

  Colors: 2
  Histogram:
    413008: (  0,  3,  0,255)   #000300FF
      1712: (197,221,226,  0)   #C5DDE200

and

  Colors: 2
  Histogram:
      1712: (106,117,124,  0)   #6A757C00
    413008: (  0,  3,  0,255)   #000300FF

It seems I had messed up the buttons last night, so I started afresh today.

 > > I'm still not quite there.
> >
> > INFO: Locale=en_US.UTF-8
> > INFO: Converting filenames to UTF-8
> > INFO: PNG had 3 colors
> > INFO: PNG had 3 colors
> > INFO: Constructing blank img
> > ERR: Cannot pick button masks
> > ERR: Blank image, skipping line -1
> > WARN: Incorrect pack header
> > INFO: Skipped 2034 bytes of garbage
>
> I think things got a little worse. In an earlier email, spumux was
> able to add the buttons:
>
> INFO: Locale=en_US.UTF-8
> INFO: Converting filenames to UTF-8
> INFO: PNG had 2 colors
> INFO: PNG had 2 colors
> INFO: Constructing blank img
> INFO: Pickbuttongroups, success with 1 groups, useimg=1
> WARN: Incorrect pack header
> INFO: Skipped 2034 bytes of garbage
> ...
>
Now I'm back to 

INFO: Locale=en_US.UTF-8
INFO: Converting filenames to UTF-8
INFO: PNG had 2 colors
INFO: PNG had 2 colors
INFO: Constructing blank img
INFO: Pickbuttongroups, success with 1 groups, useimg=1
WARN: Incorrect pack header
INFO: Skipped 2034 bytes of garbage

> I think the 'pack header' errors are coming from an slightly incorrect
> mpeg. You said your tool chain was:
>
> lav2yuv airport.avi | yuvscaler -O DVD | yuvdenoise | mpeg2enc -f 8 -I 1 -q
> 7 -o airport.m2v
>
> lav2wav airport.avi | mp2enc -v 2 -o airport.mp2
>
> mplex airport.m2v airport.mp2 -o Airport.mpg
>
> What does the first output of mpeg2enc (and mplex) say about your
> stream? The first 20-30 lines (before the frame-by-frame details)
> should tell you how it's treating the input. You may need to tweak a
> few options for yuvscaler, mpeg2enc, or mplex if airport.avi isn't
> quite right.
>
lav2yuv airport.avi | yuvscaler -O DVD | yuvdenoise | mpeg2enc -f 8 -I 1 -q 
7 -o airport.m2v
   INFO: [yuvscaler] yuvscaler 1.9.0 (15-02-2004) is a general scaling utility 
for yuv frames
   INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard <[EMAIL PROTECTED]>, 
yuvscaler -h for help, or man yuvscaler
   INFO: [yuvdenoise] yuvdenoise version 1.9.0
   INFO: [yuvdenoise] Using the following thresholds/settings:
   INFO: [yuvdenoise] Gauss-Pre-Filter      [Y,U,V] : [0,0,0]
   INFO: [yuvdenoise] Median-Pre-Filter     [Y,U,V] : [0,0,0]
   INFO: [yuvdenoise] Temporal-Noise-Filter [Y,U,V] : [0,0,0]
   INFO: [yuvdenoise] Median-Post-Filter    [Y,U,V] : [0,0,0]
   INFO: [yuvdenoise] Renoise               [Y,U,V] : [0,0,0]
   INFO: [yuvdenoise] HQ-Mode                       : off
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
   INFO: [lav2yuv] chroma '422' recommended with this input
   INFO: [lav2yuv] set default chroma '420jpeg'
   INFO: [yuvscaler] DVD output format requested in PAL/SECAM norm
   INFO: [yuvscaler] input:   frame size:  720x576 pixels (622080 bytes)
   INFO: [yuvscaler] input:       chroma:  4:2:0 JPEG/MPEG-1 (interstitial)
   INFO: [yuvscaler] input:   frame rate:  25/1 fps (~25.000000)
   INFO: [yuvscaler] input:    interlace:  top-field-first
   INFO: [yuvscaler] input: sample aspect ratio:  1:1
   INFO: [yuvscaler] from 720x576, take 720x576+0+0, INTERLACED_TOP_FIRST
   INFO: [yuvscaler] scale to 720x576, 720x576 being displayed
   INFO: [yuvscaler] Scaling uses the RESAMPLE algorithm,
   INFO: [yuvscaler] frame rate: 25.000 fps
   INFO: [yuvscaler] Scaling ratio for width is 1 to 1
   INFO: [yuvscaler] and is 1 to 1 for height
   INFO: [yuvscaler] Specific downscaling routing number 4
   INFO: [yuvscaler] output:   frame size:  720x576 pixels (622080 bytes)
   INFO: [yuvscaler] output:       chroma:  4:2:0 JPEG/MPEG-1 (interstitial)
   INFO: [yuvscaler] output:   frame rate:  25/1 fps (~25.000000)
   INFO: [yuvscaler] output:    interlace:  top-field-first
   INFO: [yuvscaler] output: sample aspect ratio:  1:1
   INFO: [yuvdenoise] Y4M-Stream 720x576(4:2:0 JPEG/MPEG-1 (interstitial))
   INFO: [yuvdenoise] Processing Mode : 4:2:0 interlaced
   INFO: [yuvdenoise] Luma-Plane      : 720x576 pixels
   INFO: [yuvdenoise] Chroma-Plane    : 360x288 pixels
   INFO: [yuvdenoise] Buffers allocated.
   INFO: [yuvdenoise] SETTING EXTENDED MMX for MOTION!
   INFO: [yuvscaler] Frame number 0

Anne

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to