Failed to get the next NALu in H264 payload
Trying to write a h264 video and read, stream using gstreamer but getting error after 1 frame as Failed to get the next NALu in H264 payload. Pipeline used to generate/ write video gst-launch-1.0 videotestsrc pattern=ball num-buffers=500 ! timeoverlay ! videoconvert ! video/x-raw,format=NV12,width=640,height=480,framerate=25/1 ! queue ! x264enc speed-preset=veryfast bitrate=512 byte-stream=TRUE tune=zerolatency ! video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! filesink location="trail.h264"
Pipeline used to stream, "filesrc location=./trail.h264 ! queue ! video/x-h264, stream-format=byte-stream, alignment=au, profile=baseline ! appsink sync=TRUE emit-signals=TRUE name=appsink-video"
It seems like storing NALU for 1st frame but other frame, how can we fix this ?