How to get the EOS when gstreamer stop recording

I with gstreamer v4l2 video display and video recording, but I will not be opened by gplay recorded video, but on the Windows can play, I doubt is my pipeline EOS has been added at the end of the massage