1 Star 0 Fork 229

hello-tom/project_25500701

forked from mktime/python-learn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
flv2mp4.py 389 Bytes
一键复制 编辑 原始数据 按行查看 历史
private-user 提交于 2020-02-26 00:25 . flv2mp4
import os
import sys
'''
if use in windows, pls download https://ffmpeg.zeranoe.com/builds/ & install & add to PATH
'''
def flv2mp4(flvfile):
filename = flvfile.split('.')[0]
suffix = '.mp4'
outname = filename + suffix
command = 'ffmpeg -i {} {}'.format(flvfile, outname)
print(command)
os.system(command)
if __name__ == '__main__':
flv2mp4(sys.argv[1])
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hello-tom/python-learn.git
git@gitee.com:hello-tom/python-learn.git
hello-tom
python-learn
project_25500701
master

搜索帮助