I have 291 episodes named tv.show.01.mp4 to tv.show.291.mp4 and i want rename them to be named like Tv Show Episode S01E01.mp4. I use Linux so please suggest only FOSS compatible programs
I use KRename for renaming multiple files.
+1 for krename, otherwise if the new filenames are complex and should be calcolated I use python
krenamer can do this. It just is a regex front end. You could do it with a shell script too.
That’s what i started using :)
This can be done natively in Thunar if you happen to use XFCE.
There must be a million utilities to do this (try searching “linux mass rename”), including ones that allow you to rename media files based on their metadata… each works in different ways, so you’ll have to look yourself for one that fits you (personally, I like the ones who open a text editor with the file names and you just edit them).
If you use KDE (DK about other environments) and only need a progressive counter, the simplest way is just select the files in dolphin, hit F2 and enter a pattern like “Tv Show Episode S01E##.mp4”.
(of course you can also write a script to rename the files, but I guess you wouldn’t have asked if you were prepared to do so)
Dolphin has that ability built in. If you use it, highlight all of the episodes and press f2. Pretty self explanatory from there.
you can try rename: https://www.man7.org/linux/man-pages/man1/rename.1.html
or
rename 's/expression/replacement/' filename
select range of episodes per season then add season number (eg S01) in replacement string.
then restart numbering for next set of episodes (eg 01 to 12) and add S02. and so on. more tedious than the gui Rename method but doable.
or if you are comfortable with command line and some replacement shenanigans, there is always mmv
Would the tvnamer utility help?
how can you identify season from the file name?
Do you have the means to write your own Python script? If so, that would be a simple way to solve your problem.
I use the bulk renamer from thunar https://docs.xfce.org/xfce/thunar/bulk-renamer/start