You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`RELAY_PUBLISH_USER`| Username for RTSP publish authentication |
27
31
|`RELAY_PUBLISH_PASS`| Password for RTSP publish authentication |
28
32
|`RTSP_TRANSPORT=tcp`| Transport to use when pushing (`tcp` or `udp`) |
33
+
|`AUDIO_BITRATE=128k`| Audio bitrate when audio is enabled |
34
+
|`AUDIO_SAMPLE_RATE=48000`| Audio sampling rate |
35
+
|`AUDIO_CHANNELS=2`| Number of audio channels |
36
+
|`GENERATE_SINE_AUDIO=true`| Generate a synthetic sine wave when no audio device is supplied |
37
+
|`SINE_FREQUENCY=1000`| Frequency (Hz) of the synthetic sine tone |
38
+
|`USE_TEST_PATTERN=false`| When `true`, push a `testsrc` pattern instead of the camera |
29
39
30
40
## Building
31
41
@@ -78,5 +88,7 @@ The service will restart automatically if `ffmpeg` exits and will reconnect afte
78
88
79
89
## Hardware acceleration tips
80
90
81
-
- For Rockchip hardware encoding, install an `ffmpeg` build compiled with `--enable-rkmpp` or the V4L2 request API and set `FFMPEG_BINARY=/usr/local/bin/ffmpeg` (or whichever path hosts your accelerated binary).
82
-
- Update the streamer source if you need to switch codecs (for example, replace `libx264` with `h264_rkmpp`). After editing, rebuild the binary with `go build`.
91
+
- The default pipeline now matches the Rockchip GPU sweet spot: 1280x720 @30 fps, NV12 frames, and `h264_rkmpp` with 2 Mbps CBR.
92
+
- Ensure the SBC is running an `ffmpeg` build compiled with `--enable-rkmpp` (the provided Radxa builds usually ship this; the custom binary you installed is assumed to replace `ffmpeg`).
93
+
- Adjust the `VIDEO_*` variables if you need different bitrates or resolutions, but keep an eye on encoder limits.
94
+
- Set `USE_TEST_PATTERN=true` to emit the synthetic `testsrc` pattern while commissioning the pipeline.
0 commit comments