edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | //! What the *sound* of a copied export costs, on a window of a real film. |
| 2 | //! |
| 3 | //! The picture of an untouched Matroska timeline is copied block for block, so |
| 4 | //! everything an export of a feature film waits for is in the audio pass. This |
| 5 | //! runs that pass over the first `minutes` of a file and prints the engine's own |
| 6 | //! stage lines (`export audio: ...`), which is how the per-minute cost of the |
| 7 | //! mix, the Opus encode and the fidelity gate are told apart. |
| 8 | //! |
| 9 | //! ```text |
| 10 | //! cargo run --release -p engine --example export_audio_cost -- <film.mkv> [minutes] [out.mkv] |
| 11 | //! ``` |
| 12 | //! |
| 13 | //! The output file is overwritten; name a scratch path, never a source. |
| 14 | |
| 15 | use PathBuf; |
| 16 | use ; |
| 17 | |
| 18 | use PlaybackSession; |
| 19 | use ; |
| 20 | use Lane; |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 |