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

window系统下的convertAlphaVideo报错及修改 #105

Open
Yuxiang-Tsai opened this issue Dec 12, 2023 · 2 comments
Open

window系统下的convertAlphaVideo报错及修改 #105

Yuxiang-Tsai opened this issue Dec 12, 2023 · 2 comments

Comments

@Yuxiang-Tsai
Copy link

作者你好,你给出的convertAlphaVideo脚本在Windows11 系统下运行会报错

  1. print在python3下的错误,37行的代码应改为 print ("args.zip: ", args.zip)
  2. 运行脚本时,关于ImageMagick出现无效参数(invalid parameter)的解决方法:https://www.cnblogs.com/yourstars/p/5849818.html
@Yuxiang-Tsai
Copy link
Author

第二个问题举个例子

command = "convert {} -background black -alpha remove {}".format(imageSrc, imageDst)
改为
command = "magick convert {} -background black -alpha remove {}".format(imageSrc, imageDst)
小提示:原代码有三处要改

@weizai
Copy link

weizai commented Oct 23, 2024

再加一个:

ffmpeg -r {} -i {}%05d.jpg -vcodec libx264 -pix_fmt yuv420p -b {}k {}
调整为
ffmpeg -r {} -i {}output_%04d.jpg -vcodec libx264 -pix_fmt yuv420p -b {}k {}

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