feat: initial Cutdex application
Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
This commit is contained in:
commit
27e77fff39
718 files changed
+183958
No files matched your search
@@ -0,0 +1,46 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:cutdex/integrations/runtime/processing_configuration.dart';
|
||||
|
||||
/// File-presence fixture only: no worker is run and no model is downloaded.
|
||||
Future<ProcessingConfiguration> processingFixture(
|
||||
Directory root,
|
||||
int capabilities, {
|
||||
bool stale = false,
|
||||
}) async {
|
||||
final suffix = Platform.isWindows ? '.exe' : '';
|
||||
final paths = [
|
||||
'runtime/bin/cutdex-processing-worker$suffix',
|
||||
if (capabilities & 13 != 0) 'runtime/bin/ffmpeg$suffix',
|
||||
if (capabilities & 1 != 0) ...[
|
||||
'runtime/workers/asr/cutdex-asr-worker$suffix',
|
||||
'asr/ggml-model.bin',
|
||||
'asr/silero_vad.onnx',
|
||||
],
|
||||
if (capabilities & 2 != 0) ...[
|
||||
'runtime/workers/translation/cutdex-m2m100-worker$suffix',
|
||||
'translation/model.bin',
|
||||
'translation/config.json',
|
||||
'translation/shared_vocabulary.json',
|
||||
'translation/sentencepiece.bpe.model',
|
||||
],
|
||||
if (capabilities & 4 != 0) ...[
|
||||
'runtime/workers/audio/cutdex-audio-worker$suffix',
|
||||
'audio/melband.pt',
|
||||
],
|
||||
if (capabilities & 8 != 0) 'background/model.onnx',
|
||||
];
|
||||
for (final path in paths) {
|
||||
final file = File('${root.path}/$path');
|
||||
await file.parent.create(recursive: true);
|
||||
await file.writeAsString('fixture');
|
||||
}
|
||||
final base = stale ? '${root.path}/missing' : root.path;
|
||||
return ProcessingConfiguration.fromPaths(
|
||||
root: '${root.path}/runtime',
|
||||
transcriptionPath: '$base/asr',
|
||||
translationPath: '$base/translation',
|
||||
vocalPath: '$base/audio/melband.pt',
|
||||
backgroundRemovalPath: '$base/background/model.onnx',
|
||||
)!;
|
||||
}
|
||||
Reference in new issue
Block a user