Help identifying 264 vs 265 video files

I have approximately 20,000 video files - some TV and some Movies. The vast majority of MKV files. However, I’d like to know which ones are h.264 AVC format, and which ones are h.265 HEVC format.

I can’t see to find any Windows or Plex, or Synology tools to show me this. Ideally, I’d like an Excel extract of all files on my NAS, with the AVC or HEVC codec shown next to each one so I can filter, and replace the relevant files if needed.

I can use software like VLC or MediaInfo for one file at a time, but with 20,000, I’d like some sort of bulk mechanism. Surely a tool must exist that will scan my video library and figure out if it’s AVC or HEVC, and display the results for me?

I’ve seen people mention Plex add ons but I don’t know how to add them to my Synology box, as that’s where Plex is installed.

If anyone has any advice, please let me know.

Thanks

Check out WebTools-NG

1 Like

How do I install that on my Plex on the Synology? I can’t find WebTools in the Synology Package Center, or in Plex anywhere? How do I use it?

I downloaded it for Windows and installed it, but when it took me to the sign in page, I entered my plex.tv username and password and clicked Sign In but nothing happened. It never signed in.

Do I need to install webtools onto synology somehow?

You can install that on your regular PC – it’ll connect to your server like a Plex client using your account credentials.

Yeah I must be doing something very wrong. I downloaded the exe for Windows, ran it, got to the sign in screen, entered my details, clicked Sign In and nothing happened. It’s just stuck on that screen forever. Tried repeatedly all afternoon. No idea what’s going wrong.

After you signed in, you’ll need to select the server you want to work with – even if you only have a single server, this isn’t currently pre-populated.

Make sure to complete the Global Settings by setting the Export Directory (1st field).

Once you did that, click ExportTools and fill the different dropdowns, e.g.

  • Select Export TypeMovie
  • Select Sub TypeMovie
  • Select Media Library<library name>

Last, select the level of what you want to export – those can be a bit complicated but they’re explained on the project homepage.

Then click Export Media and the tool will process your library information – this might take a moment.

1 Like

You’re missing a bit. I cannot sign in. I can see the sign in page, and I type my username and password, and click the blue Sign In button and absolutely nothing happens.

WebTools-NG-0.3.12.898c1ee was the filename, the Windows exe file.
I don’t have 2FA enabled so left that field blank.

[2021-09-12 22:13:19.250] [info] *********************************
[2021-09-12 22:13:19.252] [info] Starting WebTools-NG Version: 0.3.12.898c1ee
[2021-09-12 22:13:19.252] [info] Running on win32
[2021-09-12 22:13:19.253] [info] Log level set to info
[2021-09-12 22:13:25.962] [info] loginToPlex called
[2021-09-12 22:13:26.251] [error] loginToPlex status: 401
[2021-09-12 22:13:26.253] [error] loginToPlex data: {“errors”:[{“code”:1001,“message”:“User could not be authenticated”,“status”:401}]}
[2021-09-12 22:13:26.255] [error] statusCode: 1001
[2021-09-12 22:13:27.436] [info] loginToPlex called
[2021-09-12 22:13:27.590] [error] loginToPlex status: 401
[2021-09-12 22:13:27.591] [error] loginToPlex data: {“errors”:[{“code”:1001,“message”:“User could not be authenticated”,“status”:401}]}
[2021-09-12 22:13:27.591] [error] statusCode: 1001
[2021-09-12 22:14:20.881] [info] loginToPlex called
[2021-09-12 22:14:21.051] [error] loginToPlex status: 401
[2021-09-12 22:14:21.052] [error] loginToPlex data: {“errors”:[{“code”:1031,“message”:“User could not be authenticated. This IP appears to be having trouble signing in to an account (detected repeated failures)”,“status”:401}]}
[2021-09-12 22:14:21.053] [error] statusCode: 1031
[2021-09-12 22:14:22.718] [info] loginToPlex called
[2021-09-12 22:14:22.870] [error] loginToPlex status: 401
[2021-09-12 22:14:22.872] [error] loginToPlex data: {“errors”:[{“code”:1031,“message”:“User could not be authenticated. This IP appears to be having trouble signing in to an account (detected repeated failures)”,“status”:401}]}
[2021-09-12 22:14:22.874] [error] statusCode: 1031

I’ll reboot the router and turn off/on the laptop and try again

Maybe my IP has been banned/blocked due to repeated attempts?

