Identify H.265 from the OSX Command Line?
You can use ffprobe for this

ffprobe file.mkv -show_entries stream=codec_name -select_streams v:0 -of compact=p=0:nk=1 -v 0


For H.265/HEVC, this will print hevc; for H.264, h264 .