Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • No replies
  • 3 have this problem
  • 20 views
more options

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.

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.

Modified by simopal6_