Commit graph

817 commits

Author SHA1 Message Date
rob_otman
947be70540 refactor: improve formatting of mock callbacks in ffmpeg tests
- Adjusted formatting of callback responses in the ffmpeg test file for better readability.
- Ensured consistent indentation and line breaks for JSON strings in mock responses.

This enhances code clarity and maintainability in the test suite.
2025-12-19 15:02:02 +00:00
rob_otman
00931098c1 fix: ensure GPU availability is checked before using hardware acceleration
- Check both preferHardware AND gpuAvailable before using NVENC codecs (h264_nvenc, hevc_nvenc)
- Check gpuAvailable before adding CUDA hwaccel flag for input decoding
- Fix test assertion to check correct call index for CUDA hwaccel verification

This prevents hardware acceleration attempts when GPU is unavailable, addressing code review feedback.
2025-12-17 16:05:25 -07:00
rob_otman
db3acff4f7 feat: add NVIDIA GPU availability checking and hardware acceleration logging
- Add `checkNvidiaGpuAvailable()` function using nvidia-smi to detect GPU presence
- Add comprehensive logging for hardware acceleration decisions:
  - GPU detection status
  - Hardware vs software encoding/decoding choices
  - CUDA codec support detection
  - Encoder selection decisions
- Cache GPU availability results to avoid repeated checks
- Add `resetNvidiaGpuCache()` for testing
- Update tests to handle GPU availability mocking

