Note: One should be very careful of spaces while writing the commands. Also make sure that what- ever options we want to implement on the output file we should place it after the input option (i.e. -i input).
Creating cropped thumbnail without changing the Aspect Ratio of thumbnail with black background that will fill the sides of the thumbnail.
Aspect Ratio can be defined as an attribute of an image that describes the proportionality between the width and height of an image. This is a done using ImagicMagic command as below:
convert <inputfile> \( +clone -background black -rotate 90 -size 240x140 \) -gravity north -compose Src -composite <outputfile>
Cutting video file into a smaller clip
We can use the time offset parameter (-ss) to specify the start time stamp in HH:MM:SS.ms format while the -t parameter is for specifying the actual duration of the clip in seconds.