subtitleoverlay

GstBin that auto-magically overlays a video stream with subtitles by autoplugging the required elements.

It supports raw, timestamped text, different textual subtitle formats and DVD subpicture subtitles.

Examples

 gst-launch-1.0 -v filesrc location=test.mkv ! matroskademux name=demux ! video/x-h264 ! queue ! decodebin ! subtitleoverlay name=overlay ! videoconvert ! autovideosink  demux. ! subpicture/x-dvd ! queue ! overlay.

This will play back the given Matroska file with h264 video and dvd subpicture style subtitles.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBin
                    ╰──subtitleoverlay

Factory details

Authors: – Sebastian Dröge

Classification:Video/Overlay/Subtitle

Rank – none

Plugin – gstplayback

Package – GStreamer Base Plug-ins git

Pad Templates

src

ANY

Presencealways

Directionsrc


subtitle_sink

ANY

Presencealways

Directionsink


video_sink

ANY

Presencealways

Directionsink


Properties

async-handling

“async-handling” gboolean

The bin will handle Asynchronous state changes

Flags : Read / Write

Default value : false


font-desc

“font-desc” gchararray

Pango font description of font to be used for subtitle rendering

Flags : Read / Write

Default value : NULL


message-forward

“message-forward” gboolean

Forwards all children messages

Flags : Read / Write

Default value : false


name

“name” gchararray

The name of the object

Flags : Read / Write / Construct

Default value : NULL


parent

“parent” GstObject *

The parent of the object

Flags : Read / Write


silent

“silent” gboolean

Whether to show subtitles

Flags : Read / Write

Default value : false


subtitle-encoding

“subtitle-encoding” gchararray

Encoding to assume if input subtitles are not in UTF-8 encoding. If not set, the GST_SUBTITLE_ENCODING environment variable will be checked for an encoding to use. If that is not set either, ISO-8859-15 will be assumed.

Flags : Read / Write

Default value : NULL


subtitle-ts-offset

“subtitle-ts-offset” gint64

The synchronisation offset between text and video in nanoseconds

Flags : Read / Write

Default value : 0


The results of the search are