Mac CEF 支持mp3 mp4编译

1.下载:https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding   差不多15G

2.编译:https://bitbucket.org/chromiumembedded/cef/wiki/AutomatedBuildSetup.md#markdown-header-246-platform-builder   耗时差不多10小时

3.修改内容: /chromium/src/third_party/ffmpeg/chromium/config/Chromium/mac/x64/config.h 后面添加

--enable-decoder='rv10,rv20,rv30,rv40,cook,h263,h263i,mpeg4,msmpeg4v1,msmpeg4v2,msmpeg4v3,amrnb,amrwb,ac3,flv' --enable-demuxer='rm,mpegvideo,avi,avisynth,h263,aac,amr,ac3,flv,mpegts,mpegtsraw' --enable-parser='mpegvideo,rv30,rv40,h263,mpeg4video,ac3'

4.编译参数修改:chromium/src/out/Release_GN_x64/args.gn  添加 proprietary_codecs = true

posted @ 2017-06-22 11:50 Ethan_村长 阅读(...) 评论(...) 编辑 收藏