Defines | |
#define | BGAV_TIMESTAMP_UNDEFINED GAVL_TIME_UNDEFINED |
Time value indicating an invalid time. | |
Functions | |
BGAV_PUBLIC int | bgav_can_seek_sample (bgav_t *bgav) |
Check if a track is seekabkle with sample accuracy. | |
BGAV_PUBLIC int64_t | bgav_audio_duration (bgav_t *bgav, int stream) |
Get the audio duration. | |
BGAV_PUBLIC int64_t | bgav_audio_start_time (bgav_t *bgav, int stream) |
Get the audio start time. | |
BGAV_PUBLIC int64_t | bgav_video_duration (bgav_t *bgav, int stream) |
Get the video duration. | |
BGAV_PUBLIC int64_t | bgav_video_start_time (bgav_t *bgav, int stream) |
Get the video start time. | |
BGAV_PUBLIC int64_t | bgav_subtitle_duration (bgav_t *bgav, int stream) |
Get the subtitle duration. | |
BGAV_PUBLIC void | bgav_seek_audio (bgav_t *bgav, int stream, int64_t sample) |
Seek to a specific audio sample. | |
BGAV_PUBLIC void | bgav_seek_video (bgav_t *bgav, int stream, int64_t time) |
Seek to a specific video time. | |
BGAV_PUBLIC int64_t | bgav_video_keyframe_before (bgav_t *bgav, int stream, int64_t time) |
Get the time of the closest keyframe before a given time. | |
BGAV_PUBLIC int64_t | bgav_video_keyframe_after (bgav_t *bgav, int stream, int64_t time) |
Get the time of the closest keyframe after a given time. | |
BGAV_PUBLIC void | bgav_seek_subtitle (bgav_t *bgav, int stream, int64_t time) |
Seek to a specific subtitle position. |
Sample accurate mode has a little more overhead on the demultiplexer side. Therefore you should not enable it when not needed. Some formats don't allow sample accurate access, other formats are *only* seekable in sample accurate mode. For formats, which need to be parsed completely, index files are written to $HOME/.gmerlin-avdecoder/indices. Filenames of the indices are the MD5 sums of the filename passed to bgav_open.
Sample accurate mode also implies, that all streams can be positioned independently.
#define BGAV_TIMESTAMP_UNDEFINED GAVL_TIME_UNDEFINED |
Time value indicating an invalid time.
BGAV_PUBLIC int bgav_can_seek_sample | ( | bgav_t * | bgav | ) |
Check if a track is seekabkle with sample accuracy.
bgav | A decoder handle |
The ability of sample accurate seeking also implies, that streams can be positioned indepentently.
If bgav_options_set_sample_accurate was not called, this function will return zero for any file.
BGAV_PUBLIC int64_t bgav_audio_duration | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the audio duration.
bgav | A decoder handle | |
stream | Audio stream index (starting with 0) |
BGAV_PUBLIC int64_t bgav_audio_start_time | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the audio start time.
bgav | A decoder handle | |
stream | Audio stream index (starting with 0) |
BGAV_PUBLIC int64_t bgav_video_duration | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the video duration.
bgav | A decoder handle | |
stream | Video stream index (starting with 0) |
BGAV_PUBLIC int64_t bgav_video_start_time | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the video start time.
bgav | A decoder handle | |
stream | Video stream index (starting with 0) |
BGAV_PUBLIC int64_t bgav_subtitle_duration | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the subtitle duration.
bgav | A decoder handle | |
stream | Subtitle stream index (starting with 0) |
BGAV_PUBLIC void bgav_seek_audio | ( | bgav_t * | bgav, | |
int | stream, | |||
int64_t | sample | |||
) |
Seek to a specific audio sample.
bgav | A decoder handle | |
stream | Audio stream index (starting with 0) | |
sample | The sample to seek to |
BGAV_PUBLIC void bgav_seek_video | ( | bgav_t * | bgav, | |
int | stream, | |||
int64_t | time | |||
) |
Seek to a specific video time.
bgav | A decoder handle | |
stream | Video stream index (starting with 0) | |
time | Time |
BGAV_PUBLIC int64_t bgav_video_keyframe_before | ( | bgav_t * | bgav, | |
int | stream, | |||
int64_t | time | |||
) |
Get the time of the closest keyframe before a given time.
bgav | A decoder handle | |
stream | Video stream index (starting with 0) | |
time | Time |
BGAV_PUBLIC int64_t bgav_video_keyframe_after | ( | bgav_t * | bgav, | |
int | stream, | |||
int64_t | time | |||
) |
Get the time of the closest keyframe after a given time.
bgav | A decoder handle | |
stream | Video stream index (starting with 0) | |
time | Time |
BGAV_PUBLIC void bgav_seek_subtitle | ( | bgav_t * | bgav, | |
int | stream, | |||
int64_t | time | |||
) |
Seek to a specific subtitle position.
bgav | A decoder handle | |
stream | Subtitle stream index (starting with 0) | |
time | Time |