Defines | |
| #define | BGAV_TIMESTAMP_UNDEFINED 0x8000000000000000LL |
| Time value indicating an invalid time. | |
Functions | |
| int | bgav_can_seek_sample (bgav_t *bgav) |
| Check if a track is seekabkle with sample accuracy. | |
| int64_t | bgav_audio_duration (bgav_t *bgav, int stream) |
| Get the audio duration. | |
| int64_t | bgav_audio_start_time (bgav_t *bgav, int stream) |
| Get the audio start time. | |
| int64_t | bgav_video_duration (bgav_t *bgav, int stream) |
| Get the video duration. | |
| int64_t | bgav_video_start_time (bgav_t *bgav, int stream) |
| Get the video start time. | |
| int64_t | bgav_subtitle_duration (bgav_t *bgav, int stream) |
| Get the subtitle duration. | |
| void | bgav_seek_audio (bgav_t *bgav, int stream, int64_t sample) |
| Seek to a specific audio sample. | |
| void | bgav_seek_video (bgav_t *bgav, int stream, int64_t time) |
| Seek to a specific video time. | |
| 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. | |
| 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. | |
| 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 0x8000000000000000LL |
Time value indicating an invalid time.
| 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.
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
1.5.7