tvnamer icon indicating copy to clipboard operation
tvnamer copied to clipboard

Add Quality option to naming

Open smdern opened this issue 11 years ago • 3 comments

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.

smdern avatar Aug 28 '13 14:08 smdern

This could be understood in two ways:

  1. 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.

  2. 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 to FileParser.parse() would be necessary.

lahwaacz avatar Aug 28 '13 15:08 lahwaacz

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!

smdern avatar Aug 28 '13 15:08 smdern

wanted to vote for this issue 7 years later, a newer tool mediainfo would be better than ffparser

vosslab avatar Mar 27 '20 14:03 vosslab