summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcapture-pipeline19
1 files changed, 14 insertions, 5 deletions
diff --git a/capture-pipeline b/capture-pipeline
index b239542..625b69c 100755
--- a/capture-pipeline
+++ b/capture-pipeline
@@ -194,6 +194,11 @@ def audio_ffmpeg_command(sequence, shot, take, part):
return ffmpeg_command
def audio_register(sequence, shot, take, part):
+ source_path = audio_source_path(sequence, shot, take)
+
+ if not source_path or not os.path.isfile(source_path):
+ return
+
if "audio-registry" not in sequence:
sequence["audio-registry"] = {}
@@ -210,10 +215,8 @@ def audio_process(sequence, shot, take, part):
if not source_path or not output_path:
return
- audio_sync = settings_item_entry(take, "audio-sync")
- video_sync = settings_item_entry(take, "video-sync")
-
- if not audio_sync or not video_sync:
+ if not os.path.isfile(source_path):
+ print(" - audio-source: unavailable")
return
print(" - audio-source: " + audio_source_name(sequence, shot, take))
@@ -381,6 +384,11 @@ def video_ffmpeg_command(sequence, shot, take, part):
return ffmpeg_command
def video_register(sequence, shot, take, part):
+ source_path = video_source_path(sequence, shot, take)
+
+ if not source_path or not os.path.isfile(source_path):
+ return
+
if "video-registry" not in sequence:
sequence["video-registry"] = {}
@@ -394,7 +402,8 @@ def video_process(sequence, shot, take, part):
source_path = video_source_path(sequence, shot, take)
output_path = video_output_path(sequence, shot, take, part)
- if not source_path or not output_path:
+ if not source_path or not os.path.isfile(source_path):
+ print(" - video-source: unavailable")
return
print(" - video-source: " + video_source_name(sequence, shot, take))