Commit Graph

193 Commits

Author SHA1 Message Date
henryruhs cdd7c25586 once invalid value causes other to fail too 2026-04-06 20:42:26 +02:00
Harisreedhar b1daf2bc03 Ignore set state for non api scope (#1073)
* ignore set state for non api scope

* replace 404 with 422

* remove two loops

* use HTTP_422_UNPROCESSABLE_CONTENT
2026-04-06 20:27:23 +02:00
henryruhs 89743d14d1 add todos 2026-04-06 18:12:27 +02:00
henryruhs 94b0a4032e fix stuck ffmpeg due multi thread lock 2026-04-06 18:06:42 +02:00
henryruhs ff8db531a8 make ci great again 2026-04-06 18:49:16 +02:00
Henry Ruhs af9cc1a37a Fix/ffmpeg sanitize (#1074)
* fix sanitize for videos

* fix macos

* fix macos
2026-04-06 17:56:43 +02:00
Henry Ruhs 8ee40517a4 Feat/ffprobe v2 (#1072)
* follow the todos

* extend to support bit_rate and more

* simplify like crazy

* simplify like crazy

* minor changes

* clean testing

* clean testing

* kill pipe resolver helpers

* kill pipe resolver helpers

* bit rate seems to be different on CI

* use .splitlines() over .split(os.linesep)

* skip test for windows

* hack testing
2026-04-06 14:17:01 +02:00
henryruhs 74d009ea79 stop passing format 2026-04-02 22:16:01 +02:00
Harisreedhar 8446b0e1d4 fix refresh_session does not validate expiry before refreshing (#1071) 2026-04-01 09:19:41 +02:00
henryruhs e24f1052ac add tons of todos 2026-03-31 22:56:32 +02:00
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