anacrolix / cove

A combined BitTorrent frontend and DHT indexer for personal use
https://github.com/anacrolix/cove/wiki
44 stars 0 forks source link

source code please #7

Open aicynide opened 1 year ago

anacrolix commented 1 year ago

This project is closed source for now. The majority of it is implemented with anacrolix/torrent, and anacrolix/confluence, which are open source.

JackYinpei commented 1 year ago

hello I would like to understand how the video stream being downloaded through a torrent client is transcoded with ffmpeg and played in the browser. I believe the currently downloading file isn't a complete video, so it might not be usable with ffmpeg.

Also, I wanted to ask if you have any plans to open-source this project, and if so, when do you roughly anticipate doing that?

I would appreciate any idea about this,thanks in advance

anacrolix commented 1 year ago

@JackYinpei do you have a specific example file that you're not sure about?

For transcoding, the file is downloaded in its entirety before being transcoded. The transcoded file however is streamed using HTTP byte range requests to the browser (the same happens directly from the torrent if the file is playable by the browser without transcoding).

Unfortunately it's not straightforward to transcode on demand (that is transcode just the parts the browser needs to stream without doing the whole file), although I have attempted it.

Also for various reasons I download the entire file before transcoding due to errors I've encountered in ffmpeg if it doesn't have a local file, although it does purport to support taking the input over HTTP.

anacrolix commented 10 months ago

hello I would like to understand how the video stream being downloaded through a torrent client is transcoded with ffmpeg and played in the browser. I believe the currently downloading file isn't a complete video, so it might not be usable with ffmpeg.

Also, I wanted to ask if you have any plans to open-source this project, and if so, when do you roughly anticipate doing that?

I would appreciate any idea about this,thanks in advance

This part is mostly open source, I'll provide the link shortly.

barolo commented 3 months ago

@anacrolix what about the indexer, do you plan to open source it?

anacrolix commented 3 months ago

This part is mostly open source, I'll provide the link shortly.

@JackYinpei @Technetium1 https://github.com/anacrolix/webtorrent-public/tree/master/services/transcoder

anacrolix commented 3 months ago

@anacrolix what about the indexer, do you plan to open source it?

I'm considering it.

Technetium1 commented 3 months ago

@anacrolix hello, not sure why I got mentioned. The linked code seems alright 👀

anacrolix commented 3 months ago

Ah sorry, I saw you emojied on the comment about providing the link. FWIW the transcoder has been heavily used for over 10 years, it's pretty robust but probably not interesting to anyone else but it does solve the quoted problem.

Technetium1 commented 3 months ago

Ah, I was indeed watching this from a distance. Always happy to have more source available!

anacrolix commented 1 week ago

I am considering open sourcing again, particularly if people are interested in contributing.