# 4k HW Transcoding mit Hyper-V

**URL:** <https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943>\
**Category:** Deutsch - German\
**Tags:** server-windows\
**Created:** [January 7, 2023, 8:27pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943 "2023-01-07T20:27:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![paedi\_ch](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@paedi\_ch](https://forums.plex.tv/u/paedi_ch)\
**Post date:** [January 7, 2023, 8:27pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943/1 "2023-01-07T20:27:05Z")

</div>

Ich habe folgendes Szenario ausgeführt :

In Hyper V wurde per Script eine GPU NVIDIA Quadro P2000 durchgereicht für 4k transcoding auf einem HPE PRO Liant 380 (G8)

Jedoch leider buffert das System nach kurzer Zeit, egal wie viele 4k Streams ausgeführt werden. Wird die HW Beschleunigung deaktiviert, läuft das Transcoden ohne weitere Probleme schlägt aber jedoch extrem auf die CPU.

Gibt es eine mögliche Fehlerquelle die als erstes in Frage kommt ?

Treiber sind aktuell auf der PLEX-VM und auf dem Host installiert worden für die Durchreichung welche durch DDA ausgeführt wird :

Das verwendete Script für DDA

#Configure the VM for a Discrete Device Assignment  
$vm = “Plex-VM”  
#Set automatic stop action to TurnOff  
Set-VM -Name $vm -AutomaticStopAction TurnOff  
#Enable Write-Combining on the CPU  
Set-VM -GuestControlledCacheTypes $true -VMName $vm  
#Configure 32 bit MMIO space  
Set-VM -LowMemoryMappedIoSpace 3Gb -VMName $vm  
#Configure Greater than 32 bit MMIO space  
Set-VM -HighMemoryMappedIoSpace 33280Mb -VMName $vm

#Find the Location Path and disable the Device  
#Enumerate all PNP Devices on the system  
$pnpdevs = Get-PnpDevice -presentOnly  
#Select only those devices that are Display devices manufactured by NVIDIA  
$gpudevs = Get-PnpDevice -presentOnly |where-object {$_.Class -like “Display” -and $_.Manufacturer -like “NVIDIA”}  
#Select the location path of the first device that’s available to be dismounted by the host.  
$locationPath = ($gpudevs | Get-PnpDeviceProperty DEVPKEY\_Device\_LocationPaths).data[0]  
#Disable the PNP Device  
Disable-PnpDevice -InstanceId $gpudevs[0].InstanceId

#Dismount the Device from the Host  
Dismount-VMHostAssignableDevice -force -LocationPath $locationPath

#Assign the device to the guest VM.  
Add-VMAssignableDevice -LocationPath $locationPath -VMName $vm

Vielen Dank schonmal im voraus !

Einen schönen Abend und freundliche Grüsse

---

<div class="post-metadata">

**Author:** ![Matt91](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Matt91](https://forums.plex.tv/u/Matt91)\
**Post date:** [January 9, 2023, 7:50pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943/2 "2023-01-09T19:50:13Z")

</div>

Unter Windows wird keine Tone Mapping unterstützt per Hardware. Deaktiviere Tone Mapping, dann geht es; hatte das selbe Problem.

---

<div class="post-metadata">

**Author:** ![paedi\_ch](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@paedi\_ch](https://forums.plex.tv/u/paedi_ch)\
**Post date:** [January 10, 2023, 9:06pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943/3 "2023-01-10T21:06:36Z")

</div>

Vieln Dank für deine Antwort  
Das Tone Mapping habe ich bereits ausgeschaltet. Funktioniert leider auch nicht.  
Intressant ist das über die CPU ein 4K Film reibungslos funktoiniert jedoch über die GPU nicht obwohl die Auslastung von allen Komponenten nicht annähernd an die Grenzen kommt.

---

<div class="post-metadata">

**Author:** ![Matt91](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Matt91](https://forums.plex.tv/u/Matt91)\
**Post date:** [January 10, 2023, 9:26pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943/4 "2023-01-10T21:26:13Z")

</div>

Ja das war bei mir genauso, da lag es eben am Tone Mapping… Den Grafiktreiber hast du manuell installiert auf der neuesten Version?  
Ich kann dir generell aber nur zu Linux raten… ich bin auch umgestiegen von Windows zu Ubuntu, und da sind Welten unterschiede.

---

<div class="post-metadata">

**Author:** ![paedi\_ch](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@paedi\_ch](https://forums.plex.tv/u/paedi_ch)\
**Post date:** [January 11, 2023, 10:28pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943/5 "2023-01-11T22:28:54Z")

</div>

Ahh super danke  
Dann läuft bei dir eine 4k hw Transcoding?  
Wenn das so ist werde ich das in den kommenden Tagen ausprobieren.  
Vielen Dank für deine Hilfe

---

<div class="post-metadata">

**Author:** ![Matt91](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Matt91](https://forums.plex.tv/u/Matt91)\
**Post date:** [January 15, 2023, 2:37pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943/6 "2023-01-15T14:37:02Z")

</div>

Ja unter Ubuntu läuft das bei mir. Ich schaffe ca. 6-7 Streams von 4K (70Mbit) auf 720p gleichzeitig.  
Seit ich von Windows zu Linux gewechselt habe läuft generell alles viel flüssiger usw.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 15, 2023, 2:37pm UTC](https://forums.plex.tv/t/4k-hw-transcoding-mit-hyper-v/825943/7 "2023-04-15T14:37:09Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
