PeerTube
PeerTube copied to clipboard
Add WebM support
Creating a plugin using https://docs.joinpeertube.org/contribute-plugins?id=add-new-transcoding-profiles gives you the ability to use FLOSS codecs (vp9, vorbis, opus, av01). Keep in mind that most of them won't be played by our P2P players (we have a fallback to raw http though).
We still use the mp4 container. If you really want webm support please create a dedicated issue, because it will require a lot of work (support DASH in particular).
https://github.com/Chocobozzz/PeerTube/issues/481#issuecomment-769799300
Just to continue our discussion from there where we were discussing to make webm mandatory and/or exclusive.
After support in Safari, now only WebKit on Apple iOS remains hostile to webm. Note that this restriction only applies to web browsers. Player apps like VLC can still play webm - they can even open a network URI directly.
It would be a feasible workaround to provide a non-P2P fallback for that platform by showing a message to this effect and providing easy access to the direct video URI on the interface and/or to add a button that could open VLC with that URI. An iOS PeerTube app could even provide P2P support along with playback.
Alternative route would be sending HEVC to iOS devices (has native support) and VP9 to all others.
This would yield the greatest bandwidth savings and offer the best picture quality.
If you only started to implement something today, we should definitely go for AV1, the successor.
- https://caniuse.com/av1
- https://en.wikipedia.org/wiki/AV1#Adoption
If you only started to implement something today, we should definitely go for AV1, the successor.
It doesn't make much sense yet, given no broad web browser support.
Could you list a specific platform where the combination of AV1 & HEVC would not work? But also consider that many PeerTube issues are only fixed after years, so you should not plan based on past support.
Could you list a specific platform where the combination of AV1 & HEVC would not work?
Web. Except iOS, where HEVC is supported.
Your message did not reply to my inquiry. I asked for where the combination will not work, and the counterexample you have shared is invalid.
I'd like to note that WebM is now supported on macOS and iOS/iPadOS platforms: https://caniuse.com/webm
AV1 is not yet officially supported, but Apple is a member of the Alliance for Open Media, so hopefully it'll eventually happen.
WebM news, increased recently support:
https://caniuse.com/?search=webm
https://en.wikipedia.org/wiki/VP9