fixes #2285 - [BUG] VAAPI Transcoding (Does not work with certain codecs)
This commit is contained in:
parent
95341c5c96
commit
3c55747cd6
|
@ -336,9 +336,12 @@ namespace MediaBrowser.Api.Playback
|
|||
{
|
||||
// vaapi will throw an error with this input
|
||||
// [vaapi @ 0x7faed8000960] No VAAPI support for codec mpeg4 profile -99.
|
||||
if (string.Equals(videoStream.Codec, "mpeg4", StringComparison.OrdinalIgnoreCase) && videoStream.Level == -99)
|
||||
if (string.Equals(videoStream.Codec, "mpeg4", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return false;
|
||||
if (videoStream.Level == -99 || videoStream.Level == 15)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -606,9 +606,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
{
|
||||
// vaapi will throw an error with this input
|
||||
// [vaapi @ 0x7faed8000960] No VAAPI support for codec mpeg4 profile -99.
|
||||
if (string.Equals(videoStream.Codec, "mpeg4", StringComparison.OrdinalIgnoreCase) && videoStream.Level == -99)
|
||||
if (string.Equals(videoStream.Codec, "mpeg4", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return false;
|
||||
if (videoStream.Level == -99 || videoStream.Level == 15)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
6
RSSDP/RSSDP.nuget.targets
Normal file
6
RSSDP/RSSDP.nuget.targets
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Target Name="EmitMSBuildWarning" BeforeTargets="Build">
|
||||
<Warning Text="Packages containing MSBuild targets and props files cannot be fully installed in projects targeting multiple frameworks. The MSBuild targets and props files have been ignored." />
|
||||
</Target>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user