I’ve tried again today, same results, after rebooting laptop, router and Synology box.

[2021-09-13 08:46:14.354] [info] *********************************
[2021-09-13 08:46:14.356] [info] Starting WebTools-NG Version: 0.3.12.898c1ee
[2021-09-13 08:46:14.357] [info] Running on win32
[2021-09-13 08:46:14.357] [info] Log level set to info
[2021-09-13 08:46:23.020] [info] loginToPlex called
[2021-09-13 08:46:23.418] [error] loginToPlex status: 401
[2021-09-13 08:46:23.419] [error] loginToPlex data: {“errors”:[{“code”:1001,“message”:“User could not be authenticated”,“status”:401}]}
[2021-09-13 08:46:23.419] [error] statusCode: 1001
[2021-09-13 08:47:06.670] [debug] Loading language: en
[2021-09-13 08:47:06.673] [debug] Defined language: en
[2021-09-13 08:47:06.870] [info] *********************************
[2021-09-13 08:47:06.872] [info] Starting WebTools-NG Version: 0.3.12.898c1ee
[2021-09-13 08:47:06.872] [info] Running on win32
[2021-09-13 08:47:06.872] [info] Log level set to info
[2021-09-13 08:47:16.038] [info] loginToPlex called
[2021-09-13 08:47:16.369] [error] loginToPlex status: 401
[2021-09-13 08:47:16.370] [error] loginToPlex data: {“errors”:[{“code”:1001,“message”:“User could not be authenticated”,“status”:401}]}
[2021-09-13 08:47:16.370] [error] statusCode: 1001

Yeah, I’ve filled in the fields, here’s a screenshot: https://i.ibb.co/VVKrTB5/Screenshot-1.png

Clicking Sign In does absolutely nothing. It’s like I’ve not even pressed it. I wait a minute or so and nothing happens. I click it again, and nothing. I get entries in the log as above though.

If I go to plex.tv and use the same credentials, it logs in fine, and I can see everything.

If I go to plex.tv in the browser, and enter my email and password, it logs in fine.

If I open the WebTools app, and enter the same details, it does nothing.

I’ve turned the Firewall off completely.

It still gives me this same error:

[2021-09-13 16:32:30.120] [debug] Loading language: en
[2021-09-13 16:32:30.124] [debug] Defined language: en
[2021-09-13 16:32:30.313] [info] *********************************
[2021-09-13 16:32:30.316] [info] Starting WebTools-NG Version: 0.3.12.898c1ee
[2021-09-13 16:32:30.316] [info] Running on win32
[2021-09-13 16:32:30.317] [info] Log level set to info
[2021-09-13 16:32:40.590] [info] loginToPlex called
[2021-09-13 16:32:40.863] [error] loginToPlex status: 401
[2021-09-13 16:32:40.864] [error] loginToPlex data: {“errors”:[{“code”:1001,“message”:“User could not be authenticated”,“status”:401}]}
[2021-09-13 16:32:40.866] [error] statusCode: 1001
[2021-09-13 16:36:31.003] [debug] Loading language: en
[2021-09-13 16:36:31.006] [debug] Defined language: en
[2021-09-13 16:36:31.189] [info] *********************************
[2021-09-13 16:36:31.191] [info] Starting WebTools-NG Version: 0.3.12.898c1ee
[2021-09-13 16:36:31.192] [info] Running on win32
[2021-09-13 16:36:31.192] [info] Log level set to info
[2021-09-13 16:36:41.419] [info] loginToPlex called
[2021-09-13 16:36:41.669] [error] loginToPlex status: 401
[2021-09-13 16:36:41.671] [error] loginToPlex data: {“errors”:[{“code”:1001,“message”:“User could not be authenticated”,“status”:401}]}
[2021-09-13 16:36:41.673] [error] statusCode: 1001
[2021-09-13 16:37:05.910] [info] loginToPlex called
[2021-09-13 16:37:06.281] [error] loginToPlex status: 401
[2021-09-13 16:37:06.283] [error] loginToPlex data: {“errors”:[{“code”:1031,“message”:“User could not be authenticated. This IP appears to be having trouble signing in to an account (detected repeated failures)”,“status”:401}]}
[2021-09-13 16:37:06.285] [error] statusCode: 1031
[2021-09-13 16:37:07.176] [info] loginToPlex called
[2021-09-13 16:37:07.315] [error] loginToPlex status: 401
[2021-09-13 16:37:07.316] [error] loginToPlex data: {“errors”:[{“code”:1031,“message”:“User could not be authenticated. This IP appears to be having trouble signing in to an account (detected repeated failures)”,“status”:401}]}
[2021-09-13 16:37:07.317] [error] statusCode: 1031

