Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug #6

Open
lh11117 opened this issue Jan 17, 2023 · 3 comments
Open

bug #6

lh11117 opened this issue Jan 17, 2023 · 3 comments

Comments

@lh11117
Copy link

lh11117 commented Jan 17, 2023

审核快乐器有bug,生成的视频有时快,有时慢,速度不均匀。。。
自己去看:
链接: https://pan.baidu.com/s/18ZTpxtyYBBDxJhCA8ZJrbQ?pwd=haha
提取码: haha

@ShenYuhan
Copy link
Owner

参数给一下吧,我这边复现一下看看问题

@lh11117
Copy link
Author

lh11117 commented Jan 31, 2023

我这边填的参数是:
图片数量:30
旋转一圈时间:2
视频总时长:600(10分钟)
可是生成的视频只有约4分钟!
这也许是电脑CPU的问题,也有可能是moviepy的问题

@lh11117
Copy link
Author

lh11117 commented Jan 31, 2023

顺便再说一下,有时候他会莫名其妙的报错,我明明什么代码都没有修改。。
报错信息:
Traceback (most recent call last):
File "E:\Downloads\IDM_Download\Zip\python-tools-master\5_rotate_img\main.py", line 223, in generateRotateVideo
final_video_path = set_video_music(video_mute_path, self.input_audio_file)
File "E:\Downloads\IDM_Download\Zip\python-tools-master\5_rotate_img\main.py", line 95, in set_video_music
video_clip = mov.VideoFileClip(video_mute_path)
File "D:\c++\python\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 88, in init
self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
File "D:\c++\python\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 35, in init
infos = ffmpeg_parse_infos(filename, print_infos, check_duration,
File "D:\c++\python\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 270, in ffmpeg_parse_infos
raise IOError(("MoviePy error: the file %s could not be found!\n"
OSError: MoviePy error: the file D:/文档/下载的音乐\output_file_1675127784.mp4 could not be found!
Please check that you entered the correct path.
麻烦修复一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants