MediaArea / MediaInfoLib

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://mediaarea.net/MediaInfo
BSD 2-Clause "Simplified" License
639 stars 177 forks source link

How to tell if a video file is x264 or x265? #2122

Closed mondocane80 closed 1 month ago

mondocane80 commented 1 month ago

How to tell if a video file is x264 or x265? Some 1080p files are x264 and some are x265 and unless it's written in the video file title itself, there's no way to know.

Is there a way through your software to determine this?

Thanks

JeromeMartinez commented 1 month ago

How to tell if a video file is x264 or x265?

A video file is never x264 or x265, because x264 and x265 are encoding/decoding tools, not formats. I guess that you mean H.264 or H.265

So rephrased:

How to tell if a video file is H.264 or H.265 [...] Is there a way through your software to determine this?

Format line in the Video section, "AVC" is another name for H.264 and "HEVC" is another name for H.265. (and "VVC" is another name for H.266)

mondocane80 commented 1 month ago

Thanks for the correction. "x264" or "x265" is sometimes mentioned in the title of the file. Like for example:

greatmovie.1080p.x264.RABC.mkv

But sometimes the "x264" or "x265" is left out of the title. That was what I was getting at.

Was not aware of a H.266 and have never encountered a file like that before. Do they exist?

JeromeMartinez commented 1 month ago

But sometimes the "x264" or "x265" is left out of the title

It means that this was encoded by x264. You have a hint about the encoder name in addition to the format (deduced because e.g. x264 produces only H264 content).

In MediaInfo the encoder name is in its own line (when available, it is not mandatory in a file).

Was not aware of a H.266 and have never encountered a file like that before. Do they exist?

Yes. Just not (yet, and maybe never due to competition with AV1) a lot spread, as H.265 was not spread during several years after the standard is out.

mondocane80 commented 1 month ago

On some files, the hint isn't there. My media player can't play H.265, that was why I asked so I can decide whether I need to convert it to H.264 in Handbrake or avidemux. That's why I need something like MediaInfo to see any additional information to determine that or not.

Besides "AVC", "HEVC" or "VVC" is there anything else to look at as far as the video format is concerned? And will those codes always appear for either mp4 and mkv files?

JeromeMartinez commented 1 month ago

Besides "AVC", "HEVC" or "VVC" is there anything else to look at as far as the video format is concerned?

Each line in MediaInfo is there because it may be useful. Only you can know what your players likes or not.

And will those codes always appear for either mp4 and mkv files?

Most containers can have all of them. MKV and MP4 can for sure.