rtsp

Does Android 4.x support streaming RTSP over TCP?

会有一股神秘感。 提交于 2019-12-04 05:38:40
I've used VideoView in Android to play video on wowza successfully. Now I got to deal with my server which the UDP ports seems to be blocked. With the proof of openRTSP command: -> % openRTSP rtsp://61.218.52.250:554/live/ch00_0 Opening connection to 61.218.52.250, port 554... ...remote connection opened Sending request: OPTIONS rtsp://61.218.52.250:554/live/ch00_0 RTSP/1.0 CSeq: 2 User-Agent: openRTSP (LIVE555 Streaming Media v2013.12.16) Received 105 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Server: UBNT Streaming Server v1.2 Public: DESCRIBE,

Playing RTSP stream in VLC player

不羁岁月 提交于 2019-12-04 04:27:34
问题 I am trying to make a simple rtsp streaming server in java. The server is able to stream the video properly to the custom written player. The problem I that I am not able to play the same stream in vlc media player. When I start the vlc media player and enter the streaming details, my server is displaying the following request made by vlc: OPTIONS rtsp://192.168.2.8:8210/movie.3gp RTSP/1.0 CSeq: 1 User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07) In response, I am sending the

Decode of live RTSP stream: large video lag using MediaPlayer on Android

好久不见. 提交于 2019-12-04 04:16:20
I'm playing a Live RTSP stream from VLC on a PC to Android MediaPlayer class (both on same local network). It plays smoothly with no errors - the problem is that the decoded video on screen is between around 5 and 7 seconds behind live. From debug and callbacks I can see that the live data is arriving on the device < 1s after starting mMediaPlayer.prepareAsync() . This is when the MediaPlayer class begins to work out what format the stream is with what dimensions etc. Then just before video is shown on screen (between 5 and 7 seconds later), onPrepared() is called where I call mMediaPlayer

Draw overlay (HUD) on Android VideoView?

