AniVu icon indicating copy to clipboard operation
AniVu copied to clipboard

Use mpv based player

Open P0bo opened this issue 10 months ago • 29 comments

Mpv player is a really great player and the aniyomi version of mpv player looks a lot better than official mpv , it also has material ui support.

aniyomi-https://github.com/aniyomiorg/aniyomi

P0bo avatar Apr 15 '24 18:04 P0bo

There are some problems: 1. aniyomi-mpv-lib is not a library, so we need more work to use it; 2. aniyomi-mpv-lib includes native code, makes apk size larger

SkyD666 avatar Apr 16 '24 02:04 SkyD666

is there any way to use mpv based player ? customisation is really good in mpv , because of mpv.conf , also it supports stats for nerds which is really helpful for cross checking quality of episodes. And i use my tablet with keyboard and mpv allows customising almost every key input.conf

P0bo avatar Apr 16 '24 09:04 P0bo

Agree , mpv provides a hefty amount of customisation and personalisation.Its not only good for tablet but also phones . And it uses significantly less resources from phone than other players saving a lot of battery and ram. U can even specify max how much forword or backward ram it should use in mpv.

Luffyirl avatar Apr 16 '24 09:04 Luffyirl

Agree , mpv provides a hefty amount of customisation and personalisation.Its not only good for tablet but also phones . And it uses significantly less resources from phone than other players saving a lot of battery and ram. U can even specify max how much forword or backward ram it should use in mpv.

Especially in AniVu, the subtitles look ugly, and there's no way to customize the border size/color, shadow color/offset, font size/color, etc. And the lack of keyboard support, let alone customizable keybindings. Don't get me wrong, I love AniVu (I loved it when I found the repo and still do now). I really thank and respect the dev for making the app. It's my humble request to the dev to please consider using an mpv-based player.

P0bo avatar Apr 16 '24 09:04 P0bo

Fair enough . Also Kudos to the developer for such an awesome app! ..

Luffyirl avatar Apr 16 '24 09:04 Luffyirl

Agree , mpv provides a hefty amount of customisation and personalisation.Its not only good for tablet but also phones . And it uses significantly less resources from phone than other players saving a lot of battery and ram. U can even specify max how much forword or backward ram it should use in mpv.

Especially in AniVu, the subtitles look ugly, and there's no way to customize the border size/color, shadow color/offset, font size/color, etc. And the lack of keyboard support, let alone customizable keybindings. Don't get me wrong, I love AniVu (I loved it when I found the repo and still do now). I really thank and respect the dev for making the app. It's my humble request to the dev to please consider using an mpv-based player.

Subtitle effects are indeed a big problem because exoplayer does not support them.

This issue has existed for three years and there is still no progress:

https://github.com/google/ExoPlayer/issues/8435

SkyD666 avatar Apr 16 '24 10:04 SkyD666

In addition, thank you for your valuable suggestions, but I am busy with my studies recently, so the update frequency may not be too frequent.

SkyD666 avatar Apr 16 '24 10:04 SkyD666

For the mpv player, I'll learn more about it.

SkyD666 avatar Apr 16 '24 10:04 SkyD666

In addition, thank you for your valuable suggestions, but I am busy with my studies recently, so the update frequency may not be too frequent.

Best of luck with ur studies .No problems with update frequency .

P0bo avatar Apr 16 '24 22:04 P0bo

I found that mpv doesn't seem to be able to use a custom data source (such as Java InputStream)

This is bad for playing torrents

SkyD666 avatar Apr 19 '24 06:04 SkyD666

I found that mpv doesn't seem to be able to use a custom data source (such as Java InputStream)

This is bad for playing torrents

Doesn't AniVu just play files after downloading? If #12 is implemented, the app will play the files inside that specific folder after they are downloaded; mpv won't have a problem playing such files. And if you want to implement torrent streaming (without downloading the torrent), you will need a webtorrent hook for mpv, which isn't available for Android devices. Another way is to implement a torrent server, but that will significantly increase the app's size.

Only app that has implemented torrent streaming which is usable is stremio , no alternatives what so ever for android , all the other apps that tried have either failed or didnt meet the expectatins .

Luffyirl avatar Apr 19 '24 17:04 Luffyirl

I found that mpv doesn't seem to be able to use a custom data source (such as Java InputStream)

This is bad for playing torrents

can u please elaborate a bit , i don't have much experience with playing torrents .

P0bo avatar Apr 19 '24 20:04 P0bo

I found that mpv doesn't seem to be able to use a custom data source (such as Java InputStream) This is bad for playing torrents

Doesn't AniVu just play files after downloading? If #12 is implemented, the app will play the files inside that specific folder after they are downloaded; mpv won't have a problem playing such files. And if you want to implement torrent streaming (without downloading the torrent), you will need a webtorrent hook for mpv, which isn't available for Android devices. Another way is to implement a torrent server, but that will significantly increase the app's size.

Only app that has implemented torrent streaming which is usable is stremio , no alternatives what so ever for android , all the other apps that tried have either failed or didnt meet the expectatins .

@Luffyirl Stremio uses libVLC on Android, if I recall correctly. There's an app called Kuukiyomi that uses libmpv with ffmpeg kit (it uses same player since it's a fork of Aniyomi) which supports streaming torrents, but their server is not nearly as good or buffer-free as Stremio.

P0bo avatar Apr 19 '24 20:04 P0bo

Can you give the Stremio android repository? I can't find it.

SkyD666 avatar Apr 20 '24 02:04 SkyD666

