Commit Graph

40 Commits

Author SHA1 Message Date
Alexandre f6752e1e16 Fix ffmpeg command by removing unused option 2025-12-20 11:31:57 +01:00
Alexandre 5fe725f251 Remove xerror 2025-12-20 11:31:57 +01:00
Alexandre 0f287d597d Update ffmpeg command to include xerror option 2025-12-20 11:31:57 +01:00
Alexandre 8b637e5640 Increase ffmpeg thread queue size in recording script 2025-12-20 11:31:57 +01:00
frederik da92e77240 rework recording to use one ffmpeg instance per stream, also use the segment to write out the individual recordings instead of restarting every time 2025-11-15 12:51:33 +01:00
frederik 28bfe59204 fix: rtsps is rtsp too 2025-03-11 14:18:30 +01:00
frederik dae0ba992f stimeout changed to timeout between ffmpeg 4 and 5 2025-01-25 18:01:45 +01:00
frederik 3f66bf9f13 fix: rtsp needs a different socket timeout parameter that all other protocols 2025-01-25 18:01:45 +01:00
frederik a7eacee3fc on flakey rtsp streams, ffmpeg sometimes gets stuck, add a 10s timeout to make ffmeg error out and restart 2025-01-25 18:01:45 +01:00
frederik 1fa33d2444 socket is not in use anymore 2024-02-13 10:57:35 +01:00
frederik 563ee57e19 puttings all raw wav files flat under StreamData makes things easier 2024-02-13 10:57:34 +01:00
Jared d1a0561d2d Merge branch 'main' into Configurable-Service-Logging-Options 2023-04-19 21:36:30 +10:00
jaredb7 b37b5ab781 Make ffmpeg record the first audio stream for RTSP
Small fix for now to handle of RTSP streams that may contain more than 1 audio stream within them,  we just tell ffmpeg to use the first audio stream for the recording.

A future enhancement to this is to allow the user to to set what audio stream to just in case there is a scenario where the first one doesn't work for some reason.
2023-04-13 22:16:25 +10:00
jaredb7 1b3a31c3ee Allow user configurable log level option for some services
After some services were recently quieted down by adjusting the log level for e.g ffmpeg. It would be nice if the user can easily adjust the log level again so that that they can investigate or debug a issue since output is not generated by default, so now the Livestream, Spectrogream and Birdnet Recording have a adjustable log levels to help with this.
2023-04-12 21:32:44 +10:00
jaredb7 ad28127f6c Fix comments on birdnet_recording.sh 2023-04-09 23:24:57 +10:00
jaredb7 421902684f Quieten System logs
Attempt to quieten the amount of log noise being generated by some of the birdnet services visible in the syslog and daemon.log

Recording service
When using RTSP streams the recording service  is generating massive amounts of noise in the logs as it's basically outputting all it's startup info and also outputting stream and export info.
- Set the log level to only output errors

Also the birdnet_recoding service script is outputting it;s contents, I assume was doing this because of the set -x option at the beginning,
-Commenting this fixed that issue

Analysis Service
Small change to this it doesn't output a error when it can't find today's recording directory. It's a non issue if your recording via sound card but it pops up a bit when using RTSP streams as that directory is never created.

Livestream Service
Same treatment as the recording service, set log level to error. It was previously set to info and would occasionally output a massive chunk of output.. presumably abut the encoding processes.
2023-04-09 22:26:04 +10:00
jaredb7 cded6dd031 Update spelling for the RTSP acronym 2023-04-01 22:46:05 +10:00
jaredb7 ae94cbc189 Enhancement to allow simultaneous RTSP stream recording
Updated birdnet_recording.sh
With a functional change around how ffmpeg is used to make use if it's functionality to accept multiple input streams and map each to a output file.
Due to the original implementation generating a  filename that contain the date/time streams would be writing to the same file - a small change was make each stream go to it's one file with unique filenames.

