Seedess / webseed

Seedess P2P Video Streaming BitTorrent Server
https://seedess.com/
48 stars 11 forks source link

Does it support subtitle? #9

Open ChainofChaos opened 4 years ago

ChainofChaos commented 4 years ago

Hey i want to know that the video streaming support subtitle or it's gonna be in the future?

fijiwebdesign commented 4 years ago

@ChainofChaos In short, yes it supports subtitles.

Seedess WebSeed streams to any Video Player. It doesn't remove any functionality so as long as that video player supports a subtitles format, it will be compatible.

Subtitles/Captions

Subtitles depend on both the video server and the video player/client. Seedess Webseed Server streams to any video client of choice. Usually this is a HTML5 video player but it can also be a Desktop Player or casting video to a Smart TV.

Subtitles in a separate file

The HTML5 video supports only WebVTT (separate .vtt files) via <track> elements.

WebVTT

This is used for HTML5 video using the WebVTT .vtt format.

If the HTML5 Video player you use supports captions then it will play any captions placed in the <track> element. This depends on your HTML5 player. We use Plyr for our demo which supports captions.

SubRip

It is also popular in Desktop Video players eg. VLC, Quicktime with the SubRip .srt format. Seedess webseed can stream both video and .srt files for any

Subtitles are encoded into video file container (MP4, MKV)

Subtitles can be encoded into the video file/stream itself. eg: MPEG-4 Timed Text

These in are supported by Desktop Players such as VLC, QuickTime and many Smart TVs. HTML5 Video does not support subtitles in the MP4, MKV containers at this time (May 2020) however there is a Draft of a specification to support it - https://dev.w3.org/html5/html-sourcing-inband-tracks/

Seedess WebSeed Server keeps all information of the video being streamed. It does not do any compression or strip any information. Subtitles included in the video container will be kept in the video stream and any compatible player can display the subtitles.

Resources:

omgbox commented 2 years ago

Hey i want to know that the video streaming support subtitle or it's gonna be in the future?

might be possible right now, some projects that look interesting

https://github.com/mathiasvr/matroska-subtitles

https://github.com/pawitp/mkv-player

this one is actually loading mkv subtitles and playing but the characters are all weird sometimes when not properly loaded

https://github.com/EldinZenderink/SubPlayerJS

needs major update or rework