DOKK / manpages / debian 11 / gpac / gpac.1.en
gpac(1) GPAC gpac(1)

gpac - GPAC command-line filter session manager

gpac [options]FILTER[LINK]FILTER[...]
gpac is GPAC's command line tool for setting up and running filter chains.

FILTER: a single filter declaration (eg, -i file, -o dump, inspect, ...), see gpac -h doc.
[LINK]: a link instruction (eg, @, @2, @2#StreamType=Visual, ...), see gpac -h doc.
[options]: one or more option strings, each starting with a - character.
- an option using a single - indicates an option of gpac (see gpac -hx) or of libgpac (see gpac -hx core)
- an option using -- indicates a global filter option, for example --block_size=1000 (see gpac -h doc)
- an option using -+ indicates a global meta-filter filter (eg FFMPEG) option, for example -+profile=Baseline (see gpac -h doc)

Filter declaration order may impact the link resolver which will try linking in declaration order. Most of the time for simple graphs, this has no impact. However, for complex graphs with no link declarations, this can lead to different results.
Options do not require any specific order, and may be present anywhere, including between link statements or filter declarations.
Boolean values do not need any value specified. Other types shall be formatted as opt=val, except .I -i, -src, .I -o, -dst and .I -h options.

The possible options for gpac are:


enable memory tracker

enable memory tracker with stack dumping

load test-unit filters (used for for unit tests only)

loop execution of session, creating a session at each loop, mainly used for testing. If no value is given, loops forever

run for the given amount of milliseconds

run for the given amount of milliseconds and exit with no cleanup

print stats after execution

print graph after execution

enable keyboard interaction from command line

enable reporting
* r: runtime reporting
* r=FA[,FB]: runtime reporting but only print given filters, eg r=mp4mxfor ISOBMFF muxer only
* r=: only print final report

set the default character sets used to separate various arguments
- the first char is used to separate argument names
- the second char, if present, is used to separate names and values
- the third char, if present, is used to separate fragments for PID sources
- the fourth char, if present, is used for list separators (sourceIDs, gfreg, ...)
- the fifth char, if present, is used for boolean negation
- the sixth char, if present, is used for LINK directives (see filters help (-h doc))

specify an input file - see filters help (-h doc)

specify an output file - see filters help (-h doc)

specify an input file to wrap as GF_FileIO object (testing of GF_FileIO)

specify an output file to wrap as GF_FileIO object (testing of GF_FileIO)

print help. Use -help or -h for basic options, -ha for advanced options, -hx for expert options and -hh for all.
Note: The @ character can be used in place of the * character. String parameter can be:
* empty: print command line options help
* doc: print the general filter info
* alias: print the gpac alias syntax
* log: print the log system help
* core: print the supported libgpac core options. Use -ha/-hx/-hh for advanced/expert options
* cfg: print the GPAC configuration help
* prompt: print the GPAC prompt help when running in interactive mode (see .I -k )
* modules: print available modules
* filters: print name of all available filters
* filters:*: print name of all available filters, including meta filters
* codecs: print the supported builtin codecs
* props: print the supported builtin PID and packet properties
* colors: print the builtin color names and their values
* links: print possible connections between each supported filters
* links FNAME: print sources and sinks for filter FNAME (either builtin or JS filter)
* FNAME: print filter FNAME info (multiple FNAME can be given)
- For meta-filters, use FNAME:INST, eg ffavin:avfoundation
- Use * to print info on all filters (big output!), *:* to print info on all filters including meta filter instances (really big output!)
- By default only basic filter options and description are shown. Use -ha to show advanced options capabilities, -hx for expert options, -hh for all options and filter capabilities including on filters disabled in this build
* FNAME.OPT: print option OPT in filter FNAME
* OPT: look in filter names and options for OPT and suggest possible matches if none found. Use -hx to look for keyword in all option descriptions


use indicated profile for the global GPAC config. If not found, config file is created. If a file path is indicated, this will load profile from that file. Otherwise, this will create a directory of the specified name and store new config there. Reserved name 0 means a new profile, not stored to disk. Appending :reload to the profile name will force recreating a new configuration file

assign a new alias or remove an alias. Can be specified several times. See alias usage (-h alias)

assign documentation for a given alias (optional). Can be specified several times

revert all items in GPAC cache directory to their original name and server path

specify javascript file to use as controller of filter session

write all core options in the config file unless already set

write all file extensions in the config file unless already set (useful to change some default file extensions)

write all filter options in the config file unless already set

write all filter options and all meta filter arguments in the config file unless already set (large config file !)

do not throw error on any unrecognized options following this option - used to pass arguments to GUI

The following libgpac core options allow customizing the filter session:


log edges status in filter graph before dijkstra resolution (for debug). Edges are logged as edge_source(status, weight, src_cap_idx, dst_cap_idx)

throw error if any pid in the filter graph cannot be linked

disable blocking mode of filters
* no: enable blocking mode
* fanout: disable blocking on fanout, unblocking the PID as soon as one of its destinations requires a packet
* all: disable blocking

disable regulation (no sleep) in session

disable source filter reassignment in pid graph resolution

set scheduler mode
* free: lock-free queues except for task list (default)
* lock: mutexes for queues when several threads
* freex: lock-free queues including for task lists (experimental)
* flock: mutexes for queues even when no thread (debug mode)
* direct: no threads and direct dispatch of tasks whenever possible (debug mode)

set maximum chain length when resolving filter links. Default value covers for [ in -> ] demux -> reframe -> decode -> encode -> reframe -> mux [ -> out]. Filter chains loaded for adaptation (eg pixel format change) are loaded after the link resolution. Setting the value to 0 disables dynamic link resolution. You will have to specify the entire chain manually

set maximum sleep time slot in milliseconds when regulation is enabled

set N extra thread for the session. -1 means use all available cores

disable data probing on sources and relies on extension (faster load but more error-prone)

disable tracking of argument usage (all arguments will be considered as used)

blacklist the filters listed in the given string (comma-separated list)

disable internal caching of filter graph connections. If disabled, the graph will be recomputed at each link resolution (lower memory usage but slower)

disable memory recycling for packets and properties. This uses much less memory but stresses the system memory allocator much more

The gpac command line can become quite complex when many sources or filters are used. In order to simplify this, an alias system is provided.

To assign an alias, use the syntax gpac -alias="NAME VALUE".
* `NAME`: shall be a single string, with no space.
* `VALUE`: the list of argument this alias replaces. If not set, the alias is destroyed

When parsing arguments, the alias will be replace by its value.
Example
gpac -alias="output aout vout"

This allows later audio and video playback using gpac -i src.mp4 output

Aliases can use arguments from the command line. The allowed syntaxes are:
* `@{a}`: replaced by the value of the argument with index a after the alias
* `@{a,b}`: replaced by the value of the arguments with index a and b
* `@{a:b}`: replaced by the value of the arguments between index a and b
* `@{-a,b}`: replaced by the value of the arguments with index a and b, inserting a list separator (comma by default) between them
* `@{-a:b}`: replaced by the value of the arguments between index a and b, inserting a list separator (comma by default) between them
* `@{+a,b}`: clones the parent word in the alias for a and b, replacing this pattern in each clone by the corresponding argument
* `@{+a:b}`: clones the parent word in the alias for each argument between index a and b, replacing this pattern in each clone by the corresponding argument

The specified index can be:
* forward index: a strictly positive integer, 1 being the first argument after the alias
* backward index: the value 'n' (or 'N') to indicate the last argument on the command line. This can be followed by -x to rewind arguments (eg @{n-1} is the before last argument)

Arguments not used by any aliases are kept on the command line, other ones are removed

Example
-alias="foo src=@{N} dst=test.mp4"

The command gpac foo f1 f2 expands to gpac src=f2 dst=test.mp4 f1
Example
-alias="list: inspect src=@{+:N}"

The command gpac list f1 f2 f3 expands to gpac inspect src=f1 src=f2 src=f3
Example
-alias="list inspect src=@{+2:N}"

The command gpac list f1 f2 f3 expands to gpac inspect src=f2 src=f3 f1
Example
-alias="plist aout vout flist:srcs=@{-,N}"

The command gpac plist f1 f2 f3 expands to gpac aout vout plist:srcs="f1,f2,f3"

Alias documentation can be set using gpac -aliasdoc="NAME VALUE", with NAME the alias name and VALUE the documentation.
Alias documentation will then appear in gpac help.

GPAC uses a configuration file to modify default options of libgpac and filters. This configuration file is located in $HOME/.gpac/GPAC.cfg.
Applications in GPAC can also specify a different configuration file through the .I -p option to indicate a profile. This allows different configurations for different usages and simplifies command line typing.
Example
gpac -p=foo []

This will load configuration from $HOME/.gpac/foo/GPAC.cfg, creating it if needed.
The reserved name 0 is used to disable configuration file writing.
By default the configuration file only holds a few system specific options and directories. It is possible to serialize the entire set of options to the configuration file, using .I -wc .I -wf. This should be avoided as the resulting configuration file size will be quite large, hence larger memory usage for the applications.
The options specified in the configuration file may be overridden by the values in restrict.cfg file located in GPAC share system directory (e.g. /usr/share/gpac), if present; this allows enforcing system-wide configuration values.
Note: The methods describe in this section apply to any application in GPAC transferring their arguments to libgpac. This is the case for gpac, MP4Box, MP4Client/Osmo4.

The options from libgpac core can also be assigned though the config file from section core using option name without initial dash as key name.
Example
[core]threads=2

Setting this in the config file is equivalent to using -threads=2.
The options specified at prompt overrides the value of the config file.

It is possible to alter the default value of a filter option by modifing the configuration file. Filter foo options are stored in section [filter@foo], using option name and value as key-value pair. Options specified through the configuration file do not take precedence over options specified at prompt or through alias.
Example
[filter@rtpin]interleave=yes

This will force the rtp input filter to always request RTP over RTSP by default.
To generate a configuration file with all filters options serialized, use .I -wf.

It is possible to specify options global to multiple filters using --OPTNAME=VAL. Global options do not override filter options but take precedence over options loaded from configuration file.
This will set option OPTNAME, when present, to VAL in any loaded filter.
Example
--buffer=100 -i file vout aout

This is equivalent to specifying vout:buffer=100 aout:buffer=100.
Example
--buffer=100 -i file vout aout:buffer=10

This is equivalent to specifying vout:buffer=100 aout:buffer=10.
Warning: This syntax only applies to regular filter options. It cannot be used with builtin shortcuts (gfreg, enc, ...).
Meta-filter options can be set in the same way using the syntax -+OPT_NAME=VAL.
Example
-+profile=Baseline -i file.cmp -o dump.264

This is equivalent to specifying -o dump.264:profile=Baseline.

For both syntax, it is possible to specify the filter registry name of the option, using --FNAME@OPTNAME=VAL.
In this case the option will only be set for filters which are instances of registry FNAME. This is used when several registries use same option names.
Example
--flist@timescale=100 -i plist1 -i plist2 -o live.mpd

This will set the timescale option on the playlists filters but not on the dasher filter.


disable progress messages

disable all messages, including errors

exit after the first error is reported

set storage directory

set module directories

set javascript directories

disable javascript module loading

set default multicast interface through interface IP address

set preferred language

set configuration file value. The string parameter can be formatted as:
* `section:key=val`: set the key to a new value
* `section:key=null`, `section:key`: remove the key
* `section:*=null`: remove the section

discard any changes made to the config file upon exit

unload / reload module shared libs when no longer used

disable all creation/modif dates and GPAC versions in files

enable compatibility with pre-filters versions of GPAC

shift NTP clock by given amount in seconds

cache size for bitstream read and write from file (0 disable cache, slower IOs)

cache directory location

enable HTTP proxy

set HTTP proxy address

set HTTP proxy port

set max HTTP download rate in bits per sec. 0 means unlimited

disable HTTP caching

enable offline HTTP caching (no revalidation of existing resource in cache)

indicate if HTTP cache should be clean upon launch/exit

specify cache size in bytes

set HTTP head request timeout in milliseconds

set HTTP/RTSP request timeout in milliseconds

enable accepting broken SSL certificates

set user agent name for HTTP/RTSP

set user profile ID (through X-UserProfileID entity header) in HTTP requests

set user profile filename. Content of file is appended as body to HTTP HEAD/GET requests, associated Mime is text/xml

insert query string (without ?) to URL on requests

force using threads for async download requests rather than session scheduler

log edges status in filter graph before dijkstra resolution (for debug). Edges are logged as edge_source(status, weight, src_cap_idx, dst_cap_idx)

throw error if any pid in the filter graph cannot be linked

disable blocking mode of filters
* no: enable blocking mode
* fanout: disable blocking on fanout, unblocking the PID as soon as one of its destinations requires a packet
* all: disable blocking

disable regulation (no sleep) in session

disable source filter reassignment in pid graph resolution

set scheduler mode
* free: lock-free queues except for task list (default)
* lock: mutexes for queues when several threads
* freex: lock-free queues including for task lists (experimental)
* flock: mutexes for queues even when no thread (debug mode)
* direct: no threads and direct dispatch of tasks whenever possible (debug mode)

set maximum chain length when resolving filter links. Default value covers for [ in -> ] demux -> reframe -> decode -> encode -> reframe -> mux [ -> out]. Filter chains loaded for adaptation (eg pixel format change) are loaded after the link resolution. Setting the value to 0 disables dynamic link resolution. You will have to specify the entire chain manually

set maximum sleep time slot in milliseconds when regulation is enabled

set N extra thread for the session. -1 means use all available cores

disable data probing on sources and relies on extension (faster load but more error-prone)

disable tracking of argument usage (all arguments will be considered as used)

blacklist the filters listed in the given string (comma-separated list)

disable internal caching of filter graph connections. If disabled, the graph will be recomputed at each link resolution (lower memory usage but slower)

disable memory recycling for packets and properties. This uses much less memory but stresses the system memory allocator much more

select smallest video resolution larger than scene size, otherwise use current video resolution

specify (2D rendering only) memory type of main video backbuffer. Depending on the scene type, this may drastically change the playback speed
* always: always on hardware
* never: always on system memory
* auto: selected by GPAC based on content type (graphics or video)

set prefered YUV 4CC for overlays (used by DirectX only)

indicate if offscreen yuv->rgb is enabled. can be set to false to force disabling

color to use for overlay keying, hex format

number of bits per color component in openGL

number of bits for depth buffer in openGL

enable openGL double buffering

use defer rendering for SDL

disable color keying at the video output level

set output texture ID when using glfbo output. The OpenGL context shall be initialized and gf_term_process shall be called with the OpenGL context active

indicate the name of the video output module to use (see gpac -h modules). The reserved name glfbo is used in player mode to draw in the openGL texture identified by .I glfbo-txid. In this mode, the application is responsible for sending event to the terminal

indicate the name of the audio output module to use

set ALSA dev name

force ALSA and OSS output sample rate

disable DirectSound audio buffer notifications when supported

indicate name of font reader module

indicate comma-separated list of directories to scan for fonts

indicate the font directory must be rescanned

wait for SVG fonts to be loaded before displaying frames

enable profiling through Remotery. A copy of Remotery visualizer is in gpac/share/vis, usually installed in /usr/share/gpac/vis or Program Files/GPAC/vis

set remotery port

allow remotery to reuse port

make remotery only accepts localhost connection

set remotery sleep (ms) between server updates

set remotery number of messages per update

set remotery message queue size in bytes

redirect logs to remotery (experimental, usually not well handled by browser)

make remotery sample opengl calls


disable progress messages

disable all messages, including errors

set output log file

log time in micro sec since start time of GPAC before each log line

log UTC time in ms before each log line

set log tools and levels.

You can independently log different tools involved in a session.
log_args is formatted as a ':'-separated list of toolX[:toolZ]@levelX
levelX can be one of:
* quiet: skip logs
* error: logs only error messages
* warning: logs error+warning messages
* info: logs error+warning+info messages
* debug: logs all messages
toolX can be one of:
* core: libgpac core
* coding: bitstream formats (audio, video, scene)
* container: container formats (ISO File, MPEG-2 TS, AVI, ...)
* network: network data except RTP trafic
* http: HTTP trafic
* rtp: RTP trafic
* author: authoring tools (hint, import, export)
* sync: terminal sync layer
* codec: terminal codec messages
* parser: scene parsers (svg, xmt, bt) and other
* media: terminal media object management
* scene: scene graph and scene manager
* script: scripting engine messages
* interact: interaction engine (events, scripts, etc)
* smil: SMIL timing engine
* compose: composition engine (2D, 3D, etc)
* mmio: Audio/Video HW I/O management
* rti: various run-time stats
* cache: HTTP cache subsystem
* audio: Audio renderer and mixers
* mem: GPAC memory tracker
* dash: HTTP streaming logs
* module: GPAC modules (av out, font engine, 2D rasterizer)
* filter: filters debugging
* sched: filter session scheduler debugging
* mutex: log all mutex calls
* atsc: ATSC3 debugging
* all: all tools logged - other tools can be specified afterwards.
The special keyword ncl can be set to disable color logs.
The special keyword strict can be set to exit at first error.
Example
-logs all@info:dash@debug:ncl

This moves all log to info level, dash to debug level and disable color logs

Filters are configurable processing units consuming and producing data packets. These packets are carried between filters through a data channel called pid. A PID is in charge of allocating/tracking data packets, and passing the packets to the destination filter(s). A filter output PID may be connected to zero or more filters. This fan-out is handled internally by GPAC (no such thing as a tee filter in GPAC).
Note: When a PID cannot be connected to any filter, a warning is thrown and all packets dispatched on this PID will be destroyed. The session may however still run, unless .I -full-link is set.

Each output PID carries a set of properties describing the data it delivers (eg width, height, codec, ...). Properties can be built-in (identified by a 4 character code abcd, see properties (-h props) ), or user-defined (identified by a string). Each PID tracks its properties changes and triggers filter reconfiguration during packet processing. This allows the filter chain to be reconfigured at run time, potentially reloading part of the chain (eg unload a video decoder when switching from compressed to uncompressed sources).

Each filter exposes one or more sets of capabilities, called capability bundle, which are property type and values that must be matched or excluded by connecting PIDs.

Each filter exposes a set of argument to configure itself, using property types and values described as strings formated with separators. This help is given with default separator sets :=#,@ to specify filters, properties and options. Use .I -seps to change them.

* boolean: formatted as yes|true|1 or no|false|0
* enumeration (for filter arguments only): must use the syntax given in the argument description, otherwise value 0 (first in enum) is assumed.
* 1-dimension (numbers, floats, ints...): formatted as value[unit], where unit can be k|K (x1000) or m|M (x1000000) or g|G (x1000000000). For such properties, value +I means maximum possible value, -I minimum possible value.
* fraction: formatted as num/den or num-den or num, in which case the denominator is 1 if num is an integer, or 1000000 if num is a floating-point value.
* unsigned 32 bit integer: formated as number or hexadecimal using the format 0xAABBCCDD.
* N-dimension (vectors): formatted as DIM1xDIM2[xDIM3[xDIM4]] values, without unit multiplier.
* string: formatted as:
* `value`: copies value to string.
* `file@FILE`: load string from local FILE (opened in binary mode).
* `bxml@FILE`: binarize XML from local FILE and set property type to data - see https://wiki.gpac.io/NHML-Format.
* data: formatted as:
* `size@address`: constant data block, not internally copied; size gives the size of the block, address the data pointer.
* `0xBYTESTRING`: data block specified in hexadecimal, internally copied.
* `file@FILE`: load data from local FILE (opened in binary mode).
* `bxml@FILE`: binarize XML from local FILE - see https://wiki.gpac.io/NHML-Format.
* pointer: are formatted as address giving the pointer address (32 or 64 bit depending on platforms).
* string lists: formatted as val1,val2[,...]. Each value can also use file@FILE syntax.
* integer lists: formatted as val1,val2[,...]
Note: The special characters in property formats (0x,/,-,+I,-I,x) cannot be configured.

Generic declaration
Each filter is declared by its name, with optional filter arguments appended as a list of colon-separated name=value pairs. Additional syntax is provided for:
* boolean: value can be omitted, defaulting to true (eg :noedit). Using ! before the name negates the result (eg :!moof_first)
* enumerations: name can be omitted (eg :disp=pbo is equivalent to :pbo), provided that filter developers pay attention to not reuse enumeration names in the same filter.

When string parameters are used (eg URLs), it is recommended to escape the string using the keyword gpac.
Example
filter:ARG=http://foo/bar?yes:gpac:opt=VAL

This will properly extract the URL.
Example
filter:ARG=http://foo/bar?yes:opt=VAL

This will fail to extract it and keep :opt=VAL as part of the URL.
The escape mechanism is not needed for local source, for which file existence is probed during argument parsing. It is also not needed for builtin procotol handlers (avin://, video://, audio://, pipe://)
For tcp:// and udp:// protocols, the escape is not needed if a trailing / is appended after the port number.
Example
-i tcp://127.0.0.1:1234:OPT

This will fail to extract the URL and options.
Example
-i tcp://127.0.0.1:1234/:OPT

This will extract the URL and options.
Note: one trick to avoid the escape sequence is to declare the URLs option at the end, eg f1:opt1=foo:url=http://bar, provided you have only one URL parameter to specify on the filter.

It is possible to disable option parsing (for string options) by duplicating the seperator.
Example
filter::opt1=UDP://IP:PORT/:someopt=VAL::opt2=VAL2

This will pass UDP://IP:PORT/:someopt=VAL to opt1 without inspecting it, and VAL2 to opt2.

A filter may be assigned a name (for inspection purposes) using :N=name option. This name is not used in link resolution and may be changed at runtime by the filter instance.

Source and Sink filters
Source and sink filters do not need to be addressed by the filter name, specifying src= or dst= instead is enough. You can also use the syntax -src URL or -i URL for sources and -dst URL or -o URL for destination, this allows prompt completion in shells.
Example
"src=file.mp4" or "-src file.mp4" or "-i file.mp4"

This will find a filter (for example fin) able to load file.mp4. The same result can be achieved by using fin:src=file.mp4.
Example
"dst=dump.yuv" or "-dst dump.yuv" or "-o dump.yuv"

This will dump the video content in dump.yuv. The same result can be achieved by using fout:dst=dump.yuv.

Specific source or sink filters may also be specified using filterName:src=URL or filterName:dst=URL.

The src= and dst= syntaxes can also be used in alias for dynamic argument cloning (see gpac -hx alias).

Forcing specific filters
There is a special option called gfreg which allows specifying preferred filters to use when handling URLs.
Example
src=file.mp4:gfreg=ffdmx,ffdec

This will use ffdmx to read file.mp4 and ffdec to decode it.
This can be used to test a specific filter when alternate filter chains are possible.

Specifying encoders and decoders
By default filters chain will be resolved without any decoding/encoding if the destination accepts the desired format. Otherwise, decoders/encoders will be dynamically loaded to perform the conversion, unless dynamic resolution is disabled. There is a special shorcut filter name for encoders enc allowing to match a filter providing the desired encoding. The parameters for enc are:
* c=NAME: identifes the desired codec. NAME can be the gpac codec name or the encoder instance for ffmpeg/others
* b=UINT, rate=UINT, bitrate=UINT: indicates the bitrate in bits per second
* g=UINT, gop=UINT: indicates the GOP size in frames
* pfmt=NAME: indicates the target pixel format name (see properties (-h props) ) of the source, if supported by codec
* all_intra=BOOL: indicates all frames should be intra frames, if supported by codec

Other options will be passed to the filter if it accepts generic argument parsing (as is the case for ffmpeg).
Example
src=dump.yuv:size=320x240:fps=25 enc:c=avc:b=150000:g=50:cgop=true:fast=true dst=raw.264

This creates a 25 fps AVC at 175kbps with a gop duration of 2 seconds, using closed gop and fast encoding settings for ffmpeg.

The inverse operation (forcing a decode to happen) is possible using the reframer filter.
Example
src=file.mp4 reframer:raw @ -o null

This will force decoding media from file.mp4 and trash (send to null) the result (doing a decoder benchmark for example).

When a filter uses an option defined as a string using the same separator character as gpac, you can either modify the set of separators, or escape the seperator by duplicating it. The options enclosed by duplicated separator are not parsed. This is mostly used for meta filters, such as ffmpeg, to pass options to subfilters such as libx264 (cf x264opts parameter).
Example
f:a=foo:b=bar

This will set option a to foo and option b to bar on the filter.
Example
f::a=foo:b=bar

This will set option a to foo:b=bar on the filter.
Example
f:a=foo::b=bar:c::d=fun

This will set option a to foo, b to bar:c and the option d to fun on the filter.

Quick links
Link between filters may be manually specified. The syntax is an @ character optionaly followed by an integer (0 if omitted). This indicates which filter previously specified at prompt should be link to the next filter listed. The optional integer is a 0-based index to the previous filter declarations, 0 indicating the previous filter declaration, 1 the one before the previous delaration, ...).
Only the last link directive occuring before a filter is used to setup links for that filter.
Example
fA fB @1 fC

This indicates to direct fA outputs to fC.
Example
fA fB @1 @0 fC

This indicates to direct fB outputs to fC, @1 is ignored.

If no link directives are given, the links will be dynamically solved to fullfill as many connections as possible (see below).
Warning: This means that fA fB fC and fA fB @ fC will likely not give the same result.

Complex links
The link directive is just a quick shortcut to set the following arguments:
- FID=name, which assigns an identifier to the filter
- SID=name1[,name2...], which set a list of filter identifiers , or sourceIDs, restricting the list of possible inputs for a filter.

Example
fA fB @1 fC

This is equivalent to fA:FID=1 fB fC:SID=1.
Link directives specify which source a filter can accept connections from. They do not specifiy which destination a filter can connect to.
Example
fA:FID=1 fB fC:SID=1

This indicates that fC only accpets input from fA, but fB might accept inputs from fA.
Example
fA:FID=1 fB:FID=2 fC:SID=1 fD:SID=1,2

This indicates that fD only accepts input from fA and fB and fC only from fA
Note: A filter with sourceID set cannot get input from filters with no IDs.
A sourceID name can be further extended using fragment identifier (# by default):
* name#PIDNAME: accepts only PID(s) with name PIDNAME
* name#TYPE: accepts only PIDs of matching media type. TYPE can be audio, video, scene, text, font, meta
* name#TYPEN: accepts only Nth PID of matching type from source
* name#P4CC=VAL: accepts only PIDs with property matching VAL.
* name#PName=VAL: same as above, using the builtin name corresponding to the property.
* name#AnyName=VAL: same as above, using the name of a non built-in property.
* name#Name=OtherPropName: compares the value with the value of another property of the PID. The matching will fail if the value to compare to is not present or different from the value to check. The property to compare with shall be a built-in property.
If the property is not defined on the PID, the property is matched. Otherwise, its value is checked against the given value.

The following modifiers for comparisons are allowed (for both P4CC=, PName= and AnyName=):
* name#P4CC=!VAL: accepts only PIDs with property NOT matching VAL.
* name#P4CC-VAL: accepts only PIDs with property strictly less than VAL (only for 1-dimension number properties).
* name#P4CC+VAL: accepts only PIDs with property strictly greater than VAL (only for 1-dimension number properties).

A sourceID name can also use wildcard or be empty to match a property regardless of the source filter.
Example
fA fB:SID=*#ServiceID=2

Example
fA fB:SID=#ServiceID=2

This indicates to match connection between fA and fB only for PIDs with a ServiceID property of 2.
These extensions also work with the LINK @ shortcut.
Example
fA fB @1#video fC

This indicates to direct fA video outputs to fC.
Example
src=img.heif @#ItemID=200 vout

This indicates to connect to vout only PIDs with ItemID property equal to 200.
Example
src=vid.mp4 @#PID=1 vout

This indicates to connect to vout only PIDs with ID property equal to 1.
Example
src=vid.mp4 @#Width=640 vout

This indicates to connect to vout only PIDs with Width property equal to 640.
Example
src=vid.mp4 @#Width-640 vout

This indicates to connect to vout only PIDs with Width property less than 640
Example
src=vid.mp4 @#ID=ItemID#ItemNumber=1 vout

This will connect to vout only PID with an ID property equal to ItemID property (keep items, discard tracks) and an Item number of 1 (first item).

Multiple fragment can be specified to check for multiple PID properties.
Example
src=vid.mp4 @#Width=640#Height+380 vout

This indicates to connect to vout only PIDs with Width property equal to 640 and Height greater than 380.

Warning: If a filter PID gets connected to a loaded filter, no further dynamic link resolution will be done to connect it to other filters, unless sourceIDs are set. Link directives should be carfully setup.
Example
src=file.mp4 @ reframer dst=dump.mp4

This will link src file.mp4 PID (type file) to dst dump.mp4filter (type file) because dst has no sourceID and therefore will accept input from src. Since the PID is connected, the filter engine will not try to solve a link between src and reframer. The result is a direct copy of the source file, reframer being unused.
Example
src=file.mp4 reframer @ dst=dump.mp4

This will force dst to accept only from reframer, a muxer will be loaded to solve this link, and src PID will be linked to reframer (no source ID), loading a demuxer to solve the link. The result is a complete remux of the source file.

Unless explicitly disabled (see .I -max-chain), the filter engine will resolve implicit or explicit (LINK) connections between filters and will allocate any filter chain required to connect the filters. In doing so, it loads new filters with arguments inherited from both the source and the destination.
Example
src=file.mp4:OPT dst=file.aac dst=file.264

This will pass the :OPT to all filters loaded between the source and the two destinations.
Example
src=file.mp4 dst=file.aac:OPT dst=file.264

This will pass the :OPT to all filters loaded between the source and the file.aac destination.
Note: the destination arguments inherited are the arguments placed AFTER the dst= option.
Example
src=file.mp4 fout:OPTFOO:dst=file.aac:OPTBAR

This will pass the :OPTBAR to all filters loaded between file.mp4 source and file.aac destination, but not OPTFOO.
Arguments inheriting can be stopped by using the keyword gfloc: arguments after the keyword will not be inherited.
Example
src=file.mp4 dst=file.aac:OPTFOO:gfloc:OPTBAR dst=file.264

This will pass the :OPTFOO to all filters loaded between file.mp4source and file.aac destination, but not OPTBAR
Arguments are by default tracked to check if they were used by the filter chain, and a warning is thrown if this is not the case.
It may be usefull to specify arguments which may not be consumed depending on the graph resolution; the specific keyword gfopt indicates that arguments after the keyword will not be tracked.
Example
src=file.mp4 dst=file.aac:OPTFOO:gfopt:OPTBAR dst=file.264

This will warn if OPTFOO is not consumed, but will not track OPTBAR.

Destination URLs can be templated using the same mechanism as MPEG-DASH, where $KEYWORD$ is replaced in the template with the resolved value and $KEYWORD%%0Nd$ is replaced in the template with the resolved integer, padded with N zeros if needed. $$ is an escape for $
KEYWORD is case sensitive, and may be present multiple times in the string. Supported KEYWORD are:
* num: replaced by file number if defined, 0 otherwise
* PID: ID of the source PID
* URL: URL of source file
* File: path on disk for source file
* p4cc=ABCD: uses PID property with 4CC value ABCD
* pname=VAL: uses PID property with name VAL
* OTHER: locates property 4CC for the given name, or property name if no 4CC matches.

Templating can be useful when encoding several qualities in one pass.
Example
src=dump.yuv:size=640x360 vcrop:wnd=0x0x320x180 enc:c=avc:b=1M @2 enc:c=avc:b=750k dst=dump_$CropOrigin$x$Width$x$Height$.264:clone

This will create a croped version of the source, encoded in AVC at 1M, and a full version of the content in AVC at 750k. Outputs will be dump_0x0x320x180.264 for the croped version and dump_0x0x640x360.264 for the non-croped one.

When a filter accepts a single connection and has a connected input, it is no longer available for dynamic resolution. There may be cases where this behaviour is undesired. Take a HEIF file with N items and do:
Example
src=img.heif dst=dump_$ItemID$.jpg

In this case, only one item (likely the first declared in the file) will connect to the destination.
Other items will not be connected since the destination only accepts one input PID.
There is a special option clone allowing destination filters (and only them) to be cloned with the same arguments:
Example
src=img.heif dst=dump_$ItemID$.jpg:clone

In this case, the destination will be cloned for each item, and all will be exported to different JPEGs thanks to URL templating.

There can be cases where the number of desired outputs depends on the source content, for example dumping a multiplex of N services into N files. When the destination involves multiplexing the input PIDs, the :cloneoption is not enough since the muxer will always accept the input PIDs.
To handle this, it is possible to use a PID property name in the sourceID of a filter with the value * or an empty value. In this case, whenever a new PID with a new value for the property is found, the filter with such sourceID will be dynamically cloned.
Warning: This feature should only be called with a single property set to * per source ID, results are undefined otherwise.
Example
src=source.ts dst=file_$ServiceID$.mp4:SID=*#ServiceID=*

Example
src=source.ts dst=file_$ServiceID$.mp4:SID=#ServiceID=

In this case, each new ServiceID value found when connecting PIDs to the destination will create a new destination file.

It is possible to define properties on output PIDs that will be declared by a filter. This allows tagging parts of the graph with different properties than other parts (for example ServiceID). The syntax is the same as filter option, and uses the fragment separator to identify properties, eg #Name=Value.
This sets output PIDs property (4cc, built-in name or any name) to the given value. Value can be omitted for booleans (defaults to true, eg :#Alpha).
Non built-in properties are parsed as follows:
- file@FOO will be declared as string with a value set to the content of FOO.
- bxml@FOO will be declared as data with a value set to the binarized content of FOO.
- FOO will be declared as string with a value set to FOO.
- TYPE@FOO will be parsed according to TYPE. If the type is not recognized, the entire value is copied as string. See gpac -h props for defined types.
Warning: Properties are not filtered and override the properties of the filter's output PIDs, be carefull not to break the session by overriding core properties such as width/height/samplerate/... !
Example
-i v1.mp4:#ServiceID=4 -i v2.mp4:#ServiceID=2 -o dump.ts

This will mux the streams in dump.ts, using ServiceID 4 for PIDs from v1.mp4 and ServiceID 2 for PIDs from v2.mp4.

PID properties may be conditionally assigned by checking other PID properties. The syntax uses paranthesis (not configurable) after the property assignment sign:
#Prop=(CP=CV)VAL
This will assign PID property Prop to VAL for PIDs with property CP equal to CV.
#Prop=(CP=CV)VAL,(CP2=CV2)VAL2
This will assign PID property Prop to VAL for PIDs with property CP equal to CV, and to VAL2 for PIDs with property CP2 equal to CV2.
#Prop=(CP=CV)(CP2=CV2)VAL
This will assign PID property Prop to VAL for PIDs with property CP equal to CV and property CP2 equal to CV2.
#Prop=(CP=CV)VAL,()DEFAULT
This will assign PID property Prop to VAL for PIDs with property CP equal to CV, or to DEFAULT for other PIDs.
The condition syntax is the same as source ID fragment syntax.
Note: When set, the default value (empty condition) always matches the PID, therefore it should be placed last in the list of conditions.
Example
gpac -i source.mp4:#MyProp=(audio)"Super Audio",(video)"Super Video"

This will assign property MyProp to Super Audio for audio PIDs and to Super Video for video PIDs.
Example
gpac -i source.mp4:#MyProp=(audio1)"Super Audio"

This will assign property MyProp to Super Audio for first audio PID declared.
Example
gpac -i source.mp4:#MyProp=(Width+1280)HD

This will assign property MyProp to HD for PIDs with property Width greater than 1280.

It is possible to use a file to define options of a filter, by specifying the target file name as an option without value, i.e. :myopts.txt.
Warning: Only local files are allowed.
An option file is a simple text file containing one or more options or PID properties on one or more lines.
A line begining with "//" is a comment and is ignored.
Options in an option file may point to other option files, with a maximum redirection level of 5.
An option file declaration (filter:myopts.txt) follows the same inheritance rules as regular options.
Example
src=source.mp4:myopts.txt:foo=bar dst

Any filter loaded between source.mp4 and dst will inherit both myopts.txt and foo options and will resolve options and PID properties given in myopts.txt.

Some specific keywords are replaced when processing filter options.
Warning: These keywords do not apply to PID properties. Multiple keywords cannot be defined for a single option.
Defined keywords:
* $GSHARE: replaced by system path to GPAC shared directory (e.g. /usr/share)
* $GJS: replaced by the first path specified by global config option .I -js-dirs that contains the file name following the macro, e.g. $GJS/source.js
* $GLANG: replaced by the global config language option .I -lang
* $GUA: replaced by the global config user agent option .I -user-agent
* $GINC(init_val[,inc]): replaced by init_val and increment init_val by inc (positive or negative number, 1 if not specified) each time a new filter using this string is created.

The $GINC construct can be used to dynamically assign numbers in filter chains:
Example
gpac -i source.ts tssplit @#ServiceID= -o dump_$GINC(10,2).ts

This will dump first service in dump_10.ts, second service in dump_12.ts, etc...

GPAC comes with a set of built-in filters in libgpac. It may also load external filters in dynamic libraries, located in folders listed in .I -mod-dirs option. The files shall be named gf_* and shall export a single function returning a filter register - see libgpac documentation for more details.

Built-in property types


signed 32 bit integer

unsigned 32 bit integer

signed 64 bit integer

unsigned 32 bit integer

boolean

32/32 bit fraction

64/64 bit fraction

32 bit float number

64 bit float number

2D 32-bit integer vector

2D 32-bit float vector

3D 32-bit integer vector

3D 32-bit float vector

4D 32-bit integer vector

4D 32-bit float vector

raw pixel format

raw audio format

UTF-8 string

data buffer

const UTF-8 string

const data buffer

32 or 64 bit pointer

UTF-8 string list

Built-in properties for PIDs and packets listed as Name (4CC type FLAGS): description
FLAGS can be D (dropable - see GSF mux filter help), P (packet property)


Stream ID

MPEG-4 ESID of pid

ID of image item in HEIF, same value as ID

Number (1-based) of image item in HEIF, in order of declaration in file

Number (1-based) of track in order of declaration in file

ID of parent service

ID of clock reference pid

ID of layer dependended on

pid is a sublayer of the stream depended on rather than an enhancement layer

Playback mode supported:
* 0: no time control
* 1: play/pause/seek,speed=1
* 2: play/pause/seek,speed>=0
* 3: play/pause/seek, reverse playback

Scalable stream

Tile base stream

Language code: ISO639 2/3 character code or RFC 4646

Name of parent service

Provider of parent service

Media stream type

Media subtype 4CC (auxiliary, pic sequence, etc ..)

ISOM media subtype 4CC (avc1 avc2...)

Original stream type before encryption

Codec ID (MPEG-4 OTI or ISOBMFF 4CC)

Indicates if pid is declared in the IOD for MPEG-4

Indicates that the media data is not framed, i.e. each packet is not a complete AU/frame or is not in internal format (eg annexB for avc/hevc, adts for aac)

Indicates that the unframed media still has correct AU boundaries: one packet is one full AU, but the packet format might not be the internal one (eg annexB for avc/hevc, adts for aac)

Indicates media is unframed AAC in LATM format

Media duration

Number of frames in the stream

Size of the frames for constant frame size streams

Depth of the timeshift buffer

Time in the timeshift buffer in seconds - changes are signaled through pid info (no reconfigure)

State of timeshift buffer: 0 is OK, 1 is underflow, 2 is overflow - changes are signaled through pid info (no reconfigure)

Media timescale (a timestamp delta of N is N/timescale seconds)

MPEG-4 profile and level

Decoder configuration data

Decoder configuration data of the enhancement layer(s). Also used by 3GPP/Apple text streams to give the full sample description table used in SDP.

1-based index of decoder config for ISO base media files

Audio sample rate

Number of audio sample in one coded frame

Number of audio channels

Number of bits per sample in compressed source

Channel Layout mask

Audio sample format

Audio playback speed, only used for audio output reconfiguration

Delay of presentation compared to composition timestamps, in media timescale. Positive value imply holding (delaying) the stream. Negative value imply skipping the beginning of stream

CTS offset to apply in case of negative ctts

Visual Width (video / text / graphics)

Visual Height (video / text / graphics)

Pixel format

Underlying pixel format of video stream if pixel format is external GL texture

Image or Y/alpha plane stride

UV plane or U/V planes stride

Bit depth for luma components

Bit depth for chroma components

Video framerate

Video is interlaced

Sample (ie pixel) aspect ratio

Picture aspect ratio

Maximum width (video / text / graphics) of all enhancement layers

Maximum height (video / text / graphics) of all enhancement layers

Z-order of the video, from 0 (first) to max int (last)

Horizontal translation of the video

Vertical translation of the video

Indicates the PID is hidden in visual/audio rendering

Position in source window, X,Y indicates coord in source

Original resolution of video

Position and size of the video in the referential given by SRDRef

Width and Height of the SRD referential

Mapping of input videos in reconstructed video, expressed as {Ox,Oy,Ow,Oh,Dx,Dy,Dw,Dh} per input, with:
* Ox,Oy,Ow,Oh: position and size of the input video (usually matching its SRD property), expressed in the output referential given by SRDRef
* Dx,Dy,Dw,Dh: Position and Size of the input video in the reconstructed output, expressed in the output referential given by SRDRef

Indicates the video in this pid is an alpha map

Bitrate in bps

Max bitrate in bps

Decode buffer size in bytes

Size in bytes of media data

Data referencing is possible (each compressed frame is a continuous set of bytes in source, with no transformation)

URL of source

Remote URL of source - used for MPEG-4 systems

Redirection URL of source

Path of source file on file system

MIME type of source

File extension of source

indicates the file is completely cached

Dowload rate of resource in bits per second - changes are signaled through pid info (no reconfigure)

Size of resource in bytes

Number of bytes downloaded - changes are signaled through pid info (no reconfigure)

Byte range of resource

indicates that some blocks in file need patching (replace or insertion) upon closing, potentially disabling progressive upload

indicates ISOBMFF brands associated with PID/file

indicates ISOBMFF major brand associated with PID/file

indicates ISOBMFF movie header duration and timescale

indicates ISOBMFF track has sync points

Display width of service

Display height of service

Repeat rate in ms for systems carousel data

UTC date and time of PID

Timestamp corresponding to UTC date and time

Volume of audio

Balance/Pan of audio

Audio thread priority

Protection scheme type (4CC) used

Protection scheme version used

Protection scheme URI

URI for key management system

Indicates if ISMA/OMA selective encryption is used

ISMA IV size

ISMA KeyIndication size

OMA encryption type

OMA Content ID

OMA textual headers

OMA size of plaintext data

URL (local file only) of crypt info file for this pid

URL (local file only) of crypt info file for this pid - see decrypter help

NTP time at sender side or grabber side

Receiver NTP time (usually associated with the sender NTP property)
Encrypted (EPCK,bool, )

Packets for the stream are by default encrypted (however the encryption state is carried in packet crypt flags) - changes are signaled through pid_set_info (no reconfigure)

OMA Preview range

PSSH blob for CENC, formatted as (u32)NbSystems [ (bin128)SystemID(u32)version(u32)KID_count[ (bin128)keyID ] (u32)priv_size(char*priv_size)priv_data]

CENC SAI for the packet, formated as (char(IV_Size))IV(u16)NbSubSamples [(u16)ClearBytes(u32)CryptedBytes]

Key ID for packets of the PID - changes are signaled through pid_set_info (no reconfigure)

IV size for packets of the PID

Constant IV for packets of the PID

CENC crypt pattern, CENC pattern, skip as frac.num crypt as frac.den

Storage location 4CC of SAI data

Mode for CENC sample description when using clear samples:
* 0: single sample description is used
* 1: a clear clone of the sample description is created, inserted before the CENC sample description
* 2: a clear clone of the sample description is created, inserted after the CENC sample description

ModeSet for AMR and AMR-WideBand

Binary blob describing N subsamples of the sample, formatted as N [(u32)flags(u32)size(u32)codec_param(u8)priority(u8) discardable]. Subsamples for a given flag MUST appear in order, however flags can be interleaved

Max size of NAL units in stream - changes are signaled through pid_set_info (no reconfigure)

Index of file when dumping to files

Name of output file when dumping / dashing. Must be set on first packet belonging to new file

Name of index file when dashing MPEG-2 TS. Must be set on first packet belonging to new file

File suffix name, replacement for $FS$ in tile templates

End of DASH segment

Max size of frame in stream - changes are signaled through pid_set_info (no reconfigure)

Average size of frame in stream (isobmff only, static property)

Maximum DTS delta between frames (isobmff only, static property)

Maximum absolute CTS offset (isobmff only, static property)

Constant duration of samples, 0 means variable duration (isobmff only, static property)

ISOBMFF serialized track box for this PID, without any sample info (empty stbl and empty dref) - used by isomuxer to reinject specific boxes of input ISOBMFF track

ISOBMFF serialized trex box for this PID - used by isomuxer to remux empty init segments

ISOBMFF serialized sample description box (stsd entry) for this PID - used by isomuxer to reinject specific boxes of input ISOBMFF track

ISOBMFF serialized moov UDTA and other moov-level boxes (list) for this PID - used by isomuxer to reinject specific boxes of input ISOBMFF moov

ISOBMFF track handler name

ISOBMFF track header flags

ISOBMFF track header matrix

ID of DASH period

DASH Period start - cf dasher help

DASH Period duration - cf dasher help

ID of DASH representation

ID of parent DASH AS

Name of mux source(s), set by dasher to direct its outputs

DASH mode to be used by muxer if any, set by dasher. 0 is no DASH, 1 is regular DASH, 2 is VoD

DASH target segment duration in seconds to muxer if any, set by dasher

List of roles for this pid

List of descriptors for the DASH period containing this pid

List of conditional descriptors for the DASH AdaptationSet containing this pid. If a pid with the same property type but different value is found, the pids will be in different AdaptationSets

List of common descriptors for the DASH AdaptationSet containing this pid

List of descriptors for the DASH Representation containing this pid

List of base URLs for this pid

Template to use for DASH generation for this pid

Start number to use for this pid - cf dasher help

Remote period URL for DASH - cf dasher help

Max media duration to process from pid in DASH mode

Name of the HLS variant playlist for this media

Name of HLS Group of a stream

Name of a cue list file for this pid - see dasher help

Number of DASH segments defined by the DASH cue info

codec parameter string to force. If starting with '.', appended to ISOBMF code point; otherwise replace the codec string

Indicates the movie header should use the media timescale of the first track added

Indicates the PID packets come from source with losses and reordering happening (UDP)

Indicates this is a primary item in isobmf

Indicate color primaries for a visual pid (see ISO/IEC 23001-8 / 23091-2)

Indicate color transfer characteristics for a visual pid (see ISO/IEC 23001-8 / 23091-2)

Indicate color matrix coeficient for a visual pid (see ISO/IEC 23001-8 / 23091-2)

Indicate color full range flag for a visual pid (see ISO/IEC 23001-8 / 23091-2)

Indicate chrom location for a visual pid (see ISO/IEC 23001-8 / 23091-2)

Indicate a magic number to store in the track, only used by importers

Indicate target track index in destination file, stored by lowest value first (not set by demuxers)

Indicate the timestamps on this PID are adjusted in case of loops (used by TS muxer output)

Indicate if packet is a fragment start (value 1) or a segment start (value 2)

Indicate start and end position in bytes of fragment if packet is a fragment or segment start

Indicate start and end position in bytes of sidx if packet is a fragment or segment start

Serialized moof box corresponding to the start of a movie fragment or segment (with styp and optionally sidx)

Indicate PID is a raw media grabber (webcam, microphone, etc...)

Indicate the PID must be kept alive after EOS (LASeR and BIFS)

Indicate PID cover art image data. If associated data is NULL, the data is carried in the PID


Planar YUV 420 8 bit

Planar YUV 420 10 bit

Planar YUV 422 8 bit

Planar YUV 422 10 bit

Planar YUV 444 8 bit

Planar YUV 444 10 bit

Planar UYVY 422 8 bit

Planar VYUV 422 8 bit

Planar YUYV 422 8 bit

Planar YVYU 422 8 bit

Semi-planar YUV 420 8 bit, Y plane and UV plane

Semi-planar YUV 420 8 bit, Y plane and VU plane

Semi-planar YUV 420 10 bit, Y plane and UV plane

Semi-planar YUV 420 8 bit, Y plane and VU plane

Planar YUV+alpha 420 8 bit

Planar YUV+depth 420 8 bit

Planar YUV+alpha 444 8 bit

Greyscale 8 bit

Alpha+Grey 8 bit

Grey+Alpha 8 bit

RGB 444, 12 bits (16 stored) / pixel

RGB 555, 15 bits (16 stored) / pixel

RGB 555, 16 bits / pixel

RGBA 32 bits (8 bits / component)

ARGB 32 bits (8 bits / component)

BGRA 32 bits (8 bits / component)

ABGR 32 bits (8 bits / component)

RGB 24 bits (8 bits / component)

BGR 24 bits (8 bits / component)

xRGB 32 bits (8 bits / component)

RGBx 32 bits (8 bits / component)

xBGR 32 bits (8 bits / component)

BGRx 32 bits (8 bits / component)

RGB+depth 32 bits (8 bits / component)

RGB+depth+bit shape (8 bits / RGB component, 7 bit depth (low bits) + 1 bit shape)

RGB 24 bits stereo (side-by-side) - to be removed


RGBA 32 bits stereo (side-by-side) - to be removed


External OpenGL texture of unknown format, to be used with samplerExternalOES


8 bit PCM

16 bit PCM Little Endian

24 bit PCM

32 bit PCM Little Endian
flt (ext *.flt)

32-bit floating point PCM
dbl (ext *.dbl)

64-bit floating point PCM

8 bit PCM planar

16 bit PCM Little Endian planar

24 bit PCM planar

32 bit PCM Little Endian planar

32-bit floating point PCM planar

64-bit floating point PCM planar


Video or Image stream

Audio stream

Scene stream

Text or subtitle stream

Metadata stream

Raw file stream

Encrypted media stream

MPEG-4 ObjectDescriptor stream

MPEG-4 Clock Reference stream

MPEG-7 description stream

MPEG-4 IPMP/DRM stream

MPEG-4 ObjectContentInformation stream

MPEG-4 JAVA stream

MPEG-4 Interaction Sensor stream

MPEG-4 Font stream


MPEG-4 BIFS v1 Scene Description

MPEG-4 BIFS v2 Scene Description

MPEG-4 BIFS Extended Scene Description

MPEG-4 ObjectDescriptor v1

MPEG-4 ObjectDescriptor v2

MPEG-4 Interaction Stream

MPEG-4 AFX Stream

MPEG-4 Font Stream

MPEG-4 Synthetized Texture

MPEG-4 Streaming Text

MPEG-4 LASeR

MPEG-4 Simple Aggregation Format

MPEG-4 Visual part 2
264|avc|h264

MPEG-4 AVC|H264 Video

MPEG-4 AVC|H264 Video Parameter Sets

MPEG-4 AVC|H264 Scalable Video Coding

MPEG-4 AVC|H264 Multiview Video Coding

HEVC Video

HEVC Video Layered Extensions

MPEG-2 Visual Simple

MPEG-2 Visual Main

MPEG-2 Visual SNR

MPEG-2 Visual Spatial

MPEG-2 Visual High

MPEG-2 Visual 422

MPEG-1 Video

JPEG Image

PNG Image

JPEG200 Image

MPEG-4 AAC Audio

MPEG-2 AAC Audio Main

MPEG-2 AAC Audio Low Complexity

MPEG-2 AAC Audio Scalable Sampling Rate

MPEG-1 Audio

MPEG-2 Audio

H263 Video

H263 Video

HEVC tiles Video

EVRC Voice

SMV Voice

QCELP Voice

AMR Audio

AMR WideBand Audio

EVRC (PacketVideo MUX) Audio

SMPTE VC-1 Video

Dirac Video

AC3 Audio

Enhanced AC3 Audio

DRA Audio

G719 Audio

DTS Coherent Acoustics Audio

DTS-HD High Resolution Audio

DTS-HD Master Audio

DTS Express low bit rate Audio

Opus Audio

DVB Event Information

SVG over RTP

SVG+gz over RTP

3GPP DIMS Scene

WebVTT Text

Simple Text Stream

Metadata Text Stream

Metadata XML Stream

Subtitle text Stream

Subtitle XML Stream

Subtitle/text 3GPP/Apple Stream

Theora Video

Vorbis Audio

Opus Audio

Flac Audio

Speex Audio

VobSub Subtitle

VobSub Subtitle

AD-PCM

IBM CSVD

ALAW

MULAW

OKI ADPCM

DVI ADPCM

DIGISTD

YAMAHA ADPCM

DSP TrueSpeech

GSM 610

IBM MULAW

IBM ALAW

IBM ADPCL

Adobe Flash

Raw media

AOM AV1 Video

VP8 Video

VP9 Video

VP10 Video

MPEG-H Audio

MPEG-H AudioMux

ProRes Video 422 HQ

ProRes Video 422 Proxy

ProRes Video 422 STD

ProRes Video 422 LT

ProRes Video 4444 XQ

ProRes Video 4444

FFMPEG unmapped codec

QT TimeCode

Authors: GPAC developers, see git repo history (-log)
For bug reports, feature requests, more information and source code, visit http://github.com/gpac/gpac
build: 1.0.1-rev0-g7c36b3027-master
Copyright: (c) 2000-2020 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io

gpac-filters(1), MP4Client(1), MP4Box(1)

2019 gpac