mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
update ffmpeg with qsv-compatible version
This commit is contained in:
parent
5340bfe8da
commit
aff7309a08
@ -352,9 +352,9 @@ namespace MediaBrowser.Api.Playback.Dash
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
foreach (var subfolder in FileSystem.GetDirectories(folder).ToList())
|
foreach (var subfolder in FileSystem.GetDirectoryPaths(folder).ToList())
|
||||||
{
|
{
|
||||||
var subfolderName = Path.GetFileNameWithoutExtension(subfolder.FullName);
|
var subfolderName = Path.GetFileNameWithoutExtension(subfolder);
|
||||||
int startNumber;
|
int startNumber;
|
||||||
if (int.TryParse(subfolderName, NumberStyles.Any, UsCulture, out startNumber))
|
if (int.TryParse(subfolderName, NumberStyles.Any, UsCulture, out startNumber))
|
||||||
{
|
{
|
||||||
|
@ -499,5 +499,23 @@ namespace MediaBrowser.Common.Implementations.IO
|
|||||||
{
|
{
|
||||||
return File.ReadAllText(path, encoding);
|
return File.ReadAllText(path, encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<string> GetDirectoryPaths(string path, bool recursive = false)
|
||||||
|
{
|
||||||
|
var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;
|
||||||
|
return Directory.EnumerateDirectories(path, "*", searchOption);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<string> GetFilePaths(string path, bool recursive = false)
|
||||||
|
{
|
||||||
|
var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;
|
||||||
|
return Directory.EnumerateFiles(path, "*", searchOption);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<string> GetFileSystemEntryPaths(string path, bool recursive = false)
|
||||||
|
{
|
||||||
|
var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;
|
||||||
|
return Directory.EnumerateFileSystemEntries(path, "*", searchOption);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -176,5 +176,11 @@ namespace MediaBrowser.Common.IO
|
|||||||
void WriteAllText(string path, string text, Encoding encoding);
|
void WriteAllText(string path, string text, Encoding encoding);
|
||||||
|
|
||||||
string ReadAllText(string path, Encoding encoding);
|
string ReadAllText(string path, Encoding encoding);
|
||||||
|
|
||||||
|
IEnumerable<string> GetDirectoryPaths(string path, bool recursive = false);
|
||||||
|
|
||||||
|
IEnumerable<string> GetFilePaths(string path, bool recursive = false);
|
||||||
|
|
||||||
|
IEnumerable<string> GetFileSystemEntryPaths(string path, bool recursive = false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1167,10 +1167,10 @@ namespace MediaBrowser.Providers.TV
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
foreach (var file in _fileSystem.GetFiles(path, true)
|
foreach (var file in _fileSystem.GetFilePaths(path, true)
|
||||||
.ToList())
|
.ToList())
|
||||||
{
|
{
|
||||||
_fileSystem.DeleteFile(file.FullName);
|
_fileSystem.DeleteFile(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (DirectoryNotFoundException)
|
catch (DirectoryNotFoundException)
|
||||||
|
@ -111,8 +111,8 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return Directory
|
return _fileSystem
|
||||||
.EnumerateDirectories(path, "*", SearchOption.TopDirectoryOnly)
|
.GetFileSystemEntryPaths(path)
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
|
@ -1165,7 +1165,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||||||
/// <returns>IEnumerable{VirtualFolderInfo}.</returns>
|
/// <returns>IEnumerable{VirtualFolderInfo}.</returns>
|
||||||
private IEnumerable<VirtualFolderInfo> GetView(string path)
|
private IEnumerable<VirtualFolderInfo> GetView(string path)
|
||||||
{
|
{
|
||||||
return Directory.EnumerateDirectories(path, "*", SearchOption.TopDirectoryOnly)
|
return _fileSystem.GetFileSystemEntryPaths(path)
|
||||||
.Select(dir => new VirtualFolderInfo
|
.Select(dir => new VirtualFolderInfo
|
||||||
{
|
{
|
||||||
Name = Path.GetFileName(dir),
|
Name = Path.GetFileName(dir),
|
||||||
|
@ -54,7 +54,7 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
|
|||||||
|
|
||||||
info.FFMpegFilename = "ffmpeg.exe";
|
info.FFMpegFilename = "ffmpeg.exe";
|
||||||
info.FFProbeFilename = "ffprobe.exe";
|
info.FFProbeFilename = "ffprobe.exe";
|
||||||
info.Version = "20150916";
|
info.Version = "20150918";
|
||||||
info.ArchiveType = "7z";
|
info.ArchiveType = "7z";
|
||||||
|
|
||||||
switch (environment.SystemArchitecture)
|
switch (environment.SystemArchitecture)
|
||||||
@ -83,14 +83,14 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
|
|||||||
case Architecture.X86_X64:
|
case Architecture.X86_X64:
|
||||||
return new[]
|
return new[]
|
||||||
{
|
{
|
||||||
"http://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20150916-git-cbbd906-win64-static.7z",
|
"https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/windows/ffmpeg-20150918-win64.7z",
|
||||||
"https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/windows/ffmpeg-20150916-git-cbbd906-win64-static.7z"
|
"http://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20150916-git-cbbd906-win64-static.7z"
|
||||||
};
|
};
|
||||||
case Architecture.X86:
|
case Architecture.X86:
|
||||||
return new[]
|
return new[]
|
||||||
{
|
{
|
||||||
"http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20150916-git-cbbd906-win32-static.7z",
|
"https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/windows/ffmpeg-20150918-win32.7z",
|
||||||
"https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/windows/ffmpeg-20150916-git-cbbd906-win32-static.7z"
|
"http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20150916-git-cbbd906-win32-static.7z"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common.Internal</id>
|
<id>MediaBrowser.Common.Internal</id>
|
||||||
<version>3.0.633</version>
|
<version>3.0.634</version>
|
||||||
<title>MediaBrowser.Common.Internal</title>
|
<title>MediaBrowser.Common.Internal</title>
|
||||||
<authors>Luke</authors>
|
<authors>Luke</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<description>Contains common components shared by Emby Theater and Emby Server. Not intended for plugin developer consumption.</description>
|
<description>Contains common components shared by Emby Theater and Emby Server. Not intended for plugin developer consumption.</description>
|
||||||
<copyright>Copyright © Emby 2013</copyright>
|
<copyright>Copyright © Emby 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.633" />
|
<dependency id="MediaBrowser.Common" version="3.0.634" />
|
||||||
<dependency id="NLog" version="3.2.1" />
|
<dependency id="NLog" version="3.2.1" />
|
||||||
<dependency id="SimpleInjector" version="3.0.5" />
|
<dependency id="SimpleInjector" version="3.0.5" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common</id>
|
<id>MediaBrowser.Common</id>
|
||||||
<version>3.0.633</version>
|
<version>3.0.634</version>
|
||||||
<title>MediaBrowser.Common</title>
|
<title>MediaBrowser.Common</title>
|
||||||
<authors>Emby Team</authors>
|
<authors>Emby Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Model.Signed</id>
|
<id>MediaBrowser.Model.Signed</id>
|
||||||
<version>3.0.633</version>
|
<version>3.0.634</version>
|
||||||
<title>MediaBrowser.Model - Signed Edition</title>
|
<title>MediaBrowser.Model - Signed Edition</title>
|
||||||
<authors>Emby Team</authors>
|
<authors>Emby Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Server.Core</id>
|
<id>MediaBrowser.Server.Core</id>
|
||||||
<version>3.0.633</version>
|
<version>3.0.634</version>
|
||||||
<title>Media Browser.Server.Core</title>
|
<title>Media Browser.Server.Core</title>
|
||||||
<authors>Emby Team</authors>
|
<authors>Emby Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<description>Contains core components required to build plugins for Emby Server.</description>
|
<description>Contains core components required to build plugins for Emby Server.</description>
|
||||||
<copyright>Copyright © Emby 2013</copyright>
|
<copyright>Copyright © Emby 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.633" />
|
<dependency id="MediaBrowser.Common" version="3.0.634" />
|
||||||
<dependency id="Interfaces.IO" version="1.0.0.5" />
|
<dependency id="Interfaces.IO" version="1.0.0.5" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user