I had to recover a bunch of movie files from my external HDD due to filesystem corruption and used photorec
to do so. Now all my files have random names like f00000.avi
. We are talking about 1000+ movies here, so renaming them manually would be pretty tedious. As I understand, most movie files have their titles stored inside the header as well, so is there a way to quickly rename a bunch of files by replacing the random names by the title of the movie?
You can try with mediainfo:
To rename all .avi files in the current directory, run:
Install mediainfo using the command:
sudo apt-get install mediainfo