I couldn't get that code to run on my Windows 10 machine either.
So here's what I did:
- I followed these instructions and installed the latest ffmpeg build on machine:
- Download the latest static build for Windows and then extract the files. You may need 7zip to extract.
- Create a folder in C:\ called
ffmpeg
- Copy the contents of the extracted files into C:\ffmpeg
- Edit your PATH environment variable to append at the end the following entry:
C:\ffmpeg\bin;
- Confirm that everything is working correct by opening a cmd prompt and enter the following (Note you might need to run cmd as administrator):
ffmpeg -version
我通过这些步骤,通过安装最新的ffmpeg 在机器上
1.下载最新的static build for