We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd18582 commit 3e62c55Copy full SHA for 3e62c55
comfy_api/input_impl/video_types.py
@@ -253,7 +253,12 @@ def save_to(
253
start = i * samples_per_frame
254
end = start + samples_per_frame
255
# TODO(Feature) - Add support for stereo audio
256
- chunk = self.__components.audio['waveform'][0, 0, start:end].unsqueeze(0).numpy()
+ chunk = (
257
+ self.__components.audio["waveform"][0, 0, start:end]
258
+ .unsqueeze(0)
259
+ .contiguous()
260
+ .numpy()
261
+ )
262
audio_frame = av.AudioFrame.from_ndarray(chunk, format='fltp', layout='mono')
263
audio_frame.sample_rate = audio_sample_rate
264
audio_frame.pts = i * samples_per_frame
0 commit comments