Commit Graph

183 Commits

Author SHA1 Message Date
henryruhs 84ad32912e fix macos 2026-03-31 19:09:54 +02:00
henryruhs e949b1619a add meaningful tests 2026-03-31 17:51:13 +02:00
henryruhs c808cdd5b9 cleanup code part1 2026-03-31 16:55:38 +02:00
Harisreedhar 6bb62cf64e Assets ffmpeg stream upload (#1069)
* ffmpeg sanitize

* fix type

* fix type

* add config

* ChunkQueue -> UploadQueue

* revert assets.py

* move resolve methods to ffmpeg_builder.py

* Refactor ffmpeg.py

* Remove partial import

* improve test

* remove put(None)

* cleanup

* without poll() not working

* ChunkReader -> MediaChunkReader

* improve assert by replacing generic is_file

* naming and cleanup
2026-03-31 16:31:02 +02:00
Harisreedhar aa9701fdfe Fix hardcoded fps (#1068)
* fix hardcoded fps

* fallback to temp_fps when output_video_fps is None

* fix test_ffmpeg

* change temp-fps -> output-audio-fps

* cleanup

* cleanup
2026-03-25 19:06:14 +05:30
Harisreedhar 6a6d200a01 add test when get_metrics_set() returns None (#1067) 2026-03-24 21:01:13 +05:30
Harisreedhar dbc4b8778e fix false vram numbers (#1065) 2026-03-23 21:50:48 +05:30
Henry Ruhs 0d0c27b117 asset validation and image encoder lookup (#1058)
* asset validation and image encoder lookup

* asset validation and image encoder lookup

* asset validation and image encoder lookup
2026-03-17 14:03:34 +01:00
Harisreedhar ab24cd3f2e Implement basic webrtc stream (#1054)
* implement basic webrtc_stream

* add aiortc to requirements.txt

* update aiortc version

* rename variables with rtc_ prefix

* changes

* changes

* change helper to assert_helper and stream_helper

* rename variables with rtc_ prefix

* add error handling

* return whole connection

* remove monkey patch and some cleaning

* cleanup

* tiny adjustments

* tiny adjustments

* proper typing and naming for rtc offer set

* - remove async from on_video_track method
- rename source -> target
- add audio

* audio always before video

---------

Co-authored-by: henryruhs <info@henryruhs.com>
2026-03-17 14:02:40 +01:00
Harisreedhar e57713c3c6 Rename process to stream (#1053)
* rename process to stream

* remove /image and add webrtc_stream_video scaffolding

* remove _image
2026-03-17 14:02:16 +01:00
Henry Ruhs c25e0a2f88 rename args store to capability store (#1048)
* rename args store to capability store

* fix lint and remove unused types
2026-03-17 14:02:16 +01:00
Harisreedhar cd3023b9e1 Improve tests (#1047)
* improve tests

* does it hurt someone to have crazy numbers?

---------

Co-authored-by: henryruhs <info@henryruhs.com>
2026-03-17 14:02:16 +01:00
harisreedhar d90b796b51 fix pre-check issue 2026-03-17 14:02:16 +01:00
harisreedhar b3afacf670 remove pre_check 2026-03-17 14:02:16 +01:00
harisreedhar 2d1269e5e6 remove program 2026-03-17 14:02:16 +01:00
harisreedhar 7957640f61 hopefully fix test 2026-03-17 14:02:16 +01:00
harisreedhar 2ee01b38ee pre_check() on test instead 2026-03-17 14:02:16 +01:00
harisreedhar 7a105a4c8d fix naming and remove unwanted state initialization 2026-03-17 14:02:16 +01:00
harisreedhar 1fc87c275e init 'face_selector_mode' to many 2026-03-17 14:02:16 +01:00
harisreedhar 26a950e595 update test 2026-03-17 14:02:16 +01:00
harisreedhar 7affeb7e3b process image 2026-03-17 14:02:16 +01:00
Harisreedhar 08653f85ff Feat/refactor args (#1045)
* follow the new argument naming convention

* revert

* use get_xxx_arguments

* Simple fix Args

* Fix more stuff

---------

Co-authored-by: henryruhs <info@henryruhs.com>
2026-03-17 14:02:16 +01:00
henryruhs 2b447503d5 allow register_arguments to be nested, fix types, adjust processors 2026-03-17 14:02:16 +01:00
harisreedhar f36ae318fd reformat test_api_state.py 2026-03-17 14:02:16 +01:00
harisreedhar 8dba29ef18 remove unwanted assertions 2026-03-17 14:02:16 +01:00
harisreedhar eb72ec461b remove value None as default 2026-03-17 14:02:16 +01:00
harisreedhar 298dbc80f3 remove value None as default 2026-03-17 14:02:16 +01:00
harisreedhar 4ab2d81580 add test_api_capabilities.py 2026-03-17 14:02:16 +01:00
harisreedhar 4fae6af88d fix test 2026-03-17 14:02:13 +01:00
harisreedhar 88b3241b61 add capabilities 2026-03-17 14:02:13 +01:00
harisreedhar b4138a8f12 remove try block, make detect_graphic_devices stateless, cosmetics 2026-03-17 14:02:07 +01:00
harisreedhar d23e0123a5 fix test 2026-03-17 14:02:07 +01:00
harisreedhar 0bc6a545bf add processor metric 2026-03-17 14:01:57 +01:00
harisreedhar fa82d87302 add network metrics 2026-03-17 14:01:57 +01:00
harisreedhar 75858c8636 fix test 2026-03-17 14:01:57 +01:00
harisreedhar e4c0f162a9 add memory metrics 2026-03-17 14:01:54 +01:00
harisreedhar e4bd360577 some cosmetics 2026-03-17 14:01:54 +01:00
harisreedhar 671eb7129d add disk to metric test 2026-03-17 14:01:54 +01:00
harisreedhar d7c4be226c cleanup 2026-03-17 14:01:54 +01:00
harisreedhar 995804410b improve test 2026-03-17 14:01:54 +01:00
harisreedhar ff0bf31c86 remove instance check 2026-03-17 14:01:54 +01:00
harisreedhar bac8befad7 fix test 2026-03-17 14:01:54 +01:00
harisreedhar b2c4e38362 add metrics 2026-03-17 14:01:54 +01:00
harisreedhar 3d852b4aec add metrics 2026-03-17 14:01:54 +01:00
Henry Ruhs ba8093e844 Revisit and cleanup ffprobe integration (#1027)
* Revisit and cleanup ffprobe integration

* Revisit and cleanup ffprobe integration
2026-03-17 14:01:49 +01:00
harisreedhar fb4811a65b add missing endpoints 2026-03-17 14:01:49 +01:00
henryruhs 946a12bc0e Add process manager to the right place 2026-03-17 14:01:49 +01:00
henryruhs 79340e193e FFmpeg powered sanitization, Chunk based upload write 2026-03-17 14:01:49 +01:00
henryruhs 1fe6e2d6de Simplify testing 2026-03-17 14:01:49 +01:00
henryruhs 4ba6f7643e Revamp the upload 2026-03-17 14:01:49 +01:00