Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPi] RPi4 video H.264 & H.265 (HEVC) glitches #553

Closed
SupervisedThinking opened this issue Mar 21, 2021 · 8 comments
Closed

[RPi] RPi4 video H.264 & H.265 (HEVC) glitches #553

SupervisedThinking opened this issue Mar 21, 2021 · 8 comments

Comments

@SupervisedThinking
Copy link

SupervisedThinking commented Mar 21, 2021

As follow up to #409 (comment) I've created some RPi4 testbuilds based on latest LibreELEC 10.0beta builds.

Could you have a look at the logfile? I have to talk to the RPi4 devs if there are any known quirks but at least h.264 should be fine 🤔 But maybe you can have a look at the FFmpeg patches for RPi & make the work as you did for RK.

Forum link:

moonlight-qt glitches

H.264 log:

moonlight-qt.log

HEVC:

hevc

Logfile:

################################################################################
# ... output of cat /var/log/moonlight-qt.log
# LibreELEC release: RPi4.arm-RR-20210321-efe15a3
# 
################################################################################
00:00:00 - SDL Info (0): Compiled with SDL 2.0.15
00:00:00 - SDL Info (0): Running with SDL 2.0.15
00:00:00 - Qt Info: No translation available for  "C"
00:00:00 - Qt Info: No existing credentials found
00:00:00 - Qt Info: Wrote new identity credentials to settings
00:00:02 - Qt Warning: qrc:/gui/main.qml:12:1: QML ApplicationWindow: ToolTip must be attached to an Item
00:00:02 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt"
00:00:02 - SDL Warn (0): 0 new mappings found in gamecontrollerdb.txt. Is it corrupt?
00:00:02 - SDL Info (0): V-sync enabled
00:00:02 - SDL Info (0): Sharing DRM FD with SDL
00:00:02 - SDL Info (0): DRM backend supports exporting EGLImage
00:00:02 - SDL Info (0): Using DRM renderer
00:00:02 - FFmpeg: [h264_mp4toannexb @ 0x4be450] The input looks like it is Annex B already
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] Format drm_prime chosen by get_format().
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] probing device /dev/video12
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] driver 'bcm2835-codec' on card 'bcm2835-codec-isp' in mplane mode
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] v4l2 output format not supported
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] probing device /dev/video11
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] driver 'bcm2835-codec' on card 'bcm2835-codec-encode' in mplane mode
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] v4l2 output format not supported
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] probing device /dev/video10
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] Using device /dev/video10
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] requesting formats: output=H264 capture=NV12
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] output: H264 16 buffers initialized: 1920x1080, sizeimage 00786432, bytesperline 00000000
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] output set status 1074026002 (ON) OK
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- output VIDIOC_QBUF: index 0, count=1
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 0, count=1
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 1, count=2
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 2, count=3
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 3, count=4
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 4, count=5
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 5, count=6
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 6, count=7
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 7, count=8
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 8, count=9
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 9, count=10
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 10, count=11
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 11, count=12
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 12, count=13
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 13, count=14
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 14, count=15
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 15, count=16
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 16, count=17
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 17, count=18
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 18, count=19
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 19, count=20
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] capture: NV12 20 buffers initialized: 1920x1088, sizeimage 03133440, bytesperline 00001920
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] capture set status 1074026002 (ON) OK
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] capture changed (1920x1088) -> (1280x720)
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] reinit context
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] capture set status 1074026003 (OFF) OK
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] waiting for user to release AVBufferRefs
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- output VIDIOC_QBUF: index 0, count=1
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 0, count=21
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 1, count=22
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 2, count=23
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 3, count=24
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 4, count=25
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 5, count=26
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 6, count=27
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 7, count=28
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 8, count=29
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 9, count=30
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 10, count=31
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 11, count=32
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 12, count=33
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 13, count=34
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 14, count=35
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 15, count=36
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 16, count=37
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 17, count=38
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 18, count=39
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 19, count=40
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] capture: NV12 20 buffers initialized: 1280x0720, sizeimage 01382400, bytesperline 00001280
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] capture set status 1074026002 (ON) OK
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- output VIDIOC_QBUF: index 0, count=1
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] --- capture VIDIOC_QBUF: index 0, count=40
00:00:02 - SDL Info (0): Chose DrmRenderer for codec h264_v4l2m2m due to preferred pixel format: 0xb6
00:00:02 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] V4L2 Codec end
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] output set status 1074026003 (OFF) OK
00:00:02 - FFmpeg: [h264_v4l2m2m @ 0x4dfac0] capture set status 1074026003 (OFF) OK
00:00:02 - FFmpeg: V4L2 Context destroyed
00:00:03 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt"
00:00:03 - SDL Warn (0): 0 new mappings found in gamecontrollerdb.txt. Is it corrupt?
00:00:03 - SDL Info (0): Captured Qt EGLFS DRM master fd (legacy): 5
00:00:03 - Qt Debug: Current Moonlight version: "3.1.0"
00:00:04 - Qt Info: Downloaded updated gamepad mappings
00:00:04 - Qt Info: Discovered mDNS host: "DESKTOP.local."
00:00:04 - Qt Info: Resolved "DESKTOP.local." to QHostAddress("192.168.1.87")
00:00:05 - Qt Info: Processing new PC at "192.168.1.87" from mDNS QHostAddress("")
00:00:05 - Qt Info: Executing request: "http://192.168.1.87:47989/serverinfo?uniqueid=0123456789ABCDEF&uuid=f75f391d1cfc4ea78e29d098f310a066"
00:00:23 - Qt Info: Pairing with server generation: 7
00:00:23 - Qt Info: Executing request: "http://192.168.1.87:47989/pair?uniqueid=0123456789ABCDEF&uuid=3f052cd7cb2244a78c8965fc540bac7e&devicename=roth&updateState=1&phrase=getservercert&salt=1f77b644bc95e83ff74c7b00c4e0e289&clientcert=2d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943767a43434161656741774942416749424144414e42676b71686b694739773042415173464144416a4d53457748775944565151444442684f566b6c450a53554567523246745a564e30636d56686253424462476c6c626e51774868634e4d6a45774d7a49784d5467314e7a4d305768634e4e4445774d7a45324d5467310a4e7a4d30576a416a4d53457748775944565151444442684f566b6c4553554567523246745a564e30636d56686253424462476c6c626e5177676745694d4130470a4353714753496233445145424151554141344942447741776767454b416f49424151444a5070663255354134522b6a6a4838444d4f463443756c7978614c77340a395a7a494d704f366a79557a58435753447a474f30444e7a6c545444396734365337514737776b567a77596230427579707345577234524d495853646130704d0a387a43507a7378444b6a794733516645672f744d2b5a36635959414951626e386b554842327a4e656d393141466c356b59706a2b347739436741624d656e744d0a7535616255596b7955736e693242706b71516b59734c6669784861665551466e4b5779757175632b324a585967762f4562726a307a4c4a4d666b6135594256310a4770613655623141352f374b74745355536642776d4531593749455a536f6338494141476f32753679766d65537676512b74496e4e5544362f584d48325561520a74363456615039627832394a4375576c4b414847566141483170535638356d43494e6f4a786e6669535249637251452b355a36475766617641674d42414145770a4451594a4b6f5a496876634e4151454c4251414467674542414435697559587647396358314b694174326d4f487242666976374b63707563716f4e78476835760a522f50654b52543748654f534f732f694f56586453312b5151747a5259344d624336313778555367366570505142756a5355636a584b7351456c6268654b30690a4a4867705462744f584d734678636b4e356d6362616a2b6f6a4a52695946504650596c70416756686e6b5a395a7851786f657133624153624357513832476d530a744d375a4172487163305a3837422b4e717252646e3130394a657a647a52674b7850706f2b7650737949487a5a6236622f7a386f6c5465532b6e714b7667474b0a6b5a7056754b616870426434566735767230786c38756f6e69494c4f476e782b564d425a7833716457306f2b4273476452416564776f306738774b4c584632390a394c4b3046573251773134784a37466d306931656451615554715551516b33527258354363385266336173324350633d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a"
00:00:30 - Qt Info: Executing request: "http://192.168.1.87:47989/pair?uniqueid=0123456789ABCDEF&uuid=3d10131bd8ea4243a169cf96cb4d7ca5&devicename=roth&updateState=1&clientchallenge=ba3c6aade958e072fd0c0ed19aed68a3"
00:00:30 - Qt Info: Executing request: "http://192.168.1.87:47989/pair?uniqueid=0123456789ABCDEF&uuid=85be006db9ef42a48c666807ec20877c&devicename=roth&updateState=1&serverchallengeresp=b7c050e9cc011ccbb51ddcf358d479ca212da5bb541aa7b859b6997a3ff855fd"
00:00:31 - Qt Critical: Incorrect PIN
00:00:31 - Qt Info: Executing request: "http://192.168.1.87:47989/unpair?uniqueid=0123456789ABCDEF&uuid=39400e46bc5a4511bd2f1a150e301e2c"
00:00:35 - Qt Info: Pairing with server generation: 7
00:00:35 - Qt Info: Executing request: "http://192.168.1.87:47989/pair?uniqueid=0123456789ABCDEF&uuid=ca233ccc163146409df526054a077068&devicename=roth&updateState=1&phrase=getservercert&salt=adae6cc1f0cdf8e44516a6b2724745ce&clientcert=2d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943767a43434161656741774942416749424144414e42676b71686b694739773042415173464144416a4d53457748775944565151444442684f566b6c450a53554567523246745a564e30636d56686253424462476c6c626e51774868634e4d6a45774d7a49784d5467314e7a4d305768634e4e4445774d7a45324d5467310a4e7a4d30576a416a4d53457748775944565151444442684f566b6c4553554567523246745a564e30636d56686253424462476c6c626e5177676745694d4130470a4353714753496233445145424151554141344942447741776767454b416f49424151444a5070663255354134522b6a6a4838444d4f463443756c7978614c77340a395a7a494d704f366a79557a58435753447a474f30444e7a6c545444396734365337514737776b567a77596230427579707345577234524d495853646130704d0a387a43507a7378444b6a794733516645672f744d2b5a36635959414951626e386b554842327a4e656d393141466c356b59706a2b347739436741624d656e744d0a7535616255596b7955736e693242706b71516b59734c6669784861665551466e4b5779757175632b324a585967762f4562726a307a4c4a4d666b6135594256310a4770613655623141352f374b74745355536642776d4531593749455a536f6338494141476f32753679766d65537676512b74496e4e5544362f584d48325561520a74363456615039627832394a4375576c4b414847566141483170535638356d43494e6f4a786e6669535249637251452b355a36475766617641674d42414145770a4451594a4b6f5a496876634e4151454c4251414467674542414435697559587647396358314b694174326d4f487242666976374b63707563716f4e78476835760a522f50654b52543748654f534f732f694f56586453312b5151747a5259344d624336313778555367366570505142756a5355636a584b7351456c6268654b30690a4a4867705462744f584d734678636b4e356d6362616a2b6f6a4a52695946504650596c70416756686e6b5a395a7851786f657133624153624357513832476d530a744d375a4172487163305a3837422b4e717252646e3130394a657a647a52674b7850706f2b7650737949487a5a6236622f7a386f6c5465532b6e714b7667474b0a6b5a7056754b616870426434566735767230786c38756f6e69494c4f476e782b564d425a7833716457306f2b4273476452416564776f306738774b4c584632390a394c4b3046573251773134784a37466d306931656451615554715551516b33527258354363385266336173324350633d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a"
00:00:42 - Qt Info: Executing request: "http://192.168.1.87:47989/pair?uniqueid=0123456789ABCDEF&uuid=a3f219c5d38943e187ae5aa8d73f8936&devicename=roth&updateState=1&clientchallenge=84bc326352f9f39e84c889de44d5f5c3"
00:00:42 - Qt Info: Executing request: "http://192.168.1.87:47989/pair?uniqueid=0123456789ABCDEF&uuid=c437177a1c274562acab264526be29f0&devicename=roth&updateState=1&serverchallengeresp=3501063b02a0ea3b273130b2e0bf5e972c8e5b7b942840acde6280f81a2a5196"
00:00:42 - Qt Info: Executing request: "http://192.168.1.87:47989/pair?uniqueid=0123456789ABCDEF&uuid=d10644f9e6514f409b20930dfcac936c&devicename=roth&updateState=1&clientpairingsecret=df65787f7c7134050c8a971aec44cc5fbebd0c9e9ae6e9029781e45e8bded0dbd368b09171ee1abceeac59987a580b2f0ba9b75de08c9fc814e01bbeb6f59915619752a856c555b6e09c28b67ce2d902871a5cdeb4071ed992d9a27357823788f3c404d2b38709e6225bf4f2598bdcc1b0055938b5e6c9714c5c9de08923a6e26d7c169e31ea5abd37f872809ec7dd404a4c6b476da38a07b0f4e134d70a8095d7580719a56da817104543345c6258e353a13d50991f298e98b6c703e64de85c37f338ede6114f4997a0476c1ad687344e972ba0379d8cef23a6ddf0d9a9d9ad85b82309a3c403a2d1077958c1c2a080ded16a08b2393734206a42f48e5b4e649b4530fb9a5ac719542e8abc5c739740"
00:00:42 - Qt Info: Executing request: "https://192.168.1.87:47984/pair?uniqueid=0123456789ABCDEF&uuid=182b64c5a877473783928a7aaf2f539d&devicename=roth&updateState=1&phrase=pairchallenge"
00:00:46 - Qt Info: Executing request: "https://192.168.1.87:47984/appasset?uniqueid=0123456789ABCDEF&uuid=f7118f2876284c5c9195ea6796dc8938&appid=108249552&AssetType=2&AssetIdx=0"
00:00:46 - Qt Info: Executing request: "https://192.168.1.87:47984/appasset?uniqueid=0123456789ABCDEF&uuid=b2bb797af85640628bebc41ecfbb8e2e&appid=7940336&AssetType=2&AssetIdx=0"
00:00:46 - Qt Info: Executing request: "https://192.168.1.87:47984/appasset?uniqueid=0123456789ABCDEF&uuid=1fdc8d926ed34278a96c469d5d46ce9b&appid=4518384&AssetType=2&AssetIdx=0"
00:00:49 - Qt Info: Found "ModeSeven.ttf" at ":/data/ModeSeven.ttf"
00:00:49 - Qt Info: Server GPU: "GeForce GTX 1050"
00:00:49 - Qt Info: Server GFE version: "3.21.0.36"
00:00:49 - SDL Info (0): Video bitrate: 10000 kbps
00:00:49 - SDL Info (0): Desired audio buffer: 240 samples (960 bytes)
00:00:49 - SDL Info (0): Obtained audio buffer: 240 samples (960 bytes)
00:00:49 - SDL Info (0): Audio channel count: 2
00:00:49 - SDL Info (0): Audio channel mask: 3
00:00:49 - SDL Info (0): V-sync enabled
00:00:49 - SDL Info (0): Sharing DRM FD with SDL
00:00:49 - SDL Info (0): DRM backend supports exporting EGLImage
00:00:49 - SDL Info (0): Using DRM renderer
00:00:49 - FFmpeg: [hevc @ 0xb93410] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
00:00:49 - FFmpeg: [hevc @ 0xb93410] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
00:00:49 - FFmpeg: [hevc @ 0xb93410] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
00:00:49 - FFmpeg: [hevc @ 0xb93410] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:49 - FFmpeg: [hevc @ 0xb93410] Decoding VPS
00:00:49 - FFmpeg: [hevc @ 0xb93410] Main profile bitstream
00:00:49 - FFmpeg: [hevc @ 0xb93410] Decoding SPS
00:00:49 - FFmpeg: [hevc @ 0xb93410] Main profile bitstream
00:00:49 - FFmpeg: [hevc @ 0xb93410] Decoding VUI
00:00:49 - FFmpeg: [hevc @ 0xb93410] Decoding PPS
00:00:49 - FFmpeg: [hevc @ 0xb93410] Format drm_prime chosen by get_format().
00:00:49 - FFmpeg: [hevc @ 0xb93410] Format drm_prime requires hwaccel initialisation.
00:00:49 - FFmpeg: [hevc @ 0xb93410] ff_v4l2_request_init: avctx=0xb93410 hw_device_ctx=0x56ea70 hw_frames_ctx=(nil)
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_probe_media_device: avctx=0xb93410 ctx=0xc964a0 path=/dev/media1 driver=rpivid
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_probe_video_device: avctx=0xb93410 ctx=0xc964a0 path=/dev/video19 capabilities=69238784
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_init_context: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] ff_v4l2_request_frame_params: avctx=0xb93410 ctx=0xc964a0 hw_frames_ctx=0xb2ad10 hwfc=0xb73980 pool=0xb04560 width=1280 height=736 initial_pool_size=3
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xdaf360
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xdaf494 type=2
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xdaf494 index=0 fd=-1 addr=0xa8484000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xdaf4f8 type=1
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xdaf4f8 index=0 fd=42 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xdaf360 request_fd=43
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xcdbdd0
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xcdbf04 type=2
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xcdbf04 index=1 fd=-1 addr=0xa8084000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xcdbf68 type=1
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xcdbf68 index=1 fd=44 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xcdbdd0 request_fd=45
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xb1e740
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xb1e874 type=2
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xb1e874 index=2 fd=-1 addr=0xa7c84000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xb1e8d8 type=1
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xb1e8d8 index=2 fd=46 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xb1e740 request_fd=47
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xb1eb50
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xb1ec84 type=2
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xb1ec84 index=3 fd=-1 addr=0xa7884000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xb1ece8 type=1
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xb1ece8 index=3 fd=48 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xb1eb50 request_fd=49
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xba5010
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xba5144 type=2
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xba5144 index=4 fd=-1 addr=0xa7484000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xba51a8 type=1
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xba51a8 index=4 fd=50 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xba5010 request_fd=51
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xc293a0
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xc294d4 type=2
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xc294d4 index=5 fd=-1 addr=0xa7084000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: avctx=0xb93410 buf=0xc29538 type=1
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_buffer_alloc: buf=0xc29538 index=5 fd=52 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_frame_alloc: avctx=0xb93410 size=520 data=0xc293a0 request_fd=53
00:00:49 - FFmpeg: [hevc @ 0xb93410] Output frame with POC 3.
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_queue_decode: avctx=0xb93410 used=237 controls=4 index=5 fd=52 request_fd=53 first_slice=1 last_slice=1
00:00:49 - FFmpeg: [hevc @ 0xb93410] v4l2_request_post_process: flags=0x4001, ts=0.000001
00:00:49 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:49 - FFmpeg: [hevc @ 0xb93410] ff_v4l2_request_uninit: avctx=0xb93410 ctx=0xc964a0
00:00:49 - FFmpeg: v4l2_request_frame_free: avctx=0xb93410 data=0xc293a0 request_fd=53
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xc29538 index=5 fd=52 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xc294d4 index=5 fd=-1 addr=0xa7084000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: v4l2_request_frame_free: avctx=0xb93410 data=0xba5010 request_fd=51
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xba51a8 index=4 fd=50 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xba5144 index=4 fd=-1 addr=0xa7484000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: v4l2_request_frame_free: avctx=0xb93410 data=0xb1eb50 request_fd=49
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xb1ece8 index=3 fd=48 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xb1ec84 index=3 fd=-1 addr=0xa7884000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: v4l2_request_frame_free: avctx=0xb93410 data=0xb1e740 request_fd=47
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xb1e8d8 index=2 fd=46 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xb1e874 index=2 fd=-1 addr=0xa7c84000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: v4l2_request_frame_free: avctx=0xb93410 data=0xcdbdd0 request_fd=45
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xcdbf68 index=1 fd=44 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xcdbf04 index=1 fd=-1 addr=0xa8084000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: v4l2_request_frame_free: avctx=0xb93410 data=0xdaf360 request_fd=43
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xdaf4f8 index=0 fd=42 addr=(nil) width=1280 height=736 size=1413120
00:00:49 - FFmpeg: v4l2_request_buffer_free: buf=0xdaf494 index=0 fd=-1 addr=0xa8484000 width=1280 height=736 size=4194304
00:00:49 - FFmpeg: v4l2_request_hwframe_ctx_free: hwfc=0xb73980 pool=0xb04560
00:00:49 - FFmpeg: v4l2_request_pool_free: opaque=0xb93410
00:00:49 - SDL Info (0): Desired audio buffer: 240 samples (960 bytes)
00:00:49 - SDL Info (0): Obtained audio buffer: 240 samples (960 bytes)
00:00:50 - Qt Info: Found "gamecontrollerdb.txt" at "/storage/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt"
00:00:50 - SDL Warn (0): 0 new mappings found in gamecontrollerdb.txt. Is it corrupt?
00:00:50 - SDL Info (0): V-sync enabled
00:00:50 - SDL Info (0): Sharing DRM FD with SDL
00:00:50 - SDL Info (0): DRM backend supports exporting EGLImage
00:00:50 - SDL Info (0): Using DRM renderer
00:00:50 - FFmpeg: [hevc @ 0xb90b90] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
00:00:50 - FFmpeg: [hevc @ 0xb90b90] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
00:00:50 - FFmpeg: [hevc @ 0xb90b90] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
00:00:50 - FFmpeg: [hevc @ 0xb90b90] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Decoding VPS
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Main profile bitstream
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Decoding SPS
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Main profile bitstream
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Decoding VUI
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Decoding PPS
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Format drm_prime chosen by get_format().
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Format drm_prime requires hwaccel initialisation.
00:00:50 - FFmpeg: [hevc @ 0xb90b90] ff_v4l2_request_init: avctx=0xb90b90 hw_device_ctx=0x5b7620 hw_frames_ctx=(nil)
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_probe_media_device: avctx=0xb90b90 ctx=0xc964a0 path=/dev/media1 driver=rpivid
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_probe_video_device: avctx=0xb90b90 ctx=0xc964a0 path=/dev/video19 capabilities=69238784
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_init_context: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] ff_v4l2_request_frame_params: avctx=0xb90b90 ctx=0xc964a0 hw_frames_ctx=0xb04750 hwfc=0xc19c40 pool=0x5b3280 width=1280 height=736 initial_pool_size=3
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xdaf180
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xdaf2b4 type=2
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xdaf2b4 index=0 fd=-1 addr=0xa8484000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xdaf318 type=1
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xdaf318 index=0 fd=42 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xdaf180 request_fd=43
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xcbb370
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xcbb4a4 type=2
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xcbb4a4 index=1 fd=-1 addr=0xa8084000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xcbb508 type=1
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xcbb508 index=1 fd=44 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xcbb370 request_fd=45
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xbcd090
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xbcd1c4 type=2
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xbcd1c4 index=2 fd=-1 addr=0xa7c84000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xbcd228 type=1
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xbcd228 index=2 fd=46 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xbcd090 request_fd=47
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xbcd4b0
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xbcd5e4 type=2
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xbcd5e4 index=3 fd=-1 addr=0xa7884000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xbcd648 type=1
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xbcd648 index=3 fd=48 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xbcd4b0 request_fd=49
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xc14c60
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xc14d94 type=2
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xc14d94 index=4 fd=-1 addr=0xa7484000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xc14df8 type=1
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xc14df8 index=4 fd=50 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xc14c60 request_fd=51
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xc86270
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xc863a4 type=2
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xc863a4 index=5 fd=-1 addr=0xa7084000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: avctx=0xb90b90 buf=0xc86408 type=1
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_buffer_alloc: buf=0xc86408 index=5 fd=52 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_frame_alloc: avctx=0xb90b90 size=520 data=0xc86270 request_fd=53
00:00:50 - FFmpeg: [hevc @ 0xb90b90] Output frame with POC 3.
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_queue_decode: avctx=0xb90b90 used=237 controls=4 index=5 fd=52 request_fd=53 first_slice=1 last_slice=1
00:00:50 - FFmpeg: [hevc @ 0xb90b90] v4l2_request_post_process: flags=0x4001, ts=0.000001
00:00:50 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:50 - FFmpeg: [hevc @ 0xb90b90] ff_v4l2_request_uninit: avctx=0xb90b90 ctx=0xc964a0
00:00:50 - FFmpeg: v4l2_request_frame_free: avctx=0xb90b90 data=0xc86270 request_fd=53
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xc86408 index=5 fd=52 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xc863a4 index=5 fd=-1 addr=0xa7084000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: v4l2_request_frame_free: avctx=0xb90b90 data=0xc14c60 request_fd=51
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xc14df8 index=4 fd=50 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xc14d94 index=4 fd=-1 addr=0xa7484000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: v4l2_request_frame_free: avctx=0xb90b90 data=0xbcd4b0 request_fd=49
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xbcd648 index=3 fd=48 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xbcd5e4 index=3 fd=-1 addr=0xa7884000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: v4l2_request_frame_free: avctx=0xb90b90 data=0xbcd090 request_fd=47
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xbcd228 index=2 fd=46 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xbcd1c4 index=2 fd=-1 addr=0xa7c84000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: v4l2_request_frame_free: avctx=0xb90b90 data=0xcbb370 request_fd=45
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xcbb508 index=1 fd=44 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xcbb4a4 index=1 fd=-1 addr=0xa8084000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: v4l2_request_frame_free: avctx=0xb90b90 data=0xdaf180 request_fd=43
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xdaf318 index=0 fd=42 addr=(nil) width=1280 height=736 size=1413120
00:00:50 - FFmpeg: v4l2_request_buffer_free: buf=0xdaf2b4 index=0 fd=-1 addr=0xa8484000 width=1280 height=736 size=4194304
00:00:50 - FFmpeg: v4l2_request_hwframe_ctx_free: hwfc=0xc19c40 pool=0x5b3280
00:00:50 - FFmpeg: v4l2_request_pool_free: opaque=0xb90b90
00:00:50 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt"
00:00:50 - SDL Warn (0): 0 new mappings found in gamecontrollerdb.txt. Is it corrupt?
00:00:51 - SDL Info (0): Found host supported resolution: 1280x720
00:00:51 - Qt Info: Executing request: "https://192.168.1.87:47984/launch?uniqueid=0123456789ABCDEF&uuid=3a617d60e14645d79456f5b86ab3c142&appid=4518384&mode=1280x720x60&additionalStates=1&sops=1&rikey=285fb81369f1593f2851dff4ae9c71b1&rikeyid=-872412922&localAudioPlayMode=0&surroundAudioInfo=196610&remoteControllersBitmap=0&gcmap=0"
00:00:56 - Qt Info: Found matching interface: "eth0" "DC:A6:32:92:75:71" QFlags<QNetworkInterface::InterfaceFlag>(IsUp|IsRunning|CanBroadcast|CanMulticast)
00:00:56 - Qt Info: Interface Type: QNetworkInterface::Ethernet
00:00:56 - Qt Info: Interface MTU: 1500
00:00:56 - SDL Info (0): Initializing platform...
00:00:56 - SDL Info (0): done
00:00:56 - SDL Info (0): Resolving host name...
00:00:56 - SDL Info (0): done
00:00:56 - SDL Info (0): Starting RTSP handshake...
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Initializing control stream...
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Initializing video stream...
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Initializing audio stream...
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Initializing input stream...
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Starting control stream...
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Starting video stream...
00:00:57 - SDL Info (0): Video stream is 1280x720x60 (format 0x100)
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Starting audio stream...
00:00:57 - SDL Info (0): Desired audio buffer: 240 samples (960 bytes)
00:00:57 - SDL Info (0): Obtained audio buffer: 240 samples (960 bytes)
00:00:57 - SDL Info (0): Audio stream has 2 channels
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Starting input stream...
00:00:57 - SDL Info (0): done
00:00:57 - SDL Info (0): Qt UI screen is at (0,0)
00:00:57 - SDL Info (0): SDL found matching display 0
00:00:57 - Qt Warning: Could not set cursor on screen HDMI1: -13
00:00:57 - SDL Info (0): Recreating renderer for window event: 1 (0 0)
00:00:57 - SDL Info (0): Chosen best display mode: 1680x1050x60
00:00:57 - SDL Info (0): V-sync enabled
00:00:57 - SDL Info (0): Sharing DRM FD with SDL
00:00:57 - SDL Info (0): DRM backend supports exporting EGLImage
00:00:57 - SDL Info (0): Received first audio packet after 100 ms
00:00:57 - SDL Info (0): Using DRM renderer
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Decoding VPS
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Main profile bitstream
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Decoding SPS
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Main profile bitstream
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Decoding VUI
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Decoding PPS
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Format drm_prime chosen by get_format().
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Format drm_prime requires hwaccel initialisation.
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] ff_v4l2_request_init: avctx=0xc0d2a0 hw_device_ctx=0xbc75e0 hw_frames_ctx=(nil)
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_probe_media_device: avctx=0xc0d2a0 ctx=0xc964a0 path=/dev/media1 driver=rpivid
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_probe_video_device: avctx=0xc0d2a0 ctx=0xc964a0 path=/dev/video19 capabilities=69238784
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_init_context: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] ff_v4l2_request_frame_params: avctx=0xc0d2a0 ctx=0xc964a0 hw_frames_ctx=0xd335a0 hwfc=0x5bb7a0 pool=0xb66920 width=1280 height=736 initial_pool_size=3
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xcf7910
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xcf7a44 type=2
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xcf7a44 index=0 fd=-1 addr=0xa347a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xcf7aa8 type=1
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xcf7aa8 index=0 fd=47 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xcf7910 request_fd=48
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xcf7d30
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xcf7e64 type=2
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xcf7e64 index=1 fd=-1 addr=0xa307a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xcf7ec8 type=1
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xcf7ec8 index=1 fd=49 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xcf7d30 request_fd=50
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xb8cbc0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xb8ccf4 type=2
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xb8ccf4 index=2 fd=-1 addr=0xa2c7a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xb8cd58 type=1
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xb8cd58 index=2 fd=51 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xb8cbc0 request_fd=52
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xb8cdd0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xb8cf04 type=2
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xb8cf04 index=3 fd=-1 addr=0xa287a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xb8cf68 type=1
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xb8cf68 index=3 fd=53 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xb8cdd0 request_fd=54
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xb8cfe0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xb8d114 type=2
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xb8d114 index=4 fd=-1 addr=0xa247a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xb8d178 type=1
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xb8d178 index=4 fd=55 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xb8cfe0 request_fd=56
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xbe8fe0
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xbe9114 type=2
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xbe9114 index=5 fd=-1 addr=0xa207a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: avctx=0xc0d2a0 buf=0xbe9178 type=1
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_buffer_alloc: buf=0xbe9178 index=5 fd=57 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_frame_alloc: avctx=0xc0d2a0 size=520 data=0xbe8fe0 request_fd=58
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] Output frame with POC 3.
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_queue_decode: avctx=0xc0d2a0 used=237 controls=4 index=5 fd=57 request_fd=58 first_slice=1 last_slice=1
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] v4l2_request_post_process: flags=0x4001, ts=0.000001
00:00:57 - FFmpeg: [hevc @ 0xc0d2a0] ff_v4l2_request_uninit: avctx=0xc0d2a0 ctx=0xc964a0
00:00:57 - FFmpeg: v4l2_request_frame_free: avctx=0xc0d2a0 data=0xbe8fe0 request_fd=58
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xbe9178 index=5 fd=57 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xbe9114 index=5 fd=-1 addr=0xa207a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: v4l2_request_frame_free: avctx=0xc0d2a0 data=0xb8cfe0 request_fd=56
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xb8d178 index=4 fd=55 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xb8d114 index=4 fd=-1 addr=0xa247a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: v4l2_request_frame_free: avctx=0xc0d2a0 data=0xb8cdd0 request_fd=54
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xb8cf68 index=3 fd=53 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xb8cf04 index=3 fd=-1 addr=0xa287a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: v4l2_request_frame_free: avctx=0xc0d2a0 data=0xb8cbc0 request_fd=52
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xb8cd58 index=2 fd=51 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xb8ccf4 index=2 fd=-1 addr=0xa2c7a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: v4l2_request_frame_free: avctx=0xc0d2a0 data=0xcf7d30 request_fd=50
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xcf7ec8 index=1 fd=49 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xcf7e64 index=1 fd=-1 addr=0xa307a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: v4l2_request_frame_free: avctx=0xc0d2a0 data=0xcf7910 request_fd=48
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xcf7aa8 index=0 fd=47 addr=(nil) width=1280 height=736 size=1413120
00:00:57 - FFmpeg: v4l2_request_buffer_free: buf=0xcf7a44 index=0 fd=-1 addr=0xa347a000 width=1280 height=736 size=4194304
00:00:57 - FFmpeg: v4l2_request_hwframe_ctx_free: hwfc=0x5bb7a0 pool=0xb66920
00:00:57 - FFmpeg: v4l2_request_pool_free: opaque=0xc0d2a0
00:00:57 - SDL Info (0): Sharing DRM FD with SDL
00:00:57 - SDL Info (0): DRM backend supports exporting EGLImage
00:00:57 - SDL Info (0): Frame pacing disabled: target 60 Hz with 60 FPS stream
00:00:57 - SDL Info (0): Using DRM renderer
00:00:57 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:57 - SDL Info (0): Dropping window event during flush: 6 (1680 1050)
00:00:58 - SDL Info (0): Received first video packet after 700 ms
00:00:58 - SDL Info (0): Requesting IDR frame on behalf of DR
00:00:58 - SDL Info (0): IDR frame request sent
00:00:58 - SDL Info (0): Waiting for IDR frame
00:00:58 - SDL Info (0): Waiting for IDR frame
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Decoding VPS
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Main profile bitstream
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Decoding SPS
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Main profile bitstream
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Decoding VUI
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Decoding PPS
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Format drm_prime chosen by get_format().
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Format drm_prime requires hwaccel initialisation.
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] ff_v4l2_request_init: avctx=0xbf09b0 hw_device_ctx=0xb92d80 hw_frames_ctx=(nil)
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_probe_media_device: avctx=0xbf09b0 ctx=0xae1059f0 path=/dev/media1 driver=rpivid
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_probe_video_device: avctx=0xbf09b0 ctx=0xae1059f0 path=/dev/video19 capabilities=69238784
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_init_context: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] ff_v4l2_request_frame_params: avctx=0xbf09b0 ctx=0xae1059f0 hw_frames_ctx=0xae114c80 hwfc=0xae107890 pool=0xae107930 width=1280 height=736 initial_pool_size=3
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae122530
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae122664 type=2
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae122664 index=0 fd=-1 addr=0xa347a000 width=1280 height=736 size=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae1226c8 type=1
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae1226c8 index=0 fd=47 addr=(nil) width=1280 height=736 size=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae122530 request_fd=48
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae112f30
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae113064 type=2
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae113064 index=1 fd=-1 addr=0xa307a000 width=1280 height=736 size=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae1130c8 type=1
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae1130c8 index=1 fd=49 addr=(nil) width=1280 height=736 size=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae112f30 request_fd=50
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae113150
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae113284 type=2
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae113284 index=2 fd=-1 addr=0xa2c7a000 width=1280 height=736 size=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae1132e8 type=1
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae1132e8 index=2 fd=51 addr=(nil) width=1280 height=736 size=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae113150 request_fd=52
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae10c9b0
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae10cae4 type=2
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae10cae4 index=3 fd=-1 addr=0xa287a000 width=1280 height=736 size=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae10cb48 type=1
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae10cb48 index=3 fd=53 addr=(nil) width=1280 height=736 size=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae10c9b0 request_fd=54
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae10cdc0
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae10cef4 type=2
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae10cef4 index=4 fd=-1 addr=0xa247a000 width=1280 height=736 size=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae10cf58 type=1
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae10cf58 index=4 fd=55 addr=(nil) width=1280 height=736 size=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae10cdc0 request_fd=56
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae10c330
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae10c464 type=2
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=892744275 width=1280 height=736 bytesperline=0 sizeimage=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae10c464 index=5 fd=-1 addr=0xa207a000 width=1280 height=736 size=4194304
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: avctx=0xbf09b0 buf=0xae10c4c8 type=1
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: pixelformat=842089294 width=1280 height=736 bytesperline=1104 sizeimage=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_buffer_alloc: buf=0xae10c4c8 index=5 fd=57 addr=(nil) width=1280 height=736 size=1413120
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_frame_alloc: avctx=0xbf09b0 size=520 data=0xae10c330 request_fd=58
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] Output frame with POC 3.
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_queue_decode: avctx=0xbf09b0 used=13323 controls=4 index=5 fd=57 request_fd=58 first_slice=1 last_slice=1
00:00:58 - FFmpeg: [hevc @ 0xbf09b0] v4l2_request_post_process: flags=0x4001, ts=0.000001
00:00:58 - SDL Info (0): EGLRenderer: EGLImage pixel format: 23
00:00:58 - Qt Info: Found "egl.vert" at ":/data/egl.vert"
00:00:58 - Qt Info: Found "egl.frag" at ":/data/egl.frag"
00:00:58 - Qt Info: Found "egl_overlay.vert" at ":/data/egl_overlay.vert"
00:00:58 - Qt Info: Found "egl_overlay.frag" at ":/data/egl_overlay.frag"
00:01:01 - SDL Info (0): Server notified termination reason: 0x0100
00:01:01 - SDL Error (0): Connection terminated: 0
00:01:01 - SDL Info (0): Quit event received
00:01:01 - Qt Warning: Could not set cursor on screen HDMI1: -13
00:01:01 - SDL Info (0): Global video stats
00:01:01 - SDL Info (0): ----------------------------------------------------------
Incoming frame rate from network: 58.71 FPS
Decoding frame rate: 58.71 FPS
Rendering frame rate: 57.05 FPS
Frames dropped by your network connection: 0.00%
Frames dropped due to network jitter: 2.26%
Average receive time: 0.09 ms
Average decoding time: 4.27 ms
Average frame queue delay: 0.48 ms
Average rendering time (including monitor V-sync latency): 7.45 ms
00:01:01 - SDL Info (0): Stopping input stream...
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Stopping audio stream...
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Stopping video stream...
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Stopping control stream...
00:01:01 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt"
00:01:01 - SDL Warn (0): 0 new mappings found in gamecontrollerdb.txt. Is it corrupt?
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Cleaning up input stream...
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Cleaning up audio stream...
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Cleaning up video stream...
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Cleaning up control stream...
00:01:01 - SDL Info (0): done
00:01:01 - SDL Info (0): Cleaning up platform...
00:01:01 - SDL Info (0): done
00:01:09 - Qt Info: "DESKTOP" is now offline
@cgutman
Copy link
Member

