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

Find way to silence hachoir_* modules #11

Open
jhallard opened this issue May 12, 2017 · 0 comments
Open

Find way to silence hachoir_* modules #11

jhallard opened this issue May 12, 2017 · 0 comments
Assignees
Labels

Comments

@jhallard
Copy link
Contributor

Currently they spam to stdout about some errors while decoding test videos to get the duration, the odd thing is, they end up getting the duration just fine but still spit out these warnings.

$ python import_video.py --folder ~/natconv_small/ --host 192.168.1.13 --port 8080 --hook_module ~/examples/batch_import/camio_hooks.py --regex ".*/(?P<camera>\w+?)\-.*\-(?P<epoch>\d+)\.mp4" --hook_data_json '{"plan": "PlUs"}'
INFO:root:submitted hooks module: '/Users/john/examples/batch_import/camio_hooks.py'
INFO:root:camera_name: C2_Hi20161009
INFO:root:epoch: 1476018757
INFO:root:/Users/john/natconv_small/C2_Hi20161009-131237-1476018757.mp4 (scheduled for upload)
[warn] [<MovFile>] Error when getting size of 'atom[2]': delete it
[warn] [<MovFile>] Extended size is not supported!
[warn] [<MovFile>] [Autofix] Fix parser error: stop parser, add padding
INFO:root:1/1 uploading /Users/john/natconv_small/C2_Hi20161009-131237-1476018757.mp4
INFO:root:completed
INFO:root:finishing up...
INFO:root:Job ID: agxzfmNhbWlvLXRlc3RyEAsSA0pvYhiAgKDIhYD4CQw

It'd be nice if we could find a way to shut them up, I looked briefly through the documentation but didn't see anything that pointed me in the right direction, might have to go into the source code of the module and see if we can NULL or turn off an internal logger for them.

Low priority but if we can get it done it will clean up the importer output a bit.

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

No branches or pull requests

2 participants