mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
removed use of libbluray
This commit is contained in:
parent
c567b96e62
commit
040c36dbf2
@ -618,7 +618,7 @@ namespace MediaBrowser.Api.Playback
|
|||||||
|
|
||||||
// Don't re-encode ass/ssa to ass because ffmpeg ass encoder fails if there's more than one ass rectangle. Affect Anime mostly.
|
// Don't re-encode ass/ssa to ass because ffmpeg ass encoder fails if there's more than one ass rectangle. Affect Anime mostly.
|
||||||
// See https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2013-April/063616.html
|
// See https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2013-April/063616.html
|
||||||
bool isAssSubtitle = string.Equals(state.SubtitleStream.Codec, "ass", StringComparison.OrdinalIgnoreCase) || string.Equals(state.SubtitleStream.Codec, "ssa", StringComparison.OrdinalIgnoreCase);
|
var isAssSubtitle = string.Equals(state.SubtitleStream.Codec, "ass", StringComparison.OrdinalIgnoreCase) || string.Equals(state.SubtitleStream.Codec, "ssa", StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
var task = MediaEncoder.ExtractTextSubtitle(inputPath, type, state.SubtitleStream.Index, isAssSubtitle, path, CancellationToken.None);
|
var task = MediaEncoder.ExtractTextSubtitle(inputPath, type, state.SubtitleStream.Index, isAssSubtitle, path, CancellationToken.None);
|
||||||
|
|
||||||
|
@ -110,11 +110,14 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
return System.IO.Path.GetDirectoryName(Path);
|
return System.IO.Path.GetDirectoryName(Path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!IsPlaceHolder)
|
||||||
|
{
|
||||||
if (VideoType == VideoType.BluRay || VideoType == VideoType.Dvd ||
|
if (VideoType == VideoType.BluRay || VideoType == VideoType.Dvd ||
|
||||||
VideoType == VideoType.HdDvd)
|
VideoType == VideoType.HdDvd)
|
||||||
{
|
{
|
||||||
return Path;
|
return Path;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return base.ContainingFolderPath;
|
return base.ContainingFolderPath;
|
||||||
}
|
}
|
||||||
@ -259,10 +262,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
{
|
{
|
||||||
if (!IsInMixedFolder)
|
if (!IsInMixedFolder)
|
||||||
{
|
{
|
||||||
if (VideoType == VideoType.VideoFile || VideoType == VideoType.Iso)
|
return new[] { ContainingFolderPath };
|
||||||
{
|
|
||||||
return new[] { System.IO.Path.GetDirectoryName(Path) };
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return base.GetDeletePaths();
|
return base.GetDeletePaths();
|
||||||
|
@ -34,6 +34,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
case VideoType.BluRay:
|
case VideoType.BluRay:
|
||||||
type = InputType.Bluray;
|
type = InputType.Bluray;
|
||||||
|
inputPath = GetPlayableStreamFiles(inputPath[0], playableStreamFileNames).ToArray();
|
||||||
break;
|
break;
|
||||||
case VideoType.Dvd:
|
case VideoType.Dvd:
|
||||||
type = InputType.Dvd;
|
type = InputType.Dvd;
|
||||||
@ -46,6 +47,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
case IsoType.BluRay:
|
case IsoType.BluRay:
|
||||||
type = InputType.Bluray;
|
type = InputType.Bluray;
|
||||||
|
inputPath = GetPlayableStreamFiles(inputPath[0], playableStreamFileNames).ToArray();
|
||||||
break;
|
break;
|
||||||
case IsoType.Dvd:
|
case IsoType.Dvd:
|
||||||
type = InputType.Dvd;
|
type = InputType.Dvd;
|
||||||
@ -118,15 +120,16 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Model.Entities.MediaInfo GetMediaInfo(InternalMediaInfoResult data)
|
public static MediaInfo GetMediaInfo(InternalMediaInfoResult data)
|
||||||
{
|
{
|
||||||
var internalStreams = data.streams ?? new MediaStreamInfo[] { };
|
var internalStreams = data.streams ?? new MediaStreamInfo[] { };
|
||||||
|
|
||||||
var info = new Model.Entities.MediaInfo();
|
var info = new MediaInfo
|
||||||
|
{
|
||||||
info.MediaStreams = internalStreams.Select(s => GetMediaStream(s, data.format))
|
MediaStreams = internalStreams.Select(s => GetMediaStream(s, data.format))
|
||||||
.Where(i => i != null)
|
.Where(i => i != null)
|
||||||
.ToList();
|
.ToList()
|
||||||
|
};
|
||||||
|
|
||||||
if (data.format != null)
|
if (data.format != null)
|
||||||
{
|
{
|
||||||
|
@ -125,13 +125,11 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
|||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
case InputType.Bluray:
|
||||||
case InputType.Dvd:
|
case InputType.Dvd:
|
||||||
case InputType.File:
|
case InputType.File:
|
||||||
inputPath = GetConcatInputArgument(inputFiles);
|
inputPath = GetConcatInputArgument(inputFiles);
|
||||||
break;
|
break;
|
||||||
case InputType.Bluray:
|
|
||||||
inputPath = GetBlurayInputArgument(inputFiles[0]);
|
|
||||||
break;
|
|
||||||
case InputType.Url:
|
case InputType.Url:
|
||||||
inputPath = GetHttpInputArgument(inputFiles);
|
inputPath = GetHttpInputArgument(inputFiles);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user