mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
switch to audio fingerprinting based syncing
This commit is contained in:
parent
109526b375
commit
235a68e384
6 changed files with 503 additions and 257 deletions
13
README.md
13
README.md
|
|
@ -462,7 +462,7 @@ The `archive` command lets you download episodes with multiple audios and subtit
|
|||
In the best case, when multiple audio & subtitle tracks are used, there is only one *video* track and all other languages can be stored as audio-only.
|
||||
But, as said, this is not always the case.
|
||||
With the `-m` / `--merge` flag you can define the behaviour when an episodes' video tracks differ in length.
|
||||
Valid options are `audio` - store one video and all other languages as audio only; `video` - store the video + audio for every language; `auto` - detect if videos differ in length: if so, behave like `video` - otherwise like `audio`.
|
||||
Valid options are `audio` - store one video and all other languages as audio only; `video` - store the video + audio for every language; `auto` - detect if videos differ in length: if so, behave like `video` - otherwise like `audio`; `sync` - detect if videos differ in length: if so, it tries to find the offset of matching audio parts and removes the offset from the beginning, otherwise it behaves like `audio`.
|
||||
Subtitles will always match the primary audio and video.
|
||||
|
||||
```shell
|
||||
|
|
@ -482,15 +482,12 @@ The `archive` command lets you download episodes with multiple audios and subtit
|
|||
|
||||
Default are `200` milliseconds.
|
||||
|
||||
- <span id="archive-sync-start">Sync start</span>
|
||||
- <span id="archive-sync-tolerance">Sync tolerance</span>
|
||||
|
||||
If you want that all videos of the same episode should start at the same time and `--merge` doesn't fit your needs (e.g. one video has an intro, all other doesn't), you might consider using the `--sync-start`.
|
||||
It tries to sync the timing of all downloaded audios to match one video.
|
||||
This is done by downloading the first few segments/frames of all video tracks that differ in length and comparing them frame by frame.
|
||||
The flag takes an optional value determines how accurate the syncing is, generally speaking everything over 15 begins to be more inaccurate and everything below 6 is too accurate (and won't succeed).
|
||||
When the syncing fails, the command is continued as if `--sync-start` wasn't provided for this episode.
|
||||
Sometimes two video tracks are downloaded with `--merge` set to `sync` because the audio fingerprinting fails to identify matching audio parts (e.g. opening).
|
||||
To prevent this, you can use the "--sync-tolerance" flag to specify the difference by which two fingerprints are considered equal.
|
||||
|
||||
Default is `7.5`.
|
||||
Default is `6`.
|
||||
|
||||
- <span id="archive-language-tagging">Language tagging</span>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue