Use FFmpeg concat for DVD and BD folder playback

This commit is contained in:
Shadowghost
2023-02-04 00:08:51 +01:00
parent ddfdec7f46
commit edf3909157
4 changed files with 64 additions and 2 deletions

View File

@@ -323,6 +323,11 @@ public class TranscodingJobHelper : IDisposable
if (delete(job.Path!))
{
await DeletePartialStreamFiles(job.Path!, job.Type, 0, 1500).ConfigureAwait(false);
if (job.MediaSource?.VideoType == VideoType.Dvd || job.MediaSource?.VideoType == VideoType.BluRay)
{
var path = Path.GetDirectoryName(job.Path) + "/" + job.MediaSource.Id + ".concat";
File.Delete(path);
}
}
if (closeLiveStream && !string.IsNullOrWhiteSpace(job.LiveStreamId))