Gstreamer Can NOT play H264 video stream

I used the Gstreamer to test the H264 decoding, but it shows that the H264 file can not be played, Here is the command:

#gst-launch-1.0 filesrc location=./test.h264 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! nveglglessink -e

The results as follows:

Setting pipeline to PAUSED ...

Using winsys: x11 
Pipeline is PREROLLING ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:demux: This file is invalid and cannot be played.
Additional debug info:
qtdemux.c(747): gst_qtdemux_pull_atom (): /GstPipeline:pipeline0/GstQTDemux:demux:
atom has bogus size 12455057128646239620
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Anyone knows the reason? Thanks a lot!

Please try

gst-launch-1.0 filesrc location=./test.h264 ! h264parse ! omxh264dec ! nvoverlaysink

You do not need qtdemux for h264 stream. qtdemux is required for mp4, mov.

Hi DaneLLL,
Thank you, Now it works!