Commit Graph

559 Commits

Author SHA1 Message Date
henryruhs fe7f402474 fix more todos 2026-05-11 16:36:23 +02:00
henryruhs 0fd6a403b8 stop passing format 2026-05-11 16:36:23 +02:00
Harisreedhar df38778558 fix refresh_session does not validate expiry before refreshing (#1071) 2026-05-11 16:36:23 +02:00
henryruhs e15a2dec76 add tons of todos 2026-05-11 16:36:23 +02:00
henryruhs 399e07261d add tons of todos 2026-05-11 16:36:23 +02:00
henryruhs 61c67c8637 fix macos 2026-05-11 16:36:23 +02:00
henryruhs a16bd54493 add meaningful tests 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
Harisreedhar 6654abbdca Fix bad caching of graphic devices (#1064)
* fix bad caching of graphic devices

* restore without cache

* restore without cache

* restore without cache

* remove detect_static_graphic_devices and add resolve_static_cudnn_conv_algo_search
2026-05-11 16:36:23 +02:00
Harisreedhar facd908196 Dynamic bitrate for webrtc stream (#1063)
* use custom aiortc

* update naming to bitrate_
2026-05-11 16:36:23 +02:00
henryruhs 5c6b247449 merge stuff 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 246d48e079 add download action (#1057) 2026-05-11 16:36:23 +02:00
henryruhs 980c2d3939 fix stream of videos 2026-05-11 16:36:23 +02:00
harisreedhar f0cacba52b fix execution.py import order 2026-05-11 16:36:23 +02:00
henryruhs 61aa016659 burn ui with fire 2026-05-11 16:36:23 +02:00
henryruhs dedf2bf829 updates for v4
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-11 16:36:22 +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
henryruhs 9c0859ade0 fix benchmarker, prevent path traveling via job-id 2026-05-11 16:36:01 +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 078041461d remove more type ignore (#1052) 2026-05-11 16:35:16 +02:00
Henry Ruhs 5ca5e1c2af Better args types part2 (#1051)
* remove helper methods finally

* state becomes the total truth now

* state becomes the total truth now

* state becomes the total truth now

* state becomes the total truth now

* add ini file
2026-05-11 16:35:16 +02:00
Harisreedhar 401118106a Remove unused code to improve test coverage (#1050)
* remove unused code

* move create_session_guard to middlewares
2026-05-11 16:35:16 +02:00
Henry Ruhs f69fa62fa2 better args types (#1049)
* fix lint and remove unused types, restructure helpers

* fix lint

* fix lint

* fix lint
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 1e8c042473 remove while True and websocket code 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 4338d16d17 pre_check() when command == api 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 f2d9eb7f0b remove temp storing to disk 2026-05-11 16:35:16 +02:00
harisreedhar c59596e096 update exception 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 16d2fbf6f2 fix args store 2026-05-11 16:35:16 +02:00
henryruhs 7a6ef94b26 bump dependencies 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 e7a28cf072 introduce type ArgumentSet 2026-05-11 16:35:16 +02:00