This provides visibility into hardware acceleration decisions and ensures CUDA is only attempted when NVIDIA GPU hardware is actually available.
2025-12-17 15:07:21 -07:00
rob_otman
f2504519f0 feat: add CUDA hardware acceleration with ffprobe codec detection
- Detect video codec using ffprobe instead of file extensions
- Auto-enable CUDA hwaccel for supported codecs when FFMPEG_PREFER_HARDWARE=true
- Skip probing for image formats to optimize performance
- Add comprehensive tests for hardware acceleration logic
2025-12-17 14:53:20 -07:00
rob_otman
6cca431a76 feat: add NVENC hardware encoding support for FFmpeg
Add FFMPEG_PREFER_HARDWARE env var to enable hardware acceleration
Use h264_nvenc and hevc_nvenc encoders when hardware preferred
Fall back to software encoders (libx264/libx265) when disabled
Add comprehensive tests for hardware/software encoding modes
Update README with new environment variable documentation
This enables GPU-accelerated video encoding for better performance on systems with NVIDIA GPUs.
2025-12-17 14:12:13 -07:00
renovate[bot]
911587ea68
chore(deps): lock file maintenance (#477)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 08:37:32 +01:00
Emrik Östling
3d84925e1b
Potential fix for code scanning alert no. 2: Workflow does not contain permissions (#476)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-14 20:46:01 +01:00
Emrik Östling
ab352987d5
Potential fix for code scanning alert no. 1: Workflow does not contain permissions (#474)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-14 20:33:27 +01:00
Emrik Östling
689e66e3f9
Potential fix for code scanning alert no. 3: Workflow does not contain permissions (#475)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-14 20:33:13 +01:00
Emrik Östling
4598745956
Potential fix for code scanning alert no. 6: Unnecessary use of cat process (#473)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-14 20:32:56 +01:00
Emrik Östling
af199ab8bb
Potential fix for code scanning alert no. 5: Workflow does not contain permissions (#472)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-14 20:30:31 +01:00
Emrik Östling
20b321c308 chore: update readme with hw accel link 2025-12-14 19:32:08 +01:00
Laertes87
8f898be20e
Merge pull request #462 from Laertes87/AddMoreUnitTests
test: add more unit tests
2025-12-14 14:38:14 +01:00
Emrik Östling
df3330fdc2
fix: add FFMPEG_OUTPUT_ARGS (#470) 2025-12-14 14:12:21 +01:00
Emrik Östling
12a5580694
fix: ffmpeg args (#469) 2025-12-14 13:43:20 +01:00
Emrik Östling
eabd6e6a7f
chore: update version number (#468) 2025-12-14 11:43:38 +01:00
Jörg Krzeslak
0521af0d52 test: fix code style issue 2025-12-14 02:57:00 +01:00
Jörg Krzeslak
826dc1062a test: add awaits to rejects and resolves 2025-12-14 02:57:00 +01:00
Jörg Krzeslak
84d7da0195 test: add tests for dasel, pandoc and vtracer 2025-12-14 02:57:00 +01:00
Jörg Krzeslak
ad000f35ba test: add libreoffice.test.ts 2025-12-14 02:57:00 +01:00
renovate[bot]
2f965035b6
chore(deps): update github artifact actions (#467)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 12:26:28 +01:00
renovate[bot]
e3dc013b20
chore(deps): lock file maintenance (#461)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 15:51:01 +01:00
renovate[bot]
a59a9fdeec
chore(deps): update dependency node to v24 (#458)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-03 21:29:56 +01:00
renovate[bot]
f5bc47b532
chore(deps): update ramonpaolo/bump-version action to v2.4.0 (#457)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-03 21:29:32 +01:00
Emrik Östling
bef07a787e
fix: Version wasn't bumped for v0.16.0 (#456) 2025-12-03 21:16:05 +01:00
Emrik Östling
5268838975 chore: fix format 2025-12-01 22:31:10 +01:00
Emrik Östling
550f472451
Merge commit from fork 2025-12-01 22:26:56 +01:00
renovate[bot]
d165f11798
chore(deps): lock file maintenance (#453)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 16:58:33 +01:00
renovate[bot]
4ae2aab66a
chore(deps): update actions/checkout action to v6 (#446)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 21:54:32 +01:00
renovate[bot]
2be0b13d42
chore(deps): lock file maintenance (#448)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 21:54:05 +01:00
Emrik Östling
74ebf5e4dc
fix: getPossibleTargets select correct targets (#441) 2025-11-23 19:56:57 +01:00
renovate[bot]
128b118382
chore(deps): lock file maintenance (#443)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-17 09:14:30 +01:00
Emrik Östling
64264a41d9
feat: add delete button in history (#440) 2025-11-16 00:34:49 +01:00
Emrik Östling
0096a6f197
chore: fix typescript-eslint (#439) 2025-11-15 20:15:02 +01:00
Emrik Östling
53c1a54df5
workaround for #435 (#438) 2025-11-14 19:28:40 +01:00
Rdeisenroth
b5c20778f9
fix: ensure data dir exists before loading db (#433)
* fix: ensure data dir exists before loading db

* Update src/db/db.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-11-07 09:26:19 +01:00
Emrik Östling
9a8d7a36b9
chore: add repobeats
Add Repobeats analytics image to README
2025-11-02 14:14:13 +01:00
Emrik Östling
80b55657a4
feat: add healthcheck endpoint (#431) 2025-11-02 13:58:57 +01:00
C4illin
32d1c567b9 chore: update lockfile 2025-11-02 13:44:28 +01:00
C4illin
152bbd1b78 chore: update packages 2025-10-29 21:12:57 +01:00
Param Siddharth
4d65cc7228
feat: add button and API endpoint to delete job (#423) 2025-10-29 20:35:43 +01:00
renovate[bot]
1a4e2dec7c
chore(deps): update github artifact actions (#426)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-29 18:13:57 +01:00
C4illin
061e63e705 chore: add bun to renovate ignore 2025-10-07 20:56:55 +00:00
C4illin
80142ff269 chore: fix lint 2025-10-07 20:34:55 +00:00
Emrik Östling
8b015f9045
chore(main): update changelog 2025-10-07 22:33:00 +02:00
C4illin
0159ac0481 chore: change version number 2025-10-07 20:27:38 +00:00
Emrik Östling
a677a5eec1
ci: add exception for collaborators (#418) 2025-10-07 22:26:15 +02:00
C4illin
0ac585c9da chore: correct spacing 2025-10-07 20:11:44 +00:00
Emrik Östling
4f61577421
ci: remove release please (#416) 2025-10-07 21:58:11 +02:00
Emrik Östling
3e7e95b53c
feature: add download all file by file alongside the tar download (#415) 2025-10-07 21:27:31 +02:00