Trim video with VLC on mac

Alec Jacobson

September 04, 2011

weblog/

Here's a snippet to use VLC.app to trim a movie. Times are given in seconds.
/Applications/VLC.app/Contents/MacOS/VLC --start-time 170 --stop-time 310 --sout=#file{dst=out.mkv} --no-sout-rtp-sap --no-sout-standard-sap --sout-keep  "in.mkv"
For some reason this is very quick but doesn't exit on its own.