Query if the decoder opened a redirector.
More...
|
BGAV_PUBLIC int | bgav_num_tracks (bgav_t *bgav) |
| Get the number of tracks.
|
|
BGAV_PUBLIC const char * | bgav_get_description (bgav_t *bgav) |
| Get a technical description of the format.
|
|
BGAV_PUBLIC gavl_time_t | bgav_get_duration (bgav_t *bgav, int track) |
| Get the duration of a track.
|
|
BGAV_PUBLIC int | bgav_num_audio_streams (bgav_t *bgav, int track) |
| Get the number of audio streams of a track.
|
|
BGAV_PUBLIC int | bgav_num_video_streams (bgav_t *bgav, int track) |
| Get the number of video streams of a track.
|
|
BGAV_PUBLIC int | bgav_num_subtitle_streams (bgav_t *bgav, int track) |
| Get the number of subtitle streams of a track.
|
|
BGAV_PUBLIC int | bgav_num_text_streams (bgav_t *bgav, int track) |
| Get the number of text streams of a track.
|
|
BGAV_PUBLIC int | bgav_num_overlay_streams (bgav_t *bgav, int track) |
| Get the number of overlay streams of a track.
|
|
BGAV_PUBLIC const char * | bgav_get_track_name (bgav_t *bgav, int track) |
| Get the name a track.
|
|
BGAV_PUBLIC const bgav_metadata_t * | bgav_get_metadata (bgav_t *bgav, int track) |
| Get metadata for a track.
|
|
BGAV_PUBLIC gavl_dictionary_t * | bgav_get_media_info (bgav_t *bgav) |
| Get media information.
|
|
BGAV_PUBLIC int | bgav_select_track (bgav_t *bgav, int track) |
| Select a track.
|
|
BGAV_PUBLIC int | bgav_get_num_chapters (bgav_t *bgav, int track, int *timescale) |
| Get the number of chapters.
|
|
BGAV_PUBLIC const char * | bgav_get_chapter_name (bgav_t *bgav, int track, int chapter) |
| Get the name of a chapter.
|
|
BGAV_PUBLIC int64_t | bgav_get_chapter_time (bgav_t *bgav, int track, int chapter) |
| Get the name of a chapter.
|
|
BGAV_PUBLIC const gavl_chapter_list_t * | bgav_get_chapter_list (bgav_t *bgav, int track) |
| Get the chapter list.
|
|
Query if the decoder opened a redirector.
- Parameters
-
- Returns
- 1 if the decoder opened a redirector, 0 else
This function MUST be called after bgav_open to query if we openend a redirector.
Each opened decoder can have multiple tracks. You must select the track you wish to decode before you can do anything else.
◆ bgav_num_tracks()
BGAV_PUBLIC int bgav_num_tracks |
( |
bgav_t * |
bgav | ) |
|
Get the number of tracks.
- Parameters
-
- Returns
- The number of tracks.
◆ bgav_get_description()
BGAV_PUBLIC const char * bgav_get_description |
( |
bgav_t * |
bgav | ) |
|
Get a technical description of the format.
- Parameters
-
- Returns
- Description
◆ bgav_get_duration()
Get the duration of a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starting with 0) |
- Returns
- The duration of a track or GAVL_TIME_UNDEFINED if the duration is not known.
◆ bgav_num_audio_streams()
BGAV_PUBLIC int bgav_num_audio_streams |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |
Get the number of audio streams of a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starting with 0) |
- Returns
- The number of audio streams
◆ bgav_num_video_streams()
BGAV_PUBLIC int bgav_num_video_streams |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |
Get the number of video streams of a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starting with 0) |
- Returns
- The number of video streams
◆ bgav_num_subtitle_streams()
BGAV_PUBLIC int bgav_num_subtitle_streams |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |
Get the number of subtitle streams of a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starting with 0) |
- Returns
- The number of subtitle streams
Since version 1.3.0 the 2 categories of subtitles are referred to as text and overlay streams. The legacy functions still work as long as you use them consistently.
◆ bgav_num_text_streams()
BGAV_PUBLIC int bgav_num_text_streams |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |
Get the number of text streams of a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starting with 0) |
- Returns
- The number of text subtitle streams
◆ bgav_num_overlay_streams()
BGAV_PUBLIC int bgav_num_overlay_streams |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |
Get the number of overlay streams of a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starting with 0) |
- Returns
- The number of overlay subtitle streams
◆ bgav_get_track_name()
BGAV_PUBLIC const char * bgav_get_track_name |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |
Get the name a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starting with 0) |
- Returns
- The track name if present or NULL.
◆ bgav_get_metadata()
Get metadata for a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starts with 0) |
- Returns
- A metadata container (see Metadata)
◆ bgav_get_media_info()
BGAV_PUBLIC gavl_dictionary_t * bgav_get_media_info |
( |
bgav_t * |
bgav | ) |
|
Get media information.
- Parameters
-
returns A dictionary containing the media information
This replaces all bgav_get_* functions. It returns a dictionary, which contains the tracks which, in turn, contain the A/V streams
The API for extracing the infos is in gavl/trackinfo.h The returned dictionary can be passed to gavl_get_num_tracks and gavl_get_track.
◆ bgav_select_track()
BGAV_PUBLIC int bgav_select_track |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |
Select a track.
- Parameters
-
bgav | A decoder instance |
track | Track index (starts with 0) |
- Returns
- 0 if there was no such track, 1 else
Select the track. All subsequent function calls will refer to the track you selected.
◆ bgav_get_num_chapters()
BGAV_PUBLIC int bgav_get_num_chapters |
( |
bgav_t * |
bgav, |
|
|
int |
track, |
|
|
int * |
timescale |
|
) |
| |
Get the number of chapters.
- Parameters
-
bgav | A decoder instance |
track | Track index (starts with 0) |
timescale | Returns the timescale of the seekpoints |
- Returns
- The number of chapters or 0 if the format doesn't support chapters
Chapters are simply named seekpoints. Use bgav_get_chapter_time and bgav_get_chapter_name to query the chapters.
◆ bgav_get_chapter_name()
BGAV_PUBLIC const char * bgav_get_chapter_name |
( |
bgav_t * |
bgav, |
|
|
int |
track, |
|
|
int |
chapter |
|
) |
| |
Get the name of a chapter.
- Parameters
-
bgav | A decoder instance |
track | Track index (starts with 0) |
chapter | Chapter index (starts with 0) |
- Returns
- The name of the chapter or NULL
◆ bgav_get_chapter_time()
BGAV_PUBLIC int64_t bgav_get_chapter_time |
( |
bgav_t * |
bgav, |
|
|
int |
track, |
|
|
int |
chapter |
|
) |
| |
Get the name of a chapter.
- Parameters
-
bgav | A decoder instance |
track | Track index (starts with 0) |
chapter | Chapter index (starts with 0) |
- Returns
- The time of the chapter
◆ bgav_get_chapter_list()
BGAV_PUBLIC const gavl_chapter_list_t * bgav_get_chapter_list |
( |
bgav_t * |
bgav, |
|
|
int |
track |
|
) |
| |