How to run VLC command in mac terminal

6

I am trying to crop a number of videos using the following vlc terminal command:

vlc input.mp4 --crop=480x270+200+100

However, I am getting the following error:

-bash: vlc: command not found

How can I run a vlc command in mac terminal?

Rana

Posted 2015-11-08T10:19:43.723

Reputation: 61

Do you have vlc installed? If yes, probably the vlc binary is not in your path and you need to use the full path to vlc in your scripts. – cristi – 2015-11-09T08:48:41.753

Answers

6

Use the following command to set vlc as an alias:

alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'

You can then use vlc input.mp4 to play a video.

The above path is for Mac OS. If you are using another system, just change the path for VLC accordingly.

Justin

Posted 2015-11-08T10:19:43.723

Reputation: 61