Default How to record the phone using slimport?

I have a nexus 4 with slimport HDMI

And I want to know how to capture the screen with the device sounds?

PC is available too

Sent from my Nexus 4 using XDA Premium 4 mobile app