128 Star 565 Fork 216

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])
Python
1
https://gitee.com/mktime/python-learn.git
git@gitee.com:mktime/python-learn.git
mktime
python-learn
python-learn
master

搜索帮助