General Discussions
Easy Video Encoding Benchmark - Test your GPU within seconds
 

Easy Video Encoding Benchmark - Test your GPU within seconds  

  RSS

OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

An important feature of GPUs is the encoding/transcoding of videos. nVidia, AMD and Intel provide frameworks and own codecs for this. The tool ffmpeg (used by a lot of GUI applications like Avidemex or Handbrake) is very useful for this purpose:
Ffmpeg: https://www.ffmpeg.org

Source video  FHD (1080p) in h264 Codec:
http://file-examples.com/wp-content/uploads/2017/04/file_example_MP4_1920_18MG.mp4

Benchmarks for transcoding into HEVC (h265) Codec on a 15-inch MBP 2018 with i7 2,6GHz:

nVidia GTX1080Ti: 266 FPS (x2)
ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v hevc_nvenc -c:a copy -quality quality -b:v 3M -bufsize 16M -maxrate 6M outhevcNvidia.mp4
(frame= 901 fps=266 q=15.0 Lsize= 9422kB time=00:00:30.52 bitrate=2528.5kbits/s speed= 9x)

AMD Radeon Pro 560X: 137 FPS
ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v hevc_amf -c:a copy -quality quality -b:v 3M -bufsize 16M -maxrate 6M outhevcAMD.mp4
frame= 901 fps=137 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=4.64x

Intel i7-8850H 6core: 37 FPS
ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v libx265 -c:a copy -quality quality -b:v 3M -bufsize 16M -maxrate 6M outputhevcIntel.mp4
frame= 901 fps= 37 q=-0.0 Lsize= 10881kB time=00:00:30.52 bitrate=2919.9kbits/s speed=1.27x

Please test your gpus, too and post your results here! Thank you.

Especially I would like to know the benchmarks of Radeon Vega 64 (or at least Vega 56). That would be very helpful.

----------------------------------------------------------
Some additional Benchmarks for MacOSX:
Intel Graphics UHD 630: 143 FPS (hevc_videotoolbox)
Intel i7-8850H 6core: 41 FPS (libx265)
and for Windows:
nVidia GTX1050: 262 FPS (hevc_nvenc)
nVidia GTX980Ti: 146 FPS (x2) (hevc_nvenc)

Remarks:
- hevc_videotoolbox is clearly inferior in quality at low bitrates,
- usage of AMD or nVidia hardware seems not possible via ffmpeg in MacOSX
- CPU encoding (hevc and h264) performs better in MacOSX than in Windows
- When using AMD hardware the additional option "-gops_per_idr 1" should be used.
- The GTX1080Ti has two cores for video encoding and so it's possible to encode two videos at once at full FPS.
- The GTX1050 performs very simular ot GTX1080Ti (but having just one core)

This topic was modified 10 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@oliverb I use ffmpeg on occasion as well. It's rather fantastic. Thank you for posting benches. Arguably, CPU encodes might be of higher quality (but significantly slower - ex. Handbrake on macOS vs. ffmpeg) but real-world difference may be hard to spot unless one deep-dives into the frames. Could you add test for Intel as well?

Update: Handbrake 1.2 now uses ffmpeg.

This post was modified 10 months ago

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

@mac_editor:
I could only use the Intel iGPU on MacOSX because of the infamous "iGPU-off-policy" for bootcamp:

Intel Graphics UHD 630: 143 FPS
ffmpeg -i file_example_MP4_1920_18MG.mp4 -c:v hevc_videotoolbox -quality quality -b:v 3M -bufsize 16M -maxrate 6M outputhevcIntel.mp4

frame=  901 fps=143 q=-0.0 Lsize=    5194kB time=00:00:30.52 bitrate=1393.9kbits/s speed=4.85x

The quality is inferior to AMD/nVidia on low bitrates. I didn't notice any problems with quality for h264_videotoolbox. This looks more "mature".

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

@mac_editor: Unfortunately I have overwritten my original Thread post.. Can you get it back?

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@oliverb Not sure if I can do anything about that myself. I checked wayback machine in case there was an archive, but it wasn't saved. Maybe admins could help. I would expect the Intel UHD to do really well while working with H264/265. You can check what GPU is being used via Activity Monitor > CMD + 4 while ffmpeg is doing it's thing.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 
Posted by: mac_editor

@oliverb Not sure if I can do anything about that myself. I checked wayback machine in case there was an archive, but it wasn't saved. Maybe admins could help. I would expect the Intel UHD to do really well while working with H264/265. You can check what GPU is being used via Activity Monitor > CMD + 4 while ffmpeg is doing it's thing.

