Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upmp4 Restreaming Via HTTP #354
Comments
This comment has been minimized.
This comment has been minimized.
|
Well if you start webtorrent in the CLI it does exactly that, try it ;-) Le ven. 12 juin 2015 10:06, Synthetisoft notifications@github.com a
|
This comment has been minimized.
This comment has been minimized.
|
What about transcoding? Does it always output mp4? And is the meta data downloaded first and placed at the beginning of the mp4? |
This comment has been minimized.
This comment has been minimized.
|
You can play it in the browser as it starts downloading, so I would think you could find a way to do it with a http server in between. I would say try it! See if it works, and let us know. I have found https://github.com/gpac/mp4box.js to be pretty useful in getting the metada for an mp4 out of the files downloaded with webtorrent, in the browser. You could use the mp4box.onReady method server side to notify you when the metadata is ready, then start serving it. Alternatively, as a quick test, why not setup plex, and set the download directory to a folder plex is watching, and see if you can watch before it's all the way downloaded. It might not work, but it might and if it does, you know for sure that it's possible |
This comment has been minimized.
This comment has been minimized.
|
@Synthetisoft This is a cool idea, but I'm not interested in adding a transcoder into WebTorrent, unless there's a module that already does this and it works perfectly. It sounds like a ton of work, dealing with the flakiness of ffmpeg, and a ton of additional code we'd have to maintain. There's nothing stopping you from implementing this yourself, without any modifications to WebTorrent. Just feed the video stream data from
If you use the built-in server, which is what the Btw, over on https://instant.io we do MP4 repackaging, which is different from transcoding. We take arbitrary MP4s and make them work with the MediaSource API, so they can be streamed into the |
Is it possible to serve the incoming video torrent stream as mp4 over HTTP by serving up a an mp4 URL over the local network? This is for a special player that can only handle HTTP mp4 streams. Does webtorrent make sure it downloads the meta first? Also, does it do any transcoding to mp4 from other formats? Here is what my playback device setup looks like and what I'm trying to do:
webtorrent and HTTP server both running on client machine. MP4 stream playback on other LAN device.