bash-completion script for FFmpeg
- FFmpeg
- bash-completion
If you do not have bash-completion
package installed, run following commands.
# for CentOS
$ sudo yum install epel-release
$ sudo yum install --enablerepo=epel bash-completion
# for Ubuntu
$ sudo apt-get install bash-completion
-
Clone this repository
$ git clone https://github.com/clerk67/ffmpeg-completion.git
-
Source ffmpeg script.
$ cd ffmpeg-completion $ source ffmpeg
-
Enter
ffmpeg -f
to your terminal and hit theTab
key twice!
- Put
ffmpeg
script to/etc/bash_completion.d
or/usr/share/bash-completion/completions
. Scripts in these directories will be automatically sourced every time you start the shell. - Also, you can add
source /path/to/ffmpeg-completion-script
to your.bashrc
instead of the first approach.