cedricve
d3fc5d4c29
Enhance max recording period calculation in HandleRecordStream to ensure it accommodates preRecording and postRecording values correctly
2025-07-05 14:39:48 +00:00
cedricve
50bb40938c
Adjust max recording period checks in HandleRecordStream for improved timing accuracy
2025-07-05 14:32:05 +00:00
cedricve
1977d98ad9
Add CurrentTime field to Packet struct and update HandleRecordStream to use it
2025-07-05 14:24:52 +00:00
Cédric Verstraeten
448d4a946d
Merge pull request #198 from kerberos-io/feature/fix-prerecording-duraiton
...
feature/fix-prerecording-duration
v3.4.2
2025-07-04 16:57:01 +02:00
Cédric Verstraeten
61ac314bb7
Fix pre-recording time calculation logic in HandleRecordStream to handle initial recording case correctly
2025-07-04 14:44:13 +00:00
Cédric Verstraeten
c1b144ca28
Fix pre-recording time calculation by adjusting queued packets handling in HandleRecordStream
2025-07-04 14:37:22 +00:00
Cédric Verstraeten
e16987bf9d
Refactor HandleRecordStream to improve pre-recording time calculation and adjust display time logic based on available queued packets.
2025-07-04 11:18:46 +00:00
Cédric Verstraeten
9991597984
Merge pull request #197 from kerberos-io/feature/add-duration-to-recordings
...
feature/add-duration-to-recordings
v3.4.1
2025-07-04 09:18:07 +02:00
cedricve
2c0314cea4
Refactor HandleRecordStream to improve file renaming logic and enhance motion detection handling
2025-07-04 06:23:09 +00:00
cedricve
0584e52b98
Refactor HandleRecordStream to optimize pre-recording time calculation and streamline video stream handling
2025-07-03 20:34:18 +00:00
cedricve
1fc90eaee2
Refactor pre-recording time calculation and improve display time logic for better recording accuracy
2025-07-03 20:04:00 +00:00
cedricve
aef3eacbc9
Enhance pre-recording time calculation by incorporating GOP size and FPS; adjust display time and recording conditions based on pre-recording delta.
2025-07-03 17:51:46 +00:00
cedricve
2843568473
Refactor GOP size handling and enhance queue management for improved recording performance
2025-07-03 17:31:37 +00:00
Cédric Verstraeten
53ffc8cae0
Add GOP size configuration and enhance pre-recording handling for improved stream management
2025-07-02 13:28:02 +00:00
Cédric Verstraeten
86e654fe19
Add GOP size tracking and keyframe interval management for improved video processing
2025-07-02 10:51:23 +00:00
Cédric Verstraeten
46d57f7664
Enhance FPS calculation by adding timestamp-based averaging and improved SPS handling; implement debug logging for SPS information.
2025-07-02 09:53:47 +00:00
Cédric Verstraeten
963d8672eb
Enhance recording process by adding display time calculation and logging for better tracking; add error handling for MP4 file creation when no samples are present.
2025-07-02 08:54:34 +00:00
Cédric Verstraeten
9b7a62816a
Update mp4.go
2025-07-02 09:54:12 +02:00
Cédric Verstraeten
237134fe0e
Update recording filename generation to include duration and motion rectangle for improved clarity
2025-07-01 15:03:01 +00:00
Cédric Verstraeten
c8730e8f26
Enhance recording filename generation to include motion rectangle and duration for improved clarity and uniqueness
2025-07-01 12:54:52 +00:00
Cédric Verstraeten
acbbe8b444
Enhance recording filename generation to include milliseconds and its length for improved uniqueness
2025-07-01 12:48:34 +00:00
Cédric Verstraeten
f690016aa5
Refactor motion detection to include motion rectangle and update logging levels for sample addition in MP4 track
2025-07-01 12:37:44 +00:00
Cédric Verstraeten
396cfe5d8b
Merge pull request #191 from kerberos-io/feature/migrate-to--mp4ff
...
feature/Add MP4 video handling and update IPCamera configuration
v3.4.0
2025-06-24 13:39:56 +02:00
Cédric Verstraeten
39fe640ccf
Refactor logging in AddSampleToTrack method to use structured logging
2025-06-23 10:21:02 +00:00
Cédric Verstraeten
d389c9b0b6
Add logging for sample addition in MP4 track
2025-06-23 10:07:30 +00:00
Cédric Verstraeten
b149686db8
Remove Bento4 build steps and clean up Dockerfile structure
2025-06-23 09:57:04 +00:00
Cédric Verstraeten
c4358cbfad
Fix typo in IPCamera struct: update VPSNALUs field JSON tag from "pps_nalus" to "vps_nalus"
2025-06-23 09:03:00 +00:00
Cédric Verstraeten
cfc5bd3dfe
Remove unused audio stream retrieval in HandleRecordStream function
2025-06-23 07:58:39 +00:00
Cédric Verstraeten
c29c1b6a92
Merge branch 'master' into feature/migrate-to--mp4ff
2025-06-23 09:55:31 +02:00
Cédric Verstraeten
0f45a2a4b4
Merge branch 'feature/migrate-to--mp4ff' of github.com:kerberos-io/agent into feature/migrate-to--mp4ff
2025-06-23 09:54:41 +02:00
Cédric Verstraeten
92edcc13c0
Refactor OpenTelemetry tracing integration in RTSP client and components for improved context handling
2025-06-23 07:54:34 +00:00
cedricve
5392e2ba90
Update Dockerfile to remove incorrect source path and add Bento4 build process
2025-06-22 19:46:03 +00:00
cedricve
79e1f659c7
Update mongo-driver dependency from v1.17.4 to v1.17.3 to maintain compatibility
2025-06-21 20:13:38 +00:00
cedricve
bf35e5efb6
Implement OpenTelemetry tracing in the agent
...
- Added OpenTelemetry tracing support in main.go, including a new function startTracing to initialize the tracer with a configurable endpoint.
- Updated the environment attribute from "testing" to "develop" for better clarity in tracing.
- Integrated tracing into the RTSP connection process in gortsplib.go by creating a span for the Connect method.
- Enhanced the Bootstrap function in Kerberos.go to include tracing, marking the start and end of the bootstrap process.
- Introduced a new span in RunAgent to trace the execution flow and ensure proper span management.
2025-06-20 09:35:13 +00:00
Cédric Verstraeten
c50137f255
Comment out OpenTelemetry tracing initialization in main.go to simplify the codebase and remove unused functionality.
2025-06-16 10:30:02 +00:00
Cédric Verstraeten
f12da749b2
Remove OpenTelemetry tracing code from main.go and Kerberos.go files to simplify the codebase and eliminate unused dependencies.
2025-06-16 10:08:55 +00:00
Cédric Verstraeten
a166083423
Update machinery/src/packets/stream.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-16 10:20:43 +02:00
Cédric Verstraeten
b400d4e773
Refactor Dockerfile build commands to streamline Go build process and improve clarity
2025-06-16 06:42:08 +00:00
Cédric Verstraeten
120054d3e5
Add SampleRate and Channels fields to IPCamera configuration and update audio stream handling
2025-06-16 06:37:19 +00:00
cedricve
620117c31b
Refactor WriteToTrack to use updated PacketTimestamp for video and audio samples, improving synchronization accuracy.
2025-06-07 22:12:15 +00:00
cedricve
4e371488c1
Remove unnecessary copy of mp4fragment in Dockerfile, streamlining the agent setup process.
2025-06-07 21:22:49 +00:00
cedricve
b154b56308
Refactor Dockerfile to remove CGO_ENABLED=0 from build command, simplifying the build process for the agent.
2025-06-07 21:17:25 +00:00
cedricve
6d92817237
Refactor HandleRecordStream to adjust maxRecordingPeriod calculation for improved timing accuracy. Simplify mp4 segment encoding logic to ensure it always attempts to encode the last segment, enhancing error handling.
2025-06-07 12:30:42 +00:00
cedricve
b8c1855830
Refactor HandleRecordStream to use milliseconds for timing calculations, improving accuracy in recording periods and motion detection logic. Update mp4 encoding to ensure segment encoding only occurs if a segment exists, preventing potential panics.
2025-06-07 11:53:03 +00:00
cedricve
a9f7ff4b72
Refactor HandleRecordStream to remove unused mp4.Movmuxer and streamline video sample handling with mp4Video, enhancing recording process and error logging.
2025-06-07 06:26:23 +00:00
Cédric Verstraeten
b3cd080e14
Refactor Dockerfile and main.go to enhance build process and streamline video handling
2025-06-06 15:14:45 +00:00
Cédric Verstraeten
bfde87f888
Refactor WriteToTrack to improve sample handling by using last processed audio and video samples, enhancing buffer duration calculation and streamlining packet processing.
2025-06-06 14:36:19 +00:00
Cédric Verstraeten
c4453bb8b3
Fix packet handling in WriteToTrack to ensure proper processing of next packets on timeout and empty data
2025-06-06 13:36:30 +00:00
Cédric Verstraeten
40f65a30b3
Clarify audio transcoding process in WriteToTrack with detailed comments on AAC to PCM_MULAW conversion
2025-06-06 13:33:28 +00:00
Cédric Verstraeten
5361de63e0
Refactor packet handling in WriteToTrack to improve buffer duration calculation and streamline packet reading
2025-06-06 13:23:09 +00:00