Command line to trim video

About encoding, codec settings, muxers and filter usage
kolor
New Cone
New Cone
Posts: 8
Joined: 15 May 2014 14:26

Command line to trim video

Postby kolor » 30 Sep 2014 16:13

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 ?

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests