Skip to content

Instantly share code, notes, and snippets.

View andyp1xe1's full-sized avatar

Andrei andyp1xe1

View GitHub Profile
@cbarraco
cbarraco / ffmpeg screen sharing
Last active December 3, 2024 05:52
The poor man's VNC. If you have ffmpeg and netcat you can stream your screen across your network with two one-liners
# If the server has ffmpeg:
## For the server:
ffmpeg -f fbdev -i /dev/fb0 -f avi pipe:1 | nc -l -p 1234
## For the viewer:
nc 127.0.0.1 1234 | ffplay -i pipe:0
# If the server doesn't have ffmpeg:
## For the server:
sudo cat /dev/fb0 | nc -l -p 1234
## For the viewer (replace 1920x1080 with the server's resolution):