//! The project file: a line of text per thing, and nothing else. //! //! ```text //! edith 15 //! playhead 90 //! resolution 1920 1080 //! fps 30.0 //! tonemap vivid //! proxy on //! autoproxy off //! encoder hardware //! limiter -1.0 on //! source 0 test_av.mp4 //! source 1 /elsewhere/test_av2.mp4 //! subtitle - subs.srt //! subtitle 3 test_av.mp4 //! eq 80.0:-3.0:0.707:ls 1000.0:4.5:1.0:pk //! color 0.1:1.2:0.9:-0.3 //! transform 0.1:-0.1:1.5:90.0:0.0:0.0:0.0:0.0 //! video 1 0 0 120 0 0 0 0 fit 1000 0 0 0 - //! audio 1 0 0 120 0 0 0 - fit 1000 30 30 0 - //! video 2 120 0 120 1 - - - fill 2000 0 0 0 0 //! audio 2 //! sub 1 0 60 0 500000 1500000 //! sub 2 //! gain audio 1 -3.0 //! ``` //! //! The `fps` line is the rate the timeline was cut at -- the scaffolding //! source's own unless a rate was picked //! ([`crate::PlaybackSession::set_frame_rate`]), and the *only* thing that says //! so once one was, since every clip number in the file is counted in it. //! Printed so it reads back bit-exactly. A file without one (every dialect //! before v9) means 0"whatever the scaffolding source runs at", which is what //! such a project always was and is an answer only a project holding a video has //! ([`crate::PlaybackSession::open_project`]). //! //! A `subtitle` line is `subtitle `: which track of that file the //! cues are in -- a Matroska track number, or `-` when the path *is* a subtitle //! file ([`crate::subtitle`]) -- and then the path, last and escaped for the //! reason a source's is. Only the reference is written: the cues themselves are //! read back out of the file on the way in, exactly as a clip's pictures are, so //! a project file stays an edit list. A subtitle file that has gone missing //! since the save comes back listed and refused by name rather than dropped, //! which is what keeps a re-save from losing it. //! //! The `tonemap` line is which HDR-to-SDR rendition the project is watched and //! exported in ([`crate::tonemap::Preset`]), spelled `reference`, `standard` or //! `vivid`. Left out when it is the default, which is `reference` -- so a //! project holding no HDR media, and one whose owner never picked, are the bytes //! they were. //! //! The `proxy` line is whether this project is cut on the stand-ins //! ([`crate::proxy`]) rather than on the films themselves, spelled `on` or //! `off`. Left out when it is off, which is what every dialect before v12 was. //! *Which* sources have a stand-in is not written: a proxy is found by the //! film's own path, length and modification time, so the cache is the only //! answer and a project file cannot go stale about it. //! //! The `autoproxy` line is whether a film this machine cuts slowly gets a //! stand-in made for it the moment it is imported ([`crate::proxy::wanted`]), //! spelled `on` or `off`. Left out when it is on, which is what every dialect //! before v13 did and could not be told not to. With it off an import makes //! nothing at all, and turning the `proxy` switch on is what asks for the //! stand-ins this project is missing -- which is the only way to ask, so a //! project that never wants them never spends a minute of encode on one. //! //! The `encoder` line is which seat an export of this project writes its //! picture with ([`crate::export::EncoderSeat`]), spelled `auto`, `hardware` or //! `software`. Left out when it is `auto` -- hardware where this machine has a //! seat and software everywhere else -- which is what every dialect before v14 //! did and could not be told otherwise. It is the project's and not the //! machine's for the reason the tone map is: a person who picked the software //! encoder for *this* delivery picked it for every export of it, and a pick //! that vanished on a reload is a pick nobody could keep. //! //! The `limiter` line is the master limiter over the whole mix //! ([`crate::limiter`]): its ceiling in dBFS and whether it is in circuit, //! spelled `on` or `off`. Left out when it is the default, which is off. //! //! A `gain` line is `gain `: how loud that whole lane plays, //! everything on it and every frequency of it -- a different thing from a //! clip's `eq` line, which is one take and one band. It names its lane the way //! a clip line does and comes *after* the lanes, because a lane is declared by //! its clips and a gain declares nothing. Only a lane somebody has turned gets //! one; the rest are at 0 dB, which is where every lane of every dialect before //! v9 is. //! //! The `resolution` line is the **project's** picture size, which is a //! different thing from any source's: media of other sizes are placed on it. //! It belongs once, beside the playhead, and a file without one (every dialect //! before v7) means "source 0's own picture", which is what such a project //! always was. //! //! A source line is `source