Don't worry about that, I reconstructed some parts by myself. For the question about the Intel iGPU: My example is CPU only.
This should do it with the Intel UHD Graphics (QuickSync):

ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v hevc_qsv -quality quality -usage transcoding -b:v 3M -bufsize 16M -maxrate 6M outputhevcQuickSync.mp4

As to be expected I get an error under windows as my iGPU is switched off by apple firmware on bootcamp (we all know those problems). I will try to find a way or use my 13-inch MPB 2015.

Remark: As you can see with my next post (and was suspected) the Intel iGPU performs very well at this task. So why should Apple switch off the iGPU in Bootcamp?

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

@mac_editor: I got some results for Intel GPU, in this case the Intel Iris 6100 on a 13-inch MacBookPro 2015:

  h264 hevc
Geforce GTX 1080 Ti 241 (x2) 225 (x2)
Intel Iris 6100 Graphics 161 -
Intel i7-5557U 2core 32 13
Radeon R9 290* 44 -

 

Unfortunately the hevc encoding did not work with QuickSync (because Broadwell  doesn't support it), but the FPS for h264 encoding is really very good.
*I added the encoding performance of an AMD Radeon R9 290 (on a 15-inch MBp2018). This shows how strong the Intel GPU is terms of encoding.

This post was modified 11 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

Note: The GTX1080Ti can encode two separate videos at once at almost full speed (FPS). It's only a little bit slower because the CPU has to do double work now.

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
Blakeanator
(@blakeanator)
Active Member
Joined: 11 months ago
 

Not sure what I did wrong but I got back this.

[hevc_amf @ 0000024eee4dadc0] DLL amfrt64.dll failed to open
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

I used this command:

ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v hevc_amf -quality quality -b:v 3M -bufsize 16M -maxrate 6M outputhevcAMD.mp4

I also tried adding the "-gops_per_idr 1" to the command. Please advise 🙂 Using Vega 56 eGPU.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

Did you uninstall the AMD Radeon Pro drivers? This may an explanation that it won't work. I have mine installed at this moment, so I can't check right now.

Can you try with codec "h264_amf", if this works?

Note: The "-gops_per_idr 1" command has nothing to do with the error.

This post was modified 11 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

I have riddle, because with the dGPU Radeon Pro 560X:

frame= 901 fps=137 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=4.64x

while with the eGPU Radeon RX 580:

frame= 901 fps= 46 q=-0.0 Lsize= 11934kB time=00:00:30.50 bitrate=3204.6kbits/s speed=1.57x

As to be expected the GPU-performance monitor show 100% when encoding with the Radeon Pro 560 X, while only 25% with the Radeon RX 580. Does anybody has an idea, why it is not using the complete ressources? @mac_editor, what do you think?

Command is identical:
ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v hevc_amf -c:a copy -quality quality -b:v 3M -bufsize 16M -maxrate 6M outputhevcAMD.mp4

This post was modified 10 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@oliverb Interesting. Assuming the GPU was utilized to it's fullest, we would see about 46*4 = 184 FPS assuming linearity, which is 35% better than the RP560X. Not sure why there isn't full utilization. I haven't used ffmpeg on Windows as yet. Consider a different codec: h264_amf and see what happens. A good comparison point would be an RX 580 installed in PC running this test, to see if we could isolate this to an eGPU-only problem. If the PC shows similar symptoms there's something else going on with drivers/config.

Also consider adding Handbrake 1.2.0 to the test suite (since it uses ffmpeg and you have UI - more can test).

This post was modified 10 months ago

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 
Posted by: mac_editor

@oliverb Interesting. Assuming the GPU was utilized to it's fullest, we would see about 46*4 = 184 FPS assuming linearity, which is 35% better than the RP560X. Not sure why there isn't full utilization. I haven't used ffmpeg on Windows as yet. Consider a different codec: h264_amf and see what happens. A good comparison point would be an RX 580 installed in PC running this test, to see if we could isolate this to an eGPU-only problem. If the PC shows similar symptoms there's something else going on with drivers/config.

The 25% is only a guess, could be 30% as well. Good advice for trying "h264_codec"!
I have done this already with the Radeon RX 580 and now with the Radeon Pro 560X. The result is another riddle:

Radeon RX 580 (h264_amf):
frame= 901 fps= 46 q=-0.0 Lsize= 10103kB time=00:00:30.50 bitrate=2713.1kbits/s speed=1.57x

This is exactly the same as with (hevc_amf). But now comes the surprise:

Radeon Pro 560X (h264_amf):
frame= 901 fps= 41 q=-0.0 Lsize= 11431kB time=00:00:30.50 bitrate=3069.5kbits/s speed= 1.4x

The h264 results alone make perfectly sense, but why is the hevc_amf result so much higher for dGPU Radeon Pro 560X? I wouldn't expect hevc (h265) to be better than h264 under no circumstances.

Note: This is very important for me, because I am tending to switch from nVidia to AMD and the hevc encoding is a central feature for me.

This post was modified 10 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@oliverb You mentioned the GPU-performance monitor so I expected numbers to be accurate. Could you also try this test on non-T2 Mac and see what performance you get with the RX580 for hevc_amf?

Also, you can solve your dilemma of switching between AMD and NVIDIA by running the eGPUs simultaneously. I was able to do this on this Mac on bootcamp.

This post was modified 10 months ago

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

@mac_editor,
I can deliver exacty number, when I have installed the RX580 again (now running on the GTX1080Ti), which I will do next.

The RX580 results actually come from an non-T2 MacBook (13-inch 2015). I have only one enclosure at the moment, so I will have to change the GPU.
If I remember correctly, once, after I uninstalled the Radeon Pro 560X drivers and later reinstalled them, the performance was low, too.
It's a good call if the T2 could be involved.

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

I changed the GPU from nVidia to AMD. This is a matter of minutes. I have not uninstalled the Bootcamp drivers, which yellowbangs the RP560 to Error 43:

RadeonPro560XError43

The result of hvec_amf encode, though, is very bad:
frame= 901 fps= 17 q=-0.0 Lsize= 11934kB time=00:00:30.50 bitrate=3204.6kbits/s speed=0.569x

The GPU usage is 14%:

GPUUsageEncoding

(ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v hevc_amf -c:a copy -quality quality -b:v 3M -bufsize 16M -maxrate 6M outputhevcAMD.mp4)

But, when I use the switch "-hwaccel dxva2" for decoding, the result and the GPU usage get higher:
frame= 901 fps= 48 q=-0.0 Lsize= 11934kB time=00:00:30.50 bitrate=3204.6kbits/s speed=1.64x

GPUUsageEncoding2

It was not necessary to use this switch before with Radeon Pro 560X or with nVidia cards. On the 13-inch MBP 2015 it isn't necessary either, even slows things down there.

The number suggests that Radeon RX 580 should make about 130-140 FPS when 100% used. That is the same as Radeon Pro 560X and to be expected. The Pascal nVidia chips have all the same performance, too, doesn't matter GTX 1050 or GTX 1080Ti, only that some have two encoding chips for two threads.

This post was modified 10 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

Interesting fact: Uninstalling the Apple drivers for the Radeon Pro 560X and installing the drivers from bootcampdrivers.com let the Radeon Pro 560X behave more like the Radeon RX 580. Those are the numbers:

frame= 901 fps= 14 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=0.466

frame= 901 fps= 32 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=1.08x (using "-hwaccel dxva2")

This is, of course, much worse than with the apple drivers:

frame= 901 fps=137 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=4.64x

Interesting: The resulting video is exactly the same each time, only needed time and GPU load ist different.

@mac_editor Do you have an idea, how this is possible? Maybe there is a switch missing for the non-apple drivers?

Do make things even more strange: The FPS for the Radeon RX580 with bootcamp drivers instead of standard drivers are even less:
frame= 901 fps=9.2 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=0.312x
frame= 901 fps= 21 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=0.716x (-hwaccel dxva2)

Of course, GPU-Load is only about 8% for the first case

(ffmpeg.exe -i file_example_MP4_1920_18MG.mp4 -c:v hevc_amf -c:a copy -quality quality -b:v 3M -bufsize 16M -maxrate 6M outputhevcAMD.mp4)

This post was modified 10 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
may
 may
(@may)
Eminent Member
Joined: 3 years ago
 

Can you post benchmarks with base 2018 15" MBP and h264_videotoolbox vs h265_videotoolbox without egpu vs with egpu? Did drivers improve over the time in macOS?
Thanks a lot.

This post was modified 9 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 
Posted by: may

Can you post benchmarks with base 2018 15" MBP and h264_videotoolbox vs h265_videotoolbox without egpu vs with egpu? Did drivers improve over the time in macOS?
Thanks a lot.

@may, the FPS for the videotoolbox codecs don't change with eGPU, because it is apparently not using it. I am still wondering what is actually encoding the h265 for videotoolbox, because there is nothing to be seen on the GPU History. I think it's a bug and should be the Intel UHD Graphics 630, like for the h264_videotoolbox codec. Anyway the Intel GPU is quite powerful in this task.

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@oliverb For the 2018 MBPs, the T2 chip does HEVC encoding using the videotoolbox API in macOS. Hence no activity in GPU History.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 
Posted by: mac_editor

@oliverb For the 2018 MBPs, the T2 chip does HEVC encoding using the videotoolbox API in macOS. Hence no activity in GPU History.

@mac_editor, true and I have to say, the quality is not very convincing. NVENC and AMF do better jobs (at same Bitrate, only under Windows possible). h264 of Intel GPU looks better, too. I don't understand why they don't let the Intel GPU do the job?!

This post was modified 9 months ago

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
may
 may
(@may)
Eminent Member
Joined: 3 years ago
 

How about transcoding to standard ProRes 422 with Compressor? Is the Compressor also not benefiting from egpu? Can someone test and provide some benchmarks?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

Thanks to the help of the wise guys @mac_editor, @itsage and @chris_moran big leap has been made for AMD cards in Bootcamp. But, there is still one problem with the BootcampDrivers and the Encoding. They use only a small part of the GPU Power for HEVC encoding. While the Apple AMD Drivers can do 100% of GPU and 137FPS, which is really great, it's only 8% and 9.2FPS with Bootcamp Drivers:

EncodingIssue

Does anyone know about this issue?

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
may
 may
(@may)
Eminent Member
Joined: 3 years ago
 

Is this with hevc_amf? Maybe it is a bug of hevc_amf... What do you think of this?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 
Posted by: may

Is this with hevc_amf? Maybe it is a bug of hevc_amf... What do you think of this?

Yes, it's hevc_amf. And it's running very good (137 FPS, 100%) with the Apple Radeon drivers. But it only uses a small percentage of GPU with other drivers (Bootcampdrivers, 8%) or normal Radeon Adrenalin Drivers with a RX 580 (35%).

I am not sure what to think of it. I have no explanation and I would like to have full GPU utilization.

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
may
 may
(@may)
Eminent Member
Joined: 3 years ago
 

Could you provide exact version of Bootcampdrivers and normal Radeon Adrenalin Drivers version? Are you on Win 10? Maybe you want to use h265_vaapi to unlock the full potential.
https://trac.ffmpeg.org/wiki/Hardware/VAAPI

In ffmpeg, a named global device can be created using the -init_hw_device option:

ffmpeg -init_hw_device vaapi=/dev/dri/renderD128
try this and report results:
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.mp4 -vf 'scale_vaapi=format=p010' -c:v hevc_vaapi -profile 2 -b:v 15M output.mp4
This post was modified 8 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

@may, it's great to talk to someone who is an expert 🙂

1) Bootcamp drivers are the newes, Version 19.2.2. The behavior didn't change. Adrelanin Driver were 19.1.1-jan10. At this point, I am using only bootcamp drivers, because they provider best support for my AMD dGPU Radeon Pro 560X and my AMD eGPUs RX570 or RX580.

