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

Transcoding support #181

Open
rudnypc opened this issue Jun 21, 2021 · 5 comments
Open

Transcoding support #181

rudnypc opened this issue Jun 21, 2021 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rudnypc
Copy link

rudnypc commented Jun 21, 2021

it could be interesting when clicking play, the system could transcode with ffmpeg to formats compatible with the player. Some formats are not visible on the web.

@KiraLT KiraLT added the enhancement New feature or request label Jun 30, 2021
@KiraLT
Copy link
Owner

KiraLT commented Jun 30, 2021

I tried it before (to convert MKV to MP4). The issue was, that it needs a stream from the start. So you lose skipping support (you can only watch video from the start without skipping anything). Maybe it is possible to implement skipping (like cache meta info from the start and then skip and transcode)

Another issue is that transcoding requires a lot of CPU.

@omgbox
Copy link

omgbox commented Jul 1, 2021

there is a established project which is already doing what you describe, i am not sure if you are aware of it , check out webtor.io it also has subtitles and chromecast support .

Features
Online torrent content streaming without waiting for full download
On-the-fly content transcoding
Downloading torrent as ZIP-archive
subtitle subtitle transcoding, srt to vtt_
OpenSubtitles support
Streaming of external resources (including transcoding)

also awaiting for wasm player client side , here looking forward for a web assembly mkv player maybe in few years

@omgbox
Copy link

omgbox commented Jul 1, 2021

like to share this also, HLS streaming app, maybe this code could help out

@KiraLT KiraLT added the help wanted Extra attention is needed label Jul 2, 2021
@omgbox
Copy link

omgbox commented Jul 3, 2021

KiraLT check this out, i think you were talking about this, if you are planning on adding ffmpeg have a look at his code, maybe this could be added later or give you better understanding how it works. his project hls-vod

Capture

@KiraLT KiraLT changed the title transcoding Transcoding support Aug 29, 2021
@f8ith
Copy link

f8ith commented Mar 1, 2022

https://github.com/leeroybrun/webtorrent-transcode
This uses a custom video.js to implement time seeking. It works beautifully. I'm going to adapt the code to work with torrent-stream-server and hopefully submit a PR soon™

It is quite hacky upon inspection, but it works. It doesn't work if you try to remux the video instead of transcoding it though. My fork adds an additional play button that triggers a transcoded stream, which by default transcodes the video into x264 MP4 stream with hard English subs if they exist in supported containers. Haven't gotten to adding a plugin for changing subtitles yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants