Send Android h264 capture over a rtp stream

前端 未结 1 964
深忆病人
深忆病人 2021-01-14 11:51

I\'m writing a rtp video streamer for android that reads h264 coded data from an Android local socket and packetize it. The thing is that I did it but I keep getting black f

相关标签:
1条回答
  • 2021-01-14 12:23

    1) There is no "android h264 stream format". Packetization should follow RFC6184 if RTP is used as the transport protocol. The start code is not present of the RTP payload format. What is contained in an RTP packet, depends entirely on the packetization mode which specifies if NAL units may be aggregated, fragmented, etc. Read the RFC section on packetization modes for more info. Packetization mode is usually communicated via SDP.

    2) Timestamp is part of RTP header. Length of a NAL unit again depends on packetization mode.

    3) What do you mean by marked? Do you mean that the RTP marker bit is set? If so, this again must follow the rules laid out in the RFC.

    0 讨论(0)
提交回复
热议问题