tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.01k stars 252 forks source link

Bad Gateway from video stream #695

Closed DrRek closed 3 years ago

DrRek commented 3 years ago

Description

Tiny pilot is capturing my mouse&keyboard but is not showing the screen.

What's the behavior that you expect?

I should be able to see the screen

What's happening instead?

I should be able to see the screen

What are the steps to reproduce this behavior?

  1. use a raspberry pi zero and a CSI to HDMI adapter
  2. run``` curl \ --silent \ --show-error \ https://raw.githubusercontent.com/mtlynch/tinypilot/master/quick-install | \ bash - && \ sudo reboot
  3. screen says "no screen" (or smth similar)
  4. after googling realize I should run the following steps
    cat /home/tinypilot/settings.yml
    ustreamer_port: 8001
    ustreamer_persistent: true
    ustreamer_encoder: hw
    ustreamer_format: jpeg
    ustreamer_resolution: 1920x1080
    ustreamer_capture_device: "tc358743"
  5. run sudo /opt/tinyplot-privileged/update && sudo reboot
  6. still no screen (as shown in the screenshot below)

Screenshots

image

Logs

https://logs.tinypilotkvm.com/xKCICJrb

mtlynch commented 3 years ago

The normal installer assumes that you have an HDMI to USB dongle. I should fix those instructions.

You should be able to fix it with these commands:

echo 'ustreamer_port: 8001
ustreamer_persistent: true
ustreamer_capture_device: tc358743' > /home/tinypilot/settings.yml
sudo /opt/tinypilot-privileged/update && sudo reboot
DrRek commented 3 years ago

I already had ustreamer_capture_device: "tc358743" in my config. However, I followed your steps but still no results :(

Screen Shot 2021-05-18 at 19 47 37

https://logs.tinypilotkvm.com/SpkoAKis

DrRek commented 3 years ago

Fixed, there were some typos in the command you mentioned.

posted for future reference:

echo 'ustreamer_port: 8001
ustreamer_persistent: true
ustreamer_capture_device: tc358743' > /home/tinypilot/settings.yml
sudo /opt/tinypilot-privileged/update && sudo reboot
mtlynch commented 3 years ago

Glad you got it working!

Fixed, there were some typos in the command you mentioned.

posted for future reference:

The only difference is the quotes around tc358743? That's strange because that shouldn't make a difference.

DrRek commented 3 years ago

the qoute in the command (which does make a difference in the sh scritp) and the typo "tinypilot" instead of "tinyplot" :)

mtlynch commented 3 years ago

Ah, thanks!