H.264 video encoding

Change-Id: I5a05b34ee8bd584a0377b2a4582880a3305b82b1
diff --git a/person_detection/person_detection.py b/person_detection/person_detection.py
index cf8b4f7..e321be8 100644
--- a/person_detection/person_detection.py
+++ b/person_detection/person_detection.py
@@ -65,9 +65,10 @@
         if args.input == 'cam':
             self.input_stream = 0
         elif args.input == 'gstreamer':
-            # gst rtp sink
-            self.input_stream = 'udpsrc port=500' + device + ' caps = " application/x-rtp, encoding-name=JPEG,payload=26" ! rtpjpegdepay ! decodebin ! videoconvert ! appsink'
-            #input_stream = 'udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! appsink'
+            # M-JPEG
+            # self.input_stream = 'udpsrc port=500' + device + ' caps = " application/x-rtp, encoding-name=JPEG,payload=26" ! rtpjpegdepay ! decodebin ! videoconvert ! appsink'
+            # H.264
+            self.input_stream = 'udpsrc port=500' + device + ' caps = " application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! avdec_h264 ! videoconvert ! appsink'
             print("input_stream:", self.input_stream)
         else:
             self.input_stream = args.input