You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a browser error when decoding H265, “VideoDecoder.js:270 Uncaught (in promise) DOMException: Failed to execute 'decode' on 'VideoDecoder': A key frame is required after configure() or flush(). If you're using HEVC formatted H.265 you must fill out the description field in the VideoDecoderConfig.” Here's some of my code:
let config = {
codec: "hvc1.1.6.L123.00",
};
const chunk = new EncodedVideoChunk({
data: payData,
timestamp: videoInfo.timeStamp,
type: videoInfo.isKeyFrame ? 'key' : 'delta'
});
this.decoderObj.decode(chunk);
An error occurs when the code is executed at this point “this.decoderObj.decode(chunk);”,I would like to ask for advice on how to locate the error,Or I'd like to know how to catch the error of this interface“decode”,For example, is there a way to throw an exception or return a value for a function
The text was updated successfully, but these errors were encountered:
You might need to populate VideoDecoderConfig.description if you encoded data isn't in annexb format.
It's hard to tell what's going on without seeing the encoded data.
I'm getting a browser error when decoding H265, “VideoDecoder.js:270 Uncaught (in promise) DOMException: Failed to execute 'decode' on 'VideoDecoder': A key frame is required after configure() or flush(). If you're using HEVC formatted H.265 you must fill out the description field in the VideoDecoderConfig.” Here's some of my code:
let config = {
codec: "hvc1.1.6.L123.00",
};
const chunk = new EncodedVideoChunk({
data: payData,
timestamp: videoInfo.timeStamp,
type: videoInfo.isKeyFrame ? 'key' : 'delta'
});
this.decoderObj.decode(chunk);
An error occurs when the code is executed at this point “this.decoderObj.decode(chunk);”,I would like to ask for advice on how to locate the error,Or I'd like to know how to catch the error of this interface“decode”,For example, is there a way to throw an exception or return a value for a function
The text was updated successfully, but these errors were encountered: