tvnamer
tvnamer copied to clipboard
Add Quality option to naming
I'm not sure which tool would be needed to determine or if it would be performant, but I like having 720p, 1080p, HDTV.. etc in the name.
This could be understood in two ways:
-
The original filename already includes the 720p, 1080p, HDTV, ... string - you can use custom regex, define named group capturing the 720p, 1080p etc. string and use that in the output pattern. All the necessary features are already implemented, it will take just a little playing with the regex.
-
The original filename does not include the 720p, 1080p, HDTV etc. string, but you'd like to add it - this is not implemented ATM,
ffprobe
(my python interface: ffparser) could be used to get the video resolution. Then an additional function connected toFileParser.parse()
would be necessary.
Adding a custom regex for determining if the resolution is in the original filename seems to be the easiest and fastest solution. Personally I'm more inclined to using ffprobe
to find the actual resolution...
Thanks for pointing me to ffparser
. I usually spend time in the ruby world so it's nice to have someone point out libs.
I'm probably going to mess around with this, this weekend. Cheers!
wanted to vote for this issue 7 years later, a newer tool mediainfo
would be better than ffparser