cgutman commented Mar 21, 2021

I believe the problem is that we're not propagating the DRM format modifiers. The Pi's HEVC decoder outputs this weird Broadcom-specific tiled NV12 SAND128 format that is probably why the output appears tiled like that.

I fixed that issue in e87a5fa for the DRM renderer, but EGL will require some more work. Please test the new code with the DRM_FORCE_DIRECT=1 environment variable set to ensure it uses DRM directly rather than EGL.

@cgutman
Copy link
Member

cgutman commented Mar 22, 2021

I reworked the way the DRM->EGL buffer export works to avoid assuming the format of the DRM frames and simply draw them as a single opaque EGLImage with 26d04b5

You can now try both DRM_FORCE_DIRECT=0 and DRM_FORCE_DIRECT=1 to test EGL and DRM rendering respectively.

I will try to get my Pi 4 to test with the LibreELEC FFmpeg patches. I did test on my RK3288 board, but that VPU never had problems with the old method since it produced "normal" NV12 linear buffers.

@SupervisedThinking
Copy link
Author

SupervisedThinking commented Mar 22, 2021

I've bumped the moonlight version to 4a8c9ad and will rebuild the RPi4 images since I don't own RPi4 SBCs I have to wait for feedback or you grab an image and give it a try

Indeed it looks like every SoC/VPU design has it own shenanigans to deal with but I guess once the RPi 4 works moonlight is all set.

