Coder Social home page Coder Social logo

Comments (11)

nadermx avatar nadermx commented on August 19, 2024

Not sure what WSL is? Windows? Also, what version of FFMPEG do you have, this needs 4.4+

from backgroundremover.

edouard-mangel avatar edouard-mangel commented on August 19, 2024

Yes, it's Windows Subsystem for Linux.
I did in fact not have the 4.4 version of ffmpeg (forgot I could add a PPA myself, it's been a while since I used GNU/Linux), but I do now have ffmpeg-4.4 and the problem stays the same.

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

I think it has to do something with the temporary files created in windows. Seems the temporary directory does this in ubuntu vs windows

On Windows, the directories C:\TEMP, C:\TMP, \TEMP, and \TMP, in that order.
On all other platforms, the directories /tmp, /var/tmp, and /usr/tmp, in that order.

So it might be something with where I'm saving the directory that works fine on ubuntu but windows is changing location

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

also, did you install the python3-x-dev (x being what ever version you are using)?

from backgroundremover.

edouard-mangel avatar edouard-mangel commented on August 19, 2024

Hello,
Yes I have the ffmpeg4.4, python3.9-dev packages, but I don't have a C:\TMP or TEMP folder, but the console outputs "Output #0, mp4, to '/tmp/tmpdexkumo3/matte.mp4':"
I tried copying the file in a folder I have access to, and the file keeps a size of 44bytes.

How can I investigate some more ?

from backgroundremover.

edouard-mangel avatar edouard-mangel commented on August 19, 2024

the problem does not lie in the file i'm trying to remove the background from, because it works if I use your website by the way.

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

try apt-get install -y build-essential

from backgroundremover.

edouard-mangel avatar edouard-mangel commented on August 19, 2024

I'm sorry I tried it but my subsystem already had the latest version of this package

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

@edouard-mangel I think I found this, if you can edit it locally and try? Seem it is a issue with temp file and windows, https://stackoverflow.com/a/8577226/4180276

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

@edouard-mangel I'm going to try and push a commit later that add's something of this sort to everything. See if it's a bit more platform agnotstic.

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

Let me know if this fixes it
pip install git+https://github.com/nadermx/backgroundremover.git@09c142c8ebcaee035dbd867248957bfbc87e8e3f

from backgroundremover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.