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

i downloaded Linux version of aomanalyzer and failed to open - "First argument must be a decoder" #51

Open
slavah264 opened this issue Feb 4, 2018 · 7 comments

Comments

@slavah264
Copy link

i downloaded aomanalyzer package (version 1.0.0).
When i apply ./AOMAnalyzer i receive the error "First argument must be a decoder.":

./AOMAnalyzer ./aomdec ../av1/test2.ivf
First argument must be a decoder.

i tried without mentioning 'aomdec' - the same error is issued.

How to run AOMAnalyzer on a specified ivf-file (av1 content)?

@mbebenita
Copy link
Collaborator

The first argument should be a JS compiled decoder. You'll need to use Emscripten to compile the decoder to JavaScript. The details are described here

@slavah264
Copy link
Author

Thanks for prompt replay.
i installed emsdk. However, within the directory 'tools' of AOMCodec when i run 'build_inspector.sh' the following error is issued:

tools$ ./build_inspector.sh --disable-multithread --disable-runtime-cpu-detect --target=generic-gnu
Building JS Inspector
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat 'examples/inspect': No such file or directory
ERROR:root:inspect.bc: No such file or directory ("inspect.bc" was expected to be an input file, based on the commandline arguments provided)
cp: cannot stat 'inspect.js': No such file or directory

Indeed, the file "inspect.bc" is not exist in ".inspect" folder as well as at any other place. How to generate "inspect.bc"?

@mbebenita
Copy link
Collaborator

mbebenita commented Feb 4, 2018

Can you just run ./build_inspector.sh, you don't need the extra arguments. The shell script bakes in those options.

@slavah264
Copy link
Author

the script invokes emcc
emcc -O3 inspect.bc -o inspect.js -s TOTAL_MEMORY=134217728 -s MODULARIZE=1 -s EXPORT_NAME="'DecoderModule'" --post-js "../inspect-post.js" --memory-init-file 0

WARNING:root:inspect.bc is not valid LLVM bitcode
ERROR:root:no input files

@shihuade
Copy link

where is build_inspector.sh, seems there is no such in latest aom repos.

@mbebenita
Copy link
Collaborator

where is build_inspector.sh, seems there is no such in latest aom repos.

I fixed the docs, AOM repo now does this using CMake - see 7e3eca9 and https://aomedia.googlesource.com/aom/#emscripten-builds

@mbebenita
Copy link
Collaborator

@slavah264 can you follow the directions in the AOM repo and see if you're able to run the analyzer that way?

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

3 participants