Commit Graph
19 Commits
Author SHA1 Message Date
Stevan Freeborn 4b56011f3b chore: run dotnet format 2025-10-10 16:42:14 -05:00
Stevan Freeborn a34ffe575b fix: fix error messages and remove unnecessary null check and use input file name for audio output name 2025-10-10 16:38:46 -05:00
Stevan Freeborn e611522c7b feat: enable processing of large video files over 2GB
Update audio extraction to use file-based streaming
instead of in-memory buffers to support processing
video files larger than 2GB.

**Changes:**
- Modified `IAudioExtractor.ExtractMp3FromMp4Async()`
  to accept an output audio stream parameter instead
  of creating a MemoryStream internally
- Updated `AudioExtractor` to write directly to the
  provided audio stream, eliminating the need to load
  entire video into memory
- Enhanced `FFMpegService` to detect FileStream inputs
  and use direct file-to-file processing when possible,
  falling back to pipe-based streaming for other stream types
- Refactored `DefaultCommand` to create output directory
  and audio file stream before extraction, enabling direct
  file-based audio extraction
- Updated all unit and integration tests to accommodate the
  new audio stream parameter

This change prevents `OutOfMemoryException` errors when processing
large video files by streaming data directly to disk rather than
buffering in memory. Additionally, it removes the possibility of
overflowing the 2GB size limit that `MemoryStream` has, which
would result in `IOException` errors when trying to write or
copy to it.
2025-10-10 16:23:02 -05:00
copilot-swe-agent[bot]andStevanFreeborn 662d899196 Add markup escaping to validation error message
Co-authored-by: StevanFreeborn <65925598+StevanFreeborn@users.noreply.github.com>
2025-10-09 23:46:59 +00:00
copilot-swe-agent[bot]andStevanFreeborn f2fdc53222 Escape markup in file paths for console output
Co-authored-by: StevanFreeborn <65925598+StevanFreeborn@users.noreply.github.com>
2025-10-09 23:44:31 +00:00
Stevan Freeborn 6ebec7c285 fix: use file system abstraction in base directory method. thanks copilot 🤖 2025-10-09 16:14:10 -05:00
Stevan Freeborn 8632f88817 feat: add configurable output directory with validation
- Add support for OutputDirectory configuration setting.
- The command now validates the configured directory path,
  creates it if needed, and falls back to the application
  base directory if invalid. Includes error handling for
  path-related exceptions.
2025-10-09 16:08:56 -05:00
Stevan Freeborn 57e95b2ea1 feat: display location of output with link inside panel 2025-08-20 22:17:06 -05:00
Stevan Freeborn bd0a7fe3cd chore: lots of chores 2025-08-19 16:25:15 -05:00
Stevan Freeborn 3752e9dfa0 chore: add console publish github action workflow 2025-08-19 15:12:12 -05:00
Stevan Freeborn d470574b99 feat: complete implementation using gemini as analyzer 2025-08-19 12:43:34 -05:00
Stevan Freeborn 85304eadd1 feat: trying to create clips...probs a waste of time grrrrrrr 2025-08-12 00:17:37 -05:00
Stevan Freeborn d7a953f187 feat: wip on implementing gemini analyzer 2025-07-31 00:10:27 -05:00
Stevan Freeborn f6773cb64e fix: practice defense driving...seal it all 2025-07-29 18:26:22 -05:00
Stevan Freeborn 07190acb65 fix: maintain passed in streams position 2025-07-29 18:21:17 -05:00
Stevan Freeborn ef45a4098a feat: initial whipser transcriber implementation 2025-07-29 18:00:09 -05:00
Stevan Freeborn a1864371dd feat: extract audio conversion to separate class and refine audio extraction 2025-07-27 23:33:05 -05:00
Stevan Freeborn 0a661d6970 feat: refactor audio extraction to reusable class 2025-07-24 11:22:15 -05:00
Stevan Freeborn 310f56fb84 feat: wip...migrating to proper app 2025-07-23 23:55:56 -05:00