The follow can stop pipe immediately when the filesrc had finished reading source file.
" gst-launch-1.0 filesrc location=test.h265 ! ‘video/x-h265,stream-format=(string)byte-stream, alignment=(string)au’ ! h265parse ! filesink location=test2.h265 -e"
But when I replaced filesink with Appsink,the pipe will be delayed several seconds after filesRC finishes reading the file,appsink’s callback does no time-consuming operations.
How to stop the pipe immediately when the filesrc had finished reading source file?
Hi,
It looks like appsink in gst-launch-1.0 is not a valid use-case, so it does not handle EoS properly. Please try it in C code and check if the issue is still present.
May see if other users has experience about using appsink in gst-launch-1.0.