Bug 229430

Summary: www/firefox AV1, Bitmovin encoding: demo not playing with Bitmovin Player (7.3.0-b7)
Product: Ports & Packages Reporter: Graham Perrin <grahamperrin>
Component: Individual Port(s)Assignee: freebsd-gecko (Nobody) <gecko>
Status: Closed FIXED    
Severity: Affects Only Me CC: grahamperrin
Priority: --- Flags: bugzilla: maintainer-feedback? (gecko)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://demo.bitmovin.com/public/firefox/av1/
Bug Depends on: 229893    
Bug Blocks:    
Description Flags
Screen shot none

Description Graham Perrin 2018-06-30 16:17:47 UTC
Created attachment 194792 [details]
Screen shot

media.av1.enabled is true (default), the 'AV1 Demo by Mozilla and Bitmovin' appears blank, black. 

$ pkg info firefox | grep Version ; date ; uname -a
Version        : 61.0_1,1
Sat 30 Jun 2018 17:14:55 BST
FreeBSD momh167-gjp4-hpelitebook8570p-freebsd 12.0-CURRENT FreeBSD 12.0-CURRENT #6 r335800: Sat Jun 30 03:35:14 BST 2018     root@momh167-gjp4-hpelitebook8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
Comment 1 Graham Perrin 2018-06-30 16:18:37 UTC
> MPEG-DASH Adaptive Streaming with AV1 by Mozilla and Bitmovin

> Content encoded in AV1 by Bitmovin Encoding and played back with Bitmovin Player (7.3.0-b7) in Firefox (61.0)
Comment 2 Graham Perrin 2018-06-30 16:29:45 UTC
… if I start in safe mode, load _and then_ reload the page, there's this, in the black box: 

> This browser does not seem to support (this version of) AV1, 
> please use Firefox Nightly.
> Already on Firefoy Nightly? Please enable the 
> media.av1.enabled flag in your Firefox settings at about:config.
Comment 3 Jan Beich freebsd_committer 2018-06-30 17:07:45 UTC
Some features are disabled by default unless you're building Nightly. AV1 is one of those, see

Try adding MOZ_OPTIONS+=--enable-av1 to Makefile.local under www/firefox, www/firefox-esr, www/waterfox, etc. I'm surprised Firefox is able to play any public AV1 video given its bundled libaom copy is from before bitstream format has been finalized.
Comment 4 Graham Perrin 2018-07-01 04:16:24 UTC

Firefox 61.0_3,1: success. 

Waterfox fail (I didn't expect it to work, the media.av1.enabled boolean does not exist).
Comment 5 Jan Beich freebsd_committer 2018-07-29 19:03:46 UTC
(In reply to Jan Beich from comment #3)
> I'm surprised Firefox is able to play any public AV1 video given its
> bundled libaom copy is from before bitstream format has been
> finalized.

Turns out Mozilla is as guilty as Google in (ab)using *draft* standards in order to promote their browser.
Comment 6 Graham Perrin 2018-08-12 01:56:49 UTC

<https://people.xiph.org/~tdaede/av1/akiyo_cif_short.webm> is more explicit (with Firefox 61.0.2,1), 

> No video with supported format and MIME type found.
Comment 7 Jan Beich freebsd_committer 2018-12-10 20:26:39 UTC
Firefox 63 enabled AV1 build by default but upstream is still yet to flip the pref. Obviously, AV1 on FreeBSD is not gonna benefit from sandboxing due to lack of Capsicum integration.


Bitmovin demo was also updated to work with Firefox >= 63.