◇◆丶佛笑我妖孽 提交于 2019-12-04 04:04:57
I have a custom view that draws HUD : Here is my layout: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <VideoView android:id="@+id/videoView1" android:layout_gravity="center" android:layout_width="match_parent" android:layout_height="wrap_content" /> <com.widgets.HUD android:id="@+id/hud" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </FrameLayout> public View onCreateView(LayoutInflater inflater,

Android 4.0.4 MediaPlayer prepare issue using RTSP urls

倾然丶 夕夏残阳落幕 提交于 2019-12-04 03:45:02
I am experiencing an odd issue with a video streaming application I am working on. The actual streaming of video/audio is working fine on all of my test devices. However, on seemingly any device 4.0+, when using an RTSP URL, prepare() returns instantly (this causes an issue providing proper feedback to the users while a video is loading and interferes with a few other systems I have in place). Below is the block of code where I initialize and setup my MediaPlayer, but keep a few things in mind: My initPlayer method is called from an AsyncTask. The video does eventually play correctly, but

send a multicast audio in rtsp using libstreaming for upstreaming from an android device

和自甴很熟 提交于 2019-12-04 03:38:38
问题 The code is only streaming for one user at a time. Can anyone help me to play the stream in more than one system at the same time(convert it to multicast or broadcast). Thanks in advance. The library source is over here: https://github.com/fyhertz/libstreaming my current code is: mSurfaceView = (net.majorkernelpanic.streaming.gl.SurfaceView) findViewById(R.id.surface); // Sets the port of the RTSP server to 1234 Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();

RTSP网络监控摄像头如何实现Windows、Linux、ARM、Android、iOS全平台支持的拉RTSP流推出RTMP直播流?

给你一囗甜甜゛ 提交于 2019-12-03 23:58:10
视频流媒体中视频数据的传输占据了绝大部分的带宽,如何提升编码效率、减小带宽使用、提升画面质量,成为音视频开发者努力的重点。随着互联网、流媒体技术的发展,兼容支持H.264、H.265编码器(可减少计算的复杂性、提高压缩率,并降低编码时间)已经成为迫在眉睫的事。 RTSP协议也是广泛使用的直播/点播流媒体协议,以前的项目里实现了一个RTSP协议转换RTMP直播协议的程序,为的是可以接收远端设备或服务器的多路RTSP直播数据,实时转换为RTMP直播协议,推送到NginxRtmp等RTMP服务器,可以在PC上实现flash观看RTSP直播源(比如IPCAM)的需求,也能通过Nginx的HLS协议转换,在手机上观看。 该流程的关键点有以下部分: RTSP直播流的读取 H.264和AAC编码数据的分析、处理 FLV文件数据的提取及与RTSP直接的切换和衔 RTMP数据包封装 RTMP推送协议 如何实现拉RTSP流推出RTMP流 问题描述 最近有开发者咨询是否有工具支持实现拉RTSP流推出RTMP流? 解决方案 我们首先来搭建一个实例。 1、准备一个rtsp流。我们这里准备的是海康的摄像机,rtsp流地址如下:rtsp://admin:admin12345@192.168.99.23:554/h264/ch33/main/av_stream 2、从https://github.com

RTSP转RTMP-HLS网页无插件视频直播是如何通过流媒体服务EasyNVR、EasyDSS、EasyGBS实现的?

守給你的承諾、 提交于 2019-12-03 23:55:55
背景需求 对于摄像机直播,客户反馈的最多就是实现web直播、摆脱插件,可以自定义集成等问题,对于大家熟悉的EasyNVR已经完美的解决了这些问题。然而对于web播放也存在一些问题,通常我们web播放RTMP流使用的是flash,在这个过程中就会出现一个问题,随着web一直播放直播时间的增加,视频直播的延时也会累积起来,延时也就越大。 问题分析 通过自我调研和客户反馈得出在ckplayer、videojs、aliplayer等播放器都会有类似问题,出现该问题的原因在于我们播放rtmp视频流的时候启用了flash,咱们的EasyNVR调用的videojs播放rtmp视频流依然会有这个问题的存在 EasyPlayer-RTSP播放器 EasyPlayer-RTSP播放器是一套RTSP专用的播放器,包括有:Windows(支持IE插件,npapi插件)、Android、iOS三个平台,是由青犀TSINGSEE开放平台开发和维护的区别于市面上大部分的通用播放器,EasyPlayer-RTSP系列从2014年初发展至今得到了各行各业(尤其是安防行业)的广泛应用,其主要原因是EasyPlayer-RTSP更加精炼、更加专注,具备非常低的延时,非常高RTSP协议兼容性,编码数据解析等方面,都有非常大的优势。 如何在Web端播放rtsp流 问题描述 最近有开发者咨询如何在Web端播放rtsp流

流媒体协议介绍(rtp/rtcp/rtsp/rtmp/mms/hls)

六眼飞鱼酱① 提交于 2019-12-03 22:56:17
RTP 参考文档 RFC3550/RFC3551 Real-time Transport Protocol)是用于Internet上针对多媒体数据流的一种传输层协议。RTP协议详细说明了在互联网上传递音频和视频的标准数据包格式。RTP协议常用于流媒体系统(配合RTCP协议),视频会议和一键通(Push to Talk)系统(配合H.323或SIP),使它成为IP电话产业的技术基础。RTP协议和RTP控制协议RTCP一起使用,而且它是建立在UDP协议上的。 RTP 本身并没有提供按时发送机制或其它服务质量(QoS)保证,它依赖于低层服务去实现这一过程。 RTP 并不保证传送或防止无序传送,也不确定底层网络的可靠性。 RTP 实行有序传送, RTP 中的序列号允许接收方重组发送方的包序列,同时序列号也能用于决定适当的包位置,例如:在视频解码中,就不需要顺序解码。 RTP 由两个紧密链接部分组成: RTP ― 传送具有实时属性的数据;RTP 控制协议(RTCP) ― 监控服务质量并传送正在进行的会话参与者的相关信息。 RTCP 实时传输控制协议(Real-time Transport Control Protocol或RTP Control Protocol或简写RTCP)是实时传输协议(RTP)的一个姐妹协议。RTCP为RTP媒体流提供信道外(out-of-band)控制

RTP、RTCP和RTSP协议基础

让人想犯罪 __ 提交于 2019-12-03 22:56:05
1 RTSP概述 1.1 RTSP概念 RTSP(Real-Time Stream Protocol ) 是一种基于文本的应用层协议,在语法及一些消息参数等方面, RTSP 协议与 HTTP 协议类似。 RTSP 被用于建立的控制媒体流的传输,它为多媒体服务扮演“网络远程控制”的角色。 RTSP 本身并不用于传送媒体流数据。媒体数据的传送可通过 RTP/RTCP 等协议来完成。 1.2 基本的 RTSP 操作过程 首先,客户端连接到流服务器并发送一个 OPTIONS 命令查询服务器提供的方法收到服务器的回应后,发送 DESCRIBE 命令查询某个媒体文件的 SDP 信息。流服务器通过一个 SDP 描述来进行回应,回应信息包括流数量、媒体类型等信息。客户端分析该 SDP 描述,并为会话中的每一个流发送一个 SETUP 命令, SETUP 命令告诉服务器客户端用于接收媒体数据的端口。流媒体连接建立完成后,客户端发送一个 PLAY 命令,服务器就开始传送媒体流数据。在播放过程中客户端还可以向服务器发送 PAUSE 等其他命令控制流的播放。通信完毕,客户端可发送 TERADOWN 命令来结束流媒体会话。 1.3 RTSP与HTTP的区别 可以发现 RTSP 协议的格式与 http 协议很类似,都是基于文本的协议,语法也基本相同。但是它们并不相同,有以下主要差别: 首先,方法名称不同。