# openjpegenc

openjpegenc encodes raw video stream.

## Example launch lines

     gst-launch-1.0 -v videotestsrc num-buffers=10 ! openjpegenc ! jpeg2000parse ! openjpegdec ! videoconvert ! autovideosink sync=false

Encode and decode whole frames.

     gst-launch-1.0 -v videotestsrc num-buffers=10 ! openjpegenc num-threads=8 num-stripes=8 ! jpeg2000parse ! openjpegdec max-threads=8 ! videoconvert ! autovideosink sync=fals

Encode and decode frame split with stripes.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoEncoder
                        ╰──openjpegenc

## Implemented interfaces

    GstPreset

## Factory details

Authors: – Sebastian Dröge <sebastian.droege></sebastian.droege>

Classification: – `Codec/Encoder/Video`

Rank – primary

Plugin – openjpeg

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-raw:
             format: { ARGB64, ARGB, xRGB, AYUV64, Y444_10LE, I422_10LE, I420_10LE, AYUV, Y444, Y42B, I420, Y41B, YUV9, GRAY8, GRAY16_LE }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    image/x-j2c:
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
     num-components: [ 1, 4 ]
           sampling: { (string)RGB, (string)BGR, (string)RGBA, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1, (string)YCbCr-4:1:0, (string)GRAYSCALE, (string)YCbCrA-4:4:4:4 }
         colorspace: { (string)sRGB, (string)sYUV, (string)GRAY }
    image/x-jpc:
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
     num-components: [ 1, 4 ]
        num-stripes: [ 1, 2147483647 ]
          alignment: { (string)frame, (string)stripe }
           sampling: { (string)RGB, (string)BGR, (string)RGBA, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1, (string)YCbCr-4:1:0, (string)GRAYSCALE, (string)YCbCrA-4:4:4:4 }
         colorspace: { (string)sRGB, (string)sYUV, (string)GRAY }
    image/jp2:
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
    image/x-jpc-striped:
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
     num-components: [ 1, 4 ]
           sampling: { (string)RGB, (string)BGR, (string)RGBA, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1, (string)YCbCr-4:1:0, (string)GRAYSCALE, (string)YCbCrA-4:4:4:4 }
         colorspace: { (string)sRGB, (string)sYUV, (string)GRAY }
        num-stripes: [ 2, 2147483647 ]
      stripe-height: [ 1, 2147483647 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### num-layers

    “num-layers” gint

Number of layers

Flags : Read / Write

Default value : 1

### num-resolutions

    “num-resolutions” gint

Number of resolutions

Flags : Read / Write

Default value : 6

### num-stripes

    “num-stripes” gint

Number of stripes to use for low latency encoding . (1 = low latency disabled)

Flags : Read / Write

Default value : 1

Since : 1.18

### num-threads

    “num-threads” guint

Max number of simultaneous threads to encode stripes, default: encode with streaming thread

Flags : Read / Write

Default value : 0

Since : 1.20

### progression-order

    “progression-order” Open-jpegenc-progression-order *

Progression order

Flags : Read / Write

Default value : lrcp (0)

### tile-height

    “tile-height” gint

Tile Height

Flags : Read / Write

Default value : 0

### tile-offset-x

    “tile-offset-x” gint

Tile Offset X

Flags : Read / Write

Default value : 0

### tile-offset-y

    “tile-offset-y” gint

Tile Offset Y

Flags : Read / Write

Default value : 0

### tile-width

    “tile-width” gint

Tile Width

Flags : Read / Write

Default value : 0

## Named constants

### Open-jpegenc-progression-order

#### Members

`lrcp` (0) – LRCP
`rlcp` (1) – RLCP
`rpcl` (2) – RPCL
`pcrl` (3) – PCRL
`crpl` (4) – CPRL

The results of the search are