nadermx / backgroundremover

Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.
https://www.backgroundremoverai.com
MIT License
6.43k stars 534 forks source link

Video removal produces mask only? #134

Open ZanderInteractiveMedia opened 3 months ago

ZanderInteractiveMedia commented 3 months ago

python -m backgroundremover.cmd.cli -i "./out/result.mp4" -mk -o "./out/transparent_result.mp4"

takes a video result.mp4 and returns only the black-white mask of it. The output video has no color or transparency!

nadermx commented 3 months ago

If you want a transparent video you do -tv instead of -mk and the output has to be a .mov vs .mp4

On Wed, Mar 20, 2024, 9:14 AM ZanderInteractiveMedia < @.***> wrote:

python -m backgroundremover.cmd.cli -i "./out/result.mp4" -mk -o "./out/transparent_result.mp4"

takes a video result.mp4 and returns only the black-white mask of it. The output video has no color or transparency!

— Reply to this email directly, view it on GitHub https://github.com/nadermx/backgroundremover/issues/134, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYACXBQKPYXDEWUNFU2SZ3YZGKVHAVCNFSM6AAAAABE7SCFVCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TONRUHA3DENI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ZanderInteractiveMedia commented 3 months ago

I like the fact that the mask is created because I can dialte it and create a border around my subject. Any way to accomplish this or should I continue to use -mk?

ZanderInteractiveMedia commented 3 months ago

also, -tv creates a visually blank video with original audio

ZanderInteractiveMedia commented 3 months ago

also, for some reason the results have different number of frames