djv_convert

This application provides a command line tool for processing images and movies.

Usage

djv_convert (input) (output) [option]...

Conversion Options

-mirror_h
-mirror_v
Mirror the image horizontally or vertically.
-scale (value)
-scale_xy (x) (y)
Scale the image.
-resize (width) (height)Resize the image.
-width (value)
-height (value)
Resize the width or height of the image maintaining the aspectratio.
-crop (x) (y) (width) (height)Crop the image.
-crop_percent (x) (y) (width) (height)Crop the image as a percentage.
-channel (value)Show only specific image channels. Options = Default, Red, Green, Blue, Alpha. Default = Default.
-seq (value)Set whether file sequencing is enabled. Options = False, True. Default = True.

Input Options

-layer (value)Set the input layer.
-proxy (value)Set the proxy scale. Options = None, 1/2, 1/4, 1/8. Default = None.
-time (start) (end)Set the start and end time.
-slate (input) (frames)Set the slate.
-timeout (value)Set the maximum number of seconds to wait for each input frame. Default = 0.

Output Options

-pixel (value)Convert the pixel type. Options = L U8, L U16, L F16, L F32, LA U8, LA U16, LA F16, LA F32, RGB U8, RGB U10, RGB U16, RGB F16, RGB F32, RGBA U8, RGBA U16, RGBA F16, RGBA F32.
-speed (value)Set the speed. Options = 1, 3, 6, 12, 15, 16, 18, 23.98, 24, 25, 29.97, 30, 50, 59.94, 60, 120.
-tag (name) (value)Set an image tag.
-tag_auto (value)Automatically generate image tags (e.g., timecode). Options = False, True. Default = True.

Image I/O Options

Documentation for image I/O command line options is available here.

General Options

Documentation for general command line options is available here.

Examples

Display image information:

> djv_info image.sgi image2.sgi

Convert an image:

> djv_convert input.sgi output.tga

Convert an image sequence. Note that only the first frame of the output is specified:

> djv_convert input.1-100.sgi output.1.tga

Create an RLE compressed image sequence:

> djv_convert input.1-100.sgi output.1.tga -targa_compression rle

Convert an image sequence to a movie:

> djv_convert input.0001-0100.dpx output.mov

Convert a movie to an image sequence:

> djv_convert input.mov output.1.tga

Convert the pixel type:

> djv_convert input.sgi output.sgi -pixel "rgb u16"

Scale an image by half:

> djv_convert input.tga output.tga -scale 0.5

Resize an image:

> djv_convert input.tga output.tga -resize 2048 1556

Convert a Cineon file to a linear format using the default settings:

> djv_convert input.cin output.tga

Convert a Cineon file to a linear format using custom print settings (black point, white point, gamma, and soft clip):

> djv_convert input.cin output.tga -cineon_input_film_print 95 685 2.2 10