Twitter media cannot be played from Firefox

27,949

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)

Share:
27,949

Related videos on Youtube

brandizzi
Author by

brandizzi

I am a Brazilian software developer working for Liferay. I like to program and to learn languages.

Updated on September 18, 2022

Comments

  • brandizzi
    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
    michael almost 7 years
    Note 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
    mc0e almost 7 years
    Nope, I've got that installed already.
  • mc0e
    mc0e almost 7 years
    That might be my problem. I'll stick with no DRM content though on principle. Oh well.
  • midopa
    midopa over 6 years
    This worked for me on Ubuntu 16.04 and Firefox 57. And I still have the "Play DRM content" turned off to boot.
  • Renato
    Renato over 6 years
    Enabling "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
    michael over 6 years
    indeed -- playing content is dependent on having a player -- drm or no.
  • michael
    michael over 6 years
    not all content is drm'd, but all content requires a player.
  • nabla
    nabla about 4 years
    Worked for me with Ubuntu 18