Skip to content

Commit

Permalink
Release v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianEddy committed Sep 6, 2022
1 parent 02b3f32 commit 389670e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mp4-merge"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["Adrian <adrian.eddy@gmail.com>"]
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mp4_merge IN_FILE1.mp4 IN_FILE2.mp4 IN_FILE3.mp4 ... --out result.mp4

```toml
[dependencies]
mp4-merge = "0.1.1"
mp4-merge = "0.1.3"
```
```rust
let files = ["IN_FILE1.mp4", "IN_FILE2.mp4"];
Expand All @@ -45,7 +45,7 @@ The idea is to merge the raw track data together, and then rewrite the `stbl` bo
1. Scan every provided file and collect:
- `mdat` offset and size
- Duration stored in `mvhd`, `tkhd`, `mdhd` boxes
- `stbl` descriptions: `stts`, `stsz`, `stss`, `stco`/`co64`
- `stbl` descriptions: `stts`, `stsz`, `stss`, `stsc`, `stco`/`co64`
2. Merge all these descriptions: sum durations, append `stbl` lists to each other and add chunk offsets based on previous file `mdat` size.
3. Take the first file, go through every box and write it to the output file, while:
- If `mdat`: write raw data from all `mdat` boxes from all files, and store it as a large box (64-bit)
Expand Down

0 comments on commit 389670e

Please sign in to comment.