I download video podcasts overnight using a cronjob, and I'd like to re-encode them for my media player at the same time (not least because it takes a good 45 minutes per episode to do the re-encoding). Obviously I could just copy-and-paste the mencoder invocation that iriverter uses to perform the conversion, but I looked over the source code and noticed that iriverter has some intelligence built in to adapt the encoding parameters based on the details of the input file. So I'd like to use iriverter for this purpose if possible.
Obviously, to encode files from a cronjob I need to be able to run the program without starting up the GUI. I've tweaked the code to support this; it seems to work fine for me. The command-line interface added by this patch is:
To encode a file:
iriverter [--profile PROFILE] inputfile outputfile
To get a list of the profiles that are available:
iriverter --lsprofiles
Patch to support running jobs from the command-line without a GUI.