Twitter media cannot be played from Firefox
Solution 1
The solution is straightforward: just install ffmpeg:
sudo apt-get install ffmpeg
Solution 2
I did have all required codecs, tools & libs installed (ffmpeg, restricted extras, etc), but still was getting a lot of (but not all) media not playing -- mostly noticeable on twitter. Some played, others did not.
I was able to resolve this by going into Firefox preferences > content > DRM content
; the check box "Play DRM Content" was not checked. After checking the box and restarting firefox, these media once again started playing in firefox. (Sample test tweet to verify.)
Ubuntu 17.04 (zesty), Firefox 54.0 (64-bit)
Related videos on Youtube
brandizzi
I am a Brazilian software developer working for Liferay. I like to program and to learn languages.
Updated on September 18, 2022Comments
-
brandizzi almost 2 years
I just installed Ubuntu 16.10 but it cannot play some videos from Twitter in Firefox. Instead, I get a message, something like
This media cannot be reproduced.
If I open the Firefox console, I see this message:
The video on this page can’t be played. Your system may not have the required video codecs for: video/mp4; codecs="avc1.42E01E mp4a.40.2"
-
michael almost 7 yearsNote also be sure that there's not ad blocking or other blocking (/etc/hosts) preventing the content from being displayed, e.g, blocking anything from twitter.com (etc); or if the actual image is from another site, and that site is blocked (e.g., see support.mozilla.org/en-US/questions/1076592 ). Some trial and error may be required if you want to keep most blocks in place.
-
mc0e almost 7 yearsNope, I've got that installed already.
-
mc0e almost 7 yearsThat might be my problem. I'll stick with no DRM content though on principle. Oh well.
-
midopa over 6 yearsThis worked for me on Ubuntu 16.04 and Firefox 57. And I still have the "Play DRM content" turned off to boot.
-
Renato over 6 yearsEnabling "Play DRM Content" doesn't fix the problem for me... only after installing ffmpeg as suggested in @brandizzi's answer and restarting FF it started playing videos (without enabling DRM).
-
michael over 6 yearsindeed -- playing content is dependent on having a player -- drm or no.
-
michael over 6 yearsnot all content is drm'd, but all content requires a player.
-
nabla about 4 yearsWorked for me with Ubuntu 18