This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

GStreamer Simple Guide

This is a non-official community guide. Please help us to make it rock :)

This is more of a hands-on guide, but if you want the official docs, jump to here

0. Basic knowledge

This one will decode and play the my_song.mp3 file using your default audio output.

Obs: "location" is an attribute of the element filesrc. "decodebin" is a Bin element that decodes any file you throw at it.

1. Video encoding

1.1 Framerate adjustment

See videorate. eg: videorate ! video/x-raw-yuv,framerate=25/2

Obs: as for version 0.10 there's still no frame interpolation, it only duplicates/drops frames as needed

1.2 Scaling

See videoscale. eg: videoscale ! video/x-raw-yuv,width=480,height=360

1.3 RGB <-> YUV conversion

see ffmpegcolorspace

1.4 Stream Encoding

You need first to encode a video stream, and then wrap it inside a container file (this is done by the "muxer" element)

99. Technical stuff


2024-10-23 11:36