mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 00:39:56 +00:00
python-codecs: h265 parsing fixes
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user