diff options
Diffstat (limited to 'matroska/src/bin/mkvdump.rs')
-rw-r--r-- | matroska/src/bin/mkvdump.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/matroska/src/bin/mkvdump.rs b/matroska/src/bin/mkvdump.rs deleted file mode 100644 index 48420c6..0000000 --- a/matroska/src/bin/mkvdump.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - This file is part of jellything (https://codeberg.org/metamuffin/jellything) - which is licensed under the GNU Affero General Public License (version 3); see /COPYING. - Copyright (C) 2025 metamuffin <metamuffin.org> -*/ -use jellymatroska::{matroska::MatroskaTag, read::EbmlReader}; -use std::{fs::File, io::BufReader}; - -fn main() { - env_logger::init_from_env("LOG"); - let path = std::env::args().nth(1).unwrap(); - let r = EbmlReader::new(BufReader::new(File::open(path).unwrap())); - - for tag in r { - let (position, tag) = tag.unwrap(); - match tag { - MatroskaTag::SimpleBlock(b) | MatroskaTag::Block(b) => { - println!( - "block t={} kf={} ts_off={}", - b.track, - b.flags.keyframe(), - b.timestamp_off - ) - } - _ => println!("{} {tag:?}", position.unwrap_or(0)), - } - } -} |