Nvv4l2decoder buffer frames

the pipeline is ! appsrc ! h264parser ! nvv4l2decoder ! fakesink ,
1)i prob in the fakesink, when i input a file in appsrc, the last seven frame unable to display;
2)when i g_signal_emit_by_name(appsrc, “end-of-stream”, &ret), the last seven frames display;

i wonder how the nvv4l2 bufffer works, and now i want the nvv4l2decoder buffer 0 frame, and can show every frame in every file

Hi,

Your observation is correct. Without end of stream, the pipeline ends right away. You need to send EoS to inform all elements. The API is gst_app_src_end_of_stream ()
https://www.freedesktop.org/software/gstreamer-sdk/data/docs/latest/gst-plugins-base-libs-0.10/gst-plugins-base-libs-appsrc.html#gst-app-src-end-of-stream

For dump every frame into individual file, you can use multifilesink

appsrc ! h264parser ! nvv4l2decoder ! nvvideoconvert ! video/x-raw ! multifilesink location=dump_%05d.yuv