Page 1 of 1

Command line to trim video

Posted: 30 Sep 2014 16:13
by kolor
Hi,

I would like to trim a mp4 with vlc in command lines, I tried this on Mac OS 10.8 with VLC 2.1.5 without success :

./vlc -I dummy video_originale.mp4 --sout='#transcode{}:std{access=file,dst="out.mp4"}' vlc://quit --start-time 15 --run-time 5
./vlc -I dummy video_originale.mp4 --sout='#transcode{}:std{access=file,dst="out.mp4"}' vlc://quit --start-time 15 --stop-time 20
./vlc -I dummy video_originale.mp4 --sout=#file{dst=out.mp4} --no-sout-rtp-sap --no-sout-standard-sap --sout-keep vlc://quit --start-time 15 --run-time 5
./vlc -I dummy video_originale.mp4 --sout=#file{dst=out.mp4} --no-sout-rtp-sap --no-sout-standard-sap --sout-keep vlc://quit --start-time 15 --stop-time 20

I have a video result but incomplete or too long, seems to be a problem with --stop-time or --run-time.
Also the first second of my result is always the first second of my source, so --start-time does not work well.
Does anyone know about this ? Is there another syntax to do this ?