MoneyPrinterTurbo
MoneyPrinterTurbo copied to clipboard
请在此处填写标题
是否已存在类似问题?
- [x] 我已搜索现有问题
当前行为
是用本地视频素材时候报错。
运行环境:docker-compose
操作系统:mac os (m2 芯片)
错误如下:
预期行为
当不实用本地素材的时候能够正常工作
重现步骤
1, 在 mac os 上以 docker-compose 启动项目 2,视频素材选择本地素材,上传了 3 个视频文件(每个视频大小在 100mb 以内) 3,点击生成视频
堆栈追踪/日志
webui | 2025-01-19 07:35:26 | INFO | "./app/services/video.py:53": combine_videos - max duration of audio: 10.97 seconds
webui | 2025-01-19 07:35:26 | INFO | "./app/services/video.py:57": combine_videos - each clip will be maximum 4 seconds long
webui | 2025-01-19 07:35:27 | INFO | "./app/services/video.py:128": combine_videos - resizing video to 1080 x 1920, clip size: 1214 x 2160
webui | 2025-01-19 07:35:27 | INFO | "./app/services/video.py:128": combine_videos - resizing video to 1080 x 1920, clip size: 2160 x 3840
webui | 2025-01-19 07:35:27 | INFO | "./app/services/video.py:128": combine_videos - resizing video to 1080 x 1920, clip size: 2160 x 3840
webui | 2025-01-19 07:35:27 | INFO | "./app/services/video.py:140": combine_videos - writing
webui | 2025-01-19 07:35:35.768 Uncaught app exception
webui | Traceback (most recent call last):
webui | File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
webui | result = func()
webui | ^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
webui | exec(code, module.__dict__)
webui | File "/MoneyPrinterTurbo/webui/Main.py", line 804, in <module>
webui | result = tm.start(task_id=task_id, params=params)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/MoneyPrinterTurbo/app/services/task.py", line 302, in start
webui | final_video_paths, combined_video_paths = generate_final_videos(
webui | ^^^^^^^^^^^^^^^^^^^^^^
webui | File "/MoneyPrinterTurbo/app/services/task.py", line 175, in generate_final_videos
webui | video.combine_videos(
webui | File "/MoneyPrinterTurbo/app/services/video.py", line 142, in combine_videos
webui | video_clip.write_videofile(
webui | File "/usr/local/lib/python3.11/site-packages/decorator.py", line 232, in fun
webui | return caller(func, *(extras + args), **kw)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/moviepy/decorators.py", line 53, in requires_duration
webui | return func(clip, *args, **kwargs)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/decorator.py", line 232, in fun
webui | return caller(func, *(extras + args), **kw)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/moviepy/decorators.py", line 143, in use_clip_fps_by_default
webui | return func(clip, *new_args, **new_kwargs)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/decorator.py", line 232, in fun
webui | return caller(func, *(extras + args), **kw)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/moviepy/decorators.py", line 24, in convert_masks_to_RGB
webui | return func(clip, *args, **kwargs)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/decorator.py", line 232, in fun
webui | return caller(func, *(extras + args), **kw)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/moviepy/decorators.py", line 94, in wrapper
webui | return func(*new_args, **new_kwargs)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/moviepy/video/VideoClip.py", line 391, in write_videofile
webui | ffmpeg_write_video(
webui | File "/usr/local/lib/python3.11/site-packages/moviepy/video/io/ffmpeg_writer.py", line 263, in ffmpeg_write_video
webui | frame = np.dstack([frame, mask])
webui | ^^^^^^^^^^^^^^^^^^^^^^^^
webui | File "/usr/local/lib/python3.11/site-packages/numpy/lib/_shape_base_impl.py", line 726, in dstack
webui | return _nx.concatenate(arrs, 2)
webui | ^^^^^^^^^^^^^^^^^^^^^^^^
webui | ValueError: all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 1920 and the array at index 1 has size 1
Python 版本
docker-compose.yml中指定的 py 版本
操作系统
macos
MoneyPrinterTurbo 版本
最新
其他信息
No response