I captured video to file and it play by gplay.
But VLC could play it.
Video recorded by command:
gst-launch v4l2src device=/dev/video1 num-buffers=1000 ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! ffmpegcolorspace ! vpuenc codec=6 ! mp4mux ! filesink location=/home/root/h264.mp4
VLC error:
[0x7f3320007b78] main demux debug: looking for demux module matching "mp4": 63 candidates
[0x7f3320c0e878] mp4 stream debug: found an empty box (null size)
[0x7f3320c0e878] mp4 stream debug: found an empty box (null size)
[0x7f3320c0e878] mp4 stream debug: dumping root Box "root"
[0x7f3320c0e878] mp4 stream debug: | + ftyp size 32
[0x7f3320c0e878] mp4 stream debug: | + free size 8
[0x7f3320c0e878] mp4 stream debug: | + mdat size 2905871
[0x7f3320007b78] mp4 demux debug: unrecognized major file specification (mp42).
[0x7f3320007b78] mp4 demux error: MP4 plugin discarded (no moov,foov,moof box)
[0x7f3320007b78] ts demux debug: TS module discarded (lost sync)
[0x7f3320007b78] mod demux debug: MOD validation failed (ext=mp4)