Spaces:
Running
Running
Commit ·
bcdfd6c
1
Parent(s): 26c5e0f
Static video works FULL!
Browse files
server-plugins/single-static-video.js
CHANGED
|
@@ -116,21 +116,6 @@ export class SingleStaticVideoPlugin extends Plugin {
|
|
| 116 |
transition_duration_sec: 0
|
| 117 |
};
|
| 118 |
|
| 119 |
-
// // If generate-captions was requested, generate the .ass file for the combined .json caption file
|
| 120 |
-
// const captionPluginConfig = originalManuscriptMeta?.plugins?.find(p => p.name === 'generate-captions');
|
| 121 |
-
// if (captionPluginConfig) {
|
| 122 |
-
// this.log(`Generating combined .ass caption file...`);
|
| 123 |
-
// const captionPlugin = new CaptionPlugin('generate-captions', captionPluginConfig);
|
| 124 |
-
// const outputCaptionFile = combinedAudioCaptionsFilePath.replace('.json', '.ass');
|
| 125 |
-
// await captionPlugin.generateCaptions({
|
| 126 |
-
// ...captionPluginConfig,
|
| 127 |
-
// captionFilePath: combinedAudioCaptionsFilePath,
|
| 128 |
-
// outputFilePath: outputCaptionFile
|
| 129 |
-
// });
|
| 130 |
-
// combinedSection._audioCaptionFile = combinedAudioCaptionsFilePath;
|
| 131 |
-
// combinedSection.audioCaptionFile = outputCaptionFile;
|
| 132 |
-
// }
|
| 133 |
-
|
| 134 |
// Replace the transcript with the single combined section
|
| 135 |
originalManuscript.transcript = [combinedSection];
|
| 136 |
|
|
|
|
| 116 |
transition_duration_sec: 0
|
| 117 |
};
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
// Replace the transcript with the single combined section
|
| 120 |
originalManuscript.transcript = [combinedSection];
|
| 121 |
|