PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Add WebM support

Open andrew712-1 opened this issue 3 years ago • 9 comments

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

andrew712-1 avatar Aug 26 '21 20:08 andrew712-1

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.

bkil avatar Dec 27 '21 12:12 bkil

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.

emansom avatar Jan 09 '23 17:01 emansom

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

bkil avatar Jan 09 '23 17:01 bkil

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.

emansom avatar Jan 09 '23 17:01 emansom

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.

bkil avatar Jan 09 '23 17:01 bkil

Could you list a specific platform where the combination of AV1 & HEVC would not work?

Web. Except iOS, where HEVC is supported.

emansom avatar Jan 09 '23 17:01 emansom

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.

bkil avatar Jan 09 '23 18:01 bkil

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.

Conan-Kudo avatar Feb 12 '23 17:02 Conan-Kudo

WebM news, increased recently support:

https://caniuse.com/?search=webm

https://en.wikipedia.org/wiki/VP9

AndreaMonzini avatar Mar 12 '24 13:03 AndreaMonzini