Page 1 of 1

Thumbnail/Hover support for H.265 (HEVC) mp4 files.

Posted: 16 Aug 2024 05:40
by kurtzd
I've recently re-encoded many terabytes of MP4 files from H.264 (AVC) format into H.265 (HEVC) using ffmpeg to drastically reduce the file size for archival purposes.

For any interested in details

Code: Select all

ffmpeg.exe -vsync 0 -hwaccel cuvid -hwaccel_output_format cuda -hwaccel_device 0 -c:v h264_cuvid -i "%1" -vf "hwdownload,format=nv12,fps=fps=30" -c copy -c:v hevc_nvenc -profile:v main10 -pix_fmt p010le -rc:v vbr -tune hq -preset p5 -multipass 1 -bf 4 -b_ref_mode 1 -nonref_p 1 -rc-lookahead 75 -spatial-aq 1 -aq-strength 8 -temporal-aq 1 -cq 34 -qmin 1 -qmax 99 -gpu 0 "%~n1-compressed.mp4"
Unfortunately XYplorer (26.00.0200) cannot decode them on hover (and I assume thumbnail but I rarely use that view) and gracefully presents error information. With 26.30.0200 this error hover seems to take a little longer, though I didn't measure it before and it's been a long week so that could be subjective.

The Wish here would be that an image of the first frame would be displayed on hover of a H.265 (HEVC) as it is for the more common H.264 (AVC). Crazy low priority of course as the first frame image is of limited use anyway. However, H.265 (HEVC) has been around for probably a decade (?) so I though it might be nice fit-n-finish item if it's not a heavy lift to implement.

Win 11 21H2 (22000.2538) if it matters. (Yes I'm very outdated

Thanks for reading.

Re: Thumbnail/Hover support for H.265 (HEVC) mp4 files.

Posted: 16 Aug 2024 07:31
by highend
Does your Windows Media Player play them correctly and you have the latest K-Lite Video codec package installed?

A simple conversion of an older H264 into H265 (ffmpeg -i D:\Halo_h264.mp4 -c:v libx265 -vtag hvc1 D:\Halo_h265.mp4) shows that it works with that new file.
Can't use your way, not using an nvidia card...
1.png