mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-07 07:34:42 -04:00
Merge pull request #2058 from ferferga/master
Add full Raspberry Pi hardware accelerated decoding support
This commit is contained in:
commit
32519a5471
@ -2538,6 +2538,18 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
return "-c:v mpeg2_mmal ";
|
return "-c:v mpeg2_mmal ";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "mpeg4":
|
||||||
|
if (_mediaEncoder.SupportsDecoder("mpeg4_mmal") && encodingOptions.HardwareDecodingCodecs.Contains("mpeg4", StringComparer.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
return "-c:v mpeg4_mmal ";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "vc1":
|
||||||
|
if (_mediaEncoder.SupportsDecoder("vc1_mmal") && encodingOptions.HardwareDecodingCodecs.Contains("vc1", StringComparer.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
return "-c:v vc1_mmal ";
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,10 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
"h264_qsv",
|
"h264_qsv",
|
||||||
"hevc_qsv",
|
"hevc_qsv",
|
||||||
"mpeg2_qsv",
|
"mpeg2_qsv",
|
||||||
|
"mpeg2_mmal",
|
||||||
|
"mpeg4_mmal",
|
||||||
"vc1_qsv",
|
"vc1_qsv",
|
||||||
|
"vc1_mmal",
|
||||||
"h264_cuvid",
|
"h264_cuvid",
|
||||||
"hevc_cuvid",
|
"hevc_cuvid",
|
||||||
"dts",
|
"dts",
|
||||||
@ -26,6 +29,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
"aac",
|
"aac",
|
||||||
"mp3",
|
"mp3",
|
||||||
"h264",
|
"h264",
|
||||||
|
"h264_mmal",
|
||||||
"hevc"
|
"hevc"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user