mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
LibVideo: Calculate Block timestamps for Matroska according to spec
Tracks have a timestamp scale value that should be present which scales each block's timestamp offset to allow video to be synced with audio. They should also contain a CodecDelay element and may also contain a TrackOffset that offsets the block timestamps.
This commit is contained in:
parent
ceb7632862
commit
a58bf7c3d1
4 changed files with 49 additions and 12 deletions
|
@ -36,6 +36,8 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
outln("\tTrack has TrackType {}", static_cast<u8>(track_entry.track_type()));
|
||||
outln("\tTrack has Language \"{}\"", track_entry.language().characters());
|
||||
outln("\tTrack has CodecID \"{}\"", track_entry.codec_id().characters());
|
||||
outln("\tTrack has TrackTimestampScale {}", track_entry.timestamp_scale());
|
||||
outln("\tTrack has CodecDelay {}", track_entry.codec_delay());
|
||||
|
||||
if (track_entry.track_type() == Video::Matroska::TrackEntry::TrackType::Video) {
|
||||
auto const video_track = track_entry.video_track().value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue