
运行的代码如下(视频文件的路径已定义好,没有问题):
ff = ffmpy3.FFmpeg(
inputs={filepath + '/' + fileName: None},
outputs={filepath + '/' + str(int(os.path.getmtime(filepath + '/' + fileName))) + '.ts':'-c:v h264'})
可以正常转码待处理的文件,程序运行完毕之后也可以正常退出。
但看到红字就很慌,怎么回事呢?