{"id":843,"date":"2016-11-27T13:25:15","date_gmt":"2016-11-27T13:25:15","guid":{"rendered":"http:\/\/gavtaylor.uk\/blog\/?p=843"},"modified":"2016-11-27T13:30:43","modified_gmt":"2016-11-27T13:30:43","slug":"twitter-videos-fail-with-the-media-could-not-be-played","status":"publish","type":"post","link":"https:\/\/gavtaylor.uk\/blog\/twitter-videos-fail-with-the-media-could-not-be-played","title":{"rendered":"Twitter videos fail with &#8220;The media could not be played.&#8221;"},"content":{"rendered":"<p>one of the first things I do when installing the Firefox on Fedora usually involves twitter so its quickly apparent on Fedora that videos and animated gifs (they convert animated gif&#8217;s to videos) dont play and show an error &#8220;The media could not be played.&#8221;<\/p>\n<p>A while ago Cisco come to the worlds rescue regarding H.264 licensing with their opensource version of H264 (www.openh264.org), unfortunately on Firefox this is only used for webRTC and doesnt cover html&#8217;s video tag :\/ (see https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1057646). Its worth installing anyway, so pop over to https:\/\/fedoraproject.org\/wiki\/OpenH264 for more info and how to install it.<\/p>\n<p>Back to our original problem, Twitter videos, the solution is a simple one, we need to install a H.264 codec that will be used by html&#8217;s video tag. Firefox uses ffmpeg codecs if available so we can get up an running by installing that library<\/p>\n<p><code>dnf install ffmpeg-libs<\/code><\/p>\n<p>if you (re)start Firefox now you should be good to go. you cant test the codes are installed correctly by popping over to https:\/\/www.youtube.com\/html5 and it will tell you if there are any issues.<\/p>\n<p>As a side note, you can &#8220;solve&#8221; this problem by installing VLC, you should do this anyway. VLC installs ffmpeg as a dependency so you can solve your H.264 issue and get a better media player in one go \ud83d\ude42<\/p>\n<p><code>sudo dnf install vlc mozilla-vlc<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>one of the first things I do when installing the Firefox on Fedora usually involves twitter so its quickly apparent on Fedora that videos and animated gifs (they convert animated gif&#8217;s to videos) dont play and show an error &#8220;The media could not be played.&#8221; A while ago Cisco come to the worlds rescue regarding [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[209],"tags":[308,319,27,316,317,318],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/843"}],"collection":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/comments?post=843"}],"version-history":[{"count":3,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/843\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/843\/revisions\/846"}],"wp:attachment":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/media?parent=843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/categories?post=843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/tags?post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}