yuvcut

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
OPTIONS
SEE ALSO
AUTHOR

NAME

yuvcut − cuts a slice of a YUV4MPEG stream

SYNOPSIS

yuvcut [-h] [-c [START]-[[+]END][,[+]START-[[+]END]]...] [-v]

DESCRIPTION

Reads a YUV4MPEG stream from the standard input and outputs the selected ranges of frames to the standard output. A range can be specified using frame indexes (starting at 0) or using time code format [H:]MIN:SEC[.F] (optional hours, minutes, seconds and optional frame index). If start/end location starts with ’+’ it is interpreted relative to the previously specified location. If the start/end location is omitted then start/end of stream is assumed. The ranges must not be overlapping and they must be specified in order.

EXAMPLES

Cut the first 100 frames (frames 0-99) of the input stream:
yuvcut -c -99 < input.y4m > output.y4m

Cut the frames belonging to the second minute of the input stream:
yuvcut -c 1:00-2:00 < input.y4m > output.y4m
yuvcut -c 1:00-+1:00 < input.y4m > output.y4m

Cut 5 frames starting at 1:15:13:
yuvcut -c 1:15:13-1:15:13.4 < input.y4m > output.y4m
yuvcut -c 1:15:13-+4 < input.y4m > output.y4m

Cut two ranges:
yuvcut -c 10-23,40-76 < input.y4m > output.y4m

OPTIONS

−h

Print brief usage information and exit immediately.

−c [START]-[[+]END][,[+]START-[[+]END]]...

The ranges of frames to be copied.

−v

Verbose operation (twice for debug).

SEE ALSO

mjpegtools(1), yuv4mpeg(5)

AUTHOR

yuvcut was implemented by Johannes Lehtinen. It uses the mjpegutils library provided by the mjpegtools(1) package for reading and writing YUV4MPEG streams.