At a loss for H.264 success
- @david
Hello Tinypilot staff,
I can't get H.264 to work. I have updated to 2.6.5, here is the janus status log:
● janus.service - Janus WebRTC gateway
Loaded: loaded (/etc/systemd/system/janus.service; enabled; vendor preset: ena>
Active: active (running) since Fri 2025-01-31 13:33:15 EST; 53s ago
Docs: https://janus.conf.meetecho.com/docs/index.html
Process: 1999 ExecStart=/usr/bin/janus --disable-colors --daemon --log-stdout (>
Main PID: 2000 (janus)
Tasks: 9 (limit: 3754)
CPU: 370ms
CGroup: /system.slice/janus.service
└─2000 /usr/bin/janus --disable-colors --daemon --log-stdout
Jan 31 13:33:15 tinypilot janus[2000]: Loading transport plugin 'libjanus_websocket>
Jan 31 13:33:15 tinypilot janus[2000]: libwebsockets logging: 0
Jan 31 13:33:15 tinypilot janus[2000]: Websockets server started (port 48002)...
Jan 31 13:33:15 tinypilot janus[2000]: JANUS WebSockets transport plugin initialize>
Jan 31 13:33:15 tinypilot janus[2000]: [WARN] Transport plugin 'libjanus_mqtt.so' h>
Jan 31 13:33:15 tinypilot janus[2000]: [WARN] Transport plugin 'libjanus_http.so' h>
Jan 31 13:33:15 tinypilot janus[2000]: [WARN] Transport plugin 'libjanus_pfunix.so'>
Jan 31 13:33:15 tinypilot janus[2000]: [WARN] Transport plugin 'libjanus_rabbitmq.s>
Jan 31 13:33:15 tinypilot janus[2000]: WebSockets thread started
Jan 31 13:33:15 tinypilot systemd[1]: Started Janus WebRTC gateway.
Here is the debug log: https://logs.tinypilotkvm.com/g8odX5pM
I am using Tailscale, currently in the same network. Please let me know what troubleshooting steps I can follow.
- David @david2025-02-03 12:12:38.141Z
Hi @mcoco, I'm sorry H.264 streaming isn't working here.
Thanks for sharing the TinyPilot log and all those details. It looks like everything is running normally, so we'll have to investigate a little further.
If your client machine and TinyPilot are both on the same local network (i.e., disconnected from a Tailscale network), does H.264 work (with or without a STUN server)?
Could you tell me more about your client machine and the browser you're using to access the TinyPilot web interface? For instance, the make and model of computer, its operating system, and whether you're using Chrome, Safari, Firefox, etc.
Please let me know if you have any questions.
- MIn reply tomcoco⬆:Mcoco @mcoco
Disabling NAT on the router stops all external internet connections, but tinypilot still accessible over WAN/LAN. With NAT disabled, H264 still doesnt work.
- MIn reply tomcoco⬆:Mcoco @mcoco
ok i got JSON dump for webrtc. There is nothing regarding tinypilot there. Its only 3 lines with mostly empty dict entries.
I tried enabling H264 with stun and checking the webrtc dump again, nothing different in the JSON file.
Ive tried edge and brave, same result, no H264.
Best,
mcoco - Progresswith handling this problem
- MMcoco @mcoco
Here is the log for local access (tailscale down on both ends, 192... addr). https://logs.tinypilotkvm.com/g1HSS0ww
I can access tinypilot stream, but only on MJPEG. H264 with or without STUN doesnt work.
I am using Chrome, I dont think I have changed anything in the router admin panel, is there something I should disable to keep troubleshooting?
- David @david2025-02-06 12:11:01.950Zreplies tomcoco⬆:
Thanks for sharing that log and all those details, @mcoco.
If you enter
chrome://webrtc-internals/
into your Chrome address bar, you should be able to use it to view any running WebRTC sessions. If you access that page, do you see TinyPilot (similar to this screenshot):If you don't see TinyPilot, that suggests it isn't establishing any kind of WebRTC connection with your browser.
Could you try accessing the TinyPilot web interface without any browser extensions active to see if any extensions are preventing your browser from establishing the connection? It may also be worth trying other browsers to see if they have similar behavior here.
Please let me know if you have any questions.