Skip to content

Audio breaks export when using 4k #263

@dylanprins

Description

@dylanprins
  File "/workspace/ComfyUI/comfy_api/latest/_input_impl/video_types.py", line 380, in save_to
    output.mux(audio_stream.encode(frame))
               ~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "av/audio/stream.py", line 18, in av.audio.stream.AudioStream.encode
  File "av/audio/stream.py", line 28, in av.audio.stream.AudioStream.encode
  File "av/codec/context.pyx", line 411, in av.codec.context.CodecContext.encode
  File "av/codec/context.pyx", line 326, in _send_frame_and_recv
  File "av/error.pyx", line 424, in av.error.err_check
av.error.ValueError: [Errno 22] Invalid argument: 'avcodec_send_frame()'; last error log: [aac] Input contains (near) NaN/+-Inf

I get the above error when I generate video in 4k, I tried both using default upsampling of 0.5 in first stage and then setting the resolution to 3840x2160 and keeping resolution original at 1920x1088 but setting the upsampling to 1 so we end up around 4k in the end as well. Rendering with default settings works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions