# nvjpegenc

A nvJPEG library based JPEG encoder

## Example launch line

    gst-launch-1.0 videotestsrc num-buffers=1 ! nvjpegenc ! filesink location=myjpeg.jpg

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoEncoder
                        ╰──nvjpegenc

## Implemented interfaces

    GstPreset

## Factory details

Authors: – Seungha Yang <seungha></seungha>

Classification: – `Codec/Encoder/Video/Hardware`

Rank – none

Plugin – nvcodec

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-raw(memory:CUDAMemory):
             format: { NV12, I420, Y42B, Y444 }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
    video/x-raw:
             format: { I420, Y42B, Y444 }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    image/jpeg:
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### cuda-device-id

    “cuda-device-id” guint

CUDA device ID of associated GPU

Flags : Read

Default value : 0

### quality

    “quality” guint

Quality of encoding

Flags : Read / Write

Default value : 85

The results of the search are