pnmenc

Encodes pnm images. This plugin supports both raw and ASCII encoding. To enable ASCII encoding, set the parameter ascii to TRUE. If you omit the parameter or set it to FALSE, the output will be raw encoded.

Example launch line

 gst-launch-1.0 videotestsrc num_buffers=1 ! videoconvert ! "video/x-raw,format=GRAY8" ! pnmenc ascii=true ! filesink location=test.pnm

The above pipeline writes a test pnm file (ASCII encoding).

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstVideoEncoder
                    ╰──pnmenc

Implemented interfaces

Factory details

Authors: – Lutz Mueller

Classification:Codec/Encoder/Image

Rank – primary

Plugin – pnm

Package – GStreamer Bad Plug-ins

Pad Templates

sink

video/x-raw:
         format: { RGB, GRAY8, GRAY16_BE, GRAY16_LE }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsink

Object typeGstPad


src

image/x-portable-bitmap:
image/x-portable-graymap:
image/x-portable-pixmap:
image/x-portable-anymap:

Presencealways

Directionsrc

Object typeGstPad


Properties

ascii

“ascii” gboolean

The output will be ASCII encoded

Flags : Read / Write

Default value : false


The results of the search are