Skip to content

Instantly share code, notes, and snippets.

@vimagick
Last active July 11, 2026 10:04
Show Gist options
  • Select an option

  • Save vimagick/9d6cff019acb8d0a2e4d1b6a2f1fd711 to your computer and use it in GitHub Desktop.

Select an option

Save vimagick/9d6cff019acb8d0a2e4d1b6a2f1fd711 to your computer and use it in GitHub Desktop.
go2rtc on windows

Server

C:\
└───Program Files
    └───go2rtc
            arial.ttf
            go2rtc.exe
            go2rtc.reg
            go2rtc.toml
            README.txt
sc create go2rtc start= auto binPath= "C:\WINDOWS\srvany-ng.exe"
sc description go2rtc "Ultimate camera streaming application"

reg import go2rtc.reg
reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\go2rtc

sc start go2rtc
sc query go2rtc

sc config go2rtc start= disabled
sc stop go2rtc

Client

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\go2rtc\Parameters]
"Application"="C:\\Program Files\\go2rtc\\go2rtc.exe"
"AppParameters"="-c go2rtc.toml"
"AppDirectory"="C:\\Program Files\\go2rtc\\"
api:
listen: ":1984"
#username: "admin"
#password: "pass"
rtsp:
listen: ":8554"
#username: "admin"
#password: "pass"
#default_query: "video&audio"
webrtc:
listen: ":8555"
ffmpeg:
loop: "-re -stream_loop -1 -i {input} -listen 1"
# COPY arial.ttf FROM C:\Windows\fonts\ TO C:\Program Files\go2rtc\
timestamp: "-vf \"drawtext=fontfile=arial.ttf: text='%{localtime}': x=w-tw-lh: y=lh: fontsize=24: fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5\""
streams:
#bunny: "ffmpeg:BigBuckBunny_320x180.mp4#video=h264#audio=aac#input=loop"
# ffmpeg -f dshow -list_devices true -i dummy
usbcam: "ffmpeg:device?video=Logitech StreamCam&video_size=960x540#video=h264#framerate=15#raw=timestamp"
#publish:
#bunny: "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx-xxxx"
#usbcam: "rtmp://192.168.200.92/live/abc123"
log:
output: stdout
level: info
api: trace
exec: debug
ngrok: info
rtsp: warn
streams: error
webrtc: fatal
@vimagick

vimagick commented Jul 6, 2026

Copy link
Copy Markdown
Author
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment