download-online-video / chrome-avgle-helper

👏 A Chrome extension for Avgle and other interesting video sites. Downloader inside
GNU General Public License v3.0
318 stars 65 forks source link

Avgle not found after running ./install.sh in Windows (Git Bash) #29

Open jasongame61 opened 4 years ago

jasongame61 commented 4 years ago

Avgle file not found after running ./install.sh in Windows (using Git Bash). All the dependencies (e.g. ffmpeg) is copied successfully

[.] copying 'Avgle' ... cp: cannot stat 'Avgle': No such file or directory [-] FATAL: CopyAvglefailed!

Elypha commented 4 years ago

Check this out.

jasongame61 commented 4 years ago

Thanks! I have the download-xxx.sh downloaded locally. However, when I run it, it always complain "ffmpeg" is missing. I have copied ffmpeg.exe in

  1. same dir of the .sh script
  2. inside a /bin folder
  3. inside a /windows-libs folder Neither of them work. How can I run the script successfully in windows (or WSL)?
Elypha commented 4 years ago

The download script, by default, defines FFMPEG_BIN="ffmpeg"; which is later referred to as

"$FFMPEG_BIN" -f concat -i "${LIST_FILE}" -bsf:a aac_adtstoasc -c copy "${TARGET_FILE}" -loglevel error \

So maybe you can try $ ffmpeg in your git bash and see if it returns a proper output like

ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
...

Should it fail, your ffmpeg might not be on your system path so check it again. The windows-libs folder should be in this structure as shown in README.md:

After you download dependencies into this directory, this directory will looks like this:

- windows-libs
|-- ffmpeg-4.1-win32-static
  |-- bin
  |-- presets
|-- aria2-1.34.0-win-32bit-build1
|-- README.md (Current document)

I'm not sure if it works certainly, as I already have my own ffmpeg and aria2 installation and .exe files on the system path. You may also try changing FFMPEG_BIN="ffmpeg"; to something like FFMPEG_BIN="E:/path/to/ffmpeg.exe"; to fix it.

jasongame61 commented 4 years ago

Thanks for the advice. It does not work well in Windows:

vide0 commented 4 years ago

@jasongame61 are u running this script under the WSL env? just install dependencies like sudo apt install ffmpeg aria2 .

report the log to here if you met any problem during installing dependencies

jasongame61 commented 4 years ago

@vide0 It has the following output

` Reading package lists... Done Building dependency tree Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'ffmpeg' has no installation candidate E: Unable to locate package aria2 `

vide0 commented 4 years ago

@jasongame61 what is your WSL system?

jmnie commented 4 years ago

Actually I met the same error here. I tired on WSL(Ubuntu 18.04) and Ubuntu 19.04, all failed. and I used sudo apt install ffmpeg first.

jasongame61 commented 4 years ago

@vide0 I am using Ubuntu 18.04