Skip to content

nvdec: Tell the parser we have complete pictures

Nicolas Dufresne requested to merge ndufresne/gst-plugins-bad:nvdec into master

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.

This was tested by @seungha.yang with:

Use 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

Merge request reports