From 970fa807f502c4a4809649afb588960295e40849 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Mon, 14 Nov 2022 21:08:40 +0100 Subject: capture-pipeline: Make audio/video sync optional Signed-off-by: Paul Kocialkowski --- capture-pipeline | 4 ++-- 1 file 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) -- cgit v1.2.3