rtsp

Unable to play rtsp using videoview in android

这一生的挚爱 提交于 2019-12-01 22:47:18
问题 I have set up a RTSP server using VLC. then I write an app,this is my code: package com.ashley.work; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.support.v4.app.NavUtils; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.VideoView; public class TestPlayRTSP extends Activity {

Unable to play rtsp using videoview in android

拜拜、爱过 提交于 2019-12-01 21:38:51
I have set up a RTSP server using VLC. then I write an app,this is my code: package com.ashley.work; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.support.v4.app.NavUtils; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.VideoView; public class TestPlayRTSP extends Activity { Button playButton ; VideoView videoView ; @Override public void onCreate(Bundle savedInstanceState) {

Playing RTSP stream in VLC player

一世执手 提交于 2019-12-01 21:16:30
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 following to the vlc player: RTSP/1.0 200 OK Supported: play.basic, con.persistent CSeq: 1 Server:

低延时高RTSP兼容的EasyPlayer-RTSP-win解决H.264一帧多个nal单元录像花屏问题方案

孤者浪人 提交于 2019-12-01 19:18:30
EasyPlayer-RTSP-win解决H264一帧多个nal单元录像花屏问题 我们来讲解一下关于H264编码格式中的一帧多nal(Network Abstract Layer, 即网络抽象层),关于H264和NAL,这里引用一段话来科普一下: 【转】 在H.264/AVC视频编码标准中,整个系统框架被分为了两个层面:视频编码层面(VCL)和网络抽象层面(NAL)。其中,前者负责有效表示视频数据的内容,而后者则负责格式化数据并提供头信息,以保证数据适合各种信道和存储介质上的传输。因此我们平时的每帧数据就是一个NAL单元(SPS与PPS除外)。在实际的H264数据帧中,往往帧前面带有00 00 00 01 或 00 00 01分隔符,一般来说编码器编出的首帧数据为PPS与SPS,接着为I帧…… 一般情况下,一个H264帧直接以00 00 00 01开头作为一个NAL作为网络传输单元,而在有些H264的编码器则编码出来的H264帧包含了多个NAL,这个时候每个分片的NAL(注意是分片的)则是是以00 00 01开头作为网络传输单元,经过分片的NAL数据量更小,从而更加方便进行网络;但是,我们在接收到带有多个NAL的H264帧的时候进行写MP4则不能简单是只通过将头部的00 00 00 01标志转换从AVC的长度标识,而需要将所有的00 00 00 01和00 00

海康大华摄像头高起播低延时RTSP网页无插件流媒体播放器EasyPlayer-RTSP-Win录像和抓图实现线程优化方案分享

送分小仙女□ 提交于 2019-12-01 19:12:39
EasyPlayer-RTSP播放器是一套RTSP专用的播放器,包括有:Windows(支持IE插件,npapi插件)、Android、iOS三个平台,是由青犀TSINGSEE开放平台开发和维护的区别于市面上大部分的通用播放器,EasyPlayer-RTSP系列从2014年初发展至今得到了各行各业(尤其是安防行业)的广泛应用,其主要原因是EasyPlayer-RTSP更加精炼、更加专注,具备低延时和高RTSP协议兼容性。 ​ EasyPlayer-RTSP-Win录像和抓图实现线程优化 测试发现,通过EasyPlayer-RTSP-Win拉取网络摄像机的流, 其音频可能是G711,G726等,而写MP4或者转推RTMP等都不支持这些音频格式,那么我们就需要将其音频转码成AAC,可以使用libEasyAACEncoder库进行转码,然后写MP4或者推送; 然而,在实际应用中,我们发现转码过程其实还是比较耗时的,它甚至会导致解码线程来不及从而使直播延时增大,所以,我们采用队列缓存+线程的方式来优化录像和抓图。 实现如下: 1、录像优化 1> 开启录像 if (pThread->manuRecording == 0x01 && NULL==pThread->m_pMP4Writer && frameinfo.type==EASY_SDK_VIDEO_FRAME_I)//开启录制 { /

RTSP solution for JavaScript/HTML5 [closed]

喜你入骨 提交于 2019-12-01 15:17:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am developing a Smart TV application and streaming live video from an IP Camera is a huge portion of the functionality. The camera's manual states that if it is set to stream MPEG-4 or H.264 that HTTP is not supported; only RTSP/RTP is. The alternative (via HTTP) is Motion JPEG, which I would like to avoid as

Has anyone succeedded in streaming rtsp packet using TCP through live 555 libraries

眉间皱痕 提交于 2019-12-01 14:27:15
Has anyone succeedded in streaming rtsp packet using TCP through live 555 libraries .?** I try'ed searching web a lot but didn't find anything useful all the solution provided i try'ed but the wireshark shows that UDP packet are being streamed. Ya send the appropriate setup request you will be able to stream over TCP.In case of live 555 subclass "OnDemandServerMediaSession" class. 来源: https://stackoverflow.com/questions/14811574/has-anyone-succeedded-in-streaming-rtsp-packet-using-tcp-through-live-555-librar

Check RTSP URI during onCreate in Android

两盒软妹~` 提交于 2019-12-01 13:11:36
I'm creating a fairly simple Android app for work that will plug a URI into the system video player so that users can easily watch the RTSP stream that we are sending from our Wowza server. In general, I basically just have a play button that calls: Uri myURI = Uri.parse("rtsp://ipaddress:1935/path/myStream"); Intent intent = new Intent(Intent.ACTION_VIEW, myURI); startActivity(intent); but we don't stream from this URI 24/7 and I would like to change the behavior during onCreate so that it will validate the URI before drawing the button, giving me the opportunity to give the user visual

h5播放rtsp流

余生颓废 提交于 2019-12-01 13:04:13
最近由于项目上需要一个摄像头在线预览的功能,于是便琢磨了一个小玩意出来分享分享。项目是在win上,合作的人懂js,基于这样的情况,我只选择nodejs作为开发。并未使用php相关。 一开始做这个,我并不感到陌生,因为我以前使用过开源的解码器FFmpeg,所以我知道使用它就可以实现摄像头的rtsp流转hls,只要转成hls了,我就可以使用开源的video-js-control-hls来播放m3u8文件了,而且我司用了海康的软件产品,它们就是开放接口,通过请求接口获取在线播放文件。思路是很清晰的,那我有了这样的思路,并开始在npmjs.com里面找轮子 经过一番的查找,最后我选定了几个轮子。首先是fluent-ffmpeg这个操作ffmpeg的中间件,然后就是hls-server这个http服务,它过滤所有和hls无法的资源,只保留.m3u8和.ts资源。那这样的话,轮子有了,那下面就是去熟悉一下理论知识(音视频转码、ffmpeg等) 浏览了大概的理论知识后,那再接着就是细节的优化了。细节问题我在做之前发了一个思否的提问(链接: 做一个海康摄像头转hls然后使用h5方式播放的细节问题 ),心寒的是,平名无法被人看到,知识就是力量,力量不够就有问题,所以我开始自己的琢磨(基本上那几天晚上都在想)。 琢磨了几天后,我找到了几个关键点: 什么时候开始转码

Check RTSP URI during onCreate in Android

ⅰ亾dé卋堺 提交于 2019-12-01 12:29:55
问题 I'm creating a fairly simple Android app for work that will plug a URI into the system video player so that users can easily watch the RTSP stream that we are sending from our Wowza server. In general, I basically just have a play button that calls: Uri myURI = Uri.parse("rtsp://ipaddress:1935/path/myStream"); Intent intent = new Intent(Intent.ACTION_VIEW, myURI); startActivity(intent); but we don't stream from this URI 24/7 and I would like to change the behavior during onCreate so that it