input('example.mp4') output = ffmpeg.output(stream, 'pipe:').global_args('-hide_banner') print(output.run(capture_stdout=True, quiet=False)) 如果FFmpeg 已正确安装,这段代码将输出视频文件的信息。 更新代码: 由于imageio.ffmpeg.download() 已被弃用,你需要将原代码中调用该方法的部分替换为使用...
ffmpeg_failed=Falsetry:imageio.plugins.ffmpeg.download()except:ffmpeg_failed=True Then skip the tests withwrite_frame. That takes care of the unit tests, but for the doc-test, is there a way conditionally skiptestcodewhen testing the docs? I see two examples that usewrite_frame. ...