
假设我们有一个matplotlib.animation
用下面的代码生成的视频(虽然不知道如何获得高清 1080p 的 mp4 文件,但我们可以使用 Final cut pro 高清 1080p 重新编码)
Writer = animation.writers['ffmpeg']#code to save the example.mp4
writer = Writer(fps=0.9, codec="h264", bitrate=1000000, metadata=dict(artist='me'))
animator.save('example.mp4', writer=writer)
当此 mp4 文件导入 Final Cut 时,我们可以选择将其设为 HD 1080p。
问:如何使用 ffmpeg 命令“转换”一个计划中的 1080P 高清 mp4 文件供 youtube 使用?