Umm, I think so.

If I go to Command Prompt, and ipconfig /all, it shows this:

Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : home
Description . . . . . . . . . . . : Intel(R) Wireless-AC 9560 160MHz
Physical Address. . . . . . . . . : 48-89-E7-16-EB-CB
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2a00:23c4:6db3:ce01:e919:441c:9ddd:36ea(Preferred)
Temporary IPv6 Address. . . . . . : 2a00:23c4:6db3:ce01:a196:5c7e:228c:84b5(Preferred)
Link-local IPv6 Address . . . . . : fe80::e919:441c:9ddd:36ea%3(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.222(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 12 September 2021 22:16:19
Lease Expires . . . . . . . . . . : 14 September 2021 10:16:20
Default Gateway . . . . . . . . . : fe80::ee6c:9aff:fe54:962a%3
192.168.1.254
DHCP Server . . . . . . . . . . . : 192.168.1.254
DHCPv6 IAID . . . . . . . . . . . : 55085543
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-52-B2-B5-00-D8-61-09-70-67
DNS Servers . . . . . . . . . . . : fe80::ee6c:9aff:fe54:962a%3
192.168.1.254
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
home

My NAS is accessible through 192.168.1.252:5001, and I have the NAS folders as Windows Explorers folders, so I’m guessing they can communicate properly, and they are on the same subnet.

Is there a better way for me to check?

It looks like the WebTools app can’t even connect to my plex.tv account though. Is there an older version of WebTools I can download, maybe it’s a bug with this new version?

Yeah, same issue. Same errors as before, but notice the older version number. Seems to be an issue on all versions. I’ll log an issue as you described. Thanks

[2021-09-13 16:55:44.340] [debug] Loading language: en
[2021-09-13 16:55:44.345] [debug] Defined language: en
[2021-09-13 16:55:44.538] [info] *********************************
[2021-09-13 16:55:44.540] [info] Starting WebTools-NG Version: 0.3.11.4ca0947
[2021-09-13 16:55:44.540] [info] Running on win32
[2021-09-13 16:55:44.540] [info] Log level set to info
[2021-09-13 16:55:58.639] [info] loginToPlex called
[2021-09-13 16:55:58.904] [error] loginToPlex status: 401
[2021-09-13 16:55:58.906] [error] loginToPlex data: {“errors”:[{“code”:1031,“message”:“User could not be authenticated. This IP appears to be having trouble signing in to an account (detected repeated failures)”,“status”:401}]}
[2021-09-13 16:55:58.907] [error] statusCode: 1031

OK, after a while, I’ve got WebTools-NG working! It logs me in fine now.

So, back to the original question - how can I use it to identify between 264 and 265 MKV files, or between AVC and HEVC files? I can’t seem to see video codec in the list of available fields during export.

Ah sorry I was being stupid - I was choosing TV Shows instead of TV Episodes! All working now!

One more small question - I’ve done Title, Media Video Codec and it all works perfectly. However, sometimes I can’t quite tell what TV show the title belongs to. I have multiple “Pilot” titles, for example.

What’s the field that shows the name of the TV show, the season, or the filepath URL? Thanks

Depending on why you want this info, another approach that I like is including the video and audio codecs in the filenames themselves.

I use FileBot or Sonarr/Radarr to rename files to match Plex’s expectations, and I include the video and audio codec info in [square brackets] so it’s visible to me, but ignored by the Plex agents.

Something like this is frequently useful:

Movie Name (YYYY) {tt1234567}[1080p H265 AAC 5.1].mkv
2 Likes

That is useful approach, I might think about that.

The reason I want to see it is because I share my Plex with a family member, and they have a slightly weird TV that doesn’t support HEVC 265 files or anything encoded with DIVX or XVID, so that’s most AVI files.

The majority of my Plex library is MKV files in the AVC 264 format, but I wanted a facility to scan my entire library and identify the 265 files or the XVID files, and the WebTools thing does that very well.

You’re right though, if I put the details in the filename, I could write a simple Excel macro that displays my library in the spreadsheet and I could easily filter on filename.