I made a python script to run the cli and convert video files that I produce everyday. The script runs well with all files inside a folder and converting using a specific preset.
But... I would like to catch the return code to send me a message only if the script found an error but, I don't know if the return work result presented on the example below is the right one.
Code: Select all
x264 [info]: kb/s:65.51
[09:47:17] mux: track 0, 15232 frames, 4155508 bytes, 65.47 kbps, fifo 16384
[09:47:17] mux: track 1, 23804 frames, 6249284 bytes, 98.45 kbps, fifo 32768
[09:47:17] Finished work at: Tue Sep 8 09:47:17 2020
[09:47:17] libhb: work result = 0
Encode done!
HandBrake has exited.
Thanks