backgroundremover icon indicating copy to clipboard operation
backgroundremover copied to clipboard

The backgound still exists in my generated video. OS is ubuntu 22.04

Open verynohair opened this issue 1 year ago • 10 comments

GPU: Nvidia 3090 CUDA: 11.2 ffmpeg: 5.0.1

model: u2net

verynohair avatar Aug 27 '24 01:08 verynohair

What command are you using?

nadermx avatar Aug 27 '24 03:08 nadermx

backgroundremover -i "a.mp4" -tv -o b.mov

verynohair avatar Aug 27 '24 04:08 verynohair

I was typed the same command in my workstation PC with Window 11. It executed ok. But generated slowly because of there's only an integration GPU in this machine.

verynohair avatar Aug 27 '24 04:08 verynohair

I have issues on Ubuntu 24 too.

I am trying to remove the background. I ran the following command.

backgroundremover -i presentation-5.mp4 -m "u2net_human_seg" -tv -o "output.mov"

I get the video like this and the it was not smooth. How can I resolve it? @nadermx

vlcsnap-2024-09-19-18h10m59s113

gokula-krishna-dev avatar Sep 19 '24 10:09 gokula-krishna-dev

I have issues on Ubuntu 24 too.

I am trying to remove the background. I ran the following command.

backgroundremover -i presentation-5.mp4 -m "u2net_human_seg" -tv -o "output.mov"

I get the video like this and the it was not smooth. How can I resolve it? @nadermx

vlcsnap-2024-09-19-18h10m59s113

I have the same problem

ChEnYoNgB avatar Sep 24 '24 00:09 ChEnYoNgB

@ChEnYoNgB I have figured out the steps to remove the background from a video and I have documented it here- https://www.gokulakrishna.co/post/how-to-remove-background-from-videos-and-add-a-new-background-via-cli

gokula-krishna-dev avatar Sep 24 '24 01:09 gokula-krishna-dev

@ChEnYoNgB我已经找到了从视频中删除背景的步骤,并在此处记录了它 - https://www.gokulakrishna.co/post/how-to-remove-background-from-videos-and-add-a-new-background-via-cli

Thank you very much

ChEnYoNgB avatar Sep 24 '24 01:09 ChEnYoNgB

I have the same problem.. (windows)

it does not remove anything and 12mb mp4 is converted to 2.5GB mov file with no content change..

command: backgroundremover -i zeux.mp4 -tv -o zeux.mov

even gif option produces 0 byte GIF.

Not sure if this was due to python-dev, as there is no way to install python-dev on windows and most have suggested that its already part of normal Windows python installation.

jitendra-koodo avatar Jan 20 '25 11:01 jitendra-koodo

Please try using https://mpv.io player to test.

nadermx avatar Apr 04 '25 17:04 nadermx

I have the same problem.. (windows)

it does not remove anything and 12mb mp4 is converted to 2.5GB mov file with no content change..

command: backgroundremover -i zeux.mp4 -tv -o zeux.mov

even gif option produces 0 byte GIF.

Not sure if this was due to python-dev, as there is no way to install python-dev on windows and most have suggested that its already part of normal Windows python installation.

I am using wsl2 with python 3.13. gif was fine, but the video was segmenting right (person Blue, background green), but not transparent 😢

cnadler86 avatar Apr 22 '25 21:04 cnadler86