add support for embedded text subtitles (#742)

* first pass at text subtitle support

* support text subtitles from movies, music videos and other videos

* fixes

* qsv fixes

* vaapi fixes

* update changelog
This commit is contained in:
Jason Dove
2022-04-19 12:57:24 -05:00
committed by GitHub
parent 60965d0961
commit e250e93a8e
68 changed files with 22005 additions and 152 deletions
@@ -27,16 +27,14 @@ public class EncoderHevcVaapi : EncoderBase
public override string Name => "hevc_vaapi";
public override StreamKind Kind => StreamKind.Video;
// need to upload if we're still in software unless a watermark or picture subtitle is used
// need to upload if we're still in software unless a watermark or subtitle is used
public override string Filter
{
get
{
if (_currentState.FrameDataLocation == FrameDataLocation.Software)
{
bool isNotImageSubtitle = _maybeSubtitleInputFile.Map(s => s.IsImageBased).IfNone(false) == false;
if (_maybeWatermarkInputFile.IsNone && isNotImageSubtitle)
if (_maybeWatermarkInputFile.IsNone && _maybeSubtitleInputFile.IsNone)
{
return "format=nv12|vaapi,hwupload";
}