Menu

#30 ppmtompeg: Error with valid PATTERN

NetPbm
closed
GnuWin
Binaries (396)
5
2012-07-26
2002-07-17
No

Trying to use ppmtompeg to convert a series of images into an
mpeg file.

Configuration file contains:

GOP_SIZE
12
PATTERN ibbpbbpbbpbb

OUTPUT
rotlogo.mpg
INPUT_DIR .
BASE_FILE_FORMAT
ppm
INPUT_CONVERT *
SLICES_PER_FRAME
1
PIXEL HALF
RANGE
16
PSEARCH_ALG
LOGARITHMIC
BSEARCH_ALG
CROSS2
IQSCALE 8
PQSCALE 10
BQSCALE 25
REFERENCE_FRAME
DECODED
YUV_SIZE
720x576
FORCE_ENCODE_LAST_FRAME

followed
by INPUT, list of files, END_INPUT

When I run
ppmtompeg, I get the error "Frame type'" followed by a carriage
return character and "'not supported" as if the parser is parsing
past the end of the PATTERN information and considering the line
terminator to be part of the pattern (the pattern is 12 characters and
the GOP size is set to 12 so this shouldn't be
happening).

The embedded CR in the error message
means that all I see on the screen when I run ppmtompeg is "'not
supported" as the first half of the error is overwritten by the
second!

If I use the Berkley MPEG tools (from which
ppmtompeg is derived?) and use jpeg files for input instead of ppm,
the same configuration file works OK.

Discussion

  • GnuWin

    GnuWin - 2002-07-17

    Logged In: YES
    user_id=217802

    Is this error related to the porting of ppmtompeg to Win32
    (i.e. it does not or should not occur on another operating
    system such as linux) or to ppmtompeg itself? If the latter,
    you should probably report this to the maintainer of
    ppmtompeg or netpbm (see
    http://sourceforge.net/projects/netpbm).

     
  • John Skilleter

    John Skilleter - 2002-07-17

    Logged In: YES
    user_id=70957

    I don't have access to any other OS's or ports of
    ppmtompeg, but I'd guess that the error lies in the port
    rather than the original as I can't find any way of getting
    ppmtompeg to work at all and I'm sure someone would
    have noticed if it was a problem on all other platforms.

     
  • GnuWin

    GnuWin - 2002-08-03

    Logged In: YES
    user_id=217802

    It seems the problem is that ppmtompeg reads an ordinary
    text file as a binary file. I have been unable to find where
    this happens. If you could send me a, preferably small,
    example (with image files), then I might be able to locate
    the error.