gmerlin
|
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. |
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:
void bg_edl_save | ( | const gavl_edl_t * | e, |
const char * | filename | ||
) |
Save an EDL to an xml file.
e | An EDL |
filename | Name of the file |
gavl_edl_t* bg_edl_load | ( | const char * | filename | ) |
Load an EDL from an xml file.
filename | Name of the 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.
e | An EDL |
info | A track info (see bg_track_info_t) |
url | The location of the track |
index | The index of the track in the location |
total_tracks | The total number of the tracks in the location |
name | An 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.
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.
e | An EDL |
track | An EDL track |
info | A track info (see bg_track_info_t) |
url | The location of the track |
index | The index of the track in the location |
total_tracks | The total number of the tracks in the location |
name | An optional name. |
This function takes a track info (e.g. from an opened input plugin) and appends the contents to an EDL track.