nvdec: Tell the parser we have complete pictures
This sets the CUVID_PKT_ENDOFPICTURE flag in order to inform the decoder that we have a complete picture. This should remove one frame latency otherwise introduce by NVidia parser.
@seungha.yang with:
This was tested byUse the latency tracer to ensure the 1 frame latency go away.
GST_TRACERS="latency(flags=element)" GST_DEBUG=GST_TRACER:7 gst-launch-1.0 videotestsrc num-buffers=500 is-live=1 ! x264enc tune=zerolatency ! nvh264dec ! fakevideosink 2> trace.log
gst-stats-1.0 trace.log
Edited by Nicolas Dufresne