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

thread 'main' panicked at 'called Option::unwrap() on a None value' #22

Closed
sagz opened this issue Jun 5, 2021 · 5 comments
Closed

thread 'main' panicked at 'called Option::unwrap() on a None value' #22

sagz opened this issue Jun 5, 2021 · 5 comments

Comments

@sagz
Copy link

sagz commented Jun 5, 2021

image

Error:

>dist ./dovi_tool extract-rpu img_5858.hevc   
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/runner/.cargo/registry/  
src/github.com-1ecc6299db9ec823/bitvec_helpers-0.1.0/src/bitvec_reader.rs:21:44

This is the hevc file I extracted out of an iPhone 12 DoVi encoded file (8.4 I believe).

The .hevc file was extracted out of the .mov container with ffmpeg -i ~/Pictures/IMG_5858.MOV -c:v copy -vbsf hevc_mp4toannexb -f hevc img_5858.hevc

@quietvoid
Copy link
Owner

I'm pretty sure it's working in master, because there's a bug in the previous hevc_parser version.
Can you test it?

Not much I can do otherwise without a sample.

@sagz
Copy link
Author

sagz commented Jun 6, 2021

I tried the build from Master (https://github.com/quietvoid/dovi_tool/actions/runs/814558437) and got the same error.

Here's the original video file: https://github.com/sagz/files/releases/tag/v0.1
I extracted the hevc stream out with ffmpeg -i IMG_5858.MOV -c:v copy -vbsf hevc_mp4toannexb -f hevc img_5858.hevc

@quietvoid
Copy link
Owner

That's not an up to date build. You would have to build from source.
I just tried with the file and it works on commit 1cffc61

So I guess I'll just bump the version and update releases.

@quietvoid
Copy link
Owner

@sagz
Copy link
Author

sagz commented Jun 6, 2021

Yep, I was able to extract it! Thanks! :)

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

2 participants