ERROR: from element /GstPipeline :pipeline0/GstH264Parse:h264parse0: No valid frames found before end of stream
Additional debug info :
gstbaseparse.c(1155): gst_base_parse_sink_event_dafault(): /Gstpipeline:pileline0/GstH264Parse:h264parse0
ERROR: pipeline doesn’t want to preroll
Allowing everyone to read and write to /dev/vchiq is not a very good idea.
Error comes up since you might not have the permission to write to /etc/udev/rules.d/
You can run that command with root privilege or open a text editor for that file and paste SUBSYSTEM=="vchiq",GROUP="video",MODE="0660" into it. So that members in group video can read and write to vchiq device.