pystardust / ani-cli

A cli tool to browse and play anime
GNU General Public License v3.0
7.92k stars 544 forks source link

Windows10, Vlc error: "Codec cannot be identified" AND "Input data can't be read" #354

Closed Tuttori closed 2 years ago

Tuttori commented 2 years ago

Everything works just fine untill I select an episode to play.

Vlc launches but then shortly after I get flooded with: Unidentified codec: "VLC could not identify the audio or video codec" errors

And in the middle of these "Codec errors" there's also this ( appears only once ):

Your input can't be opened: VLC is unable to open the MRL 'file:///C:/Program%20Files/Git/etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem'. Check the log for details.

Running it on Windows 10 Pro, downloaded latest versions of ani-cli and vlc It gave the same errors for various shows ( tried: Jujutsu Kaisen, AoT, Youjo Senki )

ccireedui commented 2 years ago

Having same problem.

port19x commented 2 years ago

I assume this is related to our url decryption. Do you have openssl installed?

port19x commented 2 years ago

It says "Check the log for details" Mind sharing those?

Tuttori commented 2 years ago

It says "Check the log for details" Mind sharing those?

It doesn't seem like I have openssl ( I only see openssh in Paths ) And I can't find where the log is :/

ccireedui commented 2 years ago

These are the errors I'm getting and the log file.

image log.txt

RaynardGerraldo commented 2 years ago

These are the errors I'm getting and the log file.

image log.txt

is that git bash? you dont have jq installed there, the links wouldnt even be parsed

RaynardGerraldo commented 2 years ago

@Tuttori @ccireedui try running this

curl -L -o /c/windows/system32/jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe

then re-run ani-cli, lmk if it works

Memotets commented 2 years ago

After facing this issue today, a have to say that on windows sadly the curl .exe sent didn't really help at all, but because i only had detected this issue after some cache clears or changes on your web browser that you should work out for future upgrades...

the dumb solution that i have found for the current version was easily to reinstall ani-cli, and before first run, erase the folder %appdata%/vlc to open vlc as "first run"

edit: Try this solution and let us know how it goes

RaynardGerraldo commented 2 years ago

After facing this issue today, a have to say that on windows sadly the curl .exe sent didn't really help at all, but because i only had detected this issue after some cache clears or changes on your web browser that you should work out for future upgrades...

the dumb solution that i have found for the current version was easily to reinstall ani-cli, and before first run, erase the folder %appdata%/vlc to open vlc as "first run"

edit: Try this solution and let us know how it goes

can you elaborate more on what this fixes? because this issue was regarding jq not installed as stated in the log file and the image sent

Memotets commented 2 years ago

Allright, let get deep into it....

Starting with what did i do that did not directly work

this changes were made before those who actually did something, but there are important considerations in order to the system to work properly.

What did i do in order to fix this?

  1. Open git bash as admin and go to your ani-cli directory: cd [PATH-TO]/[ANI-CLI]/ani-cli.
  2. Run ./uninstall which is the first step in order to reinstall ani-cli.
  3. After finish the uninstall, restart your system in order to do the changes.
  4. On the new start you have 2 options in order to install ani-cli 4.1.On gitbash, as admin, go tu your ani-cli directory and instaling over there 4.2.Erase ani-cli directory and install it as the README.md says from Run the following commands point
    ### 4.1 command instructions ###
    cd [PATH-TO]/[ANI-CLI]/ani-cli
    ./install
    ### 4.2 command instructions, as admin ###
    git clone -b windows-vlc https://github.com/pystardust/ani-cli.git
    cd ani-cli
    chmod +x ani-cli-win
    ./install

both ways should work fine, but i personally did 4.2 in order to be sure nothing weird happend

VLC changes

After all you have done, ani-cli should work fine, but sometimes vlc saves more cache that it should

after intallation, my ani-cli didn't have problems at all