2) Windows 10 Build 1803.

3) Thanks for the tip. Unfortunately it yields an error:

CantCreateHevcVaapi

PS:
It might be important to know, that for my AMD dGPU Radeon Pro 560X the utilization is 14% and the Performance ist 15 FPS (with Bootcampdrivers). So it's different to the RX570. Of course, if used 100%, the performance would be identical.

frame= 901 fps= 15 q=-0.0 Lsize= 11998kB time=00:00:30.50 bitrate=3221.9kbits/s speed=0.493x

RP560x Encoding

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

Update... I just saw @mac_editor's note that Handbrake now uses ffmpeg and they do the job:

93.39 FPS is really an ok performance. So it's something with my parameters.

HandbrakeJob

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
may
 may
(@may)
Eminent Member
Joined: 3 years ago
 

Is it 93.39 fps with RX 580 and dGPU Radeon Pro 560X  and 100% gpus usage? What drivers are you currently using? Could you provide screenshot for the community from transcoding at Control panel/Resource Monitor as well?

Dont you have more fps with same settings, same dGPU and eGPU and Handbrake on macOS?

This post was modified 8 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 
Posted by: may

Is it 93.39 fps with RX 580 and dGPU Radeon Pro 560X  and 100% gpus usage? Could you provide screenshot from Control panel/Resource Monitor as well?