Can you give the Stremio android repository? I can't find it.

Stremio android is not open source :

reason (From a stremio dev) "The reason for the mobile app itself not being open source is that we have an agreement with a partner company and an investor preventing us from publishing it."

P0bo avatar Apr 20 '24 10:04 P0bo

1713637442598

damn i thought most ppl dont even use mpv .

Luffyirl avatar Apr 20 '24 18:04 Luffyirl

Actually, I have a question, why not use an external player to open the video?

Screenshot_20240421_082744_edit_126683168353064.jpg

SkyD666 avatar Apr 21 '24 00:04 SkyD666

  1. I have been doing that with Flud and LibreTorrent; both of them support RSS feeds with auto-downloading.
  2. I do use VLC and mpv from time to time, but both have ugly UI and don't support Material You.
  3. Doesn't that just defy the whole point of the app?

    All-in-one Android app for anime RSS, BitTorrent dl & play.

  4. Won't it be just the same as any other torrent app out there that has feed support?

Luffyirl avatar Apr 21 '24 03:04 Luffyirl

Actually, I have a question, why not use an external player to open the video?

Screenshot_20240421_082744_edit_126683168353064.jpg

I actually do that , i just love this app ❤️ and want the in-app player to get better .And since this app even supports playing other files , i have plans to use it as my main player but the in-app player isnt good enough for that yet .

P0bo avatar Apr 21 '24 03:04 P0bo

  1. I have been doing that with Flud and LibreTorrent; both of them support RSS feeds with auto-downloading.
  2. I do use VLC and mpv from time to time, but both have ugly UI and don't support Material You.
  3. Doesn't that just defy the whole point of the app?

    All-in-one Android app for anime RSS, BitTorrent dl & play.

  4. Won't it be just the same as any other torrent app out there that has feed support?

Using an external player to open videos is only an option for users who feel that the built-in player experience is not good.

On the other hand, judging from the recent situation of playing torrent, most of the time, the torrent resources are poor and often cannot be loaded, so whether to support directly playing torrent is also a question that needs to be considered.

I posted a vote in the telegram group

SkyD666 avatar Apr 21 '24 06:04 SkyD666

  1. I have been doing that with Flud and LibreTorrent; both of them support RSS feeds with auto-downloading.
  2. I do use VLC and mpv from time to time, but both have ugly UI and don't support Material You.
  3. Doesn't that just defy the whole point of the app?

    All-in-one Android app for anime RSS, BitTorrent dl & play.

  4. Won't it be just the same as any other torrent app out there that has feed support?

Using an external player to open videos is only an option for users who feel that the built-in player experience is not good.

On the other hand, judging from the recent situation of playing torrent, most of the time, the torrent resources are poor and often cannot be loaded, so whether to support directly playing torrent is also a question that needs to be considered.

I posted a vote in the telegram group

Can someone please sent the result of the poll ? I'm not on teligram

Ripl0gic avatar Apr 22 '24 17:04 Ripl0gic

Screenshot_2024-04-23-01-33-20-920_org.telegram.messenger-edit.jpg

Luffyirl avatar Apr 22 '24 20:04 Luffyirl

Add +1 for Mpv from me too , seems most people want Mpv. Also streaming torrents isn't a good idea , because of the peers-leechers situation.

Ripl0gic avatar Apr 22 '24 21:04 Ripl0gic

@SkyD666 Downloaded beta24 just now . When i enable subtitle styling the subtitle disappears , please investigate it .

Luffyirl avatar May 15 '24 04:05 Luffyirl

@SkyD666 Downloaded beta24 just now . When i enable subtitle styling the subtitle disappears , please investigate it .

The cause of this problem is unknown and cannot be solved at this time, help from others is needed

SkyD666 avatar May 15 '24 05:05 SkyD666

@SkyD666 Downloaded beta24 just now . When i enable subtitle styling the subtitle disappears , please investigate it .

The cause of this problem is unknown and cannot be solved at this time, help from others is needed

Also most of the working configs are not working in anivu that work in official mpv amd aniyomi mpv , for example only sub-ass-* high level comands work sub-* dont work also osd comands don't work , for example osd-level and osd-fractions

Luffyirl avatar May 15 '24 12:05 Luffyirl

@SkyD666 Downloaded beta24 just now . When i enable subtitle styling the subtitle disappears , please investigate it .

The cause of this problem is unknown and cannot be solved at this time, help from others is needed

Also most of the working configs are not working in anivu that work in official mpv amd aniyomi mpv , for example only sub-ass-* high level comands work sub-* dont work also osd comands don't work , for example osd-level and osd-fractions

--sub-ass-override=force will makes the subtitles disappear

SkyD666 avatar May 15 '24 12:05 SkyD666

@SkyD666 Downloaded beta24 just now . When i enable subtitle styling the subtitle disappears , please investigate it .

The cause of this problem is unknown and cannot be solved at this time, help from others is needed

Ohh , ic are u using the old version of 1.15.n ? jimir1 updated that yesterday coz the old 1.15.n was broken

Luffyirl avatar May 15 '24 18:05 Luffyirl

@SkyD666 Downloaded beta24 just now . When i enable subtitle styling the subtitle disappears , please investigate it .

The cause of this problem is unknown and cannot be solved at this time, help from others is needed

Ohh , ic are u using the old version of 1.15.n ? jimir1 updated that yesterday coz the old 1.15.n was broken

1.14 is not work too😭

SkyD666 avatar May 16 '24 02:05 SkyD666