4.2.32. Exporting a media clip using script
Elan now supports any command line tool to extract clips from the video file. Elan
uses a script file named "clip-media.txt" which can be found in the
Elan folder where Elan is installed. To clip a video file, first the script have to be
modified according to specifications of the command line tool used.
For example, the syntax for M2-edit-cl : M2-edit-cl/ in:$begin(fr) / out:$end(fr) $in_file $out_file
M2-edit-cl : the path of the application
in:$begin(fr) : specifes the begin time frame of the clip in frames.
out:$end(fr) : specifes the end time frame of the clip
$in_file : input file
$out_file : output file
Few examples for command line tools are
M2-edit-cl -: windows : M2-edit-cl/ in:$begin(fr) / out:$end(fr) $in_file $out_file
ffmpeX - mac n windows : /Applications/ffmpegX/ffmpeg -sameg -ss $begin(sec.ms) -t -$duration(sec.ms) -i $in_file $out_file
These syntax depends on the command line tool you are using. Look in the script file for more explanation and examples. After this to clip the video file first make a selection of the video file and select .. Now the exported clip with be saved in the same place where the video file is present. The name of the clip exported will have the original video file name along with the start and end time of the selection.