pystardust / ani-cli

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

Smart TV #40

Closed Mercyfulsin closed 2 years ago

Mercyfulsin commented 2 years ago

Not sure of this is possible, but can we attempt this on a smart TV? I have a Samsung with GooglePlay store and downloaded Termux. There I installed the dependencies and cloned the repo. I was able to get everything working but when playing only the audio is heard and the video doesn't seem to appear. I'm assuming because normally the application opens another terminal or splits the current one but doesn't seem to work on Smart TV. Any ideas on what we could do here?

dazai-osamu-san commented 2 years ago

Two things here:

  1. The script uses mpv which is a linux based multimedia player.
  2. Audio will be played through pulseaudio/alsa/pipewire.

considering these two things, a smart tv will need a display protocol that mpv supports and an audio stream that mpv supports as well, so try installing pulse audio xserver etc, but I doubt that it seriously will work. the concept tho is big brane.

chirag-droid commented 2 years ago

You need to start a xserver if you want to see the display. read about here https://wiki.termux.com/wiki/Graphical_Environment I am currently experimenting with android mpv player, it opens but can't pass the http header to it, which makes it unable to play video.

t9999clint commented 2 years ago

xserver on android is incredibly slow due to none of the standard linux gpu hardware apis being available for it. Sadly I don't think there's a way to get this software to run on a android device. Not without major changes to the codebase to run as a native android app.

chirag-droid commented 2 years ago

I made a similar software like ani-cli in python anime-cli, it now supports streaming on Android, although you need to have mpv player, or any other player from play store installed. Follow the instruction in Readme to see how. https://github.com/chirag-droid/anime-cli It doesn't have so many features but can stream on multiple video players

t9999clint commented 2 years ago

Nicely done Chirag-droid!!

sdshan8 commented 2 years ago

Not sure of this is possible, but can we attempt this on a smart TV? I have a Samsung with GooglePlay store and downloaded Termux. There I installed the dependencies and cloned the repo. I was able to get everything working but when playing only the audio is heard and the video doesn't seem to appear. I'm assuming because normally the application opens another terminal or splits the current one but doesn't seem to work on Smart TV. Any ideas on what we could do here?

First you need to install mpv-x instead of mpv Then put vo=x11 in /data/data/com.termux/files/usr/etc/mpv/mpv.conf

port19x commented 2 years ago

What's the status on this? Sounds exciting

port19x commented 2 years ago

What's the status on this? Sounds exciting

Actually sounds like a very error prone way to support an obscure plattform. I believe there are better projects out there to achieve Anime on Smart TV