The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
make audio chunks contiguous before encoding (#7942)
Christian Byrne3e62c5513a5a
diff --git a/comfy_api/input_impl/video_types.py b/comfy_api/input_impl/video_types.pyindex d0b0b36d2..ae48dbaa4 100644--- a/comfy_api/input_impl/video_types.py+++ b/comfy_api/input_impl/video_types.py@@ -253,7 +253,12 @@ class VideoFromComponents(VideoInput):start = i * samples_per_frameend = start + samples_per_frame# TODO(Feature) - Add support for stereo audio- chunk = self.__components.audio['waveform'][0, 0, start:end].unsqueeze(0).numpy()+ chunk = (+ self.__components.audio["waveform"][0, 0, start:end]+ .unsqueeze(0)+ .contiguous()+ .numpy()+ )audio_frame = av.AudioFrame.from_ndarray(chunk, format='fltp', layout='mono')audio_frame.sample_rate = audio_sample_rateaudio_frame.pts = i * samples_per_frame