Convert Video to AVI

Tags: thunar custom action, tutorial, convert, video, ffmpeg, backup
November 11, 2015

Thunar is a file manager for Linux systems that comes packaged with the XFCE desktop environment. One of the main attractions of Thunar is the ability to add some very convenient and time saving customized actions by way of the Custom Actions utility inside Thunar.

Thunar Custom Action Tutorial

I’ll do a walkthrough tutorial with the following Custom Action.

###Convert video to AVI

This converting action requires that FFmpeg be installed, since it’s employed to convert the videos. This custom action will allow any video file to be converted to AVI.

xfce4-terminal -x ffmpeg -i %f -b 798k -ab 128k %f.avi

xfce4-terminal -x is a useful addition to the FFmpeg command, in that the terminal will appear when running the Custom Action, so that the progress of the conversion can be visually monitored.

The variables above, such as 798k video bitrate and 128k audio bitrate, can be changed to your quality preference.

Now to test if it’s working. Open Thunar and find a small non-AVI video file. Right-click on the file. Convert to AVI will appear near the bottom of the right-click context menu. Click Convert to AVI. The terminal will appear and show ffmpeg doing its magic. The video will be converted to AVI, after which the terminal will automatically close. The converted output will be automatically saved to the directory of the converted video.

The steps for creating other Custom Actions are roughly the same as above, though different Custom Actions will have different commands and will work on different types of files.

###Backup Custom Actions

After a while you may have dozens of custom actions. Back them up so you don’t have to tediously re-enter them if something happens to your system, or if you install another system.

}