Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

sip - Minimum SDP for making a H264 RTP stream?

I'm looking for an example of a minimum necessary SDP for setting up a H264 video stream.|

The assumption is that the receiver can play H264 as long as it gets the required parameters through SDP.

I have found a related document herehowever it uses lots of optional parameters in the examples, and I'm looking for the bare required minimum.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Here is the bares minimum SDP. It is a file called test.sdp which has the following content:

c=IN IP4 10.5.110.117
m=video 5004 RTP/AVP 96 
a=rtpmap:96 H264/90000

I've started the stream on a virtual machine using VLC. (No SDP sent here)

vlc -vvv sample_video/big_buck_bunny_480p_h264.mov --sout
'#rtp{dst=10.5.110.117,port=5004,ttl=1}'

On the client side, the player was started with:

vlc test.sdp

Update The reason why the stream is correctly interpreted with this minimal SDP file is that the RTP packets contain the required parameters to decode the video correctly (sprop parameters are sent in bound). This question provides a bit of conceptual insight of on those parameters Is sprop-parameter-sets or profile-level-id the SDP parameter required to decode H264?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...