Skip to content

ROUTE & ATSC3.0 services


GPAC supports both sending and receiving data using the ROUTE (Real-time Object delivery over Unidirectional Transport) RFC9223 protocol.

In the media field ROUTE is typically used for multicast ABR. Technically ROUTE allows to broadcast local file systems. This is useful to transport a DASH session over any physical layers (e.g. broadcast (ATSC, DVB, ...), broadband (IP), or hybrid broadcast-broadband). ROUTE technologically inherits from FLUTE.

Receiving ROUTE implies to dump the local file system described in the ROUTE session. GPAC allows to process this input, including (but not limited to) dumping the files on disk or exposing them through the GPAC embedded HTTP server. This behaviour of re-exposing the data using another protocol is commonly named "Gateway".

Sending ROUTE means starting a ROUTE server. This server listens for input data that it will broadcast. It then exposes the data using the ROUTE protocol via a ROUTE URL (in GPAC: route:// or atsc://).

The GPAC ROUTE implementation has been tested with both DASH and HLS sessions. The versions of the protocols used for the implementation are ATSC/A331 2017 and 2019. Both the Korean and US flavours of ATSC3 ROUTE are supported (both addressed with atsc://), as well as a generic ROUTE implementation (addressed with route://). Please note that ROUTE was also added to DVB-mABR.

Setup a ROUTE server


First you need an input content. This can be any input supported by GPAC e.g. a file or a live URL, and you most likely want an adaptive streaming source (DASH, HLS).

Let's consider the URL as an example.

You also need a pair of IP address and UDP port. Let's consider as an example.

Starting the server

gpac -i dashin:forward=file -o route://

If your session is ATSC-compliant, replace route:// by atsc://. Additional options are available in this mode, in particular multiple services and US versus Korean flavour, as described here.

Enabling low latency

Add the llmode option:

gpac -i dashin:forward=file -o route://

Technical details are available here.

Technical documentation

See the route_out filter documentation for technical details.

Setup ROUTE playback and gateway

Local playback

To play a ROUTE session back, simply do:

gpac -play route://

See the playback howto for more details on content playback with GPAC.

ROUTE gateway

Using the GPAC HTTP server

You may want to re-expose a ROUTE session as HTTP (typically to be played back by a third-party player), having gpac act as a gateway.

Let's consider a HTTP local server address and port at

gpac -i route:// dashin:forward=file httpout:port=8080 --rdirs=temp --reqlog=* --cors=auto

- The dashin filter is required here to indicate we process the ROUTE+DASH session in file mode (no demultiplexing of content). Pushing files using gcache=false is possible but more complex and limited to full segments only for the time being (no low-latency push).
- The max_segs option limits the number of segments kept on disk, set it to 0 to store the entire session. The number of segments stored on disk is currently NOT derived from the timeshift buffer information of the session.

You can also re-push to any output format supported by GPAC, not only DASH/HTTP. For example sending it as an MPEG-2 Transport Stream:

gpac -i route:// -o udp://
Pushing to any HTTP ingest/origin
gpac -i route:// dashin:forward=file -o --hmode=push

To test locally, you can start the GPAC HTTP server as standalone, in this example enabling CORS (e.g. for DASH.js access) and logging PUT requests:

gpac httpout:port=8080:rdirs=$TEMP_DIR:wdir=$TEMP_DIR:reqlog=PUT:cors=auto

ROUTE dumping session

To dump a ROUTE session to the dump_route folder in standalone mode:

gpac -i route://

The results will be in folder dump_route/serviceN with N the service ID of the session: 1 for pure ROUTE or the ATSC service ID for ATSC 3.0 (details here):

You can also forward files to receiving filters and use file templating. The following command will forward received ROUTE files to fout, writing to ATSCN_rec/ folders, with Nthe ATSC service ID:

gpac -i atsc:// -o ATSC$ServiceID$_rec/$File$:dynext

Technical documentation

See the routein filter documentation for technical details.


As this is complex technology, small changes can make a big difference in how your system behaves:

  • If your session is ATSC-compliant, replace route:// by atsc://.
  • If no data is seen on the network, your system may require some multicast routing indications.
  • You can improve logging by adding -logs=dash:route@info (or even more verbose: -logs=dash:route@debug) to your command-lines.