H264 not working (Firefox doesn't look for ffmpeg?)

(Originally posted here: https://support.mozilla.org/en-US/questions/1192683 , but got no reply since December)

Some context:

- Firefox version: 57.0.1 (official release)

- OS: Linux (Slackware 14.2)

- ffmpeg: compiled from source, .so file: libavcodec.so.57 in /usr/local/lib, which is present in LD_LIBRARY_PATH

- ffmpeg supports H264; relevant line from `ffmpeg -codecs`: DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264_vdpau h264_cuvid ) (encoders: libx264 libx264rgb h264_nvenc h264_v4l2m2m h264_vaapi nvenc nvenc_h264 )

- WebM works fine (I can play YouTube videos)

- H264 doesn't work (Youtube's HTML5 support page, https://www.youtube.com/html5?hl=it&gl=IT, confirms that H.264 and MSE & H.264 are not available).

So, basically, I can't play H264 videos on Firefox. I tried using the version of Firefox which came with Slackware, or even compiling it, but no luck.

One thing that I found is that, when running strace, it seems that Firefox doesn't look for libavcodec.so at all. I tried on another machine, with Slackware 14.1, and strace indeed shows that Firefox looks for the library and eventually finds it.

My idea is that something is preventing from triggering the loading of libavcodec, but I have no idea how to find out. 

Thanks anyone for for your help!
0
simopal6
2/9/2018 9:42:17 AM
mozilla.support.firefox 24318 articles. 8 followers. Post Follow

7 Replies
179 Views

Similar Articles

[PageSpeed] 0

On Fri, 09 Feb 2018 01:42:17 -0800, simopal6 wrote:

> One thing that I found is that, when running strace, it seems that
> Firefox doesn't look for libavcodec.so at all. I tried on another
> machine, with Slackware 14.1, and strace indeed shows that Firefox looks
> for the library and eventually finds it.
> 
On this OpenSuSE machine I have a copy of Fx58 when it was the developer 
edition, and I see that it has libmozavcodec.so in the same directory as 
the firefox executable.

The packaged version I normally use has no dependencies on libavcodec, 
ffmpeg, or any other AV library.

Both play MSE & H.264
-- 
(Remove any numerics from my email address.)
0
Dave
2/9/2018 5:52:13 PM
On 02/09/2018 03:42 AM, simopal6@gmail.com wrote:

[snip]

> - H264 doesn't work (Youtube's HTML5 support page, https://www.youtube.com/html5?hl=it&gl=IT, confirms that H.264 and MSE & H.264 are not available).

I use Lubuntu, and got it (as well as MP3) to work by installing 
"gstreamer1.0-plugins-ugly".


-- 
Mark Lloyd
http://notstupid.us/

"Bad command. Bad, bad, command! Sit! Bark! Stay!"
0
Mark
2/9/2018 6:19:05 PM
On 2/9/18 4:42 AM, simopal6@gmail.com wrote:
> (Originally posted here: https://support.mozilla.org/en-US/questions/1192683 , but got no reply since December)
>
> Some context:
>
> - Firefox version: 57.0.1 (official release)
>
> - OS: Linux (Slackware 14.2)
>
> - ffmpeg: compiled from source, .so file: libavcodec.so.57 in /usr/local/lib, which is present in LD_LIBRARY_PATH
>
> - ffmpeg supports H264; relevant line from `ffmpeg -codecs`: DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264_vdpau h264_cuvid ) (encoders: libx264 libx264rgb h264_nvenc h264_v4l2m2m h264_vaapi nvenc nvenc_h264 )
>
> - WebM works fine (I can play YouTube videos)
>
> - H264 doesn't work (Youtube's HTML5 support page, https://www.youtube.com/html5?hl=it&gl=IT, confirms that H.264 and MSE & H.264 are not available).
>
> So, basically, I can't play H264 videos on Firefox. I tried using the version of Firefox which came with Slackware, or even compiling it, but no luck.
>
> One thing that I found is that, when running strace, it seems that Firefox doesn't look for libavcodec.so at all. I tried on another machine, with Slackware 14.1, and strace indeed shows that Firefox looks for the library and eventually finds it.
>
> My idea is that something is preventing from triggering the loading of libavcodec, but I have no idea how to find out.
>
> Thanks anyone for for your help!


Ubuntu 16.04, Firefox 58.0.1, your link shows that H.264 and MSE & H.264 
are supported. In fact all are supported and the browser uses the HTML5 
player when possible.

As Mark indicates, install gstreamer. I installed all of them, base, 
libav, good, bad, ugly and more.

-- 
Best name ever! Cadet Bone Spurs
Coexist <https://www.coexist.org/>
National Popular Vote <http://www.nationalpopularvote.com/>
Ubuntu 16.04LTS - Unity Desktop

0
WaltS48
2/10/2018 3:24:38 AM
simopal6@gmail.com Wrote in message:
>
> One thing that I found is that, when running strace, it seems that Firefox doesn't look for libavcodec.so at all. I tried on another machine, with Slackware 14.1, and strace indeed shows that Firefox looks for the library and eventually finds it.
> 
I see that PulseAudio was added in 14.2 which might account for
 the difference. I think PA is required by Fx. I wouldn't have
 thought gstreamer was essential - I think it would depend on your
 desktop - but I don't know.
-- 
(Remove numerics from my email address)
0
Dave
2/10/2018 7:43:19 AM
I don't see any evidence with FF 58.02 on Ubuntu (14.04) that it uses gstre=
amer. The "Web Content" process only loads the various libav libraries from=
 FFmpeg that it needs, from what I can tell.

There's something strange in how it finds them, though. I read on Phoronix =
that there's a runtime linker (loader, I presume, much as in Audacity?). I =
had a newer, optimised FFmpeg (v2.8.6) build in /opt/ffmpeg, installed via =
a PPA and a priori completely invisible for system software. Somehow Firefo=
x picked up the libraries in there though, which broke playback because sup=
posedly too new. I have a similar FFmpeg 3. install under /opt and that bui=
ld is ignored as expected, funny enough.
0
rjvbertin
3/6/2018 4:25:38 PM
=D0=BF=D1=8F=D1=82=D0=BD=D0=B8=D1=86=D0=B0, 9 =D1=84=D0=B5=D0=B2=D1=80=D0=
=B0=D0=BB=D1=8F 2018 =D0=B3., 19:50:05 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=
=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C simo...@gmail.com =D0=BD=D0=B0=
=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
> (Originally posted here: https://support.mozilla.org/en-US/questions/1192=
683 , but got no reply since December)
>=20
> Some context:
>=20
> - Firefox version: 57.0.1 (official release)
>=20
> - OS: Linux (Slackware 14.2)
>=20
> - ffmpeg: compiled from source, .so file: libavcodec.so.57 in /usr/local/=
lib, which is present in LD_LIBRARY_PATH
>=20
> - ffmpeg supports H264; relevant line from `ffmpeg -codecs`: DEV.LS h264 =
H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264=
_vdpau h264_cuvid ) (encoders: libx264 libx264rgb h264_nvenc h264_v4l2m2m h=
264_vaapi nvenc nvenc_h264 )
>=20
> - WebM works fine (I can play YouTube videos)
>=20
> - H264 doesn't work (Youtube's HTML5 support page, https://www.youtube.co=
m/html5?hl=3Dit&gl=3DIT, confirms that H.264 and MSE & H.264 are not availa=
ble).
>=20
> So, basically, I can't play H264 videos on Firefox. I tried using the ver=
sion of Firefox which came with Slackware, or even compiling it, but no luc=
k.
>=20
> One thing that I found is that, when running strace, it seems that Firefo=
x doesn't look for libavcodec.so at all. I tried on another machine, with S=
lackware 14.1, and strace indeed shows that Firefox looks for the library a=
nd eventually finds it.
>=20
> My idea is that something is preventing from triggering the loading of li=
bavcodec, but I have no idea how to find out.=20
>=20
> Thanks anyone for for your help!

