Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to packetize H264 in RTP?

I have H264 stream from my mobile camera. In my Java app I can access the stream frame by frame already encoded with H264. I need to stream it to Wowza media server. Since wowza understands only RTP/RTSP streams can I just add RTP header infront of each frame data and stream it to wowza?

Many thanks for help

like image 250
user986589 Avatar asked Feb 22 '23 18:02

user986589


1 Answers

It is not as simple as just adding a header.

  • RTP packetization will require you to do fragmentation on the H.264 bitstream according to RTP Payload Format for H.264 Video
  • If Wowza requires support for RTSP, you have to implement RTSP server and implement RTSP protocol to manage your RTP stream

You might want to check out VLC if it can acquire video from your camera directly or through your application, and re-expose it with RTSP/RTP protocol. If you find a suitable option, it might appear to be easier to complete the streaming sequence this way.

like image 187
Roman R. Avatar answered Feb 25 '23 07:02

Roman R.