Create polished demo videos without editing skills. Mac/Windows/Linux
fix exporter not taking varaibles
Alan Trebugeaisc780bfd1194f
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsxindex f9c75bbe..71a29d75 100644--- a/src/components/video-editor/VideoEditor.tsx+++ b/src/components/video-editor/VideoEditor.tsx@@ -4352,6 +4352,10 @@ export default function VideoEditor() {encodingMode,useModernNativeStaticLayout: useExperimentalNativeExport,});+ const sourceAudioTrackSettingsForExport =+ selectedClipId !== null+ ? audio.selectedClipSourceAudioTrackSettings+ : audio.activeSourceAudioTrackSettings;const exporterConfig = {videoUrl: videoPath,@@ -4421,7 +4425,7 @@ export default function VideoEditor() {sourceAudioFallbackPaths: audio.sourceAudioFallbackPaths,sourceAudioFallbackStartDelayMsByPath:audio.sourceAudioFallbackStartDelayMsByPath,- sourceAudioTrackSettings: audio.activeSourceAudioTrackSettings,+ sourceAudioTrackSettings: sourceAudioTrackSettingsForExport,previewWidth,previewHeight,onProgress: (progress: ExportProgress) => {@@ -4670,6 +4674,8 @@ export default function VideoEditor() {audioRegions,audio.sourceAudioFallbackPaths,audio.sourceAudioFallbackStartDelayMsByPath,+ audio.activeSourceAudioTrackSettings,+ audio.selectedClipSourceAudioTrackSettings,exportEncodingMode,exportBackendPreference,exportPipelineModel,@@ -4701,6 +4707,7 @@ export default function VideoEditor() {smokeExportConfig.shadowIntensity,effectiveSpeedRegions,frame,+ selectedClipId,smokeExportConfig.encodingMode,smokeExportConfig.fps,smokeExportConfig.quality,