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 and Copilot
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
Cédric Verstraeten
3a8552d362
Enhance MP4 handling by updating track IDs in fragment creation, improving H264 and H265 NAL unit conversion, and adding support for HVC1 compatible brands in the ftyp box
2025-06-05 14:48:19 +00:00
Cédric Verstraeten
d3840103fc
Add VPS NALUs support in IPCamera configuration and MP4 handling for improved video processing
2025-06-05 13:28:10 +00:00
Cédric Verstraeten
d12a9f0612
Refactor MP4 handling by simplifying Close method and adding last sample DTS tracking for better audio and video sample management
2025-06-05 10:59:44 +00:00
cedricve
c0d74f7e09
Remove placeholder comments from AddSampleToTrack and Close methods for cleaner code
2025-06-04 19:23:48 +00:00
cedricve
8ebea9e4c5
Refactor MP4 struct by removing unused video and audio fragment fields, and enhance track handling in Close method for better audio and subtitle track management
2025-06-04 19:03:58 +00:00
cedricve
89269caf92
Refactor AddSampleToTrack and SplitAACFrame methods to enhance audio sample handling and improve error logging
2025-06-04 18:36:00 +00:00
Cédric Verstraeten
0c83170f51
Fix AAC descriptor index in Close method to ensure correct audio track setup
2025-06-04 13:15:08 +00:00
Cédric Verstraeten
6081cb4be9
Update mp4.go
2025-06-04 14:39:44 +02:00
Cédric Verstraeten
ea1dbb3087
Refactor AddSampleToTrack method to improve AAC frame handling by splitting frames and updating duration calculations for audio samples
2025-06-04 09:49:29 +00:00
Cédric Verstraeten
0523208d36
Update mp4.go
2025-06-04 11:28:16 +02:00
Cédric Verstraeten
919f21b48b
Refactor AddSampleToTrack method to create separate video and audio fragments, enhancing sample handling and improving error logging for AAC frames
2025-06-04 08:45:54 +00:00
cedricve
2c1c10a2ac
Refactor AddSampleToTrack and Close methods to improve sample handling and track management for video and audio
2025-06-03 20:33:00 +00:00
cedricve
7e3320b252
Refactor AddSampleToTrack method to remove duration parameter and enhance fragment handling for video and audio tracks
2025-06-03 19:18:16 +00:00
Cédric Verstraeten
35ccac8b65
Refactor MP4 fragment handling in AddSampleToTrack method to separate video and audio fragments for improved track management
2025-06-03 13:29:36 +00:00
Cédric Verstraeten
dad8165d11
Enhance sample handling in AddSampleToTrack method to support multiple packets and improve error logging
2025-06-03 12:30:03 +00:00
Cédric Verstraeten
ba54188de2
Refactor video and audio track handling in MP4 structure to store track names and return track IDs for better management
2025-06-03 10:23:14 +00:00
cedricve
3b440c9905
Add audio and video codec detection in HandleRecordStream function
2025-06-03 06:27:25 +00:00
cedricve
42b98b7f20
Update mp4.go
2025-06-03 08:25:51 +02:00
cedricve
ba3312b57c
Refactor AddSampleToTrack method to return error instead of panicking for better error handling
2025-06-03 05:55:23 +00:00
cedricve
223ba255e9
Fix signature handling in MP4 closing logic to ensure valid signatures are used for fingerprint
2025-06-02 17:45:05 +00:00
Cédric Verstraeten
a1df2be207
Implement signing feature with default private key configuration and update MP4 closing logic to include fingerprint signing
2025-06-02 16:02:06 +00:00
Cédric Verstraeten
d7f225ca73
Add signing configuration placeholder to the agent's config
2025-06-02 14:08:47 +00:00
Cédric Verstraeten
b3cfabb5df
Update signing configuration to use private key for recording validation
2025-06-02 14:06:16 +00:00