pystardust / ani-cli

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

MPV not opening after selecting Ep - OpenSuse #106

Closed santi014 closed 2 years ago

santi014 commented 2 years ago

I have all the dependencies installed but its not opening.

43 Pretty similar case but for Linux in this case.

Screenshot_20211104_024740 New to github sorry for any mistake

Dink4n commented 2 years ago

What is your version of setsid?

setsid -V
santi014 commented 2 years ago

Hi its, util-linux 2.36.2

Dink4n commented 2 years ago

Add this flag --log-file=debug.log just before --http-header-fields in the script https://github.com/pystardust/ani-cli/blob/babcc68a48705b67f593e2775286a95dcf2b072e/ani-cli#L255

Try to use ani-cli now. It should create a debug.log file Can you print the contents of the file.

kd00r commented 2 years ago

I think I got some valuable information for you. I have the exact same problem as santi014. I added the flag --log-file=debug.log but the log was not to be found anywhere. After about 45 minutes of troubleshooting, I landed on changing the line to setsid $player_fn --http-header-fields="Referer: $embedded_video_url" "$video_url" >/dev/null 2>&1

By removing the -f it now works properly for me. -f doesn't seem to be a valid flag for setsid.

I have version setsid from util-linux 2.31.1 running Ubuntu 18.04 if that helps.

santi014 commented 2 years ago

This is my debug.log debug.log The recommendation submitted by Kd00r did not work for me unfortunately

kd00r commented 2 years ago

santi014, could you verify that you have the non-free media decoders installed? Failed to initialize a decoder for codec 'h264'. implies you do not.

kd00r commented 2 years ago

It's either that or your mpv was compiled without support for those.

See: https://github.com/mpv-player/mpv/issues/4087 for your error. EDIT: This might help too: https://forums.opensuse.org/showthread.php/522863-Tumbleweed-H264-Codec

santi014 commented 2 years ago

FIXED This post provided by kd00r https://forums.opensuse.org/showthread.php/522863-Tumbleweed-H264-Codec Command Used zypper addrepo -f http://packman.inode.at/suse/openSUSE_Tumbleweed/ packman

zypper install vlc vlc-codecs k3b-codecs ffmpeg lame gstreamer-plugins-libav gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-good gstreamer-fluendo-mp3 libdvdcss2

zypper dist-upgrade --from packman

OishikGuha commented 2 years ago

This is my debug.log file, I am trying to run steins;gate but for some reason it isn't playing debug.log

Vaisakhkm2625 commented 2 years ago

for me also not working... it just showing this image

poiu477 commented 2 years ago

debug.log I am also dealing with this, here is my debug log

poiu477 commented 2 years ago

Just to note, ytfzf and other CLI video streamers work just fine, it's JUST ani-cli I am having difficulty with

poiu477 commented 2 years ago

Nevermind I just needed to update I am a noob and a loser