feat: translate subtitles with an OpenAI-compatible LLM
This commit is contained in:
1 parent
48cac86d60
commit
4665bf632a
21 files changed
+1877
-5
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "subtitleparser.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
namespace Subtitles
|
||||
{
|
||||
struct ExtractResult {
|
||||
QList<SubtitleCue> cues;
|
||||
QString error;
|
||||
};
|
||||
|
||||
// Decodes a text subtitle stream of a media file with FFmpeg. \a streamIndex is the
|
||||
// FFmpeg stream index (mpv reports it as "ff-index"). Blocking; run it off the GUI thread.
|
||||
ExtractResult extractEmbedded(const QString &path, int streamIndex, const std::atomic_bool &cancelled);
|
||||
}
|
||||
Reference in new issue
Block a user