There are times where I need a few films on my mobile for my son to watch. For my particular mobile “Galaxy Gio” the constraints for hardware acceleration is 360p as anything bigger will cause it to switch to software which is slower and sometimes a slideshow. For the uninitiated, 360p means either 480×360 at 4:3 ratio (your old TV) or 640×360 at 16:9 ratio (your HD TV).
First we need to cleanup our file names and sometimes ‘rename’ doesn’t work properly. We list all files and separate them by commas and then parse line by line to first remove everything between () and then everything between . We then move from the old name to the new name.