>I think I've successfully saved a sequence of images in YUV format using >the DX sequencer. Now, I'd like to use the Berkeley mpeg_encode utility >(v. 1.5) to generate an mpeg animation. Can anyone give me a sample >parameter-file to use with mpeg_encode and the DX YUV output? I have, for >example, a single image.yuv file which contains 20 frames that are >492x323. > >Thanks in advance, >Trevor Wood
This may (or may not) help. I don't know if you can read a multi-image file, though. We've always made a numbered series of individual image files. Don't ask me to explain the meaning of the stanzas: we've just copied and modified this thing over time. There are certain obvious mods you have to make though (size, for example). ***cut****** # mpeg_encode parameter file for rgb or yuv input formats: # comment/uncomment the lines below according to format #PATTERN IBP PATTERN I OUTPUT /tmp/scratch/out.mpg FORCE_ENCODE_LAST_FRAME #BASE_FILE_FORMAT PPM BASE_FILE_FORMAT YUV # next line always applies YUV_SIZE 320x240 # next line for yuv only YUV_FORMAT ABEKAS #INPUT_CONVERT rawtoppm 320 240 * | pnmscale -xysize 320 240 INPUT_CONVERT * GOP_SIZE 3 SLICES_PER_FRAME 1 INPUT_DIR /tmp/scratch INPUT # assumes filenames like frames.000.rgb, frames.001.rgb, ..., frames.999.rgb # --or equivalently frames.000.yuv, frames.001.yuv, ..., frames.999.yuv # --to skip every other frame, follow upper limit with +2, e.g. [001-099+2] image.*.yuv [000-360] END_INPUT PIXEL HALF RANGE 1 PSEARCH_ALG LOGARITHMIC BSEARCH_ALG CROSS2 #IQSCALE 1 IQSCALE 3 PQSCALE 1 BQSCALE 1 REFERENCE_FRAME ORIGINAL PARALLEL_TEST_FRAMES 1 PARALLEL_TIME_CHUNKS 4 Chris Pelkie Vice President/Scientific Visualization Producer Conceptual Reality Presentations, Inc. 30 West Meadow Drive Ithaca, NY 14850 [EMAIL PROTECTED]
