Kosinkadink / ComfyUI-VideoHelperSuite

Nodes related to video workflows
GNU General Public License v3.0
513 stars 90 forks source link

'function' object is not subscriptable #254

Closed 0002kgHg closed 3 weeks ago

0002kgHg commented 1 month ago

Error occurred when executing VHS_VideoCombine:

'function' object is not subscriptable

File "/comfyui/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/comfyui/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/comfyui/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/comfyui/custom_nodes/ComfyUI-VideoHelperSuite/videohelpersuite/nodes.py", line 523, in combine_video channels = audio['waveform'].size(1) 企业微信截图_1721222751600

0002kgHg commented 1 month ago

I've found that the problem is with the audio, how can this be fixed as long as I'm using the node. 企业微信截图_17212247948650

AustinMroz commented 1 month ago

There is another node to convert from the legacy VHS_AUDIO format to the Comfy native AUDIO format which is now used by VHS nodes

image

0002kgHg commented 1 month ago

还有另一个节点可以从传统的 VHS_AUDIO 格式转换为 Comfy 原生 AUDIO 格式,该格式现在由 VHS 节点使用

image

This didn't help me.

huan085128 commented 1 month ago

I also meet this issue

yueboxinli commented 1 month ago

I encountered the same error message. Whenever an audio file is used, this error occurs, and I don't know how to resolve it.Could the author provide a fix or respond to this issue?

0002kgHg commented 1 month ago

I was really foolish. I discovered that my workflow came from the internet and was quite outdated. The old versions of the Video Combine node and the Load Video node used different audio formats, which is why a format conversion node was needed. Now, I've deleted the old video nodes and created new ones, and their audio interfaces can be directly connected. 企业微信截图_17223285806364