media.fragmented-mp4 options not present Ubuntu Linux

User Help for Mozilla Firefox
Post Reply
jcobban
Posts: 125
Joined: February 4th, 2006, 7:34 pm

media.fragmented-mp4 options not present Ubuntu Linux

Post by jcobban »

I am running Firefox 53.0.2 on Ubuntu 16.04 LTS and when I click on a <video> tag with <source src="filename.mp4" type="video/mp4"> I am informed that there is no support for this video format. I have followed all of the recommended actions to resolve this. I have installed ubuntu restricted extensions. I have installed gstreamer1.0. But when I go to edit the Firefox options their are no entries starting with media.fragmented-mp4. How do I activate support for mp4 videos in Firefox 53.0.2 on Ubuntu?
User avatar
James
Moderator
Posts: 27999
Joined: June 18th, 2003, 3:07 pm
Location: Made in Canada

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by James »

FFmpeg is used for HTML5 video as Gstreamer has not been used for a good while now. Note libavcodec older than 54.35.1 is blocked since Fx 50.0

You can see what your system supports for HTML5 video at say https://www.youtube.com/html5/
jcobban
Posts: 125
Joined: February 4th, 2006, 7:34 pm

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by jcobban »

James wrote:FFmpeg is used for HTML5 video as Gstreamer has not been used for a good while now. Note libavcodec older than 54.35.1 is blocked since Fx 50.0

You can see what your system supports for HTML5 video at say https://www.youtube.com/html5/
Thank you. None of the posts I found relating to mp4 support mentioned FFmpeg, so how would I know about that? I installed FFmpeg but the test site you pointed to still does not indicate that my browser supports mp4 and the media.fragmented-mp4 options still do not appear in about:config. So I still need instructions as to how to enable mp4 support in Firefox 53 on Linux.
User avatar
Grumpus
Posts: 13239
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by Grumpus »

If you go into /edit/preferences/content - do you have the "Play DRM content" checked?
If you need more info click on the "Learn More" link.
In order for the Widevines to work properly the DRM has to be checked.
It should show up in the /Tools/Addons/plugins listings
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
jcobban
Posts: 125
Joined: February 4th, 2006, 7:34 pm

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by jcobban »

Grumpus wrote:If you go into /edit/preferences/content - do you have the "Play DRM content" checked?
If you need more info click on the "Learn More" link.
In order for the Widevines to work properly the DRM has to be checked.
It should show up in the /Tools/Addons/plugins listings
Yes that option is checked.

I still do not have the media.fragmented-mp4 options.

https://www.jamescobban.net/Videos/Tuto ... ildren.mp4 Firefox 53 on Ubuntu 16.04 LTS now generates a message "Video can't be played because the file is corrupt." If I just open the file in either Totem Movie Player (which is part of the Ubuntu 16.04 base install) or VLC it plays.
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by therube »

Video can't be played because the file is corrupt.
I see the same, Win7 x64, SeaMonkey 2.49.1 (akin to FF 52 ESR) [& no "widevine", nor do i have media.fragmented-mp4].
(Ditto, FF 53 EMEfree version.)

FF 49, with widevine & with primetime content decryption by Adobe, the clip "plays".
Player opens, timeline displays, timeline advances, I get audio, but not any video.
(I'd suspect the same to hold true up to FF 52 ESR, but perhaps not with FF 53?)
(Is there video in the clip?)
Yes, so not sure offhand why I'm not getting video?
New Profile, no video, only audio.
New Profile & Safe Mode, no video, only audio.

(MPlayer plays the clip without issue.)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by therube »

media.fragmented-mp4 is probably deprecated (removed actually).

Try; media.mediasource.*

Seems the clip (& all I can get is audio - with FF 49), does not need OpenH264 nor primetime nor widevine nor Flash.


And FF 53 simply does not work.
SeaMonkey 2.49.1 simply does not work.
"Video can't be played because the file is corrupt."


Color me confused.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by therube »

Got to guess that mozilla cannot play the specific codec used?

Code: Select all

Media resource https://www.jamescobban.net/Videos/TutorialAddChildren.mp4 could not be decoded.  TutorialAddChildren.mp4
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified  (unknown)

Code: Select all

General
Complete name                            : C:\TutorialAddChildren.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/mp41/isom/iso2)
File size                                : 13.4 MiB
Duration                                 : 5 min 23 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 348 kb/s
Encoded date                             : UTC 2015-07-31 02:16:19
Tagged date                              : UTC 2015-07-31 02:16:19
Writing application                      : x264
IsTruncated                              : Yes

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:4:4 Predictive@L4
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 5 min 23 s
Bit rate                                 : 563 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 15.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:4:4
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.018
Stream size                              : 21.7 MiB
Writing library                          : x264 core 142 r2495 6a301b6
Encoding settings                        : cabac=0 / ref=1 / deblock=0:0:0 / analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=6 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=150 / keyint_min=15 / scenecut=0 / intra_refresh=0 / rc=cqp / mbtree=0 / qp=15 / ip_ratio=1.40 / aq=0
Language                                 : English
Encoded date                             : UTC 2015-07-31 02:16:20
Tagged date                              : UTC 2015-07-31 02:16:20

Audio
ID                                       : 2
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Codec ID                                 : 6B
Duration                                 : 5 min 23 s
Bit rate mode                            : Variable
Bit rate                                 : 132 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 44.1 kHz
Compression mode                         : Lossy
Stream size                              : 5.09 MiB (38%)
Language                                 : English
Encoded date                             : UTC 2015-07-31 02:16:20
Tagged date                              : UTC 2015-07-31 02:16:20
Maybe this?

Code: Select all

Format profile                           : High 4:4:4 Predictive@L4
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by therube »

If I transcode (part of) the clip, it plays fine in all browsers.

Code: Select all

General
Complete name                            : C:\out\tut children baseline.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/isom)
File size                                : 10.4 MiB
Duration                                 : 3 min 10 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 460 kb/s
Encoded date                             : UTC 2017-05-26 01:11:42
Tagged date                              : UTC 2017-05-26 01:12:08

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L4
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 3 min 10 s
Bit rate                                 : 321 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 15.000 FPS
Minimum frame rate                       : 14.998 FPS
Maximum frame rate                       : 15.003 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.010
Stream size                              : 7.27 MiB (70%)
Writing library                          : x264 core 146 r2538 121396c
Encoding settings                        : cabac=0 / ref=1 / deblock=0:0:0 / analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=15 / scenecut=0 / intra_refresh=0 / rc=crf / mbtree=0 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=0
Encoded date                             : UTC 2017-05-26 01:11:42
Tagged date                              : UTC 2017-05-26 01:12:08

Audio
ID                                       : 2
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Codec ID                                 : 69
Duration                                 : 3 min 10 s
Bit rate mode                            : Variable
Bit rate                                 : 137 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 44.1 kHz
Compression mode                         : Lossy
Stream size                              : 3.11 MiB (30%)
Title                                    : Stereo
Encoded date                             : UTC 2017-05-26 01:11:42
Tagged date                              : UTC 2017-05-26 01:12:08

Code: Select all

Format profile                           : Baseline@L4
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: media.fragmented-mp4 options not present Ubuntu Linux

Post by dickvl »

The media.fragmented prefs are obsolete in Firefox 44+ and have been replaced by media prefs with a shorter name like a lot of other media prefs.
media.fragmented-mp4.enabled -> media.mp4.enabled
media.fragmented-mp4.exposed
media.fragmented-mp4.ffmpeg.enabled -> media.ffmpeg.enabled
Post Reply