I can confirm, that on Firefox-52.8 (ESR!) H.264 playback doesn=E2=80=99t w=
ork, too. Youtube html5 video page tells that H.264 and H.264 MSE are not s=
upported. In the dependencies for 52.8 I see ffmpeg and no gstreamer.

ffmpeg -version output is here: https://pastebin.com/raw/hWuihXMV

grep -iE '(libav|ffmpeg|gstreamer)' on strace output shows nothing.
0
nick
6/8/2018 12:33:47 AM
This is a multi-part message in MIME format.
--------------000803070608060102080305
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

On 08/06/2018 01:33, nick.suleymanov@gmail.com wrote:
> I can confirm, that on Firefox-52.8 (ESR!) H.264 playback doesn’t work, too.

Have you got a link of a video which doesn't play on your machine? We 
need to try it on our machine.

Thanks.






-- 
With over 600 million devices now running Windows 10, customer 
satisfaction is higher than any previous version of windows.

--------------000803070608060102080305
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FCFBE3" text="#000000">
    <div class="moz-cite-prefix">On 08/06/2018 01:33,
      <a class="moz-txt-link-abbreviated" href="mailto:nick.suleymanov@gmail.com">nick.suleymanov@gmail.com</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:mailman.801.1528418637.2161.support-firefox@lists.mozilla.org"
      type="cite">
      <pre wrap="">
</pre>
      <pre wrap="">
I can confirm, that on Firefox-52.8 (ESR!) H.264 playback doesn’t work, too. </pre>
    </blockquote>
    <br>
    Have you got a link of a video which doesn't play on your machine? 
    We need to try it on our machine.<br>
    <br>
    Thanks.<br>
    <br>
    <br>
    <br>
    <br>
    <blockquote
      cite="mid:mailman.801.1528418637.2161.support-firefox@lists.mozilla.org"
      type="cite">
      <pre wrap="">
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <div class="moz-signature">
        <div style="width: 330px; background-color: blue; color:
          yellow;font-weight: bolder; font-size:150%; text-align:
          center; margin: 30px 5px 30px 5px;">With over 600 million
          devices now running Windows 10, customer satisfaction is
          higher than any previous version of windows.</div>
      </div>
    </div>
  </body>
</html>

--------------000803070608060102080305--
0
UTF
6/8/2018 1:58:26 AM
Reply: