nopol10 / nekocap

Browser extension for creating & uploading community captions for YouTube, niconico and other video sharing sites.
https://nekocap.com
GNU General Public License v3.0
70 stars 8 forks source link

Supporting PeerTube #31

Open NoMoreCRAPTion opened 2 years ago

NoMoreCRAPTion commented 2 years ago

I know this extension and the website won't fix PeerTube's need for community contributions (eg. Amara, Weblate, Git, Taiga) either as server-side plugins for currently-existing open-source crowdsourcing platforms or built in internally into PeerTube, but this was brought up as Issue #1481 three years ago.

I know it's probably easier to direct download to a computer then edit subtitles with Subtitle Edit, Aegisub etc then reupload the subtitle files but many of the interfaces of offline editors are not very user-friendly for fan-subtitlers who are used to YouTube's interface, Amara's interface etc.

Most PeerTube instances use a player which stream with WebTorrent or HLS with P2P inside the web browser. And it would be nice to host the subtitle files externally and have community feedback on the quality of those subtitles or closed captions.

nopol10 commented 2 years ago

To support PeerTube, the extension would need to run on every and any instance of PeerTube I guess?

NoMoreCRAPTion commented 2 years ago

To support PeerTube, the extension would need to run on every and any instance of PeerTube I guess?

I think it's probably better to start with the iframe support or the webtorrent/webRTC.

For example here is the embed for this video:

<iframe title="Big Buck Bunny" width="560" height="315" src="https://peertube2.cpy.re/videos/embed/bf1f3fb5-b119-4f9f-9930-8e20e892b898" frameborder="0" allowfullscreen="" sandbox="allow-same-origin allow-scripts allow-popups"></iframe>

Here's the direct download:

https://video.blender.org/download/videos/bf1f3fb5-b119-4f9f-9930-8e20e892b898-720.mp4

And here's the torrent file:

https://peertube2.cpy.re/download/torrents/7bf67abb-20b3-461f-ab7d-c6f533268b74-720.torrent

They also have a REST API, which is what Amara also uses. Here's documentation about the embed API