Work around slow decoder/converter issues Since our VPU can't decode to a format anything MDP can understand decoding a frame consists of 2 steps, decode and convert. Performing both operations in the same thread context serializes operations, nothing is decoded while something is converted and vice versa. Add a queue to decouple thread context and allow both steps to execute concurrently. Fixes some errors of the kind "There may be a timestamping problem, or this computer is too slow." Change-Id: I95b6eb92d36a4b402c82ae0ca5dbb537aeaf760c
diff --git a/edgetpuvision/pipelines.py b/edgetpuvision/pipelines.py index 73692c2..978f328 100644 --- a/edgetpuvision/pipelines.py +++ b/edgetpuvision/pipelines.py
@@ -18,6 +18,7 @@ return [ Source('file', location=filename), Filter('decodebin'), + Filter('queue'), Filter('v4l2convert'), Caps('video/x-raw,width=%d,height=%d,format=BGRA' % (render_size.width, render_size.height)), Filter('imagefreeze') if freeze else Filter('identity'),