FFmpeg installation and use

First download ffmpeg:

https://www.gyan.dev/ffmpeg/builds/      Click to download

As of 2023/5/9, the latest version of FFmpeg is version 6.0. If you want to download the previous version, you can also download version 6.0 here.


After downloading , unzip it and enter the bin directory , which is the main body of FFmpeg. There are three main things:

ffmpeg:

Format conversion, audio and video encoding and decoding, editing and splicing, image processing (watermarking), audio processing, subtitle processing, and streaming media transmission are all done by it

ffplay:

It can be regarded as a playback tool, how to use: pull the mp4 file to this path cmd :

ffplay xxx.mp4

ffprobe:

It can be used to obtain detailed information of media files. How to use: pull the mp4 file to this path cmd :

ffprobe xxx.mp4

I don’t know why these three exes will print the version information after execution, just ignore it, and then the following is the detailed information of the media file


For the convenience of subsequent use, it is best to configure the environment variables in this bin directory, so that it is much more convenient to use

Guess you like

Origin blog.csdn.net/weixin_47592544/article/details/130584205