Code Monkey home page Code Monkey logo

Comments (5)

omgbox avatar omgbox commented on June 18, 2024 1

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

from torrent-stream-server.

KiraLT avatar KiraLT commented on June 18, 2024

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.

from torrent-stream-server.

omgbox avatar omgbox commented on June 18, 2024

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

from torrent-stream-server.

omgbox avatar omgbox commented on June 18, 2024

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

from torrent-stream-server.

f8ith avatar f8ith commented on June 18, 2024

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.

from torrent-stream-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.