【转】SDP file

SDP file

Introduction

The Session Description Protocol (SDP) is a format for describing the initialization parameters of streaming media sessions. SDP does not deliver media itself but is used for negotiation between end points of media type, format, and all associated properties.

To connect to a streaming server sending an MPEG2 transport stream, you don‘t usually have to use an SDP file since it‘s more convenient to use direct pseudo-URIs like:

rtp://{Streaming_Server_IP}:{Port}
udp://{Streaming_Server_IP}:{Port}

Nevertheless, when more control over the parameters of the stream are required, an SDP description file may be used instead. The SDP file can be located on the HMP or on a remote server. To include an SDP file inside your project, set the URI of a media layer to:

my_sdp_file.sdp (if the SDP file is located into the root of your project) or
http://my_server/my_sdp_file.sdp (if the SDP file is located on a remote server).

The following are supported:

SDP that refers to an MPEG2TS via RTP or UDP (all valid codecs for use in an MPEG-2 TS are supported: MPEG 1/2/4/H264);
SDP that refers to a raw bitstream of MPEG 1/2/4/H264.

See also the supported attributes section for ways to overwrite the HMP default behaviour.

SDP file syntax

A session is described by a series of <character>=<value> fields (one per line), where <character> is a single case-significant character and <value> is structured text whose format depends upon the first one. For more details about this subject, see Session description section on the Wikipedia site.

Sample:

v=0
o=- 1 1 IN IP4 <your.domain.name>
s=Anonymous
c=IN IP4 <streaming_server_ip>
t=0 0
m=video <streaming_port> <streaming_format> 33

where:

<streaming_server_ip> is usually a multicast address (for instance 239.192.1.21).
<streaming_port> should be above 1024 (for instance 5000).
<streaming_format> is either UDP (or direct streaming over UDP) or RTP/AVP (for a transport stream inside RTP packets).

Supported attributes

The following session attributes are supported by the HMP:

  • a=audioPid:<audio_pid>

    Selection of the audio PID.
  • a=program:<program_number>
    Selection of the program number
  • a=videoPid:<video_pid>
    Selection of the video PID.

Notes:

  • To find out the possible values for <program_number><videoPid> and / or <audioPid>, first connect to the streaming server without specifying any attribute and then open the resources.log to retrieve the values returned by the streaming server.
  • The audioPid and videoPid attributes were introduced in firmware version 2.2.5 to replace the deprecated exterityVideoPid and exterityAudioPid attributes (which are no longer supported).

转自:http://support.spinetix.com/wiki/SDP_file

时间: 2024-11-02 23:32:09

【转】SDP file的相关文章

用VLC读取摄像头产生RTSP流,DSS侦听并转发(二)

之前介绍过<用VLC读取摄像头产生RTSP流,DSS主动取流转发(一)>本文介绍另一种方法. 摄像机地址是192.1.101.51,VLC运行在192.1.101.77上,DSS服务器架设在192.1.101.30上,二级DSS服务器(可选)架设在192.1.101.78上. Step1:VLC从摄像机取流,产生RTSP流 vlc -vvv rtsp://192.1.101.51 :sout=#rtp{dst=192.1.101.30,sdp=file:///k:/channel_vlc.sd

vlc的流输出功能

流输出功能,可以将vlc读取到的流,输出到文件或者通过网络发送,客户端可以使用http.rtp.rtsp等协议访问,还可以进行转码等操作. 参考http://wiki.videolan.org/Documentation:Streaming_HowTo 流输出语法 % vlc input_stream --sout "#module1{option1=parameter1{parameter-option1},option2=parameter2}:module2{option1=...,opt

Mp4box的下载、安装和使用

简介 MP4Box是GPAC的多媒体包, 它可以被用来对诸如AVI, MPG, TS, 但更多地是对于ISO媒体文件(如MP4, 3GP)进行操作. 简单地说MP4Box可以被用来: 对诸如MP4, 3GP之类的ISO文件进行操作,如:添加.移除.混流 执行流的加密操作 将元数据附着到单独的流上去 MP4Box可以对ISO媒体文件的已经存在的内容进行重新封装, 值得注意的是,MP4Box并不会重新编码视频.音频或者是静态图像. 它的官网: http://gpac.wp.mines-telecom

Download rtsp.c

1. [代码][C/C++]代码 /* * Copyright (c) 2011, Jim Hollinger * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *   * Redistribution

MPlayer 开始支持RTSP/RTP流媒体文件

hostzhu点评:MPlayer对流媒体的支持,让大家能更进一步地利用linux来看网络直播,对Linux下多媒体应用的推动作用可以说不可度量. RTSP/RTP streaming support for MPlayerThe Open Source "MPlayer" media player can now receive and play standards-compliant RTP audio/video streams, using the "LIVE555

Akka-Cluster(3)- ClusterClient, 集群客户端

上篇我们介绍了distributed pub/sub消息传递机制.这是在同一个集群内的消息共享机制:发布者(publisher)和订阅者(subscriber)都在同一个集群的节点上,所有节点上的DistributedPubSubMediator通过集群内部的沟通机制在底层构建了消息流通渠道.在actor pub/sub层面可以实现对象位置透明化.在现实里很多前端都会作为某个集群的客户端但又与集群分离,又或者两个独立的集群之间可能会发生交互关系,这是也会出现客户端与服务端不在同一集群内的情况,C

restapi(6)- do it the functional way, 重温函数式编程

再次看了看上篇博客的源代码,发现连自己都看不懂了.想是为了赶时间交货不知不觉又回到OOP行令模式了,看看下面这段代码: (post & parameters('pid,'desc.?,'width.as[Int].?,'heigth.as[Int].?)) { (pid, optDesc, optWid, optHgh) => val futCount: Future[Int] = repository.count(pid).value.value.runToFuture.map { eoi

RTSP Spectification

Refer: https://www.ietf.org/rfc/rfc2326.txt Network Working Group H. SchulzrinneRequest for Comments: 2326 Columbia U.Category: Standards Track A. Rao Netscape R. Lanphier RealNetworks April 1998 Real Time Streaming Protocol (RTSP) Status of this Mem

JavaSE8基础 File lastModified 获取文件夹的修改日期

os :windows7 x64    jdk:jdk-8u131-windows-x64    ide:Eclipse Oxygen Release (4.7.0) information: 通过这张截图可以看到 测试文件夹 的修改日期. code: package jizuiku0; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; /* * @version V17.09 */ pu