Closed hollandzac closed 7 months ago
these logs only contain encoder, so it could be something wrong in the chromium(hardware v4l2 dec not enabled).
maybe related to: missing /dev/video-dec0 missing patches from meta-rockchip missing launch args from meta-rockchip
The issue is specific to the encoder, I had the decoding logging off but I have confirmed that part works correctly. I have confirmed that all the patches have applied. Is started with --enable-feature=VaapiVideoEncoder,VaapiVideoDecoder and " --no-sandbox --gpu-sandbox-start-early --ignore-gpu-blacklist --ignore-gpu-blocklist --enable-accelerated-video-decode".
Decode log
[771.055] [RKMPP] [41564] rkmpp_expbuf(540): export buf(12), type: 9, fd: 205(154)
[771.055] [RKMPP] [41564] rkmpp_expbuf(540): export buf(13), type: 9, fd: 207(155)
[771.055] [RKMPP] [41564] rkmpp_expbuf(540): export buf(14), type: 9, fd: 209(156)
[771.056] [RKMPP] [41564] rkmpp_expbuf(540): export buf(15), type: 9, fd: 211(157)
[771.056] [RKMPP] [41564] rkmpp_expbuf(540): export buf(16), type: 9, fd: 215(158)
[771.056] [RKMPP] [41564] rkmpp_expbuf(540): export buf(17), type: 9, fd: 219(159)
[771.056] [RKMPP] [41564] rkmpp_expbuf(540): export buf(18), type: 9, fd: 223(160)
[771.056] [RKMPP] [41564] rkmpp_expbuf(540): export buf(19), type: 9, fd: 227(161)
[771.056] [RKMPP] [41564] rkmpp_dec_streamon(460): queue(9) start streaming
[771.056] [RKMPP] [41564] rkmpp_dec_streamon(465): send info change ready
[771.058] [RKMPP] [41564] plugin_mmap(963): mmap buffer(3): 0x7fa23a3000, fd: 113
[771.058] [RKMPP] [41564] plugin_mmap(963): mmap buffer(4): 0x7f9dc63000, fd: 114
[771.059] [RKMPP] [41564] plugin_mmap(963): mmap buffer(5): 0x7f9db63000, fd: 116
[771.060] [RKMPP] [41564] plugin_mmap(963): mmap buffer(6): 0x7f9da63000, fd: 117
[771.060] [RKMPP] [41564] plugin_mmap(963): mmap buffer(7): 0x7f9d963000, fd: 118
[774.383] [RKMPP] [41566] rkmpp_new_frame(82): DEC FPS: 20.6 || Frames: 120
[778.618] [RKMPP] [41566] rkmpp_new_frame(82): DEC FPS: 28.3 || Frames: 240
[782.602] [RKMPP] [41566] rkmpp_new_frame(82): DEC FPS: 30.1 || Frames: 360
well, i don't have a way to test enc for a long time, so it's possible something changed in new chromium that breaks enc.
how did you test it?
I am just taking a webcam stream through MediaDevices API to stream via WebRTC.
is there any website or demo html to repro it? (i dont know much about web, i was using apprtc, but that was down long time ago)
https://webrtc.github.io/samples/src/content/getusermedia/gum/
Jitsi meet is a better test as it encodes as vp9 https://meet.jit.si/
patches uploaded in v4l mpp plugin and chromium.
Encoder working with patches in 114
I am have trouble diagnosing issues related to the plugin not starting after moving to v114 of chromium with the patches from meta-rockchip/. I had this successfully working on chromium version 100.
With the log level set to 5 I get this repeated attempts to start the plugin with no specific errors on version 114. There are mentions of invalid ioctls but I also get this error when the plugin inits successfully on version 100.
This is the log from version 100 with similar initial output but eventually starts the plugin.
chromium-100.log
Is there some specific logging I can turn on to help find the cause of the issue. So far I have tried updating rockchip-mpp and this plugin to the latest commits.