frigate: [Restream]: Missing audio stream in restream
Describe the problem you are having
I’m trying to use a restream and video works well, but the audio stream is missing.
- without additional ffmpeg parms there is no audio in mse and webrtc stream
- with “ffmpeg:front#audio=copy” there is no audio in mse and webrtc stream
- with “ffmpeg:front#audio=opus” there is no audio in mse and webrtc stream
- with “ffmpeg:front#audio=aac” there is audio in mse (but high latency) but not in webrtc stream
What missing is the possibility to copy the audio stream from the original source. Thanks.
Version
Frigate (Full Access) Beta (0.12.0)
Frigate config file
go2rtc:
api:
origin: "*"
streams:
front:
- rtsp://admin:password!@192.168.88.233/media/video1/
- "ffmpeg:front#audio=copy"
cameras:
front:
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/front
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://admin:password!@192.168.88.233/media/video2
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
detect:
width: 720
height: 576
fps: 10
enabled: true
record:
enabled: true
retain:
days: 5
events:
retain:
default: 15
objects:
track:
- person
- car
- dog
- cat
snapshots:
enabled: true
timestamp: false
bounding_box: true
crop: false
required_zones: []
retain:
default: 3
objects:
person: 15
mqtt:
host: 192.168.88.3
user: homeassistant
password: oonah3chahc0ieba8asay7hai4sha6Ushing4iethahg8boGheed7iemahhee2ya
ui:
use_experimental: true
environment_vars:
LIBVA_DRIVER_NAME: radeonsi
Relevant log output
s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service go2rtc-healthcheck successfully started
2023-03-27 18:32:17.243256053 [INFO] Preparing go2rtc config...
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2023-03-27 18:32:17.267669859 [INFO] Starting Frigate...
2023-03-27 18:32:17.289609462 [INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
2023-03-27 18:32:17.466918466 [INFO] Got IP address from supervisor: 192.168.88.3
2023-03-27 18:32:17.656293127 [INFO] Got WebRTC port from supervisor: 8555
2023-03-27 18:32:18.586674782 [INFO] Starting go2rtc...
2023-03-27 18:32:18.832353494 20:32:18.832 INF go2rtc version 1.2.0 linux/amd64
2023-03-27 18:32:18.834341992 20:32:18.834 INF [api] listen addr=:1984
2023-03-27 18:32:18.835477924 20:32:18.835 INF [rtsp] listen addr=:8554
2023-03-27 18:32:18.838667840 20:32:18.838 INF [srtp] listen addr=:8443
2023-03-27 18:32:18.840069085 20:32:18.839 INF [webrtc] listen addr=:8555
2023-03-27 18:32:21.764715350 [2023-03-27 20:32:21] frigate.app INFO : Starting Frigate (0.12.0-7d589bd)
2023-03-27 18:32:21.827942885 [2023-03-27 20:32:21] frigate.app INFO : Creating directory: /tmp/cache
2023-03-27 18:32:21.835159777 [2023-03-27 20:32:21] peewee_migrate INFO : Starting migrations
2023-03-27 18:32:21.852365764 [2023-03-27 20:32:21] peewee_migrate INFO : There is nothing to migrate
2023-03-27 18:32:21.927369935 [2023-03-27 20:32:21] frigate.app INFO : Output process started: 298
2023-03-27 18:32:21.934182973 [2023-03-27 20:32:21] detector.cpu INFO : Starting detection process: 297
2023-03-27 18:32:21.943138629 [2023-03-27 20:32:21] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-03-27 18:32:21.992517607 [2023-03-27 20:32:21] frigate.app INFO : Camera processor started for front: 302
2023-03-27 18:32:21.998084285 [2023-03-27 20:32:21] frigate.app INFO : Capture process started for front: 304
2023-03-27 18:32:27.275555595 [INFO] Starting go2rtc healthcheck service...
2023-03-27 18:32:35.983977099 192.168.88.3 - - [27/Mar/2023:20:32:35 +0200] "GET /get_vehicleinfo/VF3M4DGZUMS226734?from_cache=1 HTTP/1.1" 200 6641 "-" "HomeAssistant/2023.3.6 httpx/0.23.3 Python/3.10" "-"
2023-03-27 18:32:35.998454354 192.168.88.3 - - [27/Mar/2023:20:32:35 +0200] "GET /charge_control?vin=VF3M4DGZUMS226734&?always_check=true HTTP/1.1" 200 6641 "-" "HomeAssistant/2023.3.6 httpx/0.23.3 Python/3.10" "-"
Frigate stats
No response
Operating system
Debian
Install method
HassOS Addon
Coral version
CPU (no coral)
Any other information that may be helpful
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17
Omg, that was the missing part xD I simply needed to change preset to aac. Now I have working recording with audio in aac (where latency is not so important) and a live view with PCM audio! Thank you!