[Config Support]: Can't get go2rtc to re-encode my h265 to h264 #15198
Unanswered
sruffilli
asked this question in
Config Support
Replies: 4 comments 24 replies
|
You should use ffmpeg on the camera stream url itself and only provide opus audio in the second line, eg: |
18 replies
|
You make a good point however adding hardware seems to significantly enhance the stability the docs imply that go to RTC does everything in software unless you do that #HardwareSent from my iPhoneOn Jun 18, 2025, at 5:16 PM, mrplow ***@***.***> wrote:
I added #hardware on my ffmpeg command.
garage_main:
# - ***@***.***:554/stream0#audio=opus#hardware#video=copy
- ***@***.***:554/stream0#video=copy#audio=aac#hardware # FFMPEG - Hardware Decoding/Encoding - keep video - opus audio
- http://192.168.1.195/cgi-bin/snapshot.cgi?username=Operator&password=Password
I don't believe this is transcoding the video, your using #video=copy
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
0 replies
|
If anyone else needs fast answer, heres is how. Replace rtsp://admin:admin@192.168.120.227/streaming/channels/101 with your own rtsp url. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Describe the problem you are having
I'm using Reolink Duo 2 cameras (I know).
I've tried many multiple config permutations to convert h265 to h264 to no avail. Can anybody spot what's wrong with my setup?
Version
0.15.0-e76f4e9
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
# UNINTERESTING LOGS 2024-11-26 11:52:16.231544451 [INFO] Preparing new go2rtc config... 2024-11-26 11:52:16.562722981 [INFO] Starting go2rtc... 2024-11-26 11:52:16.651378640 11:52:16.651 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2 2024-11-26 11:52:16.651767027 11:52:16.651 INF config path=/dev/shm/go2rtc.yaml 2024-11-26 11:52:16.652718055 11:52:16.652 INF [api] listen addr=:1984 2024-11-26 11:52:16.653085071 11:52:16.652 INF [rtsp] listen addr=:8554 2024-11-26 11:52:16.653562785 11:52:16.653 INF [webrtc] listen addr=:8555/tcp 2024-11-26 11:52:26.235027351 [INFO] Starting go2rtc healthcheck service...Frigate stats
{ "cameras": { "duo_garage": { "camera_fps": 7.1, "process_fps": 7.1, "skipped_fps": 0, "detection_fps": 0, "detection_enabled": true, "pid": 450, "capture_pid": 457, "ffmpeg_pid": 479, "audio_rms": 435.3416, "audio_dBFS": -37.5324 }, "duo_ingresso": { "camera_fps": 7.1, "process_fps": 7.1, "skipped_fps": 0, "detection_fps": 0, "detection_enabled": true, "pid": 451, "capture_pid": 469, "ffmpeg_pid": 490, "audio_rms": 359.3501, "audio_dBFS": -39.1986 } }, "detectors": { "coral": { "inference_speed": 8.19, "detection_start": 0, "pid": 411 } }, "detection_fps": 0, "gpu_usages": { "amd-vaapi": { "gpu": "1.67%", "mem": "20.59%" } }, "cpu_usages": { "1": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "/package/admin/s6/command/s6-svscan -d4 -- /run/service" }, "14": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise s6-linux-init-shutdownd" }, "16": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B" }, "23": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise certsync-log" }, "24": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise go2rtc" }, "25": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise nginx-log" }, "26": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise certsync" }, "27": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise frigate" }, "28": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise s6rc-fdholder" }, "29": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise go2rtc-log" }, "30": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise s6rc-oneshot-runner" }, "31": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise frigate-log" }, "32": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise go2rtc-healthcheck" }, "33": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-supervise nginx" }, "44": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules" }, "45": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --" }, "84": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc" }, "87": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/certsync" }, "88": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate" }, "90": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx" }, "106": { "cpu": "7.3", "cpu_average": "7", "mem": "0.2", "cmdline": "/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml" }, "120": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "bash ./run.user go2rtc-healthcheck" }, "125": { "cpu": "1.6", "cpu_average": "1", "mem": "2.1", "cmdline": "python3 -u -m frigate" }, "131": { "cpu": "0.0", "cpu_average": "0", "mem": "0.1", "cmdline": "nginx: master process nginx" }, "152": { "cpu": "0.0", "cpu_average": "0", "mem": "0.1", "cmdline": "nginx: worker process" }, "153": { "cpu": "0.0", "cpu_average": "0", "mem": "0.1", "cmdline": "nginx: worker process" }, "154": { "cpu": "0.0", "cpu_average": "0", "mem": "0.1", "cmdline": "nginx: worker process" }, "155": { "cpu": "0.0", "cpu_average": "0", "mem": "0.1", "cmdline": "nginx: worker process" }, "156": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "nginx: cache manager process" }, "299": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "bash ./run.user certsync" }, "395": { "cpu": "0.2", "cpu_average": "0", "mem": "1.2", "cmdline": "frigate.recording_manager" }, "401": { "cpu": "0.2", "cpu_average": "0", "mem": "1.1", "cmdline": "frigate.review_segment_manager" }, "411": { "cpu": "0.1", "cpu_average": "0", "mem": "1.2", "cmdline": "frigate.detector.coral" }, "414": { "cpu": "0.1", "cpu_average": "0", "mem": "4.3", "cmdline": "frigate.embeddings_manager" }, "436": { "cpu": "0.5", "cpu_average": "0", "mem": "1.2", "cmdline": "frigate.output " }, "450": { "cpu": "1.2", "cpu_average": "0", "mem": "1.2", "cmdline": "frigate.process:duo_garage" }, "451": { "cpu": "1.1", "cpu_average": "0", "mem": "1.2", "cmdline": "frigate.process:duo_ingresso" }, "457": { "cpu": "1.0", "cpu_average": "0", "mem": "1.1", "cmdline": "frigate.capture:duo_garage" }, "468": { "cpu": "0.0", "cpu_average": "0", "mem": "0.3", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 1536x576 -i pipe: -threads 1 -f mpegts -s 1920x720 -codec:v mpeg1video -q 8 -bf 0 pipe:" }, "469": { "cpu": "1.1", "cpu_average": "0", "mem": "1.1", "cmdline": "frigate.capture:duo_ingresso" }, "479": { "cpu": "2.2", "cpu_average": "1", "mem": "0.7", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.15.0-e76f4e9 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/duo_garage_sub?video=copy&audio=aac -r 7 -vf fps=7,scale_vaapi=w=1536:h=576,hwdownload,format=nv12,eq=gamma=1.4:gamma_weight=0.5 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:" }, "480": { "cpu": "0.0", "cpu_average": "0", "mem": "0.3", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 1536x576 -i pipe: -threads 1 -f mpegts -s 1920x720 -codec:v mpeg1video -q 8 -bf 0 pipe:" }, "481": { "cpu": "0.4", "cpu_average": "1", "mem": "1.2", "cmdline": "python3 -u -m frigate" }, "490": { "cpu": "2.2", "cpu_average": "1", "mem": "0.6", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.15.0-e76f4e9 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/duo_ingresso_sub?video=copy&audio=aac -r 7 -vf fps=7,scale_vaapi=w=1536:h=576,hwdownload,format=nv12,eq=gamma=1.4:gamma_weight=0.5 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:" }, "502": { "cpu": "0.9", "cpu_average": "0", "mem": "0.2", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.15.0-e76f4e9 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/duo_garage_main -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/duo_garage@%Y%m%d%H%M%S%z.mp4" }, "505": { "cpu": "0.0", "cpu_average": "0", "mem": "0.1", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -threads 1 -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:" }, "509": { "cpu": "0.4", "cpu_average": "0", "mem": "0.1", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -vn -threads 1 -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.15.0-e76f4e9 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/duo_garage_sub?video=copy&audio=aac -threads 1 -f s16le -ar 16000 -ac 1 -y pipe:" }, "522": { "cpu": "0.9", "cpu_average": "0", "mem": "0.2", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.15.0-e76f4e9 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/duo_ingresso_main -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/duo_ingresso@%Y%m%d%H%M%S%z.mp4" }, "523": { "cpu": "0.5", "cpu_average": "0", "mem": "0.2", "cmdline": "/usr/lib/ffmpeg/7.0/bin/ffmpeg -vn -threads 1 -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.15.0-e76f4e9 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/duo_ingresso_sub?video=copy&audio=aac -threads 1 -f s16le -ar 16000 -ac 1 -y pipe:" }, "1916": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "sleep 60" }, "1937": { "cpu": "0.0", "cpu_average": "0", "mem": "0.0", "cmdline": "sleep 30s" }, "frigate.full_system": { "cpu": "11.6", "mem": "45.8" } }, "service": { "uptime": 542, "version": "0.15.0-e76f4e9", "latest_version": "0.14.1", "storage": { "/media/frigate/recordings": { "total": 100220.9, "used": 93013, "free": 2072, "mount_type": "ext4" }, "/media/frigate/clips": { "total": 100220.9, "used": 93013, "free": 2072, "mount_type": "ext4" }, "/tmp/cache": { "total": 953.7, "used": 8.2, "free": 945.5, "mount_type": "tmpfs" }, "/dev/shm": { "total": 128, "used": 67.2, "free": 60.8, "mount_type": "tmpfs" } }, "temperatures": {}, "last_updated": 1732618891 }, "processes": { "recording": { "pid": 395 }, "review_segment": { "pid": 401 }, "go2rtc": { "pid": 106 }, "embeddings": { "pid": 414 }, "audio_detector": { "pid": 481 } } }Operating system
Proxmox
Install method
Docker Compose
docker-compose file or Docker CLI command
Object Detector
Coral
Screenshots of the Frigate UI's System metrics pages
No response
Any other information that may be helpful
No response
All reactions