5rahim / seanime

Open-source media server for anime and manga that includes library scanning, downloading, transcoding, torrent & debrid streaming, and more.
https://seanime.rahim.app
MIT License
367 stars 28 forks source link

feature request: Add an option to stream only if transcoding isn't needed #129

Closed sin3point14 closed 2 weeks ago

sin3point14 commented 1 month ago

Checklist

Problem Description / Use Case

I have a NAS that has a super old CPU(pentium 4). I am hosting seanime on it. The machine is good enough to serve multiple web servers but nowhere close to handling transcoding. I tried playing with the Media streaming settings and I see that if codec isn't supported by the browser, it starts to transcode, killing my poor CPU.

image image

Proposed Solution

Judging by the logs seanime can already detect the need to transcode. So can we add a button to the Media streaming page called Enable transcoding. Turning off would disable transcoding entirely and maybe inform the user to use an external player. Hopefully it shouldn't be too hard to implement and if you accept contributions I can also try implementing this?

Additionally(I don't know if this is even posssible but...) Can we add an option to filter to filter the torrents by the file types? Streaming with mkv seems to be a problem so I can then filter mp4 torrents. Looking at https://animetosho.org/view/erai-raws-kami-no-tou-ouji-kikan-01.n1842682 the File Name (Size) section seems to indicate the extension: .mkv.

5rahim commented 1 month ago

Judging by the logs seanime can already detect the need to transcode. So can we add a button to the Media streaming page called Enable transcoding. Turning off would disable transcoding entirely and maybe inform the user to use an external player. Hopefully it shouldn't be too hard to implement and if you accept contributions I can also try implementing this?

I could add a Direct play only setting in a future release.

Additionally(I don't know if this is even posssible but...) Can we add an option to filter to filter the torrents by the file types? Streaming with mkv seems to be a problem so I can then filter mp4 torrents.

I don't see the utility as

  1. Almost all recent anime media files use the mkv container
  2. You can already check the file extension before starting a stream
  3. Restricting to direct play only makes it useless
sin3point14 commented 1 month ago

I could add a Direct play only setting in a future release.

🎉

I don't see the utility as

Almost all recent anime media files use the mkv container You can already check the file extension before starting a stream Restricting to direct play only makes it useless

yeah that's fine though its unfortunate that an open standard file format and related codecs aren't supported by major browsers :(