Split Video Into Pieces

Tags: thunar custom action, video, editing, ffmpeg
November 11, 2015

To learn how to use Thunar Custom Actions click here.

This custom action will split video into clips according to a user defined number of seconds. The duration of the clips will not always be exactly the duration wanted. This is because of keyframes.

Split Video - Thunar Custom Action

/home/$USER/Scripts/splitvideoyad.sh %f

Under Appears if selection contains make sure Video Files is checked.

###Bash Script

I keep my bash scripts in a folder called “Scripts” in my personal directory. To create the bash script copy the script below and paste it into a text editor. Name the script splitvideoyad.sh and save it to the scripts folder you created. Make the script executable by opening up a terminal and navigating to the folder in which the script is stored. Type chmod +x splitvideoyad.sh and press Enter. The script will now work when used with Thunar Custom Actions.

Bash Script