@SupervisedThinking
Copy link
Author

SupervisedThinking commented Mar 22, 2021

User feedback:

Here you have: H.264, 1080p/60 a couple of seconds ok, and the a few black frames, HEVC completly black screen.

New logs with latest head:
moonlight-qt (1).log

@cgutman
If you want to give it a try yourself, here are recent RPi4 images with latest moonlight-qt. Just burn it to a sd-card, boot it & run it from the main menu. Logfiles are stored in /var/log or in a zip file in a Logfiles samba share.

SSH:
user: root
pass: as you define

@SupervisedThinking
Copy link
Author

SupervisedThinking commented Mar 22, 2021

I got some feedback:

So, the files are equal, i modified it, the last run is with "export DRM_FORCE_DIRECT=1", and HEVC show a picture!!

Looks like DRM_FORCE_DIRECT=1 fixes HEVC for RPi4 👍🏻 / h.264 still shows some black bars & glitches

Logfile HEVC:
moonlight-qt (2).log

Logfile h.264
moonlight-qt (3).log

@SupervisedThinking SupervisedThinking changed the title [RPi] RPi4 video HEVC/h.265 glitches [RPi] RPi4 video H.264 & H.265 (HEVC) glitches Mar 23, 2021
@cgutman
Copy link
Member

cgutman commented Mar 23, 2021

