macbook pro to install and simple to use ffmpeg
Explanation
See a video about the ffmpeg to convert video files on the B station, although there is very detailed, but only install and use windows version, so would like to see the installation under the mac system.
Ffmpeg installation tutorial station B
Version and installation environment
ffmpeg, choose the latest version static stability (the version I downloaded: ffmpeg-4.2.2.7z) Download
macbook pro OS: macOS Mojave 10.14.4 (estimated above 10.10 version should be no problem, you can try it for yourself)
Installation and use ffmpeg
Download software, you can run
- Open a terminal, enter
cd <ffmpeg所在的目录>
(do not know the directory, you can drag ffmpeg to the terminal, the terminal will show the file's directory)
- Input:
./ffmpeg -h
you can start using ffmpeg
***这时候可以用, 但也有不方便的地方, 在其它目录下, 无法使用ffmpeg这个命令***
mac configuration uses the ffmepg
Will be downloaded into the software under your specified directory (I put
/Users/vito/Applications/
)Modify the configuration file (set the environment variable)
vim ~/.bash_profile
, and finally add in the following documents:export FFMPEG=/Users/vito/Applications/ export PATH=$PATH:$FFMPEG
/Users/vito/Applications/
I placed ffmpeg directory software:wq 保存修改并退出编辑
The configuration file
.bash_profile
to take effect, the command:source ~/.bash_profile
Casually a terminal, enter the command:
ffmpeg -h
outputs the following, the configuration was successful
5. At this point, ffmpeg installation configuration of mac
mac under the use ffmpeg
Command is simple to use:
ffmpeg -i <filedirectory/file.mp4> -codec copy <anotherFileDirectory/file.mov>
Other commands, refer to station B video