diff --git a/plugins/python-codecs/package-lock.json b/plugins/python-codecs/package-lock.json index 9ceea6732..b312aaeca 100644 --- a/plugins/python-codecs/package-lock.json +++ b/plugins/python-codecs/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.87", + "version": "0.1.88", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/python-codecs", - "version": "0.1.87", + "version": "0.1.88", "devDependencies": { "@scrypted/sdk": "file:../../sdk" } diff --git a/plugins/python-codecs/package.json b/plugins/python-codecs/package.json index 3043eb0ce..3406e581d 100644 --- a/plugins/python-codecs/package.json +++ b/plugins/python-codecs/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.87", + "version": "0.1.88", "description": "Python Codecs for Scrypted", "keywords": [ "scrypted", diff --git a/plugins/python-codecs/src/gstreamer.py b/plugins/python-codecs/src/gstreamer.py index 6620d3242..01f5cfd59 100644 --- a/plugins/python-codecs/src/gstreamer.py +++ b/plugins/python-codecs/src/gstreamer.py @@ -346,6 +346,8 @@ async def generateVideoFramesGstreamer( ) if videoCodec == "h264": pipeline += " ! rtph264depay ! h264parse" + elif videoCodec == "h265": + pipeline += " ! rtph265depay ! h265parse" decoder = None @@ -372,13 +374,7 @@ async def generateVideoFramesGstreamer( setDecoderClearDefault(h265Decoder) if not decoder: - # hw acceleration is "safe" to use on mac, but not - # on other hosts where it may crash. - # defaults must be safe. - if platform.system() == "Darwin": - decoder = "vtdec_hw" - else: - decoder = "avdec_h265 output-corrupt=false" + decoder = "avdec_h265 output-corrupt=false" else: # decodebin may pick a hardware accelerated decoder, which isn't ideal # so use a known software decoder for h264 and decodebin for anything else.