Use FFmpeg for video and audio conversion

1 Download and install

1.1 Visit the official website to download the installation package

1.2 Unzip to the installation directory

1.3 Configure environment variables

  • Press WIN+R at the same time to open the "Run" dialog box, enter sysdm.cpl, and press Enter to open "System Properties".

  • Select the Advanced tab in the System Properties dialog box. Click on "Environment Variables" in the "Advanced" tab.

  • Add D:\ffmpeg\bin to the path

1.4 Verify that the installation is successful

Open the cmd command window, enter the command "ffmpeg -version", if the version number appears, the installation is successful

2 Reduce video resolution using FFMPEG

ffmpeg -i D:\BaiduNetdisk\Download\bs_4096.mp4 -vf scale=720:-1 bs_720.mp4

Convert D:\BaiduNetdisk\Download\bs_4096.mp4 to 720 resolution, and name the new video bs_720.mp4

The original text uses FFmpeg for video and audio conversion-Knowledge 

★The business card at the end of the article can receive audio and video development learning materials for free, including (FFmpeg, webRTC, rtmp, hls, rtsp, ffplay, srs) and audio and video learning roadmaps, etc.

see below!

 

Guess you like

Origin blog.csdn.net/yinshipin007/article/details/132511853