From ae189dadfd5ef44a13a5653a102ba8586112b10d Mon Sep 17 00:00:00 2001 From: Matjaz Debelak Date: Mon, 22 Jul 2024 10:11:33 +0200 Subject: [PATCH] Allow avc intra with no audio tracks --- services/transcode/avc_intra.go | 2 +- workflows/misc/watch_folder_transcode.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/transcode/avc_intra.go b/services/transcode/avc_intra.go index 860e54e8..71b6f713 100644 --- a/services/transcode/avc_intra.go +++ b/services/transcode/avc_intra.go @@ -91,7 +91,7 @@ func AvcIntra(input AVCIntraEncodeInput, progressCallback ffmpeg.ProgressCallbac params = append( params, "-map", "v", - "-map", "a", + "-map", "a?", "-y", outputPath, ) diff --git a/workflows/misc/watch_folder_transcode.go b/workflows/misc/watch_folder_transcode.go index f0914c81..fa19c38d 100644 --- a/workflows/misc/watch_folder_transcode.go +++ b/workflows/misc/watch_folder_transcode.go @@ -89,7 +89,7 @@ func WatchFolderTranscode(ctx workflow.Context, params WatchFolderTranscodeInput FrameRate: 25, }).Get(ctx, &transcodeOutput) case common.FolderAVCIntra100HD: - err = wfutils.Execute(ctx, activities.Video.TranscodeToH264Activity, activities.EncodeParams{ + err = wfutils.Execute(ctx, activities.Video.TranscodeToAVCIntraActivity, activities.EncodeParams{ FilePath: path, OutputDir: tmpFolder, Resolution: "1920x1080",