# glviewconvert

Convert stereoscopic video between different representations using fragment shaders.

The element can use either property settings or caps negotiation to choose the input and output formats to process.

## Examples

     gst-launch-1.0 videotestsrc ! glupload ! glviewconvert ! glimagesink

Simple placebo example demonstrating identity passthrough of mono video

     gst-launch-1.0 videotestsrc pattern=checkers-1 ! glupload ! \
         glviewconvert input-mode-override=side-by-side ! glimagesink -v

Force re-interpretation of the input checkers pattern as a side-by-side stereoscopic image and display in glimagesink. FBO (Frame Buffer Object) and GLSL (OpenGL Shading Language) are required.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseTransform
                        ╰──GstGLBaseFilter
                            ╰──GstGLFilter
                                ╰──glviewconvert

## Factory details

Authors: – Jan Schmidt , Matthew Waters

Classification: – `Filter`

Rank – none

Plugin – opengl

Package – GStreamer Base Plug-ins

## Pad Templates

### `sink`

    video/x-raw(ANY):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

    video/x-raw(memory:GLMemory):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw(memory:GLMemory):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

    video/x-raw(ANY):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

Presence – always

Direction – src

Object type – GstPad

## Properties

### downmix-mode

    “downmix-mode” GstGLStereoDownmix *

Output anaglyph type to generate when downmixing to mono

Flags : Read / Write

Default value : green-magenta-dubois (0)

### input-flags-override

    “input-flags-override” GstVideoMultiviewFlags *

Override any input information about multiview layout flags

Flags : Read / Write

Default value : none

### input-mode-override

    “input-mode-override” GstVideoMultiviewFramePacking *

Override any input information about multiview layout

Flags : Read / Write

Default value : none (-1)

### output-flags-override

    “output-flags-override” GstVideoMultiviewFlags *

Override automatic negotiation for output multiview layout flags

Flags : Read / Write

Default value : none

### output-mode-override

    “output-mode-override” GstVideoMultiviewMode *

Override automatic output mode selection for multiview layout

Flags : Read / Write

Default value : none (-1)

## Named constants

### Glstereo-downmix

#### Members

`green-magenta-dubois` (0) – GST_GL_STEREO_DOWNMIX_ANAGLYPH_GREEN_MAGENTA_DUBOIS
`red-cyan-dubois` (1) – GST_GL_STEREO_DOWNMIX_ANAGLYPH_RED_CYAN_DUBOIS
`amber-blue-dubois` (2) – GST_GL_STEREO_DOWNMIX_ANAGLYPH_AMBER_BLUE_DUBOIS

The results of the search are