Open aicynide opened 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
@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.
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.
@anacrolix what about the indexer, do you plan to open source it?
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 what about the indexer, do you plan to open source it?
I'm considering it.
@anacrolix hello, not sure why I got mentioned. The linked code seems alright 👀
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.
Ah, I was indeed watching this from a distance. Always happy to have more source available!
I am considering open sourcing again, particularly if people are interested in contributing.
This project is closed source for now. The majority of it is implemented with anacrolix/torrent, and anacrolix/confluence, which are open source.