Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coded parameter out of range error #17

Open
warpdesign opened this issue Nov 15, 2017 · 4 comments
Open

coded parameter out of range error #17

warpdesign opened this issue Nov 15, 2017 · 4 comments

Comments

@warpdesign
Copy link

While trying to decode an heic picture coming from an iPhone X I am getting this error:

hevc-decoder.js:166 coded parameter out of range

In this case, code is 8.

I am using Nokia's decoder which in turn uses libde265.js.

See nokiatech/heif#33

@fancycode
Copy link
Member

Which version of libde265.js is used? Could you please provide a sample file and a demo setup so we can reproduce the error?

cc @farindk

@warpdesign
Copy link
Author

I am using the latest min https://github.com/strukturag/libde265.js/tree/master/lib found here.

I have attached a sample file.

I'll see if I can setup a small project to reproduce the bug.

rodo.zip

@farindk
Copy link

farindk commented Nov 23, 2017

I tried to reproduce it like this: I used Nokia's example code to extract the HEVC data stream from the HEIF file. This worked fine for other HEIF files. However, for your file, the Nokia code crashes with this error:
Skipping an unknown box of type 'colr' in ItemPropertyContainer.
Skipping an unknown box of type 'pixi' in ItemPropertyContainer.
Skipping an unknown box of type 'colr' in ItemPropertyContainer.
Skipping an unknown box of type 'pixi' in ItemPropertyContainer.
terminate called after throwing an instance of 'std::out_of_range'
what(): map::at
Aborted (core dumped)

Could it be that the Nokia code cannot parse this file and you got corrupted HEVC data because of that?

Or, in case you got the HEVC data, could you send me the raw HEVC data-stream that I can test with the decoder?

@connortechnology
Copy link

7829657-video.hevc.mp4

Here is an example generated from ZoneMinder that exhibits this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants