0
votes

I followed this link which is on a similar topic. But even after completing the steps mentioned in the link i' am not able to play any mp4 files. I have also tried removing the args.gn file in out/Release folder and recompiling the whole project. That too didn't resolve the issue.

My args.gn file has following contents:

clang_use_chrome_plugins=false
enable_basic_printing=true
enable_linux_installer=false
enable_nacl=false
enable_print_preview=true
enable_rigel=true
enable_service_discovery=false
enable_widevine=true
fatal_linker_warnings=false
ffmpeg_branding="Chrome"
forbid_non_component_debug_builds=false
is_component_build=false
is_debug=false
is_official_build=true
optimize_webui=true
proprietary_codecs=true
target_cpu="x64"
use_bundled_fontconfig=false
use_gtk=false
use_sysroot=false
1

1 Answers

0
votes

To enable H264 codec it is enough to set ffmpeg_branding=Chrome proprietary_codecs=true GN defines.

If by MP4 you mean videos with MP4 container then to support these it is required to make additional code changes to Chromium.

Try testing with these sites:

https://tools.woolyss.com/html5-audio-video-tester/ https://lab.html5test.com/codecs/