What does this do? According to x264.h,
* return the SPS and PPS that will be used for the whole stream.
* *pi_nal is the number of NAL units outputted in pp_nal.
* returns negative on error.
* the payloads of all output NALs are guaranteed to be sequential in memory. */
int x264_encoder_headers( x264_t *, x264_nal_t **pp_nal, int *pi_nal );
The function is very much of the same structure as x264_encoder_encode() which encodes a single frame. The function return some amount of NALUs. How do I sent this over using RTP transport protocol? These NALUs, do I send them once for the whole video session?
If I want to send these (SPS, PPS) NALUs and VCL NALUs, is there a certain way I do this? Or do I just pack them into and set appropriate UDP/RTP headers and then send them over? I've read RFC3984: RTP Payload Format for H.264 Video, but I still can't understand how x264 video data are transferred. Someone please help.