qc-tools-automations
This repo contains the automations for the following workflow:
- Video added to the input folder.
- Qcli analyze the video and create *.xml.gz file.
- Python script triggered and summerizes the *.xml.gz file.
- The script sends the data as a log to elasticsearch.
Installtion
- Verify that
inotify-tools
installed by running:
inotifywait --help | head -1
the output should be something like:
inotifywait 3.14
- Let’s grant execute permissions on
qc-watcher.sh
:
chmod u+x qc-watcher.sh
- Run the script via:
./qc-watcher.sh
- Download
qcli
from: https://mediaarea.net/download/binary/qcli/1.0/
Logs
metrics log:
{
'min_y':7.0,
'max_y':248.0,
'min_u':7.0,
'max_u':248.0,
'min_v':12.0,
'max_v':245.0
}
operational log:
{
'script_version':'0.1',
'video_size_bytes':2565759,
'qcli_duration':29.675265,
'metrics_extraction_duration':1.489104,
'status':'success',
'total_duration':31.165828
}