Bug 1755361 Comment 8 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Ok, it seems unless Firefox also ships FDK-AAC-Stripped like Fedora, there is little point in having OpenH264 for video decoding. Youtube could use H264+Opus, but prefers VP9 and AV1. Other websites require H264+AAC.

(In reply to Asif Youssuff from comment #7)
> I have no idea how to opt into OpenH264.

* It doesn't seem to be possible yet with Mozilla binaries.
  * bug 1663844
  * https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1670333.patch is not upstreamed yet: bug 1670333
  * Fedora's Firefox rpm seems to use a free & patent-expired/patented-stuff-stripped-out AAC audio decoder (FDK-AAC-Stripped system library):
https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1667096.patch is not upstreamed yet: bug 1667096
    * bug 1057646 comment 26
    * https://src.fedoraproject.org/rpms/fdk-aac-free
  https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
  https://en.wikipedia.org/wiki/Fraunhofer_FDK_AAC#Licensing
  https://www.phoronix.com/scan.php?page=news_item&px=Fedora-FDK-AAC
  * Setting media.ffmpeg.enabled=false and media.gmp.decoder.enabled=true does **not** seem to work.
  I tested an mp4 h264-main video without aac audio, but the file is just downloaded. I tested both: Wating for Openh264 installation inside Firefox and manually setting it via MOZ_GMP_PATH.
  MOZ_GMP_PATH=/home/darkspirit/.mozilla/firefox/fay7j5mf.default-nightly/gmp-gmpopenh264/1.8.1.1/ MOZ_LOG="PlatformDecoderModule:5" mozregression --launch 2022-02-15 --pref media.ffmpeg.enabled:false  media.gmp.decoder.enabled:true media.gmp.insecure.allow:true -P stdout -a file:///home/darkspirit/Downloads/gmp/h264main.nosound.mp4
  * An update of Mozilla's gmp-openh264 would bring support for h264 high profile (https://test-videos.co.uk/bigbuckbunny/mp4-h264):
    (Jean-Yves Avenard [:jya] from bug 1663844 comment #0)
    > Currently the GMP OpenH264 decoder is disabled by default. Primary reason is that our version OpenH264 only supports the main profile.
    > 
    > Once the OpenH264 plugin is updated to 2.1.x we could theoretically use if for most h264 videos.
* You can test Openh264 by using Flatpak Firefox without having ffmpeg-full manually installed:
  Remove possibly manually installed ffmpeg:
  $ flatpak uninstall org.freedesktop.Platform.ffmpeg-full
  Install Firefox:
  $ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  $ flatpak install flathub org.mozilla.firefox
  $ flatpak run org.mozilla.firefox https://bug1619882.bmoattachments.org/attachment.cgi?id=9149605
Ok, it seems unless Firefox also ships FDK-AAC-Stripped like Fedora and Flatpak freedesktop-sdk, there is little point in having OpenH264 for video decoding. Youtube could use H264+Opus, but prefers VP9 and AV1. Other websites require H264+AAC.

(In reply to Asif Youssuff from comment #7)
> I have no idea how to opt into OpenH264.

* It doesn't seem to be possible yet with Mozilla binaries.
  * bug 1663844
  * https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1670333.patch is not upstreamed yet: bug 1670333
  * Fedora's Firefox rpm seems to use a free & patent-expired/patented-stuff-stripped-out AAC audio decoder (FDK-AAC-Stripped system library):
https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1667096.patch is not upstreamed yet: bug 1667096
    * bug 1057646 comment 26
    * https://src.fedoraproject.org/rpms/fdk-aac-free
  https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
  https://en.wikipedia.org/wiki/Fraunhofer_FDK_AAC#Licensing
  https://www.phoronix.com/scan.php?page=news_item&px=Fedora-FDK-AAC
  * Setting media.ffmpeg.enabled=false and media.gmp.decoder.enabled=true does **not** seem to work.
  I tested an mp4 h264-main video without aac audio, but the file is just downloaded. I tested both: Wating for Openh264 installation inside Firefox and manually setting it via MOZ_GMP_PATH.
  MOZ_GMP_PATH=/home/darkspirit/.mozilla/firefox/fay7j5mf.default-nightly/gmp-gmpopenh264/1.8.1.1/ MOZ_LOG="PlatformDecoderModule:5" mozregression --launch 2022-02-15 --pref media.ffmpeg.enabled:false  media.gmp.decoder.enabled:true media.gmp.insecure.allow:true -P stdout -a file:///home/darkspirit/Downloads/gmp/h264main.nosound.mp4
  * An update of Mozilla's gmp-openh264 would bring support for h264 high profile (https://test-videos.co.uk/bigbuckbunny/mp4-h264):
    (Jean-Yves Avenard [:jya] from bug 1663844 comment #0)
    > Currently the GMP OpenH264 decoder is disabled by default. Primary reason is that our version OpenH264 only supports the main profile.
    > 
    > Once the OpenH264 plugin is updated to 2.1.x we could theoretically use if for most h264 videos.
* You can test Openh264 by using Flatpak Firefox without having ffmpeg-full manually installed:
  Remove possibly manually installed ffmpeg:
  $ flatpak uninstall org.freedesktop.Platform.ffmpeg-full
  Install Firefox:
  $ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  $ flatpak install flathub org.mozilla.firefox
  $ flatpak run org.mozilla.firefox https://bug1619882.bmoattachments.org/attachment.cgi?id=9149605
Ok, it seems unless Firefox also ships FDK-AAC-Stripped like Fedora and Flatpak (stripped ffmpeg with fdk_aac as part of freedesktop-sdk), there is little point in having OpenH264 for video decoding. Youtube could use H264+Opus, but prefers VP9 and AV1. Other websites require H264+AAC.

(In reply to Asif Youssuff from comment #7)
> I have no idea how to opt into OpenH264.

* It doesn't seem to be possible yet with Mozilla binaries.
  * bug 1663844
  * https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1670333.patch is not upstreamed yet: bug 1670333
  * Fedora's Firefox rpm seems to use a free & patent-expired/patented-stuff-stripped-out AAC audio decoder (FDK-AAC-Stripped system library):
https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1667096.patch is not upstreamed yet: bug 1667096
    * bug 1057646 comment 26
    * https://src.fedoraproject.org/rpms/fdk-aac-free
  https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
  https://en.wikipedia.org/wiki/Fraunhofer_FDK_AAC#Licensing
  https://www.phoronix.com/scan.php?page=news_item&px=Fedora-FDK-AAC
  * Setting media.ffmpeg.enabled=false and media.gmp.decoder.enabled=true does **not** seem to work.
  I tested an mp4 h264-main video without aac audio, but the file is just downloaded. I tested both: Wating for Openh264 installation inside Firefox and manually setting it via MOZ_GMP_PATH.
  MOZ_GMP_PATH=/home/darkspirit/.mozilla/firefox/fay7j5mf.default-nightly/gmp-gmpopenh264/1.8.1.1/ MOZ_LOG="PlatformDecoderModule:5" mozregression --launch 2022-02-15 --pref media.ffmpeg.enabled:false  media.gmp.decoder.enabled:true media.gmp.insecure.allow:true -P stdout -a file:///home/darkspirit/Downloads/gmp/h264main.nosound.mp4
  * An update of Mozilla's gmp-openh264 would bring support for h264 high profile (https://test-videos.co.uk/bigbuckbunny/mp4-h264):
    (Jean-Yves Avenard [:jya] from bug 1663844 comment #0)
    > Currently the GMP OpenH264 decoder is disabled by default. Primary reason is that our version OpenH264 only supports the main profile.
    > 
    > Once the OpenH264 plugin is updated to 2.1.x we could theoretically use if for most h264 videos.
* You can test Openh264 by using Flatpak Firefox without having ffmpeg-full manually installed:
  Remove possibly manually installed ffmpeg:
  $ flatpak uninstall org.freedesktop.Platform.ffmpeg-full
  Install Firefox:
  $ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  $ flatpak install flathub org.mozilla.firefox
  $ flatpak run org.mozilla.firefox https://bug1619882.bmoattachments.org/attachment.cgi?id=9149605
Unless Firefox also ships FDK-AAC-Stripped like Fedora and Flatpak (stripped ffmpeg with fdk_aac as part of freedesktop-sdk), there is little point in having OpenH264 for video decoding in Mozilla binaries (bug 1663844). Youtube could use H264+Opus, but prefers VP9 and AV1. Other websites require H264+AAC.

(In reply to Asif Youssuff from comment #7)
> I have no idea how to opt into OpenH264.

* It doesn't seem to be possible yet with Mozilla binaries.
  * bug 1663844
  * https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1670333.patch is not upstreamed yet: bug 1670333
  * Fedora's Firefox rpm seems to use a free & patent-expired/patented-stuff-stripped-out AAC audio decoder (FDK-AAC-Stripped system library):
https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/mozilla-1667096.patch is not upstreamed yet: bug 1667096
    * bug 1057646 comment 26
    * https://src.fedoraproject.org/rpms/fdk-aac-free
  https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
  https://en.wikipedia.org/wiki/Fraunhofer_FDK_AAC#Licensing
  https://www.phoronix.com/scan.php?page=news_item&px=Fedora-FDK-AAC
  * Setting media.ffmpeg.enabled=false and media.gmp.decoder.enabled=true does **not** seem to work.
  I tested an mp4 h264-main video without aac audio, but the file is just downloaded. I tested both: Wating for Openh264 installation inside Firefox and manually setting it via MOZ_GMP_PATH.
  MOZ_GMP_PATH=/home/darkspirit/.mozilla/firefox/fay7j5mf.default-nightly/gmp-gmpopenh264/1.8.1.1/ MOZ_LOG="PlatformDecoderModule:5" mozregression --launch 2022-02-15 --pref media.ffmpeg.enabled:false  media.gmp.decoder.enabled:true media.gmp.insecure.allow:true -P stdout -a file:///home/darkspirit/Downloads/gmp/h264main.nosound.mp4
  * An update of Mozilla's gmp-openh264 would bring support for h264 high profile (https://test-videos.co.uk/bigbuckbunny/mp4-h264):
    (Jean-Yves Avenard [:jya] from bug 1663844 comment #0)
    > Currently the GMP OpenH264 decoder is disabled by default. Primary reason is that our version OpenH264 only supports the main profile.
    > 
    > Once the OpenH264 plugin is updated to 2.1.x we could theoretically use if for most h264 videos.
* You can test Openh264 by using Flatpak Firefox without having ffmpeg-full manually installed:
  Remove possibly manually installed ffmpeg:
  $ flatpak uninstall org.freedesktop.Platform.ffmpeg-full
  Install Firefox:
  $ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  $ flatpak install flathub org.mozilla.firefox
  $ flatpak run org.mozilla.firefox https://bug1619882.bmoattachments.org/attachment.cgi?id=9149605

Back to Bug 1755361 Comment 8