diff options
author | Paul Kocialkowski | 2022-11-14 21:08:40 +0100 |
---|---|---|
committer | Paul Kocialkowski | 2022-11-14 21:08:40 +0100 |
commit | 970fa807f502c4a4809649afb588960295e40849 (patch) | |
tree | dde4fd6db732c62e0ac8980411b787f4fb3d6a96 | |
parent | ac0ae9e5b2d06037df03fe58590e9083b684f2e7 (diff) |
capture-pipeline: Make audio/video sync optional
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rwxr-xr-x | capture-pipeline | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capture-pipeline b/capture-pipeline index b0a1687..b239542 100755 --- a/capture-pipeline +++ b/capture-pipeline @@ -158,7 +158,7 @@ def audio_ffmpeg_command(sequence, shot, take, part): if audio_start: ffmpeg_command += [ "-ss", audio_start ] - elif video_start: + elif video_start and audio_sync and video_sync: video_start_seconds = timecode_seconds(video_start) video_sync_seconds = timecode_seconds(video_sync) audio_sync_seconds = timecode_seconds(audio_sync) @@ -171,7 +171,7 @@ def audio_ffmpeg_command(sequence, shot, take, part): if audio_stop: ffmpeg_command += [ "-to", audio_stop ] - elif video_stop: + elif video_stop and audio_sync and video_sync: video_stop_seconds = timecode_seconds(video_stop) video_sync_seconds = timecode_seconds(video_sync) audio_sync_seconds = timecode_seconds(audio_sync) |