sdp

在web页面中播放rtsp直播数据流方法

孤街醉人 提交于 2020-03-25 12:27:04
3 月,跳不动了?>>> WEB播放RTSP直播数据流方法 附录一些RTSP测试地址: 1、rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov 一段动画片 2、rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp 拱北口岸珠海过澳门大厅 3、rtsp://218.204.223.237:554/live/1/0547424F573B085C/gsfp90ef4k0a6iap.sdp rtmp://live.hkstv.hk.lxdns.com/live/hks rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov mms://space.hngd.gov.cn/live1 http://movie.ks.js.cn/flv/other/1_0.flv http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8 截止于2017.4.22 19:48分,全部测试可用,便于大家开发测试! 在html技术中目前是无法直接使用现有的web技术进行播放rtsp直播数据流的,下面总结了可以是web播放rtsp直播流的方法。只是自己备用。 1

实战Linux Bluetooth编程(九) SDP层编程

て烟熏妆下的殇ゞ 提交于 2020-03-02 12:31:17
先前的章节谈过SDP协议。但没有具体讲如何编程。 BlueZ提供的SDP API,常见的如下: 1. sdp_session_t *sdp_create(int sk, uint32_t flags) 参数1:sk: socket 参数2:SDP flags. 取值如下: #define SDP_RETRY_IF_BUSY 0x01 #define SDP_WAIT_ON_CLOSE 0x02 #define SDP_NON_BLOCKING 0x04 创建一个新的Session为了异步查找。 Session结构如下: typedef struct { int sock; int state; int local; int flags; uint16_t tid; // Current transaction ID void *priv; } sdp_session_t; sdp_create 只是简单的创建一个空间将Session指针返回。并将sk和flags传入Session对应值。 同时,会创建transaction并将指针给 priv . struct sdp_transaction { sdp_callback_t *cb; void *udata; uint8_t *reqbuf; sdp_buf_t rsp_concat_buf; uint32_t reqsize;

Is sprop-parameter-sets or profile-level-id the SDP parameter required to decode H264?

孤人 提交于 2020-01-21 05:19:24
问题 I'm trying to understand what is the required parameter in SDP to be able to decode H264 from RTP packets. This is an related to this question, for the answer to that one works only in small number of cases. Example I am streaming from VLC with the following command. vlc -vvv sample_video/big_buck_bunny_480p_h264.mov --sout '#transcode{vcodec=h264,vb=700,fps=20,scale=0.25,acodec=none}:rtp{dst=10.5.110.117,port=5004,ttl=1}' This transcodes the video to: Bitrate: 700kbps Frame rate: 20 per

SDP协议介绍

↘锁芯ラ 提交于 2020-01-19 00:59:01
一、SDP协议介绍 SDP 完全是一种会话描述格式 ― 它不属于传输协议 ― 它只使用不同的适当的传输协议,包括会话通知协议(SAP)、会话初始协议(SIP)、 实时流协议(RTSP)、 MIME 扩展协议的电子邮件以及超文本传输协议(HTTP)。SDP协议是也是基于文本的协议,这样就能保证协议的可扩展性比较强,这样就使其具有广泛的应用范围。SDP 不支持会话内容或媒体编码的协商,所以在流媒体中只用来描述媒体信息。媒体协商这一块要用 RTSP 来实现. 二、SDP协议格式 SDP描述由许多文本行组成,文本行的格式为<类型>=<值>,<类型>是一个字母,<值>是结构化的文本串,其格式依<类型>而定。 <type>=<value>[CRLF] 常见的fields有: 三、SDP协议例子: 下面是一个helix 流媒体服务器的RTSP协议中的SDP协议: v=0 //SDP version // o field定义的源的一些信息。其格式为:o=<username> <sess-id> <sess-version> <nettype> <addrtype> <unicast-address> o=- 1271659412 1271659412 IN IP4 10.56.136.37 s=<No title> i=<No author> <No copyright> //session的信息

Are the “:” or “/” in SDP values for attributes tokens by themselves with spaces optionally allowed around them?

雨燕双飞 提交于 2020-01-16 10:29:26
问题 In SDP, colon(':') and slash('/') are used in many attribute values (both the standard and a= extensions). Here are just a few of them: b=AS:41 a=rtpmap:96 AMR-WB/16000/1 a=fmtp:96 mode-change-capability=2; max-red=80 I want to know (both for parsing and generating SDP), if space is allowed around them. All examples point to not having a space around them. I think Section 9 of RFC 4566 which gives the grammar for SDP is not clear about this. 回答1: I would say, that usually, SDP don't like

How to exchange streams from two peerconnections with offer/answer

血红的双手。 提交于 2020-01-11 06:19:28
问题 I am trying to setup video chat where two peer connections exchange video. This happens after creating a data channel. So this is the process of events: offerer creates data channel, offerer creates and offer, answerer creates an answer. So far so good. We have a datachannel. offerer gets video stream through getUserMedia and adds it to the peer connection, then the onnegotiation event of offerer fires, offerer creates a new offer, while answerer responds with an answer. Still all good. The

Creating\Editing BlueTooth SDP records

放肆的年华 提交于 2020-01-06 07:00:54
问题 Do anybody know of any (free) tools that can aid in the creation\editing of Blue-Tooth's SDP (Service Discovery) records? Windows based tools preferred. 回答1: You can use my 32feet.NET library. There's no UI for this but there's library code which could be easily used for this. Use class ServiceRecordBuilder. Some docs at Creating Records. For example: ServiceRecordBuilder bldr = new ServiceRecordBuilder(); bldr.AddServiceClass(BluetoothService.SerialPort); bldr.ServiceName = "Alan's SPP

Trouble connecting android bluetooth client socket to ubuntu server socket

柔情痞子 提交于 2020-01-01 16:28:08
问题 I am writing an Android app that should exchange data to a server over Bluetooth, with the server side on a PC running Ubuntu, using the bluez library, in C (or C++). My Android app fails (IOException) when I try to connect to my server socket on the PC. Here is essentially what I in the java code (in Android, full eclipse project here: http://dl.dropbox.com/u/2968234/ThinBTClient.zip) private static final UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); private static

H264 profile-iop explained

跟風遠走 提交于 2019-12-30 19:58:33
问题 Identify h264 profile and level from profile-level-id in sdp? How does one identify what the constraints actually mean? For example I have a profile-type-id: 42801e that translates to: How am I to relate that to the features defined in the table here? The above reference identified that the Constraint_set0_flag: 1 means that it's the Constrained Baseline Profile . But how to relate the flag to the three different NO's (from the table) that differentiate the Baseline profile from the

how to get an SDP record for bluetooth service?

和自甴很熟 提交于 2019-12-25 08:59:08
问题 I'm new to both winsock and bluetooth programming. I need to develop a bluetooth service to run on a pc. Looking at the MSDN library they say to use WSASetService(http://msdn.microsoft.com/en-us/library/aa362921%28VS.85%29.aspx) function to publish a service. The problem is that the WSAQUERYSET(http://msdn.microsoft.com/en-us/library/aa362920%28VS.85%29.aspx) structure, that has to be passed to WSASetService, needs a binary SDP record and i don't know how to get it. In the Windows embedded