制作H264 RTP流的最小SDP? [英] Minimum SDP for making a H264 RTP stream?

查看:164
本文介绍了制作H264 RTP流的最小SDP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找建立H264视频流的最低必需SDP的示例.|

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

假设接收器只要通过SDP获得所需的参数就可以播放H264.

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.

推荐答案

以下是裸机最低SDP.它是一个名为test.sdp的文件,具有以下内容:

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

我已经使用VLC在虚拟机上启动了流. (此处未发送SDP)

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

更新 使用此最小的SDP文件正确解释流的原因是,RTP数据包包含正确解码视频所需的参数(绑定发送绑定参数).该问题提供了有关这些参数的一些概念性见解

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?

这篇关于制作H264 RTP流的最小SDP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