Krypto5 Posted May 13, 2023 Share Posted May 13, 2023 12 hours ago, SohailS said: I am trying to get audio working in the latest release. my camera does not support AAC which is the best option to choose? Your camera is probably the same as mine: Hikvision, I don't know why Hikvision has difficulty enabling the audio of the cameras during recordings or streams, here I constantly end up having problems with crashes, stuttering or simply the audio is disabled for use. What I did to work around the situation was to try to add a few lines in the code for the restream of each camera, the most incredible thing is that I have more than 4 Hikvision camera models in my house and each one I have to use a different configuration so that the Frigate understand and enable the audio, however it turns out that sometimes it works only for recording but it doesn't work live, sometimes the reverse also happens. It's very complicated to be able to adjust the audio of the Hikvision cameras on the Frigate, it's even a question that I was thinking of posting here to see if more people have the same problem and how they solved it, it's probably some FFMPEG command that has to be included to improve compatibility or simply the syntax of the code that should have some more correct order to improve compatibility because I've already done several tests with audio trying to convert to AAC or just using COPY in some options and it works. An example I use here: streams: porteiro: - rtsp://user:[email protected]:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 porteiro_sub: - rtsp://user:[email protected]:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2 porteiro: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/porteiro?video=copy&audio=copy input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/porteiro_sub input_args: preset-rtsp-restream roles: - detect output_args: record: preset-record-generic-audio-aac Quote Link to comment
mikey6283 Posted May 14, 2023 Share Posted May 14, 2023 (edited) Hi need help installing the latest update , All was working on previous version , now one minute i have the camera showing in Birdseye next minute nothing. i am totally lost at the moment how to set up go2tc , do i have to insert these lines for each camera (4) Any help would be appreciated. config.yml mqtt: host: user: password: detectors: cora1: type: edgetpu device: pci:0 database: path: /media/frigate/frigate.db birdseye: enabled: false mode: object objects: track: - person - cat record: enabled: True retain: days: 5 events: retain: default: 10 rtmp: enabled: false go2rtc: streams: reolink: - http://1xxxxxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Garage1# - "ffmpeg:reolink#audio=opus" reolink_sub: - http:/xxxxxx/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=Garage1 cameras: reolink: ffmpeg: hwaccel_args: -c:v h264_qsv -hwaccel_output_format qsv input_args: - -avoid_negative_ts - make_zero - -fflags - genpts+discardcorrupt - -flags - low_delay - -strict - experimental - -analyzeduration - 1000M - -rw_timeout - "5000000" output_args: record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy inputs: - path: http://1xxxxxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Garage1 roles: - record - rtmp - path: http://1xxxxxx/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=Garage1 roles: - detect detect: width: 896 height: 672 fps: 5 Container logs to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:26.477246809 192.168.55.15 - - [14/May/2023:08:37:26 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:31.477111235 2023/05/14 08:37:31 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:31.477159570 192.168.55.15 - - [14/May/2023:08:37:31 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:36.477043278 2023/05/14 08:37:36 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:36.477099228 192.168.55.15 - - [14/May/2023:08:37:36 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:41.476395166 2023/05/14 08:37:41 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:41.476633137 192.168.55.15 - - [14/May/2023:08:37:41 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:46.476380119 2023/05/14 08:37:46 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:46.476411762 192.168.55.15 - - [14/May/2023:08:37:46 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:51.476580335 2023/05/14 08:37:51 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:51.476612447 192.168.55.15 - - [14/May/2023:08:37:51 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:56.476707173 2023/05/14 08:37:56 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:56.476810136 192.168.55.15 - - [14/May/2023:08:37:56 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" Edited May 14, 2023 by mikey6283 Quote Link to comment
yayitazale Posted May 14, 2023 Author Share Posted May 14, 2023 On 5/12/2023 at 4:56 PM, SohailS said: I am trying to get audio working in the latest release. my camera does not support AAC which is the best option to choose? If you want audio, you should configure the GO2RTC restream and transcode de audio from PCM to AAC for example. Quote Link to comment
yayitazale Posted May 14, 2023 Author Share Posted May 14, 2023 On 5/12/2023 at 7:42 PM, NeoDude said: Just a minor one. I have 2 GPUs in my system, a Quadro P600, and a GeForce GTX 1050. I have the 1050 successfully working with Frigate. 'Nvidia-SMI' shows that the 1050 is being used by ffmpeg, but the GUI in Frigate has the P600 listed... Any ideas? You can try to reopen this or create a new issue on github and reference to it https://github.com/blakeblackshear/frigate/issues/5712#event-9071685940 Multi nvidia GPU is not working properly at least on unraid but no one seems to know why. Quote Link to comment
yayitazale Posted May 14, 2023 Author Share Posted May 14, 2023 2 hours ago, mikey6283 said: Hi need help installing the latest update , All was working on previous version , now one minute i have the camera showing in Birdseye next minute nothing. i am totally lost at the moment how to set up go2tc , do i have to insert these lines for each camera (4) Any help would be appreciated. config.yml mqtt: host: user: password: detectors: cora1: type: edgetpu device: pci:0 database: path: /media/frigate/frigate.db birdseye: enabled: false mode: object objects: track: - person - cat record: enabled: True retain: days: 5 events: retain: default: 10 rtmp: enabled: false go2rtc: streams: reolink: - http://1xxxxxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Garage1# - "ffmpeg:reolink#audio=opus" reolink_sub: - http:/xxxxxx/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=Garage1 cameras: reolink: ffmpeg: hwaccel_args: -c:v h264_qsv -hwaccel_output_format qsv input_args: - -avoid_negative_ts - make_zero - -fflags - genpts+discardcorrupt - -flags - low_delay - -strict - experimental - -analyzeduration - 1000M - -rw_timeout - "5000000" output_args: record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy inputs: - path: http://1xxxxxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Garage1 roles: - record - rtmp - path: http://1xxxxxx/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=Garage1 roles: - detect detect: width: 896 height: 672 fps: 5 Container logs to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:26.477246809 192.168.55.15 - - [14/May/2023:08:37:26 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:31.477111235 2023/05/14 08:37:31 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:31.477159570 192.168.55.15 - - [14/May/2023:08:37:31 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:36.477043278 2023/05/14 08:37:36 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:36.477099228 192.168.55.15 - - [14/May/2023:08:37:36 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:41.476395166 2023/05/14 08:37:41 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:41.476633137 192.168.55.15 - - [14/May/2023:08:37:41 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:46.476380119 2023/05/14 08:37:46 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:46.476411762 192.168.55.15 - - [14/May/2023:08:37:46 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:51.476580335 2023/05/14 08:37:51 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:51.476612447 192.168.55.15 - - [14/May/2023:08:37:51 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" 2023-05-14 08:37:56.476707173 2023/05/14 08:37:56 [error] 134#134: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.55.15, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.55.51:5000" 2023-05-14 08:37:56.476810136 192.168.55.15 - - [14/May/2023:08:37:56 +0100] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.2 aiohttp/3.8.4 Python/3.10" "-" First of all, please give format to your comments and don't paste all the config file in plain text, attach it as a file, same for long logs. Next: you should use presets in the hardware acceleration, please read the docs. Also, you configured birdseye only for objects, so you will only have a image there when any camera has a object detection happening, so that behavior seems can be normal. Last, are you using unraid docker app or home assistant plugin? Quote Link to comment
SohailS Posted May 15, 2023 Share Posted May 15, 2023 On 5/13/2023 at 4:31 AM, Roger Maciel de Souza said: Your camera is probably the same as mine: Hikvision, I don't know why Hikvision has difficulty enabling the audio of the cameras during recordings or streams, here I constantly end up having problems with crashes, stuttering or simply the audio is disabled for use. What I did to work around the situation was to try to add a few lines in the code for the restream of each camera, the most incredible thing is that I have more than 4 Hikvision camera models in my house and each one I have to use a different configuration so that the Frigate understand and enable the audio, however it turns out that sometimes it works only for recording but it doesn't work live, sometimes the reverse also happens. It's very complicated to be able to adjust the audio of the Hikvision cameras on the Frigate, it's even a question that I was thinking of posting here to see if more people have the same problem and how they solved it, it's probably some FFMPEG command that has to be included to improve compatibility or simply the syntax of the code that should have some more correct order to improve compatibility because I've already done several tests with audio trying to convert to AAC or just using COPY in some options and it works. An example I use here: streams: porteiro: - rtsp://user:[email protected]:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 porteiro_sub: - rtsp://user:[email protected]:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2 porteiro: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/porteiro?video=copy&audio=copy input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/porteiro_sub input_args: preset-rtsp-restream roles: - detect output_args: record: preset-record-generic-audio-aac Thanks for the info yes I have the HikVision I was wondering what is this for? output_args: record: preset-record-generic-audio-aac I now have it working with ffmpeg encoding my stream to aac Quote Link to comment
Krypto5 Posted May 15, 2023 Share Posted May 15, 2023 2 hours ago, SohailS said: Thanks for the info yes I have the HikVision I was wondering what is this for? output_args: record: preset-record-generic-audio-aac I now have it working with ffmpeg encoding my stream to aac As far as I know, this code tells Frigate to record the audio from the cameras in AAC format when the camera doesn't display that audio natively, in my case if I leave the COPY option which is to get the original audio from the camera simply recording no sound, so I have to use - aac so that it converts to that format and saves to the .mp4 file, this is what I understood, I could be wrong. Quote Link to comment
mikey6283 Posted May 15, 2023 Share Posted May 15, 2023 8 hours ago, yayitazale said: First of all, please give format to your comments and don't paste all the config file in plain text, attach it as a file, same for long logs. Next: you should use presets in the hardware acceleration, please read the docs. Also, you configured birdseye only for objects, so you will only have a image there when any camera has a object detection happening, so that behavior seems can be normal. Last, are you using unraid docker app or home assistant plugin? I have read the documentation over and over again and still not able to obtain and image , however, The go2rtc shows up the various new option like Config & logs but no image. I hope that you can point me in correct direction,and i apologise regarding the config , not sure how to post with the indents format , it must be correct or near as possible as I can get the config adn logs from go2rtc page. # yaml-language-server: $schema=http://192.168.55.51:5000/api/config/schema mqtt: host: 192.168.55.51 user: mqtt6283 password: mikey detectors: cora1: type: edgetpu device: pci:0 database: path: /media/frigate/frigate.db record: expire_interval: 20 go2rtc: streams: garage: - rtsp://admin:[email protected]:554/h264Preview_01_main - "ffmpeg:reolink#audio=opus" garage_sub: - rtsp://admin:[email protected]:554/h264Preview_01_main cameras: garage: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/reolink_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 2 # mode: active_objects # events: # retain: # default: 5 # mode: motion # pre_capture: 3 # post_capture: 10 _frigate_logs.txt Quote Link to comment
yayitazale Posted May 16, 2023 Author Share Posted May 16, 2023 18 hours ago, SohailS said: Thanks for the info yes I have the HikVision I was wondering what is this for? output_args: record: preset-record-generic-audio-aac I now have it working with ffmpeg encoding my stream to aac 16 hours ago, Roger Maciel de Souza said: As far as I know, this code tells Frigate to record the audio from the cameras in AAC format when the camera doesn't display that audio natively, in my case if I leave the COPY option which is to get the original audio from the camera simply recording no sound, so I have to use - aac so that it converts to that format and saves to the .mp4 file, this is what I understood, I could be wrong. This is my case, with Tapo Cameras with no AAC audio on original feed: First, you have to define the hw accel argumentsfor ffmpeg. In my case, I have this, so I record always copying the original audio of the input of the record role. ffmpeg: hwaccel_args: preset-vaapi input_args: preset-rtsp-restream-low-latency output_args: record: preset-record-generic-audio-copy Then I defined a restream of the camera with a copy of the stream which transcodes audio to AAC: go2rtc: streams: ofice: - rtsp://user:[email protected]:554/stream1 -"ffmpeg:ofice#audio=aac" Finally, I defined the camera with the roles, using the restreamed feed as input for record role, and a direct secondary low resolution feed from the camera for detection: cameras: ofice: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/ofice?video=copy&audio=aac roles: - record - path: rtsp://user:[email protected]:554/stream2 roles: - detect With this, I record events videos with audio AAC, and I have a RTC stream aviable fo use in Home Assistant with AAC audio as well. Quote Link to comment
yayitazale Posted May 16, 2023 Author Share Posted May 16, 2023 (edited) 15 hours ago, mikey6283 said: I have read the documentation over and over again and still not able to obtain and image , however, The go2rtc shows up the various new option like Config & logs but no image. I hope that you can point me in correct direction,and i apologise regarding the config , not sure how to post with the indents format , it must be correct or near as possible as I can get the config adn logs from go2rtc page. # yaml-language-server: $schema=http://192.168.55.51:5000/api/config/schema mqtt: host: 192.168.55.51 user: mqtt6283 password: mikey detectors: cora1: type: edgetpu device: pci:0 database: path: /media/frigate/frigate.db record: expire_interval: 20 go2rtc: streams: garage: - rtsp://admin:[email protected]:554/h264Preview_01_main - "ffmpeg:reolink#audio=opus" garage_sub: - rtsp://admin:[email protected]:554/h264Preview_01_main cameras: garage: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/reolink_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 2 # mode: active_objects # events: # retain: # default: 5 # mode: motion # pre_capture: 3 # post_capture: 10 _frigate_logs.txt 15.2 kB · 2 downloads Where is the definition for ffmpeg? I don't understand why you are transcoding to OPUS and then recording to AAC. Also this parts look weird: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/reolink_sub?video=copy input_args: preset-rtsp-restream roles: - detect You should stick to the docs format doing something like: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac #detection feed roles: - detect input_args: preset-rtsp-restream - path: rtsp://127.0.0.1:8554/reolink_sub?video=copy #record feed roles: - record input_args: preset-rtsp-restream Edited May 16, 2023 by yayitazale Quote Link to comment
mikey6283 Posted May 16, 2023 Share Posted May 16, 2023 1 minute ago, yayitazale said: Where is the definition for ffmpeg? # yaml-language-server: $schema=http://192.168.55.51:5000/api/config/schema mqtt: host: 192.168.55.51 user: mqtt6283 password: mikey detectors: cora1: type: edgetpu device: pci:0 database: path: /media/frigate/frigate.db record: expire_interval: 20 go2rtc: streams: koipond: ffmpeg:http://10.10.75.25/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Koipond1 - "ffmpeg:reolink#audio=opus" koipond_sub: ffmpeg:http://10.10.75.25/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=Koipond1 front: ffmpeg:http://10.10.75.27/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Front1 - "ffmpeg:reolink#audio=opus" front_sub: ffmpeg:http://10.10.75.27/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=Front1 cameras: koipond: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/koipond?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/koipond_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 2 front: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/front?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/front_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 2 I have tried many option and been able to see go2rtc config , logs etc but unable to get streams. this is logs from go2rtc . Quote 023-05-16 08:40:09.766390579 [2023-05-16 08:40:09] watchdog.koipond ERROR : Ffmpeg process crashed unexpectedly for koipond. 2023-05-16 08:40:09.767300097 [2023-05-16 08:40:09] watchdog.koipond ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2023-05-16 08:40:09.767451490 [2023-05-16 08:40:09] ffmpeg.koipond.detect ERROR : [rtsp @ 0x55fd1b5aec40] method DESCRIBE failed: 404 Not Found 2023-05-16 08:40:09.767464303 [2023-05-16 08:40:09] ffmpeg.koipond.detect ERROR : rtsp://127.0.0.1:8554/koipond_sub?video=copy: Server returned 404 Not Found 2023-05-16 08:40:09.778948362 [2023-05-16 08:40:09] watchdog.koipond ERROR : No new recording segments were created for koipond in the last 120s. restarting the ffmpeg record process... 2023-05-16 08:40:09.779421497 [2023-05-16 08:40:09] watchdog.koipond INFO : Terminating the existing ffmpeg process... 2023-05-16 08:40:09.779424139 [2023-05-16 08:40:09] watchdog.koipond INFO : Waiting for ffmpeg to exit gracefully... 2023-05-16 08:40:09.870823600 [2023-05-16 08:40:09] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front. 2023-05-16 08:40:09.870876066 [2023-05-16 08:40:09] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2023-05-16 08:40:09.871090577 [2023-05-16 08:40:09] ffmpeg.front.detect ERROR : [rtsp @ 0x55fd14afec40] method DESCRIBE failed: 404 Not Found 2023-05-16 08:40:09.871176594 [2023-05-16 08:40:09] ffmpeg.front.detect ERROR : rtsp://127.0.0.1:8554/front_sub?video=copy: Server returned 404 Not Found 2023-05-16 08:40:09.876864540 [2023-05-16 08:40:09] frigate.video ERROR : koipond: Unable to read frames from ffmpeg process. 2023-05-16 08:40:09.877090220 [2023-05-16 08:40:09] frigate.video ERROR : koipond: ffmpeg process is not running. exiting capture thread... 2023-05-16 08:40:09.883058135 [2023-05-16 08:40:09] watchdog.front ERROR : No new recording segments were created for front in the last 120s. restarting the ffmpeg record process... 2023-05-16 08:40:09.889071877 [2023-05-16 08:40:09] watchdog.front INFO : Terminating the existing ffmpeg process... 2023-05-16 08:40:09.889075921 [2023-05-16 08:40:09] watchdog.front INFO : Waiting for ffmpeg to exit gracefully... 2023-05-16 08:40:09.989132295 [2023-05-16 08:40:09] frigate.video ERROR : front: Unable to read frames from ffmpeg process. 2023-05-16 08:40:09.989363463 [2023-05-16 08:40:09] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread... Thanks for your reply , hope that you can make sense of why i can't get ffmpeg to work. I can get stream on VLC Quote Link to comment
yayitazale Posted May 16, 2023 Author Share Posted May 16, 2023 1 minute ago, mikey6283 said: # yaml-language-server: $schema=http://192.168.55.51:5000/api/config/schema mqtt: host: 192.168.55.51 user: mqtt6283 password: mikey detectors: cora1: type: edgetpu device: pci:0 database: path: /media/frigate/frigate.db record: expire_interval: 20 go2rtc: streams: koipond: ffmpeg:http://10.10.75.25/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Koipond1 - "ffmpeg:reolink#audio=opus" koipond_sub: ffmpeg:http://10.10.75.25/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=Koipond1 front: ffmpeg:http://10.10.75.27/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Front1 - "ffmpeg:reolink#audio=opus" front_sub: ffmpeg:http://10.10.75.27/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=Front1 cameras: koipond: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/koipond?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/koipond_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 2 front: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/front?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/front_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 2 I have tried many option and been able to see go2rtc config , logs etc but unable to get streams. this is logs from go2rtc . Thanks for your reply , hope that you can make sense of why i can't get ffmpeg to work. I can get stream on VLC Are you sure the cameras feed starts with http:// instead of in rtsp:// ?? Quote Link to comment
mikey6283 Posted May 16, 2023 Share Posted May 16, 2023 33 minutes ago, yayitazale said: Are you sure the cameras feed starts with http:// instead of in rtsp:// ?? go2rtc: streams: koipond: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main - "ffmpeg:reolink#audio=opus" koipond_sub: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main front: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main - "ffmpeg:reolink#audio=opus" front_sub: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main I have set streams to rtsp;// and i have images but still have error no recordings as below for some reason ffmpeg is not working? Its strange as Frigate docs say use Http:// Quote 2023-05-16 09:21:12.420999325 [2023-05-16 09:21:12] watchdog.front INFO : Terminating the existing ffmpeg process... 2023-05-16 09:21:12.421000999 [2023-05-16 09:21:12] watchdog.front INFO : Waiting for ffmpeg to exit gracefully... 2023-05-16 09:21:12.445358467 [2023-05-16 09:21:12] watchdog.koipond ERROR : No new recording segments were created for koipond in the last 120s. restarting the ffmpeg record process... 2023-05-16 09:21:12.445422396 [2023-05-16 09:21:12] watchdog.koipond INFO : Terminating the existing ffmpeg process... 2023-05-16 09:21:12.445630524 [2023-05-16 09:21:12] watchdog.koipond INFO : Waiting for ffmpeg to exit gracefully... 2023-05-16 09:21:22.434062928 [2023-05-16 09:21:22] watchdog.front ERROR : No new recording segments were created for front in the last 120s. restarting the ffmpeg record process... 2023-05-16 09:21:22.434246036 [2023-05-16 09:21:22] watchdog.front INFO : Terminating the existing ffmpeg process... 2023-05-16 09:21:22.434248515 [2023-05-16 09:21:22] watchdog.front INFO : Waiting for ffmpeg to exit gracefully... 2023-05-16 09:21:22.457258614 [2023-05-16 09:21:22] watchdog.koipond ERROR : No new recording segments were created for koipond in the last 120s. restarting the ffmpeg record process... 2023-05-16 09:21:22.463176866 [2023-05-16 09:21:22] watchdog.koipond INFO : Terminating the existing ffmpeg process... 2023-05-16 09:21:22.463181187 [2023-05-16 09:21:22] watchdog.koipond INFO : Waiting for ffmpeg to exit gracefully... 2023-05-16 09:21:32.450774663 [2023-05-16 09:21:32] watchdog.front ERROR : No new recording segments were created for front in the last 120s. restarting the ffmpeg record process... 2023-05-16 09:21:32.458582183 [2023-05-16 09:21:32] watchdog.front INFO : Terminating the existing ffmpeg process... 2023-05-16 09:21:32.458586023 [2023-05-16 09:21:32] watchdog.front INFO : Waiting for ffmpeg to exit gracefully... 2023-05-16 09:21:32.475320471 [2023-05-16 09:21:32] watchdog.koipond ERROR : No new recording segments were created for koipond in the last 120s. restarting the ffmpeg record process... 2023-05-16 09:21:32.475324240 [2023-05-16 09:21:32] watchdog.koipond INFO : Terminating the existing ffmpeg process... 2023-05-16 09:21:32.475325937 [2023-05-16 09:21:32] watchdog.koipond INFO : Waiting for ffmpeg to exit gracefully... Quote Link to comment
yayitazale Posted May 16, 2023 Author Share Posted May 16, 2023 11 minutes ago, mikey6283 said: go2rtc: streams: koipond: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main - "ffmpeg:reolink#audio=opus" koipond_sub: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main front: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main - "ffmpeg:reolink#audio=opus" front_sub: ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main I have set streams to rtsp;// and i have images but still have error no recordings as below for some reason ffmpeg is not working? Its strange as Frigate docs say use Http:// It does say to use rtsp. - "ffmpeg:reolink#audio=opus" this should be: - "ffmpeg:koipond#audio=opus" as you have to reference to the input stream. Quote Link to comment
mikey6283 Posted May 17, 2023 Share Posted May 17, 2023 On 5/16/2023 at 9:37 AM, yayitazale said: It does say to use rtsp. - "ffmpeg:reolink#audio=opus" this should be: - "ffmpeg:koipond#audio=opus" as you have to reference to the input stream. I have rectified the ffmpeg and now have images in the ui for all camera, however i still have errors on all cameras and unable to view clips/recordings. I can see all links using VLC and chrome , therefore it must be due to the ffmpeg error??? Any advice would be appreciated My config go2rtc: streams: koipond: ffmpeg:rtsp://admin:Koipond1@xxxxxxx:554/h264Preview_01_main - "ffmpeg:koipond#audio=opus" koipond_sub: ffmpeg:rtsp://admin:Koipond1@xxxxxxx:554/h264Preview_01_sub front: ffmpeg:rtsp://admin:Front1@xxxxxx:554/h264Preview_01_main - "ffmpeg:front#audio=opus" front_sub: ffmpeg:rtsp://admin:Front1@1xxxxxx:554/h264Preview_01_sub garage: ffmpeg:rtsp://admin:Garage1@xxxxxxxx.:554/h264Preview_01_main - "ffmpeg:garage#audio=opus" garage_sub: ffmpeg:rtsp://admin:Garage1@xxxxxx/h264Preview_01_sub BackGarden: ffmpeg:rtsp://admin:BackGarden11@xxxxxxx/h264Preview_01_main - "ffmpeg:garage#audio=opus" BackGarden_sub: ffmpeg:rtsp://admin:BackGarden1@xxxxxxxx/h264Preview_01_sub cameras: koipond: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/koipond?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/koipond_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 7 mode: motion events: retain: default: 7 mode: active_objects Quote 2023-05-17 09:47:41.316817811 [2023-05-17 09:47:41] watchdog.front INFO : Terminating the existing ffmpeg process... 2023-05-17 09:47:41.316975814 [2023-05-17 09:47:41] watchdog.front INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:47:51.095259380 [2023-05-17 09:47:51] watchdog.koipond ERROR : No new recording segments were created for koipond in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:47:51.095412790 [2023-05-17 09:47:51] watchdog.koipond INFO : Terminating the existing ffmpeg process... 2023-05-17 09:47:51.095415771 [2023-05-17 09:47:51] watchdog.koipond INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:47:51.197216066 [2023-05-17 09:47:51] watchdog.garage ERROR : No new recording segments were created for garage in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:47:51.197367457 [2023-05-17 09:47:51] watchdog.garage INFO : Terminating the existing ffmpeg process... 2023-05-17 09:47:51.197370433 [2023-05-17 09:47:51] watchdog.garage INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:47:51.303824167 [2023-05-17 09:47:51] watchdog.BackGarden ERROR : No new recording segments were created for BackGarden in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:47:51.303827872 [2023-05-17 09:47:51] watchdog.BackGarden INFO : Terminating the existing ffmpeg process... 2023-05-17 09:47:51.303829649 [2023-05-17 09:47:51] watchdog.BackGarden INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:47:51.328106483 [2023-05-17 09:47:51] watchdog.front ERROR : No new recording segments were created for front in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:47:51.328110446 [2023-05-17 09:47:51] watchdog.front INFO : Terminating the existing ffmpeg process... 2023-05-17 09:47:51.328112135 [2023-05-17 09:47:51] watchdog.front INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:48:01.110625183 [2023-05-17 09:48:01] watchdog.koipond ERROR : No new recording segments were created for koipond in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:48:01.110713601 [2023-05-17 09:48:01] watchdog.koipond INFO : Terminating the existing ffmpeg process... 2023-05-17 09:48:01.111895427 [2023-05-17 09:48:01] watchdog.koipond INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:48:01.207329112 [2023-05-17 09:48:01] watchdog.garage ERROR : No new recording segments were created for garage in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:48:01.207479311 [2023-05-17 09:48:01] watchdog.garage INFO : Terminating the existing ffmpeg process... 2023-05-17 09:48:01.207482553 [2023-05-17 09:48:01] watchdog.garage INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:48:01.313531294 [2023-05-17 09:48:01] watchdog.BackGarden ERROR : No new recording segments were created for BackGarden in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:48:01.313601010 [2023-05-17 09:48:01] watchdog.BackGarden INFO : Terminating the existing ffmpeg process... 2023-05-17 09:48:01.313671338 [2023-05-17 09:48:01] watchdog.BackGarden INFO : Waiting for ffmpeg to exit gracefully... 2023-05-17 09:48:01.339043129 [2023-05-17 09:48:01] watchdog.front ERROR : No new recording segments were created for front in the last 120s. restarting the ffmpeg record process... 2023-05-17 09:48:01.343580779 [2023-05-17 09:48:01] watchdog.front INFO : Terminating the existing ffmpeg process... 2023-05-17 09:48:01.343802828 [2023-05-17 09:48:01] watchdog.front INFO : Waiting for ffmpeg to exit gracefully... Quote Link to comment
yayitazale Posted May 18, 2023 Author Share Posted May 18, 2023 20 hours ago, mikey6283 said: I have rectified the ffmpeg and now have images in the ui for all camera, however i still have errors on all cameras and unable to view clips/recordings. I can see all links using VLC and chrome , therefore it must be due to the ffmpeg error??? Any advice would be appreciated My config go2rtc: streams: koipond: ffmpeg:rtsp://admin:Koipond1@xxxxxxx:554/h264Preview_01_main - "ffmpeg:koipond#audio=opus" koipond_sub: ffmpeg:rtsp://admin:Koipond1@xxxxxxx:554/h264Preview_01_sub front: ffmpeg:rtsp://admin:Front1@xxxxxx:554/h264Preview_01_main - "ffmpeg:front#audio=opus" front_sub: ffmpeg:rtsp://admin:Front1@1xxxxxx:554/h264Preview_01_sub garage: ffmpeg:rtsp://admin:Garage1@xxxxxxxx.:554/h264Preview_01_main - "ffmpeg:garage#audio=opus" garage_sub: ffmpeg:rtsp://admin:Garage1@xxxxxx/h264Preview_01_sub BackGarden: ffmpeg:rtsp://admin:BackGarden11@xxxxxxx/h264Preview_01_main - "ffmpeg:garage#audio=opus" BackGarden_sub: ffmpeg:rtsp://admin:BackGarden1@xxxxxxxx/h264Preview_01_sub cameras: koipond: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/koipond?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/koipond_sub?video=copy input_args: preset-rtsp-restream roles: - detect detect: width: 640 height: 480 fps: 5 objects: track: - person - cat record: enabled: True retain: days: 7 mode: motion events: retain: default: 7 mode: active_objects The only thing I would change is in the go2rtc, you are trascoding to opus but then in the input arguments of the camera you are asking to aac. Change the transcode to aac or change the input path to opus. Quote Link to comment
MasterOfPuppets111 Posted May 24, 2023 Share Posted May 24, 2023 Today i wantet to switch to 0.12, i uninstalled the old docker, deleted the old files but now i'm having trouble to install the 0.12 version .... someone an idea what is wrong Quote Link to comment
yayitazale Posted May 24, 2023 Author Share Posted May 24, 2023 20 minutes ago, MasterOfPuppets111 said: Today i wantet to switch to 0.12, i uninstalled the old docker, deleted the old files but now i'm having trouble to install the 0.12 version .... someone an idea what is wrong Did you read the docs? You should remove all the entries of the template that you are not using. Quote Link to comment
MasterOfPuppets111 Posted May 24, 2023 Share Posted May 24, 2023 Thank you for your answer.... yes i read the docs, and i think that i habe removed all the entries that iam not using.... look at the screenshot.... if i klick "done" with this template, it shows the fault obove.... Quote Link to comment
MasterOfPuppets111 Posted May 24, 2023 Share Posted May 24, 2023 Ouch.... my fault.... I have to delete the whole argument, not only leave them empty 🤣🤣🤣 now it works👍 1 Quote Link to comment
u218654 Posted June 3, 2023 Share Posted June 3, 2023 (edited) Okay. I might be stupid... Confirmed. I am stupid. I forgot to....check my privilege.....I'll see myself out now. I tried to run the tensorrt-models container from CommunityApps... I updated to the latest production Nvidia driver I used the most recent tag on NVidia's repository I pasted my GPUUID from the Nvidia driver In a command window, I pulled down "tensorrt_models.sh" and made it runable with chmod +x I started the tensorrt-models container The container runs for a long time for the first run Then it automatically shuts down. So where are these files? I get a warning about 75% of the way through from Unraid saying my docker image is filling up....so I assume that the files are living in DockerImageLand still...why haven't they been pulled into /mnt/user/appdata/trt-models? Additionally, when I try to run the container again it gives me a warning saying that it can't build ONNX. Edited June 3, 2023 by u218654 Me mega dumb. Quote Link to comment
coldtech Posted June 8, 2023 Share Posted June 8, 2023 On 11/11/2022 at 12:07 PM, ich777 said: This is really strange and sounds like some other issue with the BIOS and allocation itself since the Coral TPU doesn't even need Re-BAR but some manufacturers seem to struggle implementing it correct. On my Asus Z490-E Gaming I can put it in whatever slot I want, see my configuration here: Hi @ich777, may I ask what adapter you are using for your dual edge TPU to be able to use it in PCIe? Are you able to access both TPU cores, or just one? Greetings Quote Link to comment
ich777 Posted June 8, 2023 Share Posted June 8, 2023 2 hours ago, coldtech said: Are you able to access both TPU cores, or just one? Just one since both the adapter and also the physical interface is PCIe x1, otherwise you would need a PCIe x2 or better speaking a x4 interface (I don't know a motherboard with a PCIe x2 interface. This one: Click Please note that this adapter is meant for Wifi cards but if it's enough for you to use one TPU it will work fine, please don't connect the USB Adapter since most Wifi/Bluetooth combo cards are using PCIe for Wifi and USB for Bluetooth and no, you won't be able to get the second TPU to work over USB. ATTENTION: You know that you have to make your own custom heat spreader for the Dual Edge TPU? If you don't do that this card will be a serious fire hazard <- this is also mentioned in the documentation (not the chip itself, the power regulation is most of the time the issue). You can create your own heat spreader from something like a M2 NVME heat spreader and a few thermal pads. I just wanted to point that out because this is very important! Quote Link to comment
Bruceflix Posted June 8, 2023 Share Posted June 8, 2023 2 hours ago, coldtech said: Hi @ich777, may I ask what adapter you are using for your dual edge TPU to be able to use it in PCIe? Are you able to access both TPU cores, or just one? Greetings Im using this https://www.makerfabs.com/dual-edge-tpu-adapter.html and yes, it can access both TPU Quote Link to comment
adoucette Posted June 17, 2023 Share Posted June 17, 2023 I have just moved from the Coral USB accelerator to the Dual TPU using the Magic Smoke pci-e adapter plugged into a pcie x16 port on my motherboard. How do I ensure I'm using both TPUs in the Unraid Frigate docker? My Frigate Docker config has: Coral TPU Mapping: /dev/apex_0 My appdata/frigate config.yml file has: detectors: coral: type: edgetpu device: pci Using the ich777's Coral Accelerator Module Drivers, I can see both TPUs listed. How do I ensure (or configure) Frigate to use both TPUs? Thanks in advance, Ari Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.