I need push h264 stream to UDP port, the receiver requires the H264 has AUD with “0x00 0x00 0x00 0x01 0x09 0x10”. “0x00 0x00 0x00 0x01” is start code, 0x09 is AUD NAL type, 0x10 is primary_pic_type : 0, this is I only.
I ran below command to push stream to a H264 file and check the AUD. The AUD is always 0x50 which is primary_pic_type : 2, means (I, P, B). How can I push H264 with AUD primary_pic_type = 0?
gst-launch-1.0 v4l2src device="/dev/video0" ! “video/x-raw, width=1280,height=720” ! nvvidconv ! ‘video/x-raw(memory:NVMM), format=(string)I420’ ! nvv4l2h264enc insert-sps-pps=1 insert-aud=1 insert-vui=1 idrinterval=15 disable-cabac=1 ! ‘video/x-h264, stream-format=(string)byte-stream’ ! h264parse ! filesink location=test7.h264