Giter VIP home page Giter VIP logo

Comments (19)

deveshk103 avatar deveshk103 commented on May 8, 2024 1

If I need to install a wsl then there's no point making this version. This version is all about running this thing on windows directly and without any linux vm or subsytems.

from ani-cli.

kubeden avatar kubeden commented on May 8, 2024 1

Hey @deveshk103! Sorry if I'm a little confused but I get you are on Windows?

In order for me to make it work (on Windows), I had to switch the branch to the Windows one. You do that by executing the command below within the root directory of the project (where ani-cli is located).

git checkout windows-vlc

Then I made it an executable:

chmod +x ani-cli-win

Should be fine when you do ./ani-cli-win in the directory.

Let me know.

from ani-cli.

deveshk103 avatar deveshk103 commented on May 8, 2024 1

Thanks to @asciiden everything worked for me.
I am mentioning some steps to get it running in Windows
Just install "Scoop" using cmd. (You can find that in google)

In cmd, type

Scoop bucket add extras

In cmd, type

scoop install vlc

Now go to windows branch through github and download it's zip and extract it.

It will ask to install git and 7zip (it's dependencies). Just install everything

Now in cmd, create a folder in current user directory named ".cache" using mkdir function

Now navigate to ani-cli-windows folder and run git bash there.

Now run command

chmod +x ani-cli-windows-vlc

Now just type the command

./ani-cli-windows

It will work for sure .

from ani-cli.

LachlanMalec avatar LachlanMalec commented on May 8, 2024

possible workaround: using WSL2 and WSLg you can run graphical linux apps on windows, try "wsl --install" to install and setup wsl as well as install ubuntu as the default distro, see https://docs.microsoft.com/en-us/windows/wsl/install

from ani-cli.

avidhy-chan avatar avidhy-chan commented on May 8, 2024

I am running the original script (not windows fork) and it works just fine. The steps are below to make it work. Try this once.

Windows install instructions

  1. Install git bash from https://gitforwindows.org/ It has all the depedencies except mpv.
  2. Install scoop by following the instructions in https://scoop.sh/ , the Powershell instructions from the website are listed below.
    Set-ExecutionPolicy RemoteSigned -scope CurrentUser
    iwr -useb get.scoop.sh | iex
    Set-ExecutionPolicy Restricted -scope CurrentUser
  3. After installing scoop, run the below commands in git-bash.
    scoop bucket add extras
    scoop install mpv
  4. Go to ani-cli folder, open git-bash in that location and run the below to start the script.
    ./ani-cli

from ani-cli.

deveshk103 avatar deveshk103 commented on May 8, 2024

I beileve it just created some make configs and then cracked the system.
image
What to do now?
It's still not working

from ani-cli.

kubeden avatar kubeden commented on May 8, 2024

Hey, I believe this is because you don't have a .cache folder under /c/Users/deves/

Try running the following to create the directory:

mkdir /c/Users/deves/.cache

Try running ani-cli again

./ani-cli

from ani-cli.

deveshk103 avatar deveshk103 commented on May 8, 2024

Thanks, that worked, but I still have this last issue. I've already install mpv player but it's not loading the screen. I mean it just stops here.
image
Nothing further happen i.e. video doesn't start and no dialog or application is open.

from ani-cli.

RuiNtD avatar RuiNtD commented on May 8, 2024

I am running the original script (not windows fork) and it works just fine. The steps are below to make it work. Try this once.

That's what I did btw. I installed MPV using Scoop so it's automatically added to path. However, I'm using WSL (which btw is incredibly easy to install and doesn't require a VM 🙂) and had to add .exe to the mpv path at the top. I also added an ani-cli.bat that just runs bash ani-cli %* so I can run the command from Windows. c:

from ani-cli.

taep96 avatar taep96 commented on May 8, 2024

I am running the original script (not windows fork) and it works just fine. The steps are below to make it work. Try this once.

That's what I did btw. I installed MPV using Scoop so it's automatically added to path. However, I'm using WSL (which btw is incredibly easy to install and doesn't require a VM 🙂) and had to add .exe to the mpv path at the top. I also added an ani-cli.bat that just runs bash ani-cli %* so I can run the command from Windows. c:

@FayneAldan I tried doing that but mpv doesn't start for me when using ani-cli. Works if I try to play a file manually though. Which version of wsl are you using?

from ani-cli.

RuiNtD avatar RuiNtD commented on May 8, 2024

I tried doing that but mpv doesn't start for me when using ani-cli. Works if I try to play a file manually though.

MPV still has to be in PATH, which Scoop does automatically, and you have to change mpv to mpv.exe (or mpv.com) at the top of the script so WSL finds and executes mpv.exe from PATH. Alternatively, if you have WSLg you can just install MPV in WSL.

from ani-cli.

taep96 avatar taep96 commented on May 8, 2024

I tried doing that but mpv doesn't start for me when using ani-cli. Works if I try to play a file manually though.

MPV still has to be in PATH, which Scoop does automatically, and you have to change mpv to mpv.exe (or mpv.com) at the top of the script so WSL finds and executes mpv.exe from PATH. Alternatively, if you have WSLg you can just install MPV in WSL.

@FayneAldan MPV is in PATH and I can execute it in both powershell and wsl. I tried using gwsl from microsoft store(not wslg) but it didn't work, I was getting a black window which turned white when I tried to resize or move it around.

from ani-cli.

taep96 avatar taep96 commented on May 8, 2024

Can you run wsl --status in powershell and send the output here?

from ani-cli.

RuiNtD avatar RuiNtD commented on May 8, 2024

Are you able to open MPV from WSL Bash by typing mpv.exe?

from ani-cli.

taep96 avatar taep96 commented on May 8, 2024

I noticed that both mpv and mpv.exe worked so I tried removing linux version with sudo apt remove mpv. Seems like ani-cli is still trying to use linux mpv even though I change player to mpv.exe

from ani-cli.

taep96 avatar taep96 commented on May 8, 2024

ani-cli.zip
here is my current version of the script

from ani-cli.

taep96 avatar taep96 commented on May 8, 2024

If you have wslg it could be launching linux mpv automatically even though you also have .exe in the script. Could you check that please?

from ani-cli.

kubeden avatar kubeden commented on May 8, 2024

@deveshk103
Great stuff! Happy you got it going.

from ani-cli.

deveshk103 avatar deveshk103 commented on May 8, 2024

I think someone should update the README for windows.

sudo make

is unnecessary and will create problems.

from ani-cli.

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.