参考这篇博客 https://www.cnblogs.com/kileyi/p/10162717.html github地址 https://github.com/ShiftMediaProject/FFmpeg