I am using below pipeline in my project.
gst-launch-1.0 filesrc location=/nexus4.ts ! tsdemux ! vpudec ! overlaysink
and getting latency of 2-4 sec.
And when i am using below pipeline, then i am getting negligible latency
gst-launch-1.0 filesrc location=/nexus4.ts ! tsdemux ! h264parse ! avdec_h264 ! overlaysink
Only changes in above pipeline is, different video decoder.
So i am believing that vpudec is introducing latency. And reason could be, i am missing some property setting.
So what should i do in order to remove such a huge latency ?