Python
stuff
deepbeepmeep2aa827d0f096
diff --git a/postprocessing/mmaudio/data/av_utils.py b/postprocessing/mmaudio/data/av_utils.pyindex 635c053..60ef12f 100644--- a/postprocessing/mmaudio/data/av_utils.py+++ b/postprocessing/mmaudio/data/av_utils.py@@ -7,6 +7,7 @@ import avimport cv2import numpy as npimport torch+import osfrom av import AudioFrame@@ -147,7 +148,7 @@ def remux_with_audio(video_path: Path, output_path: Path, audio: torch.Tensor, stemp_path_str= str(temp_path)import torchaudiotorchaudio.save(temp_path_str, audio.unsqueeze(0) if audio.dim() == 1 else audio, sampling_rate)-+ os.makedirs(os.path.dirname(output_path), exist_ok=True)combine_video_with_audio_tracks(video_path, [temp_path_str], output_path )temp_path.unlink(missing_ok=True)