[TOC]
python
import ffmpy3
ff = ffmpy3.FFmpeg(
inputs={'./test.mp4': None},
outputs={'./test1.mp4': '-vcode h264'}
)
print(ff.cmd) # ffmpeg -i ./test.mp4 -vcode h264 ./test1.mp4
see also:ffmpy3示例