mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
use itsoffset for all syncing related time shifts
This commit is contained in:
parent
9aed82db0a
commit
ea28a1abed
1 changed files with 2 additions and 2 deletions
|
|
@ -561,7 +561,7 @@ impl Downloader {
|
|||
|
||||
for (i, meta) in videos.iter().enumerate() {
|
||||
if let Some(start_time) = meta.start_time {
|
||||
input.extend(["-ss".to_string(), format_time_delta(&start_time)])
|
||||
input.extend(["-itsoffset".to_string(), format_time_delta(&start_time)])
|
||||
}
|
||||
input.extend(["-i".to_string(), meta.path.to_string_lossy().to_string()]);
|
||||
maps.extend(["-map".to_string(), i.to_string()]);
|
||||
|
|
@ -582,7 +582,7 @@ impl Downloader {
|
|||
}
|
||||
for (i, meta) in audios.iter().enumerate() {
|
||||
if let Some(start_time) = meta.start_time {
|
||||
input.extend(["-ss".to_string(), format_time_delta(&start_time)])
|
||||
input.extend(["-itsoffset".to_string(), format_time_delta(&start_time)])
|
||||
}
|
||||
input.extend(["-i".to_string(), meta.path.to_string_lossy().to_string()]);
|
||||
maps.extend(["-map".to_string(), (i + videos.len()).to_string()]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue