Skip to content

ffmpeg error #5

@1blackbar

Description

@1blackbar

audio
ffmpeg.input(file, threads=0)
^^^^^^^^^^^^
AttributeError: module 'ffmpeg' has no attribute 'input'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "H:\comfy-\ComfyUI\execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "H:\comfy-\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\nodes.py", line 222, in inference
inference_module.main(config, args)
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\scripts\inference.py", line 69, in main
pipeline(
File "H:\comfy-\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\pipelines\lipsync_pipeline.py", line 379, in call
whisper_feature = self.audio_encoder.audio2feat(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\audio2feature.py", line 119, in audio2feat
return self._audio2feat(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\audio2feature.py", line 104, in _audio2feat
result = self.model.transcribe(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\transcribe.py", line 85, in transcribe
mel = log_mel_spectrogram(audio)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 111, in log_mel_spectrogram
audio = load_audio(audio)
^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 46, in load_audio
except ffmpeg.Error as e:
^^^^^^^^^^^^
AttributeError: module 'ffmpeg' has no attribute 'Error'

Prompt executed in 184.13 seconds
got prompt
Using video path: H:/comfy-/ComfyUI/input/trump.mp4
Video file exists: True
Video file size: 33173316 bytes
Initial seed: 152
Running FFmpeg command: ffmpeg -loglevel error -y -nostdin -i "H:/comfy-/ComfyUI/input/trump.mp4" -r 25 -crf 18 "temp/video.mp4"
Reading video from: temp/video.mp4
Opening video with CV2: temp\video.mp4
Successfully read 1064 frames from video
Affine transforming 1064 faces...
100%|██████████████████████████████████████████████████████████████████████████████| 1064/1064 [00:58<00:00, 18.30it/s]
Error during inference: module 'ffmpeg' has no attribute 'Error'
Traceback (most recent call last):
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 42, in load_audio
ffmpeg.input(file, threads=0)
^^^^^^^^^^^^
AttributeError: module 'ffmpeg' has no attribute 'input'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\nodes.py", line 222, in inference
inference_module.main(config, args)
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\scripts\inference.py", line 69, in main
pipeline(
File "H:\comfy-\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\pipelines\lipsync_pipeline.py", line 379, in call
whisper_feature = self.audio_encoder.audio2feat(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\audio2feature.py", line 119, in audio2feat
return self._audio2feat(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\audio2feature.py", line 104, in _audio2feat
result = self.model.transcribe(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\transcribe.py", line 85, in transcribe
mel = log_mel_spectrogram(audio)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 111, in log_mel_spectrogram
audio = load_audio(audio)
^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 46, in load_audio
except ffmpeg.Error as e:
^^^^^^^^^^^^
AttributeError: module 'ffmpeg' has no attribute 'Error'
!!! Exception during processing !!! module 'ffmpeg' has no attribute 'Error'
Traceback (most recent call last):
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 42, in load_audio
ffmpeg.input(file, threads=0)
^^^^^^^^^^^^
AttributeError: module 'ffmpeg' has no attribute 'input'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "H:\comfy-\ComfyUI\execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "H:\comfy-\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\nodes.py", line 222, in inference
inference_module.main(config, args)
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\scripts\inference.py", line 69, in main
pipeline(
File "H:\comfy-\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\pipelines\lipsync_pipeline.py", line 379, in call
whisper_feature = self.audio_encoder.audio2feat(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\audio2feature.py", line 119, in audio2feat
return self._audio2feat(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\audio2feature.py", line 104, in _audio2feat
result = self.model.transcribe(audio_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\transcribe.py", line 85, in transcribe
mel = log_mel_spectrogram(audio)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 111, in log_mel_spectrogram
audio = load_audio(audio)
^^^^^^^^^^^^^^^^^
File "H:\comfy-\ComfyUI\custom_nodes\ComfyUI-LatentSyncWrapper\latentsync\whisper\whisper\audio.py", line 46, in load_audio
except ffmpeg.Error as e:
^^^^^^^^^^^^
AttributeError: module 'ffmpeg' has no attribute 'Error'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions