This is an example of how to inject dynamic metadata with GPAC.
What you need to know about this example:
- It is limited to SCTE-35 injection. It can be extended to any metadata type. We chose SCTE-35 because it is popular and [https://wiki.gpac.io/Howtos/scte35-markers/](well supported in GPAC).
- It implements an external
evtapifilter that's loaded at runtime. It is a passthru filter that attaches a SCTE-35 property to existing packets (more below). - The input format is NHML file. In practice it is a small wrapper around the SCTE-35 XML payload.
cmake -S . -B build
cmake --build build
- NHML payload will be parsed with
gf_xml_parse_bit_sequence() - Parsed SCTE35 samples will be put to the
scte35property on the video packets
Check out the .vscode/launch.json for the launch configuration.
If you use Visual Studio Code, you can add this extension: REST Client and use the test.http file to test the API.
Click on the
Send Requestlink above the request you want to test.