gmerlin
Functions
EDL support

EDL support. More...

Functions

void bg_edl_save (const gavl_edl_t *e, const char *filename)
 Save an EDL to an xml file.
 
gavl_edl_t * bg_edl_load (const char *filename)
 Load an EDL from an xml file.
 
void bg_edl_append_track_info (gavl_edl_t *e, const bg_track_info_t *info, const char *url, int index, int num_tracks, const char *name)
 Append a bg_track_info_t to the EDL.
 
void bg_edl_track_append_track_info (gavl_edl_t *e, gavl_edl_track_t *track, const bg_track_info_t *info, const char *url, int index, int total_tracks, const char *name)
 Append a bg_track_info_t to an EDL track.
 

Detailed Description

EDL support.

Most media files contain one or more A/V streams. In addition however, there can be additional instructions, how the media should be played back. Basically you can have "logical" streams, where the EDL tells how they are composed from phyiscal streams.

To use EDLs with gmerlin, note the following:

Function Documentation

◆ bg_edl_save()

void bg_edl_save ( const gavl_edl_t * e,
const char * filename )

Save an EDL to an xml file.

Parameters
eAn EDL
filenameName of the file

◆ bg_edl_load()

gavl_edl_t * bg_edl_load ( const char * filename)

Load an EDL from an xml file.

Parameters
filenameName of the file
Returns
The EDL or NULL.

◆ bg_edl_append_track_info()

void bg_edl_append_track_info ( gavl_edl_t * e,
const bg_track_info_t * info,
const char * url,
int index,
int num_tracks,
const char * name )

Append a bg_track_info_t to the EDL.

Parameters
eAn EDL
infoA track info (see bg_track_info_t)
urlThe location of the track
indexThe index of the track in the location
total_tracksThe total number of the tracks in the location
nameAn optional name.

This function takes a track info (e.g. from an opened input plugin) and creates an EDL track, which corresponds to that track.

If name is NULL, the track name will be constructed from the filename.

◆ bg_edl_track_append_track_info()

void bg_edl_track_append_track_info ( gavl_edl_t * e,
gavl_edl_track_t * track,
const bg_track_info_t * info,
const char * url,
int index,
int total_tracks,
const char * name )

Append a bg_track_info_t to an EDL track.

Parameters
eAn EDL
trackAn EDL track
infoA track info (see bg_track_info_t)
urlThe location of the track
indexThe index of the track in the location
total_tracksThe total number of the tracks in the location
nameAn optional name.

This function takes a track info (e.g. from an opened input plugin) and appends the contents to an EDL track.