Updated livestream.sh & spectrogram.php
The Livestream service would fail if the RTSP stream setting was more than 1 stream (i.e comma separated list of streams)
Made some improvements so streaming is possible from any of the URL's, The Spectrogram page received a new control and some Javascript that allows the user to change between streams, the setting gets saved and the livestream service restarted so it uses's the correct stream.
This control is not visible if there are no RTSP streams configured
By default the livestream service will stream the the first RTSP URL, if the setting is not set or invalid

Updated advanced.php
With a small GUI change around RTSP steam entry by providing a input field for each URL and a button to add more fields.
In the background nothing changes as we use some Javascript to extract the valus entered and fill in the original rtsp_stream value with the correct comma separated string

Updated server.py
To work with the recording filename changes so that the correct filename is stored in the DB

Updated update_birdnet_snippets.sh
To support a new setting RTSP_STREAM_TO_LIVESTREAM on the Spectrogram page and in the livestream service
2023-04-01 22:29:02 +10:00
cgomesu af7d85b6cb ffmpeg: disable stdin interaction
ffmpeg enables interaction on stdin by default, which may have
undesirable consequences when running ffmpeg in the background.
adding `-nostdin` disables interaction via the stdin stream.
2023-01-11 13:19:11 -03:00
mcguirepr89 0b24481693 RTSP streams are a subdirectory of $RECS_DIR now 2022-06-04 13:06:38 -04:00
ehpersonal38 9f186c74b1 Update birdnet_recording.sh 2022-05-05 11:17:21 -04:00
Patrick McGuire 50f0ed8616 Update birdnet_recording.sh 2022-05-05 10:37:17 -04:00
ehpersonal38 256b405c21 Allowing multiple RTSP stream urls
(untested)
2022-04-25 16:51:04 -04:00
mcguirepr89 7c687e5eb2 I dont' know how I messed up the first versions so badly,
but this one is working
2022-04-25 10:19:01 -04:00
mcguirepr89 5b6d36ba0e remove STAMP just use date 2022-04-25 09:31:40 -04:00
mcguirepr89 6f8e676f4e missing fi 2022-04-25 09:29:43 -04:00
Patrick McGuire f1ebae6458 rtsp adjustments 2022-04-25 08:33:32 -04:00
mcguirepr89 e5c132edf7 new plotly and better recording service 2022-03-31 08:14:18 -04:00
mcguirepr89 38bb74e895 recording waits for socket 2022-02-11 15:03:26 -05:00
mcguirepr89 5873d8bb9b Update birdnet_recording.sh 2021-10-10 11:31:41 -04:00
Patrick McGuire 41d4644606 fixed defaults for RECORDING_LENGTH
removed unneeded quotation marks
2021-10-02 09:51:26 -04:00
Patrick McGuire be4e387193 fixed default time 2021-10-01 19:49:43 -04:00
Patrick McGuire cb102044e6 adding RECORDING_LENGTH and EXTRACTION_LENGTH 2021-10-01 19:35:11 -04:00
Patrick McGuire c3db0bed44 added testing variable for RECORDING_LENGTH 2021-10-01 16:00:31 -04:00
Patrick McGuire 010dec34ee more efficient birndet_analysis.service
more efficient extraction.service
cleaner birdnet_analysis logging
cleaner birdnet.conf
functioning species_notifier
2021-09-30 19:23:13 -04:00
Patrick McGuire 50d6a56ae5 added 12/24h timestamp formatting as birdnet.conf variable
defaults to 24h timestamps

working on species_notifier.sh
2021-09-30 14:19:35 -04:00
Patrick McGuire 130901c680 setting recording interval to 9 seconds
extractions now works with date (defaults to current date since analysis
is so quick)
2021-09-29 16:49:55 -04:00
Patrick McGuire 7cb436796a extraction service working 2021-09-28 18:29:14 -04:00
Patrick McGuire 35c44a4516 working to the minute 2021-09-28 16:35:24 -04:00
Patrick McGuire bc2d3df898 updating references to old repo to new repo 2021-09-28 14:48:25 -04:00