Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source code please #7

Open
aicynide opened this issue Sep 4, 2023 · 12 comments
Open

source code please #7

aicynide opened this issue Sep 4, 2023 · 12 comments
Assignees
Labels

Comments

@aicynide
Copy link

aicynide commented Sep 4, 2023

No description provided.

@anacrolix
Copy link
Owner

anacrolix commented Sep 5, 2023

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

@JackYinpei
Copy link

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
Copy link
Owner

@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
Copy link
Owner

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
Copy link

barolo commented Jul 31, 2024

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

@anacrolix anacrolix self-assigned this Jul 31, 2024
@anacrolix
Copy link
Owner

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
Copy link
Owner

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

I'm considering it.

@Technetium1
Copy link

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

@anacrolix
Copy link
Owner

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
Copy link

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

@anacrolix
Copy link
Owner

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

@amaumene
Copy link

Hi, I'd be interested in adding support for PostgreSQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants