Open Good0007 opened 11 months ago
Do You know how to get the transparent video.
Do You know how to get the transparent video.
According to my test, Moviepy does not support loading and exporting a transparent video as another transparent video. You can use ffmpeg to complete this task
Could You Give the Example Commands for the FFMPEG.
Could You Give the Example Commands for the FFMPEG.
Pngs to transparent video (png files : image000001.png .... image000xxx.png)
ffmpeg -i ./pngs/image%06d.png -i ./audio/f3ab7be97c98a6abca9723a8c17cf769.wav -c:v qtrle -r 24 -crf 22 -map 0:v -map 1:a out.mov -y
Resize transparent video
ffmpeg -i test.mov -vf "scale=640:-1:flags=lanczos" -c:v qtrle oput2.mov
I have tried a method from another guy and solved this problem, link here "https://github.com/Zulko/moviepy/issues/1555", according to his code, I just add a tag as "has_mask=True" in my code when using the func 'VideoFileClip()', then it works, that's amazing, but it's not bad.
Expected Behavior
My original video was in mov format with Alpha channels, but the transparent channels were lost after exporting. I can use ffmpeg to export, It is normal :
Actual Behavior
Steps to Reproduce the Problem
Specifications