Postby ripper69 » 16 Oct 2009 19:00
Hello (i'm new)
I am attempting to do the same as above, and am stumped.
A bit of info first:
packetization mode is 1
media format is 96 (h264)
profile level id is 420029
what I am trying to do is get a camera feed streamed over rtp/rtsp and simply pass the rtp payload to the codec...
so here come the questions:
do i prepend the sprop parameter sets with 0x00 0x00 0x00 0x01 and prepend them to the first rtp payload and pass to the codec?
do I need to prepend 0x00 0x00 0x00 0x01 to all subsequent payloads as well?
i.e. 0x00 0x00 0x00 0x01 sps 0x00 0x00 0x00 0x01 pps 0x00 0x00 0x00 0x01 <payload1> 0x00 0x00 0x00 0x01 <payload2>
or
0x00 0x00 0x00 0x01 sps 0x00 0x00 0x00 0x01 pps 0x00 0x00 0x00 0x01 <payload1> <payload2> <payloadn> <rtp marker> 0x00 0x00 0x00 0x01 <payloadn+1> <payloadn+2> etc...
or do I need to prepend the 0x00 0x00 0x00 0x01 to every NAL unit - if this is so how do i identify the nal units in the payload - please do not refer me to rfc 3984 as i have read this about 500 times!
anything would be a great help
thanking you in advance