Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I contacted IINA developer couple of days ago. I got this reply from him today...

FFmpeg, the major dependency of mpv for decoding, just added HEVC hwdec support several hours ago, so technically we can build an IINA release with HEVC hwdec support from now. As using code directly from develop branch is risky, we are not going to add it in the coming 0.0.13 release, but hopefully it could be available in 0.0.14, when FFmpeg and mpv released the next stable version.
 
As said several times, you likely need to change the type from 'hev1' to 'hvc1'
Here is a file you can try https://www.dropbox.com/s/avvvz47qtrlr1z4/The_World_in_HDR_in_4K_HDR10.mp4?dl=0
Indeed, actually I just took my hex editor and changed hev1 to hvc1 and I tried it on a 10 bit 2160p movie, and it plays flawlessly (13" MBP 2014). Even am able to import it into iTunes without a hitch (although I don't know how to tag it as 4k).

Hi, which Hex Editor are you using ? Thanks

I have converted a HEVC mpeg 2 ts file to HEVC mp4. Then with Subler it is created a file which doesn't supported from High Sierra, it is white (with no thumbnail). When I import the ts file directly to Subler, it loads only the Audio Track with no Video.
Can somebody help ?
 
Last edited:
FWIW, I found this code for supposedly batch converting from hev1 to hvc1 via MP4Box muxing. Unfortunately, I can't seem to get it to run or I don't understand terminal well enough...

#!/bin/bash
# Usage: hev1_to_hvc1.sh /path/to/videos/
# Warning: Replaces originals. Please backup videos before usage!
path=$1
for file in $path/*.mp4;
do
rawfile="${file%.mp4}_track1.hvc";
hvcfile="${file%.mp4}_hvc.mp4";
mixfile="${file%.mp4}_mix.mp4";

mp4box -raw 1 "$file";
mp4box -add "$rawfile" "$hvcfile";
mp4box -new -add "$hvcfile" -add "$file"#audio"" "$mixfile";

rm "$file";
rm "$rawfile";
rm "$hvcfile";
mv "$mixfile" "$file";
done
 
Considering IINA 0.0.1 only came out in Jan of 2017, and IINA 0.0.12 came out back in July, I'm guessing IINA 0.0.14 could come out as early as fall 2017.
 
  • Like
Reactions: cmichaelb
For the moment I'm using MKVToolNix to convert my ts files to mkv. Then with mp4tools from emmgunn I convert this mkv to mp4 and the result is a HEVC file playable with QuickTime and iTunes. ( Last step can be replaced with Subler, if you need m4v for instance )
Please correct me if I am missing something but it works for me.
Thanks, John
 
  • Like
Reactions: pmostoff
It seems like too much of a hassle to convert. I’ll just wait until MPV/IINA get hardware HEVC decode.

In the meantime all my self generated 4K HEVC — from my iPhone — is compatible so I’m satisfied for now.
 
  • Like
Reactions: cmichaelb
Thanks, I tried many softwares but the way I do it as I explain above it is very fast, compared to others.
I'd like iTunes compatibility 'cause my Video Library is there..
I like IINA however, but my iMac is not a new model, it is 2011.
* I forgot to mention that mp4tools will support HEVC encoding soon, as their website says.
EDIT : The above procedure takes me 3 minutes for the whole thing, for a normal-length movie !
One other approach is HandBrake (Nightly builds only) but it is very slow.
 
Last edited:
HEVC will play but without hardware decode support.

Again, it depends on the type of file. MKV files won't play in QT, and probably never will. Some MP4 files will, but some won't if they have the wrong encoding flags.

However, the ones that are compatible with QT will even open on my ancient circa 2010 machines (although they won't play well because the computers are too slow and do not have hardware decode).

Where are your mp4 files from?

If say some random guy on the internet recording TV shows or whatever then there is a good chance they won’t work, since they don’t care about High Sierra that just came out 2 days ago.

If they are from old versions of Handbrake they won’t work but will work from the most recent nightlies.

If they are from iPhones they will work.

It should be noted that h.264 was the exact same way early on.

So far I have been able to play all HEVC mp4 in QT as long as it is not above 3840x2160 and 10 bit. In Subler you need to create a new file, not just open and save.

Just a quick update, with both your advice, I've been able to figure it out and got it all working, thanks again for the help!
 
  • Like
Reactions: EugW
You are doing it wrong.

If you use the later Handbrake nightlies and encode to hcv1 with the right settings, the HEVC files work just fine in Quicktime on 10.13.
[doublepost=1507662671][/doublepost]Care to share what Handbreak (nightly build) options work to get proper HEVC for Quicktime on 10.13 ?
 
4k video played on a MacBook Pro... watching it in laptop's display vs watching it in an external 4K/5K monitor.

Does it make any difference in terms of system resource usage(cpu/gpu load) ?
 
4k video played on a MacBook Pro... watching it in laptop's display vs watching it in an external 4K/5K monitor.

Does it make any difference in terms of system resource usage(cpu/gpu load) ?

I didn't own the Macbook Pro, but my understanding is not much different.

The hardest part is to decode the video. And no matter display on which screen, the decoding loading is the same.

Display a decoded video is a very simple job for modern GPU, even at 5K resolution.

However, once you connect the external monitor, you are effectively running multiple display. This may cause some difference. e.g. the GPU may no longer stay at low power mode when multiple display connected. Therefore, the GPU may be warmer, power usage may be increased, etc.
 
I thought so.

A friend built a PC today with Ryzen 1600x, Nvidia 550Ti 1G, Dell 1080p monitor. In Nvidia's spec page for the GPU it says the support for max resolution is 2560x1600. But he can play this http://4kmedia.org/samsung-nature-uhd-4k-demo/ 4K h264 just fine under 20% CPU. What gives! Would I be correct in assuming that - 1. this works because the gpu is pushing the decoded data to a 1080p monitor? 2. the gpu won't be able to push a 4k monitor for the same video file?
 
I thought so.

A friend built a PC today with Ryzen 1600x, Nvidia 550Ti 1G, Dell 1080p monitor. In Nvidia's spec page for the GPU it says the support for max resolution is 2560x1600. But he can play this http://4kmedia.org/samsung-nature-uhd-4k-demo/ 4K h264 just fine under 20% CPU. What gives! Would I be correct in assuming that - 1. this works because the gpu is pushing the decoded data to a 1080p monitor? 2. the gpu won't be able to push a 4k monitor for the same video file?

1) Correct, the video decode was completed by CPU, nothing to do with the GPU. GPU only need to display the decoded data, very easy job.

2) That max resolution is about the display ability, not video handling ability. Another very simple example is that you can easily display a >8k photo on a 1080P monitor with almost any modern computer, but none of them has >8k display ability.

3) If the GPU cannot display 4K but only up to 1440P, then you are correct. If you connect the same PC to a 4K display, it will still only able to display up to 1440P, but not 4K for the same video file.
 
Well, I'm using a 2016 MacBook Pro with the 4Gb video card option, and I'm connected to a 4K TV via TB3 to Display Port 1.2 to HDMI active adapter with High-Speed HDMI cables to 4K TV and let's test it out...for me the 4K H265 plays same on the 4K monitor as it does on the MBP's screen. This is a fast laptop with sufficient video memory, so I would expect it to work fine.
 
I thought so.

A friend built a PC today with Ryzen 1600x, Nvidia 550Ti 1G, Dell 1080p monitor. In Nvidia's spec page for the GPU it says the support for max resolution is 2560x1600. But he can play this http://4kmedia.org/samsung-nature-uhd-4k-demo/ 4K h264 just fine under 20% CPU. What gives! Would I be correct in assuming that - 1. this works because the gpu is pushing the decoded data to a 1080p monitor? 2. the gpu won't be able to push a 4k monitor for the same video file?

Decoding h264 is commonplace, pretty much everything had a h264 hardware decoder in it. A "smart" refrigerator (frig with a screen on it) has a h264 decoder, literally.

My 2013 iMac with a Haswell CPU and nVidia 775m uses about 5% to play back that Samsung video. Btw what a beautiful image that is even at lower resolutions.

However have him download and try this one.

http://4kmedia.org/samsung-travel-with-my-pet-hdr-uhd-4k-demo/

My iMac chokes. I don't have a adequate software decoding player nor does my Mac have the hardware. However my 4k SmartTV (a lot less powerful) can play it easily without a hiccup or dropped frame. And wow, that visually amazing at native res HDR 60fps.
 
  • Like
Reactions: h9826790
1) Correct, the video decode was completed by CPU, nothing to do with the GPU. GPU only need to display the decoded data, very easy job.
That's incorrect I think. The Ryzen lineup doesn't have integrated graphic processing chip and in this case the CPU was even lower than 20%. So CPU is not doing anything in this case. The GPU o. the other hand is decoding the whole thing with hardware acceleration. [The media info was showing device: nvidia 550Ti anyways]
 
That's incorrect I think.
550Ti can't decode HEVC, so it is the CPU who do the work. It may not have a dedicated decoder however. It is easy to see if there is hw accelerated video decoding as CPU utilization only changes by max 1-2% when doing playback.
 
I'm not sure if it's been discussed, but is encoding hardware accelerated? I'm on a 2017 iMac and I just encoded a 2'15" 60 fps file into 1080p HEVC in quicktime player. CPU usage is around 20% (of one core) and this took 5 min.
 
I'm not sure if it's been discussed, but is encoding hardware accelerated? I'm on a 2017 iMac and I just encoded a 2'15" 60 fps file into 1080p HEVC in quicktime player. CPU usage is around 20% (of one core) and this took 5 min.

I think only H264 encoding can be accelerated by QuickSync, not H265 at this moment.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.