mofeng-git / One-KVM

One-KVM 是基于廉价计算机硬件和 PiKVM 软件二次开发的 BIOS 级远程控制项目。
https://one-kvm.mofeng.run
Other
418 stars 43 forks source link

web页面H264视频模式花屏问题 #47

Closed Logan147 closed 1 week ago

Logan147 commented 1 week ago

使用的是docker镜像,平台是radxa zero, 系统是armbian

web页面的截图 image

对应的容器日志如下 image

Logan147 commented 1 week ago

重新启动容器后到我访问web页面的h264编码的视频模式的全部日志文件信息如下: 2024-11-06 16:33:13,350 WARN received SIGTERM indicating exit request 2024-11-06 16:33:13,352 INFO waiting for kvmd, kvmd-vnc, kvmd-ipmi, kvmd-janus, kvmd-webterm, kvmd-nginx, clean_when_exit to die Terminated Trying exit OTG Port... kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [972.034 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [972.165 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [972.333 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [972.464 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [972.632 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [972.798 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [972.965 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [973.132 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [973.264 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [973.432 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [973.601 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [973.732 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [973.901 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [974.031 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [974.204 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [974.375 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [974.538 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [974.666 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [974.833 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [974.964 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 2024-11-06 16:33:16,445 INFO waiting for kvmd, kvmd-vnc, kvmd-ipmi, kvmd-janus, kvmd-webterm, kvmd-nginx, clean_when_exit to die kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [975.134 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [975.299 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [975.433 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [975.563 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [975.732 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [975.862 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [975.997 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [976.165 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.otg 消息 --- 禁用 gadget 'kvmd' ...... kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/UDC kvmd.apps.otg 消息 --- RM ------ [SKIPPED] /sys/kernel/config/usb_gadget/kvmd/os_desc/c.1 kvmd.apps.otg 消息 --- RM ------ /sys/kernel/config/usb_gadget/kvmd/configs/c.1/mass_storage.usb0 kvmd.apps.otg 消息 --- RM ------ /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb2 kvmd.apps.otg 消息 --- RM ------ /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb1 kvmd.apps.otg 消息 --- RM ------ /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb0 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1/strings/0x409 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2 asyncio.events 消息 --- 因收到忽略标识而取消监视 /sys/kernel/config/usb_gadget/kvmd/configs/c.1 asyncio.events 消息 --- 因收到忽略标识而取消监视 /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409 kvmd.apps.otg 消息 --- RMDIR --- /sys/kernel/config/usb_gadget/kvmd Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/kvmd/apps/otg/main.py", line 24, in main() File "/kvmd/apps/otg/init.py", line 355, in main options.cmd(config) File "/kvmd/apps/otg/init.py", line 323, in _cmd_stop for meta in os.listdir(config.otg.meta): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/run/kvmd/otg' kvmd.plugins.hid.otg.device 错误 --- 丢失 HID-keyboard 设备:/dev/kvmd-hid-keyboard kvmd.plugins.hid.otg.device 错误 --- 丢失 HID-mouse 设备:/dev/kvmd-hid-mouse-alt kvmd.plugins.hid.otg.device 错误 --- 丢失 HID-mouse 设备:/dev/kvmd-hid-mouse kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [976.347 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [976.500 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 Failed to exit OTG Port rm: cannot remove '/run/kvmd/otg': No such file or directory 2024-11-06 16:33:18,106 INFO stopped: clean_when_exit (exit status 0) kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [976.632 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 asyncio.base_events 消息 --- 已移除客户端套接字:WsSession(id=281473706697520, {'stream': True});现在的客户端:0 kvmd.apps.janus.runner 消息 --- => [WSS-0xffff5c0041a0] Destroying WebSocket client kvmd.apps.janus.runner 消息 --- => Destroying session 3928999911674225; 0xffff68002f70 kvmd.apps.janus.runner 消息 --- => Detaching handle from ustreamer; 0xffff68003660 0xaaab0b7f8cb0 0xffff68003660 (nil) 2024-11-06 16:33:18,122 INFO stopped: kvmd-nginx (exit status 0) kvmd.apps.janus.runner 消息 --- => [558316358917305] WebRTC resources freed; 0xffff68003660 0xffff68002f70 kvmd.apps.janus.runner 消息 --- => == ustreamer/main -- Removing session 0xaaab0b7f8cb0 ... [2024/11/06 16:33:18:1249] N: received signal: SIGTERM (15), exiting... [2024/11/06 16:33:18:1249] N: send ^C to force exit. 2024-11-06 16:33:18,129 INFO stopped: kvmd-webterm (exit status 0) aiohttp.access 消息 --- [admin (token) / 192.168.31.28] 'GET /ws HTTP/1.0' => 响应:101;大小:0; 来源:'-';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' kvmd.apps.janus.runner 消息 --- Stopping Janus ... kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [976.796 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [976.962 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [977.094 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [977.227 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.plugins.msd.otg 消息 --- Got a big inotify event: ; reinitializing MSD ... kvmd.plugins.msd.otg 错误 --- 重新加载 MSD 状态时出错;切换到离线状态 Traceback (most recent call last): File "/kvmd/plugins/msd/otg/init.py", line 460, in reload_state path = self.drive.get_image_path() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/kvmd/plugins/msd/otg/drive.py", line 66, in get_image_path path = self.get_param("file") ^^^^^^^^^^^^^^^^^^^^^^^^ File "/kvmd/plugins/msd/otg/drive.py", line 86, in get_param with open(os.path.join(self.lun_path, param)) as file: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/file' kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [977.361 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [977.494 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [977.627 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [977.761 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [977.894 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.027 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 2024-11-06 16:33:19,507 INFO waiting for kvmd, kvmd-vnc, kvmd-ipmi, kvmd-janus to die kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.161 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.294 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.427 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.560 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.694 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.827 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [978.960 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [979.094 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [979.261 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [979.394 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [979.527 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [979.662 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [979.829 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [979.995 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [980.163 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [980.329 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [980.497 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [980.662 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [980.829 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [980.995 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [981.162 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 2024-11-06 16:33:22,642 INFO waiting for kvmd, kvmd-vnc, kvmd-ipmi, kvmd-janus to die kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [981.328 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [981.495 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.janus.runner 消息 --- 进程被杀死:retcode=0 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [981.662 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.janus.runner 消息 --- Bye-bye One-KVM pre-starting... Trying OTG Port... kvmd.apps.otg 消息 --- 使用 UDC ff400000.usb kvmd.apps.otg 消息 --- 新建 gadget 'kvmd' ...... kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/idVendor kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/idProduct kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/bcdUSB kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/bcdDevice kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409/manufacturer kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409/product kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409/serialnumber kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1 kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1/strings/0x409 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1/strings/0x409/configuration kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1/MaxPower kvmd.apps.otg 消息 --- MKDIR --- /run/kvmd/otg kvmd.apps.otg 消息 --- ===== HID-键盘 ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/no_out_endpoint kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/protocol kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/subclass kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/report_length kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/report_desc kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb0 --> /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/hid.usb0@meta.json kvmd.apps.otg 消息 --- ===== HID-鼠标 ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/no_out_endpoint kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/protocol kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/subclass kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/report_length kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/report_desc kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb1 --> /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/hid.usb1@meta.json kvmd.apps.otg 消息 --- ===== HID-绝对鼠标 ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/no_out_endpoint kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/protocol kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/subclass kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/report_length kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/report_desc kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb2 --> /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/hid.usb2@meta.json kvmd.apps.otg 消息 --- ===== MSD ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/stall kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/cdrom kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/ro kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/removable kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/nofua kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/cdrom kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/ro kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/file kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/forced_eject kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/mass_storage.usb0 --> /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/mass_storage.usb0@meta.json kvmd.apps.otg 消息 --- ===== 准备完成 ===== kvmd.apps.otg 消息 --- 启用此 gadget ...... kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/UDC kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/UDC kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/configs/c.1 kvmd.apps.otg 消息 --- 准备就绪 ln: failed to create symbolic link '/dev/kvmd-hid-mouse': File exists OTG Port mount failed. ln: failed to create symbolic link '/dev/kvmd-hid-mouse-alt': File exists One-KVM starting... 2024-11-06 16:33:34,732 INFO Set uid to user 0 succeeded Unlinking stale socket /tmp/supervisor.sock 2024-11-06 16:33:35,048 INFO RPC interface 'supervisor' initialized 2024-11-06 16:33:35,049 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2024-11-06 16:33:35,050 INFO supervisord started with pid 1 2024-11-06 16:33:36,057 INFO spawned: 'kvmd' with pid 13 2024-11-06 16:33:36,064 INFO spawned: 'kvmd-vnc' with pid 14 2024-11-06 16:33:36,071 INFO spawned: 'kvmd-ipmi' with pid 15 2024-11-06 16:33:36,080 INFO spawned: 'kvmd-janus' with pid 16 2024-11-06 16:33:36,089 INFO spawned: 'kvmd-webterm' with pid 17 2024-11-06 16:33:36,106 INFO spawned: 'kvmd-nginx' with pid 18 2024-11-06 16:33:36,125 INFO spawned: 'clean_when_exit' with pid 19 [2024/11/06 16:33:36:1386] N: ttyd 1.7.7-40e79c7 (libwebsockets 4.3.3-unknown) [2024/11/06 16:33:36:1413] N: tty configuration: [2024/11/06 16:33:36:1414] N: start command: /bin/bash -c /etc/kvmd/armbain-motd; bash [2024/11/06 16:33:36:1414] N: close signal: SIGHUP (1) [2024/11/06 16:33:36:1414] N: terminal type: xterm-256color [2024/11/06 16:33:36:1416] N: lws_create_context: LWS: 4.3.3-unknown, MbedTLS-2.28.5 NET SRV H1 H2 WS ConMon IPV6-off [2024/11/06 16:33:36:1614] N: elops_init_pt_uv: Using foreign event loop... [2024/11/06 16:33:36:1633] N: lws_lc_tag: ++ [wsi|0|pipe] (1) [2024/11/06 16:33:36:1650] N: lws_lc_tag: ++ [vh|0|netlink] (1) [2024/11/06 16:33:36:1669] N: lws_lc_tag: ++ [vh|1|default|/run/kvmd/ttyd.sock|/run/kvmd/ttyd.sock|0] (2) [2024/11/06 16:33:36:1691] N: [null wsi]: lws_socket_bind: vh default unix skt /run/kvmd/ttyd.sock perms 4294967295:4294967295 [2024/11/06 16:33:36:1711] N: [vh|1|default|/run/kvmd/ttyd.sock|/run/kvmd/ttyd.sock|0]: lws_socket_bind: source ads (unix skt) [2024/11/06 16:33:36:1731] N: __lws_lc_tag: ++ [wsi|1|listen|default|/run/kvmd/ttyd.sock|0] (2) [2024/11/06 16:33:36:1749] N: Listening on port: 0 2024-11-06 16:33:37,177 INFO success: kvmd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,178 INFO success: kvmd-vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,179 INFO success: kvmd-ipmi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,180 INFO success: kvmd-janus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,181 INFO success: kvmd-webterm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) kvmd.apps.janus.runner 消息 --- Starting Janus Runner ... kvmd.apps.janus.runner 消息 --- Probbing the network first time ... kvmd.apps.ipmi.server 消息 --- Listening IPMI on UPD [0.0.0.0]:623 ... Failed to import module: systemd.journal kvmd.keyboard.keysym 消息 --- 读取键盘布局 /usr/share/kvmd/keymaps/en-us ...... kvmd.apps.vnc.server 消息 --- 正在监听 TCP [0.0.0.0]:5900 上的 VNC 服务 ...... kvmd.apps.kvmd 消息 --- 使用内部身份验证服务 'htpasswd' kvmd.plugins.msd.otg 消息 --- 使用 OTG gadget 'kvmd' 作为 MSD kvmd.plugins.msd.otg 消息 --- 探测以重新挂载存储 ...... kvmd.plugins.msd.otg.storage 消息 --- 重新挂载 MSD 存储到 RW: /bin/true ...... kvmd.plugins.msd.otg.storage 消息 --- 重新挂载 MSD 存储到 RO: /bin/true ...... kvmd.keyboard.keysym 消息 --- 读取键盘布局 /usr/share/kvmd/keymaps/en-us ...... kvmd.apps.kvmd.ugpio 消息 --- 准备 User-GPIO 驱动程序 ...... kvmd.plugins.hid.otg 消息 --- 使用 UDC ff400000.usb kvmd.plugins.hid.otg.device 消息 --- 已启动 HID-keyboard pid=35 kvmd.plugins.hid.otg.device 消息 --- 已启动 HID-mouse pid=36 kvmd.plugins.hid.otg.device 消息 --- 已启动 HID-mouse pid=37 kvmd.apps.kvmd.ugpio 消息 --- 运行 User-GPIO 驱动程序 ...... kvmd.apps.kvmd.streamer 消息 --- 安装 SIGUSR2 streamer 处理程序 ... kvmd.htserver 消息 --- ======== Running on http://unix:/run/kvmd/kvmd.sock: ======== kvmd.htserver 消息 --- (Press CTRL+C to quit) kvmd.apps.kvmd.streamer 消息 --- 正在启动 streamer...... kvmd.apps.kvmd.streamer 消息 --- PRE-START-CMD: /bin/true pre-start kvmd.plugins.msd.otg 消息 --- 监视 /var/lib/kvmd/msd/images kvmd.plugins.msd.otg 消息 --- 监视 /var/lib/kvmd/msd/meta kvmd.plugins.msd.otg 消息 --- 监视 /var/lib/kvmd/msd kvmd.apps.kvmd.streamer 消息 --- 已启动 streamer pid=44: /usr/bin/ustreamer --device=/dev/video1 --persistent --format=mjpeg --encoder=LIBX264-VIDEO --resolution=1280x720 --desired-fps=30 --drop-same-frames=30 --last-as-blank=0 --unix=/run/kvmd/ustreamer.sock --unix-rm --unix-mode=0666 --exit-on-parent-death --process-name-prefix=kvmd/streamer --notify-parent --no-log-colors --h264-sink=kvmd::ustreamer::h264 --h264-sink-mode=0660 --jpeg-sink=kvmd::ustreamer::jpeg --jpeg-sink-mode=0660 --h264-bitrate=2000 --h264-gop=30 --slowdown kvmd.plugins.msd.otg 消息 --- 监视 /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 kvmd.plugins.msd.otg 消息 --- 监视 /sys/kernel/config/usb_gadget/kvmd/configs/c.1 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.829 ] -- Starting PiKVM uStreamer 6.13 ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.830 ] -- Using JPEG-sink: kvmd::ustreamer::jpeg kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.830 ] -- Using H264-sink: kvmd::ustreamer::h264 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.830 ] -- HTTP: Listening HTTP on UNIX socket '/run/kvmd/ustreamer.sock' kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.831 ] -- HTTP: Starting eventloop ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.831 ] -- H264: Initializing encoder ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.831 ] -- H264 Encoder libx264: Initializing ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.947 ] -- Using V4L2 device: /dev/video1 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.947 ] -- CAP: Using capture type: single-planar kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.947 ] -- CAP: Using input channel: 0 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1001.955 ] -- CAP: Requested resolution=1280x720 is unavailable kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.964 ] -- CAP: Using resolution: 1920x1080 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.964 ] -- CAP: Using format: MJPEG kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.972 ] -- CAP: Using HW FPS: 30 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1001.972 ] -- CAP: Device doesn't support setting of HW encoding quality parameters kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.972 ] -- CAP: Using IO method: MMAP kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.978 ] -- CAP: Requested 5 device buffers, got 5 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- CAP: Capturing started kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- Switching to HW encoder: the input is (M)JPEG ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- Using JPEG quality: encoder default kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- Creating pool JPEG with 1 workers ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.986 ] -- Capturing ... 2024-11-06 16:33:46,470 INFO success: kvmd-nginx entered RUNNING state, process has stayed up for > than 10 seconds (startsecs) 2024-11-06 16:33:46,471 INFO success: clean_when_exit entered RUNNING state, process has stayed up for > than 10 seconds (startsecs) kvmd.apps.janus.runner 消息 --- Got new _Netcfg(nat_type='Full Cone NAT', src_ip='172.17.0.2', ext_ip='221.209.160.19', stun_host='stun.l.google.com', stun_port=19302) kvmd.apps.janus.runner 消息 --- Starting Janus ... kvmd.apps.janus.runner 消息 --- Started Janus pid=56: /usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus --interface=172.17.0.2 --stun-server=stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => Janus version: 1300 (1.3.0) kvmd.apps.janus.runner 消息 --- => Janus commit: 51fe38a452e10b2c767390ba9b9300bf4b2fc501 kvmd.apps.janus.runner 消息 --- => Compiled on: Tue Nov 5 01:17:42 UTC 2024 kvmd.apps.janus.runner 消息 --- => Logger plugins folder: /usr/lib/janus/loggers kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't access logger plugins folder... kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Starting Meetecho Janus (WebRTC Server) v1.3.0 kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Checking command line arguments... kvmd.apps.janus.runner 消息 --- => Debug/log level is 4 kvmd.apps.janus.runner 消息 --- => Debug/log timestamps are disabled kvmd.apps.janus.runner 消息 --- => Debug/log colors are disabled kvmd.apps.janus.runner 消息 --- => Using 172.17.0.2 as local IP... kvmd.apps.janus.runner 消息 --- => Token based authentication disabled kvmd.apps.janus.runner 消息 --- => Initializing recorder code kvmd.apps.janus.runner 消息 --- => RTP port range: 20000 -- 40000 kvmd.apps.janus.runner 消息 --- => Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support enabled) kvmd.apps.janus.runner 消息 --- => ICE port range: 20000-40000 kvmd.apps.janus.runner 消息 --- => [WARN] mDNS resolution disabled, .local candidates will be ignored kvmd.apps.janus.runner 消息 --- => STUN server to use: stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => >> 74.125.250.129:19302 (IPv4) kvmd.apps.janus.runner 消息 --- => Testing STUN server: message is of 20 bytes kvmd.apps.janus.runner 消息 --- => >> Our public address is 221.209.160.19 kvmd.apps.janus.runner 消息 --- => TURN REST API backend: (disabled) kvmd.apps.janus.runner 消息 --- => Crypto: OpenSSL >= 1.1.0 kvmd.apps.janus.runner 消息 --- => No cert/key specified, autogenerating some... kvmd.apps.janus.runner 消息 --- => Fingerprint of our certificate: 2E:60:BB:43:41:AB:5C:B7:4B:7F:C2:0A:CB:70:7C:C2:1E:E7:ED:EF:0D:73:E9:08:27:16:B5:2C:8E:31:23:45 kvmd.apps.janus.runner 消息 --- => [WARN] Data Channels support not compiled kvmd.apps.janus.runner 消息 --- => Event handlers support disabled kvmd.apps.janus.runner 消息 --- => Plugins folder: /usr/lib/ustreamer/janus kvmd.apps.janus.runner 消息 --- => Sessions watchdog started kvmd.apps.janus.runner 消息 --- => Loading plugin 'libjanus_ustreamer.so'... kvmd.apps.janus.runner 消息 --- => Joining Janus requests handler thread kvmd.apps.janus.runner 消息 --- => == ustreamer/main -- Initializing PiKVM uStreamer plugin 6.13 ... kvmd.apps.janus.runner 消息 --- => == ustreamer/config -- Reading config file '/etc/kvmd/janus/janus.plugin.ustreamer.jcfg' ... kvmd.apps.janus.runner 消息 --- => Transport plugins folder: /usr/lib/janus/transports kvmd.apps.janus.runner 消息 --- => == ustreamer/video -- No active watchers, memsink disconnected kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_pfunix.so'... kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.pfunix), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No Unix Sockets server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.pfunix' plugin could not be initialized kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_websockets.so'... kvmd.apps.janus.runner 消息 --- => [WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only kvmd.apps.janus.runner 消息 --- => libwebsockets logging: 0 kvmd.apps.janus.runner 消息 --- => Websockets server started (UNIX socket /run/kvmd/janus-ws.sock)... kvmd.apps.janus.runner 消息 --- => JANUS WebSockets transport plugin initialized! kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_http.so'... kvmd.apps.janus.runner 消息 --- => WebSockets thread started kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.http), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No HTTP/HTTPS server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.http' plugin could not be initialized kvmd.apps.janus.runner 错误 --- Unexpected Janus error: pid=56 Traceback (most recent call last): File "/kvmd/apps/janus/runner.py", line 151, in janus_task_loop raise RuntimeError("Janus unexpectedly died") RuntimeError: Janus unexpectedly died kvmd.apps.janus.runner 消息 --- 进程被杀死:retcode=-11 kvmd.apps.janus.runner 消息 --- Started Janus pid=66: /usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus --interface=172.17.0.2 --stun-server=stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => Janus version: 1300 (1.3.0) kvmd.apps.janus.runner 消息 --- => Janus commit: 51fe38a452e10b2c767390ba9b9300bf4b2fc501 kvmd.apps.janus.runner 消息 --- => Compiled on: Tue Nov 5 01:17:42 UTC 2024 kvmd.apps.janus.runner 消息 --- => Logger plugins folder: /usr/lib/janus/loggers kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't access logger plugins folder... kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Starting Meetecho Janus (WebRTC Server) v1.3.0 kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Checking command line arguments... kvmd.apps.janus.runner 消息 --- => Debug/log level is 4 kvmd.apps.janus.runner 消息 --- => Debug/log timestamps are disabled kvmd.apps.janus.runner 消息 --- => Debug/log colors are disabled kvmd.apps.janus.runner 消息 --- => Using 172.17.0.2 as local IP... kvmd.apps.janus.runner 消息 --- => Token based authentication disabled kvmd.apps.janus.runner 消息 --- => Initializing recorder code kvmd.apps.janus.runner 消息 --- => RTP port range: 20000 -- 40000 kvmd.apps.janus.runner 消息 --- => Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support enabled) kvmd.apps.janus.runner 消息 --- => ICE port range: 20000-40000 kvmd.apps.janus.runner 消息 --- => [WARN] mDNS resolution disabled, .local candidates will be ignored kvmd.apps.janus.runner 消息 --- => STUN server to use: stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => >> 74.125.250.129:19302 (IPv4) kvmd.apps.janus.runner 消息 --- => Testing STUN server: message is of 20 bytes kvmd.apps.janus.runner 消息 --- => [FATAL] [ice.c:janus_ice_test_stun_server:1174] No response to our STUN BINDING test kvmd.apps.janus.runner 消息 --- => [FATAL] [janus.c:main:5218] Invalid STUN address stun.l.google.com:19302 kvmd.apps.janus.runner 错误 --- Unexpected Janus error: pid=66 Traceback (most recent call last): File "/kvmd/apps/janus/runner.py", line 151, in janus_task_loop raise RuntimeError("Janus unexpectedly died") RuntimeError: Janus unexpectedly died kvmd.apps.janus.runner 消息 --- 进程被杀死:retcode=1 kvmd.apps.janus.runner 消息 --- Started Janus pid=71: /usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus --interface=172.17.0.2 --stun-server=stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => Janus version: 1300 (1.3.0) kvmd.apps.janus.runner 消息 --- => Janus commit: 51fe38a452e10b2c767390ba9b9300bf4b2fc501 kvmd.apps.janus.runner 消息 --- => Compiled on: Tue Nov 5 01:17:42 UTC 2024 kvmd.apps.janus.runner 消息 --- => Logger plugins folder: /usr/lib/janus/loggers kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't access logger plugins folder... kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Starting Meetecho Janus (WebRTC Server) v1.3.0 kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Checking command line arguments... kvmd.apps.janus.runner 消息 --- => Debug/log level is 4 kvmd.apps.janus.runner 消息 --- => Debug/log timestamps are disabled kvmd.apps.janus.runner 消息 --- => Debug/log colors are disabled kvmd.apps.janus.runner 消息 --- => Using 172.17.0.2 as local IP... kvmd.apps.janus.runner 消息 --- => Token based authentication disabled kvmd.apps.janus.runner 消息 --- => Initializing recorder code kvmd.apps.janus.runner 消息 --- => RTP port range: 20000 -- 40000 kvmd.apps.janus.runner 消息 --- => Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support enabled) kvmd.apps.janus.runner 消息 --- => ICE port range: 20000-40000 kvmd.apps.janus.runner 消息 --- => [WARN] mDNS resolution disabled, .local candidates will be ignored kvmd.apps.janus.runner 消息 --- => STUN server to use: stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => >> 74.125.250.129:19302 (IPv4) kvmd.apps.janus.runner 消息 --- => Testing STUN server: message is of 20 bytes kvmd.apps.janus.runner 消息 --- => >> Our public address is 221.209.160.19 kvmd.apps.janus.runner 消息 --- => TURN REST API backend: (disabled) kvmd.apps.janus.runner 消息 --- => Crypto: OpenSSL >= 1.1.0 kvmd.apps.janus.runner 消息 --- => No cert/key specified, autogenerating some... kvmd.apps.janus.runner 消息 --- => Fingerprint of our certificate: 49:D3:B6:A8:94:57:2E:2D:F2:F8:C1:5D:04:A0:1B:7E:1F:D5:B7:69:EE:87:76:E3:B8:95:38:71:C4:A0:93:94 kvmd.apps.janus.runner 消息 --- => [WARN] Data Channels support not compiled kvmd.apps.janus.runner 消息 --- => Event handlers support disabled kvmd.apps.janus.runner 消息 --- => Plugins folder: /usr/lib/ustreamer/janus kvmd.apps.janus.runner 消息 --- => Joining Janus requests handler thread kvmd.apps.janus.runner 消息 --- => Sessions watchdog started kvmd.apps.janus.runner 消息 --- => Loading plugin 'libjanus_ustreamer.so'... kvmd.apps.janus.runner 消息 --- => == ustreamer/main -- Initializing PiKVM uStreamer plugin 6.13 ... kvmd.apps.janus.runner 消息 --- => == ustreamer/config -- Reading config file '/etc/kvmd/janus/janus.plugin.ustreamer.jcfg' ... kvmd.apps.janus.runner 消息 --- => == ustreamer/video -- No active watchers, memsink disconnected kvmd.apps.janus.runner 消息 --- => Transport plugins folder: /usr/lib/janus/transports kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_pfunix.so'... kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.pfunix), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No Unix Sockets server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.pfunix' plugin could not be initialized kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_websockets.so'... kvmd.apps.janus.runner 消息 --- => [WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only kvmd.apps.janus.runner 消息 --- => libwebsockets logging: 0 kvmd.apps.janus.runner 消息 --- => Websockets server started (UNIX socket /run/kvmd/janus-ws.sock)... kvmd.apps.janus.runner 消息 --- => JANUS WebSockets transport plugin initialized! kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_http.so'... kvmd.apps.janus.runner 消息 --- => WebSockets thread started kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => HTTP transport timer started kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.http), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No HTTP/HTTPS server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.http' plugin could not be initialized

Logan147 commented 1 week ago

我使用的采集卡是阿卡西斯的usb3.0采集卡,默认支持的分辨率是1920x1080

Logan147 commented 1 week ago

作者可以帮忙看一下为什么h264视频模式会出现花屏现象吗,我试了很多次每次切换到h264模式必然会出现花屏,web页面录制带有声音的视频只能在h264模式才可以,所以现在我就被卡在这里了

Logan147 commented 1 week ago

image

下面是我打开web页面并切换到h264视频模式后出现花屏现象的时候的docker容器日志:

One-KVM pre-starting... Trying OTG Port... kvmd.apps.otg 消息 --- 使用 UDC ff400000.usb kvmd.apps.otg 消息 --- 新建 gadget 'kvmd' ...... kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/idVendor kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/idProduct kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/bcdUSB kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/bcdDevice kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409/manufacturer kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409/product kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/strings/0x409/serialnumber kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1 kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1/strings/0x409 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1/strings/0x409/configuration kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/configs/c.1/MaxPower kvmd.apps.otg 消息 --- MKDIR --- /run/kvmd/otg kvmd.apps.otg 消息 --- ===== HID-键盘 ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/no_out_endpoint kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/protocol kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/subclass kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/report_length kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0/report_desc kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb0 --> /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb0 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/hid.usb0@meta.json kvmd.apps.otg 消息 --- ===== HID-鼠标 ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/no_out_endpoint kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/protocol kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/subclass kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/report_length kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1/report_desc kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb1 --> /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb1 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/hid.usb1@meta.json kvmd.apps.otg 消息 --- ===== HID-绝对鼠标 ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/no_out_endpoint kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/protocol kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/subclass kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/report_length kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2/report_desc kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/hid.usb2 --> /sys/kernel/config/usb_gadget/kvmd/functions/hid.usb2 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/hid.usb2@meta.json kvmd.apps.otg 消息 --- ===== MSD ===== kvmd.apps.otg 消息 --- MKDIR --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0 kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/stall kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/cdrom kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/ro kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/removable kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/nofua kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/cdrom kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/ro kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/file kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/forced_eject kvmd.apps.otg 消息 --- SYMLINK - /sys/kernel/config/usb_gadget/kvmd/configs/c.1/mass_storage.usb0 --> /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0 kvmd.apps.otg 消息 --- WRITE --- /run/kvmd/otg/mass_storage.usb0@meta.json kvmd.apps.otg 消息 --- ===== 准备完成 ===== kvmd.apps.otg 消息 --- 启用此 gadget ...... kvmd.apps.otg 消息 --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/UDC kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/UDC kvmd.apps.otg 消息 --- CHOWN --- kvmd - /sys/kernel/config/usb_gadget/kvmd/configs/c.1 kvmd.apps.otg 消息 --- 准备就绪 ln: failed to create symbolic link '/dev/kvmd-hid-mouse': File exists OTG Port mount failed. ln: failed to create symbolic link '/dev/kvmd-hid-mouse-alt': File exists One-KVM starting... 2024-11-06 16:33:34,732 INFO Set uid to user 0 succeeded Unlinking stale socket /tmp/supervisor.sock 2024-11-06 16:33:35,048 INFO RPC interface 'supervisor' initialized 2024-11-06 16:33:35,049 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2024-11-06 16:33:35,050 INFO supervisord started with pid 1 2024-11-06 16:33:36,057 INFO spawned: 'kvmd' with pid 13 2024-11-06 16:33:36,064 INFO spawned: 'kvmd-vnc' with pid 14 2024-11-06 16:33:36,071 INFO spawned: 'kvmd-ipmi' with pid 15 2024-11-06 16:33:36,080 INFO spawned: 'kvmd-janus' with pid 16 2024-11-06 16:33:36,089 INFO spawned: 'kvmd-webterm' with pid 17 2024-11-06 16:33:36,106 INFO spawned: 'kvmd-nginx' with pid 18 2024-11-06 16:33:36,125 INFO spawned: 'clean_when_exit' with pid 19 [2024/11/06 16:33:36:1386] N: ttyd 1.7.7-40e79c7 (libwebsockets 4.3.3-unknown) [2024/11/06 16:33:36:1413] N: tty configuration: [2024/11/06 16:33:36:1414] N: start command: /bin/bash -c /etc/kvmd/armbain-motd; bash [2024/11/06 16:33:36:1414] N: close signal: SIGHUP (1) [2024/11/06 16:33:36:1414] N: terminal type: xterm-256color [2024/11/06 16:33:36:1416] N: lws_create_context: LWS: 4.3.3-unknown, MbedTLS-2.28.5 NET SRV H1 H2 WS ConMon IPV6-off [2024/11/06 16:33:36:1614] N: elops_init_pt_uv: Using foreign event loop... [2024/11/06 16:33:36:1633] N: lws_lc_tag: ++ [wsi|0|pipe] (1) [2024/11/06 16:33:36:1650] N: lws_lc_tag: ++ [vh|0|netlink] (1) [2024/11/06 16:33:36:1669] N: lws_lc_tag: ++ [vh|1|default|/run/kvmd/ttyd.sock|/run/kvmd/ttyd.sock|0] (2) [2024/11/06 16:33:36:1691] N: [null wsi]: lws_socket_bind: vh default unix skt /run/kvmd/ttyd.sock perms 4294967295:4294967295 [2024/11/06 16:33:36:1711] N: [vh|1|default|/run/kvmd/ttyd.sock|/run/kvmd/ttyd.sock|0]: lws_socket_bind: source ads (unix skt) [2024/11/06 16:33:36:1731] N: lws_lc_tag: ++ [wsi|1|listen|default|/run/kvmd/ttyd.sock|0] (2) [2024/11/06 16:33:36:1749] N: Listening on port: 0 2024-11-06 16:33:37,177 INFO success: kvmd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,178 INFO success: kvmd-vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,179 INFO success: kvmd-ipmi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,180 INFO success: kvmd-janus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-11-06 16:33:37,181 INFO success: kvmd-webterm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) kvmd.apps.janus.runner 消息 --- Starting Janus Runner ... kvmd.apps.janus.runner 消息 --- Probbing the network first time ... kvmd.apps.ipmi.server 消息 --- Listening IPMI on UPD [0.0.0.0]:623 ... Failed to import module: systemd.journal kvmd.keyboard.keysym 消息 --- 读取键盘布局 /usr/share/kvmd/keymaps/en-us ...... kvmd.apps.vnc.server 消息 --- 正在监听 TCP [0.0.0.0]:5900 上的 VNC 服务 ...... kvmd.apps.kvmd 消息 --- 使用内部身份验证服务 'htpasswd' kvmd.plugins.msd.otg 消息 --- 使用 OTG gadget 'kvmd' 作为 MSD kvmd.plugins.msd.otg 消息 --- 探测以重新挂载存储 ...... kvmd.plugins.msd.otg.storage 消息 --- 重新挂载 MSD 存储到 RW: /bin/true ...... kvmd.plugins.msd.otg.storage 消息 --- 重新挂载 MSD 存储到 RO: /bin/true ...... kvmd.keyboard.keysym 消息 --- 读取键盘布局 /usr/share/kvmd/keymaps/en-us ...... kvmd.apps.kvmd.ugpio 消息 --- 准备 User-GPIO 驱动程序 ...... kvmd.plugins.hid.otg 消息 --- 使用 UDC ff400000.usb kvmd.plugins.hid.otg.device 消息 --- 已启动 HID-keyboard pid=35 kvmd.plugins.hid.otg.device 消息 --- 已启动 HID-mouse pid=36 kvmd.plugins.hid.otg.device 消息 --- 已启动 HID-mouse pid=37 kvmd.apps.kvmd.ugpio 消息 --- 运行 User-GPIO 驱动程序 ...... kvmd.apps.kvmd.streamer 消息 --- 安装 SIGUSR2 streamer 处理程序 ... kvmd.htserver 消息 --- ======== Running on http://unix:/run/kvmd/kvmd.sock: ======== kvmd.htserver 消息 --- (Press CTRL+C to quit) kvmd.apps.kvmd.streamer 消息 --- 正在启动 streamer...... kvmd.apps.kvmd.streamer 消息 --- PRE-START-CMD: /bin/true pre-start kvmd.plugins.msd.otg 消息 --- 监视 /var/lib/kvmd/msd/images kvmd.plugins.msd.otg 消息 --- 监视 /var/lib/kvmd/msd/meta kvmd.plugins.msd.otg 消息 --- 监视 /var/lib/kvmd/msd kvmd.apps.kvmd.streamer 消息 --- 已启动 streamer pid=44: /usr/bin/ustreamer --device=/dev/video1 --persistent --format=mjpeg --encoder=LIBX264-VIDEO --resolution=1280x720 --desired-fps=30 --drop-same-frames=30 --last-as-blank=0 --unix=/run/kvmd/ustreamer.sock --unix-rm --unix-mode=0666 --exit-on-parent-death --process-name-prefix=kvmd/streamer --notify-parent --no-log-colors --h264-sink=kvmd::ustreamer::h264 --h264-sink-mode=0660 --jpeg-sink=kvmd::ustreamer::jpeg --jpeg-sink-mode=0660 --h264-bitrate=2000 --h264-gop=30 --slowdown kvmd.plugins.msd.otg 消息 --- 监视 /sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 kvmd.plugins.msd.otg 消息 --- 监视 /sys/kernel/config/usb_gadget/kvmd/configs/c.1 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.829 ] -- Starting PiKVM uStreamer 6.13 ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.830 ] -- Using JPEG-sink: kvmd::ustreamer::jpeg kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.830 ] -- Using H264-sink: kvmd::ustreamer::h264 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.830 ] -- HTTP: Listening HTTP on UNIX socket '/run/kvmd/ustreamer.sock' kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.831 ] -- HTTP: Starting eventloop ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.831 ] -- H264: Initializing encoder ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.831 ] -- H264 Encoder libx264: Initializing ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.947 ] -- Using V4L2 device: /dev/video1 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.947 ] -- CAP: Using capture type: single-planar kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.947 ] -- CAP: Using input channel: 0 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1001.955 ] -- CAP: Requested resolution=1280x720 is unavailable kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.964 ] -- CAP: Using resolution: 1920x1080 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.964 ] -- CAP: Using format: MJPEG kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.972 ] -- CAP: Using HW FPS: 30 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1001.972 ] -- CAP: Device doesn't support setting of HW encoding quality parameters kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.972 ] -- CAP: Using IO method: MMAP kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.978 ] -- CAP: Requested 5 device buffers, got 5 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- CAP: Capturing started kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- Switching to HW encoder: the input is (M)JPEG ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- Using JPEG quality: encoder default kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.983 ] -- Creating pool JPEG with 1 workers ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1001.986 ] -- Capturing ... 2024-11-06 16:33:46,470 INFO success: kvmd-nginx entered RUNNING state, process has stayed up for > than 10 seconds (startsecs) 2024-11-06 16:33:46,471 INFO success: clean_when_exit entered RUNNING state, process has stayed up for > than 10 seconds (startsecs) kvmd.apps.janus.runner 消息 --- Got new _Netcfg(nat_type='Full Cone NAT', src_ip='172.17.0.2', ext_ip='221.209.160.19', stun_host='stun.l.google.com', stun_port=19302) kvmd.apps.janus.runner 消息 --- Starting Janus ... kvmd.apps.janus.runner 消息 --- Started Janus pid=56: /usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus --interface=172.17.0.2 --stun-server=stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => Janus version: 1300 (1.3.0) kvmd.apps.janus.runner 消息 --- => Janus commit: 51fe38a452e10b2c767390ba9b9300bf4b2fc501 kvmd.apps.janus.runner 消息 --- => Compiled on: Tue Nov 5 01:17:42 UTC 2024 kvmd.apps.janus.runner 消息 --- => Logger plugins folder: /usr/lib/janus/loggers kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't access logger plugins folder... kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Starting Meetecho Janus (WebRTC Server) v1.3.0 kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Checking command line arguments... kvmd.apps.janus.runner 消息 --- => Debug/log level is 4 kvmd.apps.janus.runner 消息 --- => Debug/log timestamps are disabled kvmd.apps.janus.runner 消息 --- => Debug/log colors are disabled kvmd.apps.janus.runner 消息 --- => Using 172.17.0.2 as local IP... kvmd.apps.janus.runner 消息 --- => Token based authentication disabled kvmd.apps.janus.runner 消息 --- => Initializing recorder code kvmd.apps.janus.runner 消息 --- => RTP port range: 20000 -- 40000 kvmd.apps.janus.runner 消息 --- => Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support enabled) kvmd.apps.janus.runner 消息 --- => ICE port range: 20000-40000 kvmd.apps.janus.runner 消息 --- => [WARN] mDNS resolution disabled, .local candidates will be ignored kvmd.apps.janus.runner 消息 --- => STUN server to use: stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => >> 74.125.250.129:19302 (IPv4) kvmd.apps.janus.runner 消息 --- => Testing STUN server: message is of 20 bytes kvmd.apps.janus.runner 消息 --- => >> Our public address is 221.209.160.19 kvmd.apps.janus.runner 消息 --- => TURN REST API backend: (disabled) kvmd.apps.janus.runner 消息 --- => Crypto: OpenSSL >= 1.1.0 kvmd.apps.janus.runner 消息 --- => No cert/key specified, autogenerating some... kvmd.apps.janus.runner 消息 --- => Fingerprint of our certificate: 2E:60:BB:43:41:AB:5C:B7:4B:7F:C2:0A:CB:70:7C:C2:1E:E7:ED:EF:0D:73:E9:08:27:16:B5:2C:8E:31:23:45 kvmd.apps.janus.runner 消息 --- => [WARN] Data Channels support not compiled kvmd.apps.janus.runner 消息 --- => Event handlers support disabled kvmd.apps.janus.runner 消息 --- => Plugins folder: /usr/lib/ustreamer/janus kvmd.apps.janus.runner 消息 --- => Sessions watchdog started kvmd.apps.janus.runner 消息 --- => Loading plugin 'libjanus_ustreamer.so'... kvmd.apps.janus.runner 消息 --- => Joining Janus requests handler thread kvmd.apps.janus.runner 消息 --- => == ustreamer/main -- Initializing PiKVM uStreamer plugin 6.13 ... kvmd.apps.janus.runner 消息 --- => == ustreamer/config -- Reading config file '/etc/kvmd/janus/janus.plugin.ustreamer.jcfg' ... kvmd.apps.janus.runner 消息 --- => Transport plugins folder: /usr/lib/janus/transports kvmd.apps.janus.runner 消息 --- => == ustreamer/video -- No active watchers, memsink disconnected kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_pfunix.so'... kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.pfunix), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No Unix Sockets server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.pfunix' plugin could not be initialized kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_websockets.so'... kvmd.apps.janus.runner 消息 --- => [WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only kvmd.apps.janus.runner 消息 --- => libwebsockets logging: 0 kvmd.apps.janus.runner 消息 --- => Websockets server started (UNIX socket /run/kvmd/janus-ws.sock)... kvmd.apps.janus.runner 消息 --- => JANUS WebSockets transport plugin initialized! kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_http.so'... kvmd.apps.janus.runner 消息 --- => WebSockets thread started kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.http), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No HTTP/HTTPS server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.http' plugin could not be initialized kvmd.apps.janus.runner 错误 --- Unexpected Janus error: pid=56 Traceback (most recent call last): File "/kvmd/apps/janus/runner.py", line 151, in janus_task_loop raise RuntimeError("Janus unexpectedly died") RuntimeError: Janus unexpectedly died kvmd.apps.janus.runner 消息 --- 进程被杀死:retcode=-11 kvmd.apps.janus.runner 消息 --- Started Janus pid=66: /usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus --interface=172.17.0.2 --stun-server=stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => Janus version: 1300 (1.3.0) kvmd.apps.janus.runner 消息 --- => Janus commit: 51fe38a452e10b2c767390ba9b9300bf4b2fc501 kvmd.apps.janus.runner 消息 --- => Compiled on: Tue Nov 5 01:17:42 UTC 2024 kvmd.apps.janus.runner 消息 --- => Logger plugins folder: /usr/lib/janus/loggers kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't access logger plugins folder... kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Starting Meetecho Janus (WebRTC Server) v1.3.0 kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Checking command line arguments... kvmd.apps.janus.runner 消息 --- => Debug/log level is 4 kvmd.apps.janus.runner 消息 --- => Debug/log timestamps are disabled kvmd.apps.janus.runner 消息 --- => Debug/log colors are disabled kvmd.apps.janus.runner 消息 --- => Using 172.17.0.2 as local IP... kvmd.apps.janus.runner 消息 --- => Token based authentication disabled kvmd.apps.janus.runner 消息 --- => Initializing recorder code kvmd.apps.janus.runner 消息 --- => RTP port range: 20000 -- 40000 kvmd.apps.janus.runner 消息 --- => Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support enabled) kvmd.apps.janus.runner 消息 --- => ICE port range: 20000-40000 kvmd.apps.janus.runner 消息 --- => [WARN] mDNS resolution disabled, .local candidates will be ignored kvmd.apps.janus.runner 消息 --- => STUN server to use: stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => >> 74.125.250.129:19302 (IPv4) kvmd.apps.janus.runner 消息 --- => Testing STUN server: message is of 20 bytes kvmd.apps.janus.runner 消息 --- => [FATAL] [ice.c:janus_ice_test_stun_server:1174] No response to our STUN BINDING test kvmd.apps.janus.runner 消息 --- => [FATAL] [janus.c:main:5218] Invalid STUN address stun.l.google.com:19302 kvmd.apps.janus.runner 错误 --- Unexpected Janus error: pid=66 Traceback (most recent call last): File "/kvmd/apps/janus/runner.py", line 151, in janus_task_loop raise RuntimeError("Janus unexpectedly died") RuntimeError: Janus unexpectedly died kvmd.apps.janus.runner 消息 --- 进程被杀死:retcode=1 kvmd.apps.janus.runner 消息 --- Started Janus pid=71: /usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus --interface=172.17.0.2 --stun-server=stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => Janus version: 1300 (1.3.0) kvmd.apps.janus.runner 消息 --- => Janus commit: 51fe38a452e10b2c767390ba9b9300bf4b2fc501 kvmd.apps.janus.runner 消息 --- => Compiled on: Tue Nov 5 01:17:42 UTC 2024 kvmd.apps.janus.runner 消息 --- => Logger plugins folder: /usr/lib/janus/loggers kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't access logger plugins folder... kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Starting Meetecho Janus (WebRTC Server) v1.3.0 kvmd.apps.janus.runner 消息 --- => --------------------------------------------------- kvmd.apps.janus.runner 消息 --- => Checking command line arguments... kvmd.apps.janus.runner 消息 --- => Debug/log level is 4 kvmd.apps.janus.runner 消息 --- => Debug/log timestamps are disabled kvmd.apps.janus.runner 消息 --- => Debug/log colors are disabled kvmd.apps.janus.runner 消息 --- => Using 172.17.0.2 as local IP... kvmd.apps.janus.runner 消息 --- => Token based authentication disabled kvmd.apps.janus.runner 消息 --- => Initializing recorder code kvmd.apps.janus.runner 消息 --- => RTP port range: 20000 -- 40000 kvmd.apps.janus.runner 消息 --- => Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support enabled) kvmd.apps.janus.runner 消息 --- => ICE port range: 20000-40000 kvmd.apps.janus.runner 消息 --- => [WARN] mDNS resolution disabled, .local candidates will be ignored kvmd.apps.janus.runner 消息 --- => STUN server to use: stun.l.google.com:19302 kvmd.apps.janus.runner 消息 --- => >> 74.125.250.129:19302 (IPv4) kvmd.apps.janus.runner 消息 --- => Testing STUN server: message is of 20 bytes kvmd.apps.janus.runner 消息 --- => >> Our public address is 221.209.160.19 kvmd.apps.janus.runner 消息 --- => TURN REST API backend: (disabled) kvmd.apps.janus.runner 消息 --- => Crypto: OpenSSL >= 1.1.0 kvmd.apps.janus.runner 消息 --- => No cert/key specified, autogenerating some... kvmd.apps.janus.runner 消息 --- => Fingerprint of our certificate: 49:D3:B6:A8:94:57:2E:2D:F2:F8:C1:5D:04:A0:1B:7E:1F:D5:B7:69:EE:87:76:E3:B8:95:38:71:C4:A0:93:94 kvmd.apps.janus.runner 消息 --- => [WARN] Data Channels support not compiled kvmd.apps.janus.runner 消息 --- => Event handlers support disabled kvmd.apps.janus.runner 消息 --- => Plugins folder: /usr/lib/ustreamer/janus kvmd.apps.janus.runner 消息 --- => Joining Janus requests handler thread kvmd.apps.janus.runner 消息 --- => Sessions watchdog started kvmd.apps.janus.runner 消息 --- => Loading plugin 'libjanus_ustreamer.so'... kvmd.apps.janus.runner 消息 --- => == ustreamer/main -- Initializing PiKVM uStreamer plugin 6.13 ... kvmd.apps.janus.runner 消息 --- => == ustreamer/config -- Reading config file '/etc/kvmd/janus/janus.plugin.ustreamer.jcfg' ... kvmd.apps.janus.runner 消息 --- => == ustreamer/video -- No active watchers, memsink disconnected kvmd.apps.janus.runner 消息 --- => Transport plugins folder: /usr/lib/janus/transports kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_pfunix.so'... kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.pfunix), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.pfunix.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No Unix Sockets server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.pfunix' plugin could not be initialized kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_websockets.so'... kvmd.apps.janus.runner 消息 --- => [WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only kvmd.apps.janus.runner 消息 --- => libwebsockets logging: 0 kvmd.apps.janus.runner 消息 --- => Websockets server started (UNIX socket /run/kvmd/janus-ws.sock)... kvmd.apps.janus.runner 消息 --- => JANUS WebSockets transport plugin initialized! kvmd.apps.janus.runner 消息 --- => Loading transport plugin 'libjanus_http.so'... kvmd.apps.janus.runner 消息 --- => WebSockets thread started kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.jcfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => HTTP transport timer started kvmd.apps.janus.runner 消息 --- => [WARN] Couldn't find .jcfg configuration file (janus.transport.http), trying .cfg kvmd.apps.janus.runner 消息 --- => [ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.transport.http.cfg'... error 2 (No such file or directory) kvmd.apps.janus.runner 消息 --- => [WARN] No HTTP/HTTPS server started, giving up... kvmd.apps.janus.runner 消息 --- => [WARN] The 'janus.transport.http' plugin could not be initialized aiohttp.access 消息 --- [- (token) / -] 'GET /auth/check HTTP/1.0' => 响应:403;大小:278;来源:'-';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' kvmd.apps.kvmd.auth 消息 --- 用户 'admin' 已通过身份认证服务 'htpasswd' 授权 kvmd.apps.kvmd.api.auth 消息 --- 已登录用户 'admin' aiohttp.access 消息 --- [- / 192.168.31.28] 'POST /auth/login HTTP/1.0' => 响应:200;大小:320;来源:'http://192.168.31.27:8080/login/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/login/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/login/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' kvmd.apps.kvmd.info.extras 错误 --- Can't open systemd bus to get extras state: FileNotFoundError: [Errno 2] No such file or directory aiohttp.access 消息 --- [admin (token) / 192.168.31.28] 'GET /info?fields=auth,meta,extras HTTP/1.0' => 响应:200;大小:2139;来源:'http://192.168.31.27:8080/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / 192.168.31.28] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来源:'http://192.168.31.27:8080/kvm/';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' kvmd.apps.kvmd.server 消息 --- 已注册新客户端会话:WsSession(id=281473203251408, {'stream': True});现在的客户:1 kvmd.apps.kvmd.info.extras 错误 --- Can't open systemd bus to get extras state: FileNotFoundError: [Errno 2] No such file or directory aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/share/js/kvm/stream_janus.js';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'http://192.168.31.27:8080/share/js/kvm/janus.js';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' aiohttp.access 消息 --- [admin (token) / -] 'GET /auth/check HTTP/1.0' => 响应:200;大小:196;来 源:'-';用户代理:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' kvmd.apps.janus.runner 消息 --- => Creating new session: 6699773871682018; 0xffff70002f70 kvmd.apps.janus.runner 消息 --- => Creating new handle in session 6699773871682018: 8659074066077367; 0xffff70002f70 0xffff70003660 kvmd.apps.janus.runner 消息 --- => == ustreamer/main -- Creating session 0xaaab0f309be0 ... kvmd.apps.janus.runner 消息 --- => [8659074066077367] Creating ICE agent (ICE Full mode, controlling) kvmd.apps.janus.runner 消息 --- => == ustreamer/video -- Memsink opened; reading frames ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1278.446 ] -- H264 Encoder libx264: Input V4L2 format: V4L2_PIX_FMT_RGB24, use X264_CSP_I420 after RGB24ToI420 kvmd.apps.kvmd.streamer 错误 --- Streamer 意外错误:pid=44 Traceback (most recent call last): File "/kvmd/apps/kvmd/streamer.py", line 454, in __streamer_task_loop raise RuntimeError(self.gettext("Streamer unexpectedly died")) RuntimeError: Streamer 意外停止 kvmd.apps.janus.runner 消息 --- => [8659074066077367] The DTLS handshake has been completed kvmd.apps.kvmd.streamer 消息 --- 进程被杀死:retcode=-11 kvmd.apps.kvmd.streamer 消息 --- 已启动 streamer pid=145: /usr/bin/ustreamer --device=/dev/video1 --persistent --format=mjpeg --encoder=LIBX264-VIDEO --resolution=1280x720 --desired-fps=30 --drop-same-frames=30 --last-as-blank=0 --unix=/run/kvmd/ustreamer.sock --unix-rm --unix-mode=0666 --exit-on-parent-death --process-name-prefix=kvmd/streamer --notify-parent --no-log-colors --h264-sink=kvmd::ustreamer::h264 --h264-sink-mode=0660 --jpeg-sink=kvmd::ustreamer::jpeg --jpeg-sink-mode=0660 --h264-bitrate=2000 --h264-gop=30 --slowdown kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.631 ] -- Starting PiKVM uStreamer 6.13 ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.632 ] -- Using JPEG-sink: kvmd::ustreamer::jpeg kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.632 ] -- Using H264-sink: kvmd::ustreamer::h264 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.633 ] -- HTTP: Listening HTTP on UNIX socket '/run/kvmd/ustreamer.sock' kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.634 ] -- H264: Initializing encoder ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.634 ] -- H264 Encoder libx264: Initializing ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.634 ] -- Using V4L2 device: /dev/video1 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.634 ] -- CAP: Using capture type: single-planar kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.634 ] -- CAP: Using input channel: 0 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.634 ] -- HTTP: Starting eventloop ... kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1280.642 ] -- CAP: Requested resolution=1280x720 is unavailable kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.651 ] -- CAP: Using resolution: 1920x1080 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.651 ] -- CAP: Using format: MJPEG kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.659 ] -- CAP: Using HW FPS: 30 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1280.659 ] -- CAP: Device doesn't support setting of HW encoding quality parameters kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.659 ] -- CAP: Using IO method: MMAP kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.666 ] -- CAP: Requested 5 device buffers, got 5 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.672 ] -- CAP: Capturing started kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.672 ] -- Switching to HW encoder: the input is (M)JPEG ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.672 ] -- Using JPEG quality: encoder default kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.672 ] -- Creating pool JPEG with 1 workers ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.675 ] -- Capturing ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1280.785 ] -- H264 Encoder libx264: Input V4L2 format: V4L2_PIX_FMT_RGB24, use X264_CSP_I420 after RGB24ToI420 kvmd.apps.kvmd.streamer 错误 --- Streamer 意外错误:pid=145 Traceback (most recent call last): File "/kvmd/apps/kvmd/streamer.py", line 454, in __streamer_task_loop raise RuntimeError(self.gettext("Streamer unexpectedly died")) RuntimeError: Streamer 意外停止 kvmd.apps.kvmd.streamer 消息 --- 进程被杀死:retcode=-11 kvmd.apps.kvmd.streamer 消息 --- 已启动 streamer pid=158: /usr/bin/ustreamer --device=/dev/video1 --persistent --format=mjpeg --encoder=LIBX264-VIDEO --resolution=1280x720 --desired-fps=30 --drop-same-frames=30 --last-as-blank=0 --unix=/run/kvmd/ustreamer.sock --unix-rm --unix-mode=0666 --exit-on-parent-death --process-name-prefix=kvmd/streamer --notify-parent --no-log-colors --h264-sink=kvmd::ustreamer::h264 --h264-sink-mode=0660 --jpeg-sink=kvmd::ustreamer::jpeg --jpeg-sink-mode=0660 --h264-bitrate=2000 --h264-gop=30 --slowdown kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.977 ] -- Starting PiKVM uStreamer 6.13 ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.977 ] -- Using JPEG-sink: kvmd::ustreamer::jpeg kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.977 ] -- Using H264-sink: kvmd::ustreamer::h264 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.978 ] -- HTTP: Listening HTTP on UNIX socket '/run/kvmd/ustreamer.sock' kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.979 ] -- HTTP: Starting eventloop ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.980 ] -- H264: Initializing encoder ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.980 ] -- H264 Encoder libx264: Initializing ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.980 ] -- Using V4L2 device: /dev/video1 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.980 ] -- CAP: Using capture type: single-planar kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.980 ] -- CAP: Using input channel: 0 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1282.988 ] -- CAP: Requested resolution=1280x720 is unavailable kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.997 ] -- CAP: Using resolution: 1920x1080 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1282.997 ] -- CAP: Using format: MJPEG kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.005 ] -- CAP: Using HW FPS: 30 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1283.005 ] -- CAP: Device doesn't support setting of HW encoding quality parameters kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.005 ] -- CAP: Using IO method: MMAP kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.013 ] -- CAP: Requested 5 device buffers, got 5 kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.019 ] -- CAP: Capturing started kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.019 ] -- Switching to HW encoder: the input is (M)JPEG ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.019 ] -- Using JPEG quality: encoder default kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.019 ] -- Creating pool JPEG with 1 workers ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.021 ] -- Capturing ... kvmd.apps.kvmd.streamer 消息 --- => -- INFO [1283.116 ] -- H264 Encoder libx264: Input V4L2 format: V4L2_PIX_FMT_RGB24, use X264_CSP_I420 after RGB24ToI420 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1283.148 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1283.259 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1283.428 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1283.560 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1283.727 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1283.859 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1284.029 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1284.159 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1284.327 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1284.458 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1284.627 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1284.758 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1284.927 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1285.059 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1285.227 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1285.359 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1285.527 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1285.658 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1285.827 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1285.958 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1286.126 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1286.291 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1286.458 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1286.625 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1286.791 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1286.923 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.056 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.190 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.322 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.455 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.589 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.723 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.856 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1287.990 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1288.122 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1288.255 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1288.389 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1288.522 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1288.656 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1288.789 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1288.922 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1289.189 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1289.322 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1289.455 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1289.589 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1289.722 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1289.855 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1289.989 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1290.122 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1290.255 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1290.388 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1290.523 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1290.655 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1290.789 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1290.922 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x22 0x22 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1291.056 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 kvmd.apps.kvmd.streamer 消息 --- => -- ERROR [1291.190 ] -- Can't decompress JPEG: Not a JPEG file: starts with 0x21 0x21 root@armbianserver:~#

Logan147 commented 1 week ago

另外我一直都是通过8080端口访问的http协议的web页面,因为4430端口的https协议的页面我打不开 image

image

Logan147 commented 1 week ago

额,这是官方文档,作者可以提供一下帮助吗 image

Logan147 commented 1 week ago

这是我的采集卡信息

root@armbianserver:~/kvmd_config# v4l2-ctl -d /dev/video1 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture

    [0]: 'MJPG' (Motion-JPEG, compressed)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.020s (50.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
    [1]: 'YUYV' (YUYV 4:2:2)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.200s (5.000 fps)
Logan147 commented 1 week ago

image

Logan147 commented 1 week ago

是这个采集卡不支持1280x720分辨率导致的吗,需要修改哪些配置文件才可以让kvmd支持1920x1080分辨率的采集卡呢

mofeng-git commented 1 week ago

一、 看上去你的采集卡只支持1920x1080分辨率,不支持其他分辨率,程序会自动转到1920x1080不用修改配置文件的。 下面是我测试用的采集卡参数,可以做一个对比参考。

v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'MJPG' (Motion-JPEG, compressed)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 1600x1200
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 1360x768
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 1280x1024
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 1280x960
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.020s (50.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 1024x768
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.020s (50.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 800x600
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.020s (50.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 720x576
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.020s (50.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 720x480
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.020s (50.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.020s (50.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
        [1]: 'YUYV' (YUYV 4:2:2)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 1600x1200
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 1360x768
                        Interval: Discrete 0.125s (8.000 fps)
                Size: Discrete 1280x1024
                        Interval: Discrete 0.125s (8.000 fps)
                Size: Discrete 1280x960
                        Interval: Discrete 0.125s (8.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 1024x768
                        Interval: Discrete 0.100s (10.000 fps)
                Size: Discrete 800x600
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 720x576
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 720x480
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
mofeng-git commented 1 week ago

额,这是官方文档,作者可以提供一下帮助吗 image

二、 docker 版默认在 4430 端口提供服务,访问8080会自动跳转到4430端口。看你的情况,应该是设置了环境变量 -e NOSSL=1,要使用4430端口在docker建立时删除这个环境变量就可以了(或者是不要添加这个环境变量)。

环境变量说明

-e NOSSL=1 禁用 HTTPS,启用 HTTP,在 8080 端口提供 WEB 服务。

Logan147 commented 1 week ago

好的,但是我尝试了很多次,web页面的h264视频模式一直是花屏,我手动修改了override.yaml文件中的默认的h264视频模式的采集卡默认分辨率为1920x1080,web页面不再是花屏了变成了马赛克屏

image

root@armbianserver:~/kvmd_config# cat override.yaml
kvmd:
    auth:
        enabled: true

    server:
        unix_mode: 0666
        access_log_format: '[%P / %{X-Real-IP}i] ''%r'' => 响应:%s;大小:%b;来源:''%{Referer}i'';用户代理:''%{User-Agent}i'''

    atx:
        type: disabled

    hid:
        type: otg

        jiggler:
            active: false
            enabled: true

        mouse_alt:
            device: /dev/kvmd-hid-mouse-alt

    msd:
        type: otg
        remount_cmd: /bin/true

    ocr:
        langs:
            - eng
            - chi_sim

    streamer:
        resolution:
            default: 1920x1080

        forever: true

        desired_fps:
            default: 30
            max: 60

        h264_bitrate:
            default: 2000

        cmd:
            - "/usr/bin/ustreamer"
            - "--device=/dev/video1"
            - "--persistent"
            - "--format=mjpeg"
            - "--encoder=LIBX264-VIDEO"
            - "--resolution={resolution}"
            - "--desired-fps={desired_fps}"
            - "--drop-same-frames=30"
            - "--last-as-blank=0"
            - "--unix={unix}"
            - "--unix-rm"
            - "--unix-mode=0666"
            - "--exit-on-parent-death"
            - "--process-name-prefix={process_name_prefix}"
            - "--notify-parent"
            - "--no-log-colors"
            - "--h264-sink=kvmd::ustreamer::h264"
            - "--h264-sink-mode=0660"
            - "--jpeg-sink=kvmd::ustreamer::jpeg"
            - "--jpeg-sink-mode=0660"
            - "--h264-bitrate={h264_bitrate}"
            - "--h264-gop={h264_gop}"
            - "--slowdown"
    gpio:
        drivers:
            wol_server1:
                type: wol
                mac: 2c:56:dc:db:7c:1e
            short_press:
                type: cmd
                cmd: [/etc/kvmd/atx.sh, short]
            long_press:
                type: cmd
                cmd: [/etc/kvmd/atx.sh, long]
            reset_press:
                type: cmd
                cmd: [/etc/kvmd/atx.sh, reset]
            input1:
                type: cmd
                cmd: [/etc/kvmd/kvm_input.sh, 1]
            input2:
                type: cmd
                cmd: [/etc/kvmd/kvm_input.sh, 2]
        scheme:
            wol_server1:
                driver: wol_server1
                pin: 0
                mode: output
                switch: false
            short_button:
                driver: short_press
                pin: 0
                mode: output
                switch: false
            long_button:
                driver: long_press
                pin: 0
                mode: output
                switch: false
            reset_button:
                driver: reset_press
                pin: 0
                mode: output
                switch: false
            input1-button:
                driver: input1
                pin: 0
                mode: output
                switch: false
            input2-button:
                driver: input2
                pin: 0
                mode: output
                switch: false
        view:
            header:
                title: 高级功能
            table:
                - ["#电源管理"]
                - ["#短按(开/关机):", short_button|按下]
                - ["#长按(强制关机):", long_button|按下]
                - ["#重启:", reset_button|按下]
                - []
                - ["#网络唤醒"]
                - ["#被控机设备", wol_server1|网络唤醒]
                - []
                - ["#KVM 切换"]
                - ["#HDMI 1", input1-button|切换]
                - ["#HDMI 2", input2-button|切换]

vnc:
    keymap: /usr/share/kvmd/keymaps/en-us
    mouse_output: usb

    auth:
        vncauth:
            enabled: true

    memsink:
        jpeg:
            sink: "kvmd::ustreamer::jpeg"
        h264:
            sink: "kvmd::ustreamer::h264"

otgnet:
    commands:
        post_start_cmd:
            - "/bin/true"
        pre_stop_cmd:
            - "/bin/true"

nginx:
    http:
        port: 8080
    https:
        port: 4430

languages:
    console: zh
    web: zh
root@armbianserver:~/kvmd_config#

image

mofeng-git commented 1 week ago

H264视频画面质量可以通过 H.264 比特率参数(或者说“码率”)调节,越高画面质量越好,带宽占用越大。

image

Logan147 commented 1 week ago

哦哦哦哦哦,好了,作者牛啊哈哈哈哈哈,终于成功了

Logan147 commented 1 week ago

好了,没有问题了 image 必须支持

Logan147 commented 1 week ago

顺便问一下这个 采集卡视频地址 指的是什么啊 image

Logan147 commented 1 week ago

image

mofeng-git commented 1 week ago

tc358743 本来是特指树莓派 tc358743 HDMI CSI 采集卡。我这里对 ustreamer 进行了修改支持普通采集卡音频设备,为了和 PiKVM 官方保持兼容,这个参数就保留下来了。

就当是指采集卡视频地址就行了。 tc358743 后面的值为采集卡设备路径就行了,如 tc358743 = "/dev/video1"

Logan147 commented 1 week ago

好的,我试试

Logan147 commented 1 week ago

好了,多谢大佬,有声音了 image

Logan147 commented 1 week ago

感觉1920x1080画面即使把 H264比特率调整到最高画面还是没有mjpeg视频模式清晰,是机器性能不足还是我需要换一个onekvm推荐的采集卡?作者您使用的采集卡在h264视频模式下的画面清晰度和mjpeg视频模式是一样的吗?

Logan147 commented 1 week ago

我在h264视频模式下录制具有声音的视频CPU负载才一半, image

Logan147 commented 1 week ago

但是感觉画面有一些模糊,这个以后的版本会继续提升优化h264画面吗,还是更换采集卡可以更快速的解决这个问题

mofeng-git commented 1 week ago

感觉1920x1080画面即使把 H264比特率调整到最高画面还是没有mjpeg视频模式清晰,是机器性能不足还是我需要换一个onekvm推荐的采集卡?作者您使用的采集卡在h264视频模式下的画面清晰度和mjpeg视频模式是一样的吗?

画面没有多少优化空间,除非gpu硬件编码或着忍受高延迟高cpu占用,这是当下的取舍。后期会编写代码放出选项供用户自行选择编码预设选项。

视频画质:YUYV>MJPEG>H.264。mjpeg为采集卡直出画质比较好,mjpeg转码h.264有少量画质损失。H.264画质差的主要原因是我的h.264编码参数预设为实时快速,保证画面低延迟和性能占用低。如果将编码预设修改为最慢可以获得最好的画质,但延迟和cpu占用会非常高。

//配置 libx264 编码参数
x264_param_default_preset(enc->param, "ultrafast", "zerolatency");

可用预设所有的预设值由慢到快、画质由低到高排序: ultrafast、superfast、veryfast、faster、fast、medium、slow、slower、veryslow、placebo

Logan147 commented 1 week ago

好的,经过 我刚刚测试了一下,可以流程的看b站番剧,实用性还是很强的,支持作者,我没有问题了,先关闭这个issue了,再次感谢了