Format Factory farewell video format conversion method (mac version of the command line)

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 -hyou can start using ffmpeg

***这时候可以用, 但也有不方便的地方, 在其它目录下, 无法使用ffmpeg这个命令***

mac configuration uses the ffmepg

  1. Will be downloaded into the software under your specified directory (I put /Users/vito/Applications/)

  2. 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  保存修改并退出编辑
  3. The configuration file .bash_profileto take effect, the command:source ~/.bash_profile

  4. Casually a terminal, enter the command: ffmpeg -houtputs 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

Reference website

Win ffmpeg B station installation environment tutorial

install FFmpeg under mac

Guess you like

Origin www.cnblogs.com/vitoboy/p/12417277.html