Commit Graph

184 Commits

Author SHA1 Message Date
henryruhs 61c67c8637 fix macos 2026-05-11 16:36:23 +02:00
henryruhs edf8914da3 add meaningful tests 2026-05-11 16:36:23 +02:00
henryruhs 2aced392e1 cleanup code part1 2026-05-11 16:36:23 +02:00
Harisreedhar 2b76f3381f 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-05-11 16:36:23 +02:00
Harisreedhar f40ee8335a 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-05-11 16:36:23 +02:00
Harisreedhar b9c1ff8185 add test when get_metrics_set() returns None (#1067) 2026-05-11 16:36:23 +02:00
Harisreedhar 48bae74001 fix false vram numbers (#1065) 2026-05-11 16:36:23 +02:00
Henry Ruhs efab505adb 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-05-11 16:36:23 +02:00
Harisreedhar ad1a6c9ea3 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-05-11 16:36:03 +02:00
Harisreedhar 1ba2adc10b Rename process to stream (#1053)
* rename process to stream

* remove /image and add webrtc_stream_video scaffolding

* remove _image
2026-05-11 16:35:16 +02:00
Henry Ruhs ef47b17a4a rename args store to capability store (#1048)
* rename args store to capability store

* fix lint and remove unused types
2026-05-11 16:35:16 +02:00
Harisreedhar 7c078644ad Improve tests (#1047)
* improve tests

* does it hurt someone to have crazy numbers?

---------

Co-authored-by: henryruhs <info@henryruhs.com>
2026-05-11 16:35:16 +02:00
harisreedhar 47bdcd67f1 fix pre-check issue 2026-05-11 16:35:16 +02:00
harisreedhar f83ff29116 remove pre_check 2026-05-11 16:35:16 +02:00
harisreedhar 91067c6394 remove program 2026-05-11 16:35:16 +02:00
harisreedhar 1f0af5906d hopefully fix test 2026-05-11 16:35:16 +02:00
harisreedhar 887a6ac1c7 pre_check() on test instead 2026-05-11 16:35:16 +02:00
harisreedhar a21c23173e fix naming and remove unwanted state initialization 2026-05-11 16:35:16 +02:00
harisreedhar cd3f6f2224 init 'face_selector_mode' to many 2026-05-11 16:35:16 +02:00
harisreedhar 4a0f4bcb9a update test 2026-05-11 16:35:16 +02:00
harisreedhar b5a89971c4 process image 2026-05-11 16:35:16 +02:00
Harisreedhar 53845585ef 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-05-11 16:35:16 +02:00
henryruhs 9486750f38 allow register_arguments to be nested, fix types, adjust processors 2026-05-11 16:35:16 +02:00
harisreedhar 1181307a0e reformat test_api_state.py 2026-05-11 16:35:16 +02:00
harisreedhar ecc280a93f remove unwanted assertions 2026-05-11 16:35:16 +02:00
harisreedhar aa83142ab5 remove value None as default 2026-05-11 16:35:16 +02:00
harisreedhar 2a60280182 remove value None as default 2026-05-11 16:35:16 +02:00
harisreedhar b9c11815f8 add test_api_capabilities.py 2026-05-11 16:35:16 +02:00
harisreedhar e16f5bca11 fix test 2026-05-11 16:35:16 +02:00
harisreedhar 02ba86308e add capabilities 2026-05-11 16:35:16 +02:00
harisreedhar f475ec4bbc remove try block, make detect_graphic_devices stateless, cosmetics 2026-05-11 16:35:16 +02:00
harisreedhar 9e63832740 fix test 2026-05-11 16:35:16 +02:00
harisreedhar 73a298cd97 add processor metric 2026-05-11 16:35:16 +02:00
harisreedhar b1947ffaa2 add network metrics 2026-05-11 16:35:16 +02:00
harisreedhar b7e80bdafa fix test 2026-05-11 16:35:16 +02:00
harisreedhar 14b1ed6b76 add memory metrics 2026-05-11 16:35:12 +02:00
harisreedhar bae6169274 some cosmetics 2026-05-11 16:35:12 +02:00
harisreedhar 9a27c8346c add disk to metric test 2026-05-11 16:35:12 +02:00
harisreedhar 09dc2ec50b cleanup 2026-05-11 16:35:12 +02:00
harisreedhar 01baf8d2ea improve test 2026-05-11 16:35:12 +02:00
harisreedhar a818e7f610 remove instance check 2026-05-11 16:35:12 +02:00
harisreedhar 5f6e0cc567 fix test 2026-05-11 16:35:12 +02:00
harisreedhar e2738f1f14 add metrics 2026-05-11 16:35:12 +02:00
harisreedhar db5ffdc449 add metrics 2026-05-11 16:35:12 +02:00
Henry Ruhs 0c18508f70 Revisit and cleanup ffprobe integration (#1027)
* Revisit and cleanup ffprobe integration

* Revisit and cleanup ffprobe integration
2026-05-11 16:34:28 +02:00
harisreedhar dcfbbc041f add missing endpoints 2026-05-11 16:34:28 +02:00
henryruhs dc500eb398 Add process manager to the right place 2026-05-11 16:34:28 +02:00
henryruhs 5fa088457e FFmpeg powered sanitization, Chunk based upload write 2026-05-11 16:34:28 +02:00
henryruhs 40f5b403a4 Simplify testing 2026-05-11 16:34:28 +02:00
henryruhs 908f3d2873 Revamp the upload 2026-05-11 16:34:28 +02:00