* fix clippy::unused_io_amount
See related clippy documentation,
but in short some partial reads can occur
in particular with io on the networl.
read_exact/write_all transparently handle such errors.
The fix actually revealed a bug
in 'mp4a' atom parsing, but this is a dangerous change:
Parsing bugs that were transparently ignored
are now failing with error (unattended io eof).
* fix trivial clippy errors
* fix clippy error with always 0 value
* run ci/cd with clippy and latest rust version
* feat: mvex box中的mehd box改为可选,支持fmp4的解析
* feat: support to copy mp4 with vp9 codec, but not support to copy fmp4 with vp9 codec
* Update types.rs
undo unnecessary changes.
* Update types.rs
undo reduce unnecessary changes.
* Update types.rs
* Update mp4copy.rs
Add vp9 code after h265
* Update stsd.rs
Add vp09 after the Hevc
* Update types.rs
Add after the HevcConfig.
* fix: Track.rs add vp9 support
* feat: mp4 writer set vp09 box into stsd box
* Add Mp4Box traits for getting json or text summary for each box.
* fix test and serde version.
* skip serializing entries
* skip serializing sample_sizes
* Add custom serializer for FixedPoint types.
* Make EsdsBox in Mp4aBox optional, instead of error when parsing. Also update mp4info example with some missing info that was removed.
* Update Mp4aBox test to check for optional EsdsBox.
* Add ReadBox trait
* Add boxtype macro
* Remove offset in BoxHeader
* Fix parsing error when box has largesize
* Remove duplicated codes reading version and flags
* Add test code for all leaves in box tree
* Remove entry_count that is duplacated with entries.len()
* Change volume type to Ratio<u16>
Co-authored-by: Byungwan Jun <unipro.kr@gmail.com>
* Add ReadBox trait
* Add boxtype macro
* Remove offset in BoxHeader
* Fix parsing error when box has largesize
* Remove duplicated codes reading version and flags
* Simplify all box size types as largesize
* Add WriteBox trait and improve compatibility with large box
* Split large atoms file into smaller ones
* Refator Error
Co-authored-by: Byungwan Jun <unipro.kr@gmail.com>
* Make the example tolerant of videos missing parts
Some videos are missing certain parts that the example was assuming would be
present. This change makes all such access conditional on the parts being
present. Also added the display of the box version and the creation time in
a human-readable format. This serves to demonstrate the logic for converting
the MP4 epoch (1904-01-01) to Unix epoch (1970-01-01).
* Show creation time as Unix time only