1 Star 0 Fork 75

2020 / jessibuca

forked from Gitee 极速下载 / jessibuca 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ffmpeg.py 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
bosscheng1210 提交于 2021-07-24 10:46 . update ffmpeg
#!/usr/bin/python
import os
args = [
'extra-cflags="-c -Oz -fPIC"',
'cc=emcc',
'cxx=em++',
'ar=emar',
'ranlib=emranlib',
'prefix=../obj',
'target-os=none',
'arch=x86_64',
'cpu=generic'
]
disables = [
'everything','all','avdevice','postproc','avfilter','programs','asm','parsers','muxers','demuxers','filters',
'doc','devices','network','bsfs','shared','hwaccels','debug','protocols','indevs','outdevs','runtime-cpudetect','pthreads'
]
enables = [
'small','cross-compile','gpl','avcodec','swresample','ffmpeg','avformat',
'muxer=mp4',
'parser=h264',
'parser=hevc',
'parser=aac',
'decoder=h264',
'decoder=hevc',
'decoder=aac',
'decoder=pcm_alaw',
'decoder=pcm_mulaw',
'encoder=pcm_alaw',
'encoder=pcm_mulaw',
'encoder=aac','static'
]
enables = ['enable-'+item for i,item in enumerate(enables)]
disables = ['disable-'+item for i,item in enumerate(disables)]
os.system('emconfigure ./configure --' +
(' --'.join(args+disables+enables)))
os.system('make clean && emmake make -j && make install')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/zy-pub_admin/jessibuca.git
git@gitee.com:zy-pub_admin/jessibuca.git
zy-pub_admin
jessibuca
jessibuca
v2

搜索帮助

344bd9b3 5694891 D2dac590 5694891