Dont you have more fps with same settings, same dGPU and eGPU and Handbrake on macOS?

I got 93,39 FPS with dGPU Radeon Pro 560X and over 70% gpu usage. I will provide more numbers and screenshots tomorrow (it's very late now here)

I am not sure if Handbrake can do VCE (AMF) on MacOsX. The framework shouldn't be available in MacOSX unless there has been a change lately. Neither is nVidia HVENC, this is really a pity.

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 

Here is a screenhot from HEVC encoding with the Radeon Pro 560X of a longer video. We see 63% percentage of GPU usage and 76 FPS, which is much better than the 8% if done manually.

Handbrake 63percent

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
may
 may
(@may)
Eminent Member
Joined: 3 years ago
 

So I dont know about quality but HEVC combined with Intel Quicksync technology with right parameters should be the best option if you are on Kaby Lake or later...

If you have a Kaby Lake CPU, you can encode with HEVC using hevc_qsv:

ffmpeg.exe -i file_example_MP4_1920_18MG.mp4  -c:v hevc_qsv -load_plugin hevc_hw -preset:v faster -c:a copy -b:v 3M out.qsv.mp4
or maybe there is an option in Handbrake with H265 and Quicksync. Have you already tried this? How much fps did you get? 

Is it worth for you? How about GPU usage and FPS in that case?

This post was modified 8 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
OliverB
(@oliverb)
Noble Member
Joined: 1 year ago
 
Posted by: may

So I dont know about quality but HEVC combined with Intel Quicksync technology with right parameters should be the best option if you are on Kaby Lake or later...

If you have a Kaby Lake CPU, you can encode with HEVC using hevc_qsv:

ffmpeg.exe -i file_example_MP4_1920_18MG.mp4  -c:v hevc_qsv -load_plugin hevc_hw -preset:v faster -c:a copy -b:v 3M out.qsv.mp4
or maybe there is an option in Handbrake with H265 and Quicksync. Have you already tried this? How much fps did you get? 

Is it worth for you? How about GPU usage and FPS in that case?

Intel Quicksync won't work for my 15-inc MacBookPro 2018, as in Bootcamp this notebook is forced to use the AMD dGPU and the Intel iGPU is switched off by hardware. There is nothing you can do about it. (Actually this is one of the main issues with eGPU).

It's a pity, because I know about the strength of Intel QSV.

2018 15" MBP & 2015 13" MBP connected to RTX2080Ti GTX1080Ti GTX1080 Vega56 RX580 R9-290 GTX680


ReplyQuote
limozeen
(@limozeen)
Active Member
Joined: 2 years ago
 

I don't know if this is helpful for you, but I was curious about this myself so I tried the following transcodings of your file using Handbrake 1.2.2, all in macOS 10.14.3. My computer is a maxed out 2018 MacBook Pro (2.9 Ghz Core i9, 32 GB RAM, 4 TB SSD, 560X dGPU, Intel UHD 630) + Vega 64 eGPU. The eGPU appeared to do absolutely nothing in each encode, but here are my results:

  • H264 ---------------------------  71 FPS   --------  22.4 MB file --- Full CPU usage, started cool
  • H264 Videotoolbox ----------  169 FPS --------  21.8 MB file --- Used Intel 630
  • H265 --------------------------   30 FPS  --------  22.4 MB file --- Full CPU usage, started cool
  • H265 Videotoolbox ---------   157 FPS  --------  3(!) MB file  --- High CPU usage, a little 560X usage

Oh, wait. I didn't have "Prefer External GPU" selected. Let's see if it makes any difference:

  • H264 ---------------------------  95 FPS   --------  3.4 MB file --- Full CPU usage, started cool, never reached 100 degrees so cpu frequency stayed high throughout
  • H264 Videotoolbox ----------  158 FPS --------  21.8 MB file --- Used Intel 630, didn't touch the Vega 64
  • H265 --------------------------   31 FPS  --------  22.4 MB file --- Full CPU usage, started cool, hit 100 degrees fairly quickly
  • H265 Videotoolbox ---------   157 FPS  --------  3 MB file  --- High CPU usage, low 560X usage [memory clock briefly spikes in iStat; nothing changes in Activity Monitor; no eGPU usage]

Man, I would love to get that Vega 64 working on video transcoding! I also have a maxed out 2017 MacBook Pro I can try this on another time, if you're interested. Am I understanding the above to be saying that eGPU is working in bootcamp? Kinda makes me want to install Windows now...

Cheers.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
may
 may
(@may)
Eminent Member
Joined: 3 years ago
 

Hi
How about ProRes 422 Encoding with Compressor with "Prefer External GPU" selected. Does it make any difference? Is it using eGPU ?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote