i'm using hachior-parser grab duration of large set of video files. (i'm resetting "last modified" date based on file's timestamp, plus duration.) i'm using code adapted this question.
the problem i'm running hachior reports 4 warnings each file, , cluttering output. still duration file, i'd know how suppress these warnings in output, if possible.
python isn't strong suit, i'm not sure , documentation hachior seems pretty sparse on error reporting. i'd prefer not resort grepping lines output of script.
edit: running python -w ignore set_last_modified.py
results in same [warn]
lines being printed.
[warn] [/headers/stream[2]/stream_fmt] can't field "stream_hdr" /headers/stream[2] [warn] [/headers/stream[2]/stream_fmt] [autofix] fix parser error: stop parser, add padding [warn] [/headers/stream[3]/stream_fmt] can't field "stream_hdr" /headers/stream[3] [warn] [/headers/stream[3]/stream_fmt] [autofix] fix parser error: stop parser, add padding
you can use -w
option suppress warnings in python.
python -w ignore my_file.py
edit: since you've tried above, try following.
import warnings # add following before call function gives warnings. warnings.filterwarnings("ignore") # run function here
Comments
Post a Comment