Explicitly set video streaming pipe v4l2convert src caps
Explicitly set the cap based on the render_size specified in the layout
so we don't have free scaling elements connected in the pipeline,
causing the change of the frame aspect ratio.
Change-Id: I67a6c8bd557384c821aeed8b274a6b03a2f38530
diff --git a/edgetpuvision/pipelines.py b/edgetpuvision/pipelines.py
index ad18211..73692c2 100644
--- a/edgetpuvision/pipelines.py
+++ b/edgetpuvision/pipelines.py
@@ -123,7 +123,8 @@
Queue(),
Filter('decodebin'),
Filter('v4l2convert'),
- Caps('video/x-raw,format=BGRA'),
+ Caps('video/x-raw,width=%d,height=%d,format=BGRA' % (
+ layout.render_size.width, layout.render_size.height)),
Filter('glupload'),
Filter('glcolorconvert'),
Caps('video/x-raw(memory:GLMemory),format=RGBA'),