The EGL fallback to direct DRM rendering is fixed as of e74753b and 74bf981, so the HEVC problems are all solved and DRM_FORCE_DIRECT=1 should no longer be required. Because the Pi's EGL implementation can't handle the DRM format modifiers produced by its own VPU, the EGL path was failing to import the DMA-BUFs. Now it falls back to direct DRM rendering in that case. In X11, the DRM renderer will not be able to claim DRM master and hardware-accelerated HEVC will be unavailable. Moonlight will fallback to hardware-accelerated H.264 in that case (assuming HEVC is not forced on via manual settings, in which case software HEVC decoding will be used).

I'm probably not going to put much effort into the Pi's H.264 issues with V4L2. I have not found h264_v4l2m2m on the Pi to be anywhere near low latency enough to use for Moonlight, even with the DRM-PRIME patches from LibreELEC. The MMAL code is much faster (assuming cgutman/FFmpeg@193a032 is applied) and has the benefit of being able to draw overlays with X11 running too. Even if h264_v4l2m2m could decode fast enough, performance of rendering frames with EGL_EXT_image_dma_buf_import is such a dumpster fire that we couldn't use it in windowed mode anyway (and it doesn't seem to be just me experiencing poor performance with EGL). For now, MMAL is the only supported H.264 decoder for Moonlight on the Pi.

@SupervisedThinking
Copy link
Author

As long as HEVC works proper it's something.

Since MMAL is a proprietary API it's a dead horse in the long run since all major platforms move to V4L2 iirc but I understand that you can't fix problems in h.264 decoder code which needs improvements in upstream anyway.

According to Wikipedia most Maxwell and all important Pascal cards support HEVC encoding, so if someone uses older cards and a RPi4... well sorry but you're doomed 😅✌️

@veldenb
Copy link

veldenb commented Jul 27, 2021

@cgutman do you have time to look at this bug: veldenb/plugin.program.moonlight-qt#9 ?

It looks like LibreELEC has updated to the latest libraries but it breaks the HEVC decoding in Moonlight-qt (glitches) for the Pi4.
Rendering is up to speed (60fps) but only parts of the stream are rendered.

Moolight-qt logs and changes in LibreELEC can be found in this comment: veldenb/plugin.program.moonlight-qt#9 (comment)

It might be caused by the latest ffmpeg or raspberrypi libraries.
If needed I can create a new issue in the moonlight-qt project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants