generated from obsproject/obs-plugintemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WebVTT-in-video-stream support (#196)
* Fix `whisper_buffer` and `resampled_buffer` data race `media_unpause` was causing `wisper_buffer` to be freed while `vad_based_segmentation`/`hybrid_vad_segmentation` need that buffer to not be modified for the duration of those calls * Slightly improve handling for weird subtitle output filenames * Squashed 'deps/c-webvtt-in-video-stream/' content from commit 5579ca6 git-subtree-dir: deps/c-webvtt-in-video-stream git-subtree-split: 5579ca6dc9dcf94e3c14631c6c01b2ee4dfcf005 * Add WIP webvtt sei functionality * Add webvtt recording/streaming settings * Make latency_to_video_in_msecs and send_frequency_hz configurable * Make webvtt languages configurable * Add translation and main language separately * Add rust CI integration
- Loading branch information
Showing
26 changed files
with
2,460 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
include(FetchContent) | ||
|
||
set(Rust_RUSTUP_INSTALL_MISSING_TARGET true) | ||
|
||
if(OS_MACOS) | ||
if("$ENV{MACOS_ARCH}" STREQUAL "x86_64") | ||
set(Rust_CARGO_TARGET "x86_64-apple-darwin") | ||
endif() | ||
endif() | ||
|
||
FetchContent_Declare( | ||
Corrosion | ||
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git | ||
GIT_TAG v0.5 # Optionally specify a commit hash, version tag or branch here | ||
) | ||
FetchContent_MakeAvailable(Corrosion) | ||
|
||
# Import targets defined in a package or workspace manifest `Cargo.toml` file | ||
corrosion_import_crate(MANIFEST_PATH "${CMAKE_SOURCE_DIR}/deps/c-webvtt-in-video-stream/Cargo.toml" CRATE_TYPES | ||
"staticlib" PROFILE release) | ||
|
||
set_target_properties(c_webvtt_in_video_stream PROPERTIES INTERFACE_INCLUDE_DIRECTORIES | ||
"${CMAKE_SOURCE_DIR}/deps/c-webvtt-in-video-stream/target/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"evenBetterToml.formatter.reorderKeys": true, | ||
"evenBetterToml.formatter.reorderArrays": true, | ||
"evenBetterToml.formatter.trailingNewline": true, | ||
"rust-analyzer.check.command": "clippy" | ||
} |
Oops, something went wrong.