rtsp

公开rtsp流媒体测试地址

 ̄綄美尐妖づ 提交于 2019-12-04 21:15:23
r tsp 流媒体测试地址: 来源 : 无线城市 千里眼 http://218.204.223.237:8081/wap/show_video.php?vd=1 右键->复制链接地址即可获得Rtsp地址。 eg: rtsp://218.204.223.237:554/live/1/0547424F573B085C/gsfp90ef4k0a6iap.sdp ================================================================================================== 1. rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp 2. rtsp://211.139.194.251:554/live/2/13E6330A31193128/5iLd2iNl5nQ2s8r8.sdp rtsp://180.168.116.75:554/user=admin&password=&channel=1&stream=0.sdp (清晰) rtsp://218.204.223.237:554/live/1/6D1E43167B3A7BDA/oby9efo80duh9bjf.sdp =========================

Android MediaPlayer中的RTSP(一):RTSP简介

久未见 提交于 2019-12-04 21:15:04
背景: 我在最近的项目中遇到了使用Android的MediaPlayer来进行RTSP播放的场景。但对于RTSP这种流媒体协议,其实Android原生的播放器支持得不是很好,所以有许多需要修改的地方。 本文主要简单介绍RTSP协议及其在MediaPlayer中的层级,后续会记录下在项目中遇到的具体情况及对应的修改。 RTSP播放器架构 播放器的架构很清晰, apk–>MediaPlayer->media_server–>厂商自己的Player(和NuPalyer/StagefrightPlayer一个层级)–>FFmpeg 如下图。 因为走Android MediaPlayer的流程,拉流的部分是使用FFmpeg实现的,所以FFmpeg是最核心的部分,主要的修改,也即是针对FFmpeg里RTSP部分的修改,以适配项目的特殊性。 ##RTSP协议简介## ###1、简介### RTSP属于应用层协议,被用于控制媒体流的传输,它为多媒体服务扮演“网络远程控制”的角色,对流媒体提供了诸如暂停,快进等控制,而它本身并不传输数据。 因为RTSP的作用相当于流媒体服务器的远程控制,所以客户端需要和服务器进行命令交互,以到达建立/释放连接及远程控制的目的。命令连接基于TCP,一般使用554端口。而数据传输可以选择TCP或UDP来传送,这个需要看服务端的支持情况及客户端的选择。

ffmpeg 播放rtsp流认证问题

≯℡__Kan透↙ 提交于 2019-12-04 21:14:22
最近研究使用ffmpeg播放rtsp url问题,播放海康rtsp流例如接入onvif的url:rtsp://10.10.129.188:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 如果相机没有进行rtsp相关的rtsp认证,可以直接使用ffplay播放,可以如果相机开启了rtsp认证该怎么办?查了查ffmpeg关于rtsp认证相关的问题,没有找到,后来看看关于ffmpeg的文档,了解到ffmpeg如果需要摘要认证的话,在字符串ip前面加上用户名密码就可以直接播放了,例如: 之前rtsp url是:rtsp://10.10.129.188:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 修改之后:rtsp://username:passwd@10.10.129.188:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 只需要在“//”后面加上用户名密码认证就可以了,见识比较浅陋,希望大家指正。 来源: CSDN 作者: Jons伯恩特 链接: https://blog.csdn.net/huangyifei_1111

RTSP stream in android with username and password

眉间皱痕 提交于 2019-12-04 19:51:08
My task is to create an android application in android to check some IP cameras of the city. Using the existing RTSP url which is rtsp://admin:pms7112@xxx.xx.xx.xxx:554/cam/realmonitor?channel=1&subtype=0 I can get the stream in VLC player but no luck in android. I have tried videoview native player and media player . Almost every solution gave me MediaPlayer: setDataSource IOException happend : java.io.FileNotFoundException: No content provider: rtsp://... Should this problem happen because the username and password is in the string ? how could you add the username and password as query

IP Camera - Streaming video with the basic authentication on Chrome

僤鯓⒐⒋嵵緔 提交于 2019-12-04 19:21:32
I have an Amcrest IP Camera. I would like to stream video to my web page. Its url is rtsp://mycamera.com:5554/stream In order to get the stream of the camera, the camera has a following API http://mycamera.com/video.mjpg It requires the basic authentication to work. By formatting the URL and putting it into the image tag like below, I can make it work on Firefox, Safari <img src="http://username:password@mycamera.com/video.mjpg" /> However, Chrome (v.40 on mine) does not allow this kind of URL, the browser will promt the user password form to be filled, or simply refuses the request. Setting

Play video in Android from a bytes stream

你说的曾经没有我的故事 提交于 2019-12-04 19:17:32
问题 Is there any way to play a video from a bytes stream in Android? I'm using an specific communications middleware so I can't just pass the http/rtsp link to the MediaPlayer object. I was wondering if I can wrap my stream with a local http/rtsp link so I can play the stream instead of waiting until the file is downloaded to play it. My middleware works over TCP so I've also thought that I can wrap my rtsp datagrams with a tcp datagram and interpret them on the client somehow, after removing the

VLC RTSP live stream to Android

為{幸葍}努か 提交于 2019-12-04 18:18:52
问题 For my app I have to stream from a decklink card to an Android app (I must be a live stream, so either HLS or RTSP seems to be good solutions, since my app targets Android 3+). I recompiled VLC with the decklink sdk, and I am able to live stream to another pc over the network (but it works only 60sec with RTSP). Here is what I tried : HTTP Stream : ./vlc -vvv decklink:// --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=56,ab=24,channels=1} :standard{access=http{use-key-frames},mux=ts,dst=:3001

RTSP Authentication : digest issue

折月煮酒 提交于 2019-12-04 17:19:57
I need to authenticate my RTSP stream to a streaming server, here is the challenge : RTSP/1.0 401 Unauthorized WWW-Authenticate: Digest realm="Streaming Server", nonce="76bfe6986d3e766424de9bd6e7d3ccc1" Session: 1845562184;timeout=60 Cseq: 1 ... Wirecast manage to successfully authenticate with those settings : Host name : 192.168.33.9:1935/live/my_stream.sdp location : live/my_stream.sdp username : user password : test its response is : e1dff363b9763df0c7615429af79715c So according to wikipedia I tried to authenticate with the method : //H(data) = MD5(data) //KD(secret, data) = H(secret:data)

Is there such a RTSP Ping?

邮差的信 提交于 2019-12-04 17:18:02
I am currently working on a WinForm app to stream videos from IP camera using the RTSP protocol in C#. Everything worked fine. Part of the requirement for the app includes a function to check whether the IP camera is online or not. So I did a ping function using the System.Net.NetworkInformation.Ping class to ping the IP camera. Say if the RTSP url of the camera is as follows rtsp:// [CAMERA IP] :554/Master0-RTSP/1.0, I would only need to extract the [CAMERA IP] part and use the Ping class to see if the camera is online or not by using its IP. Initially, it works until an issue came, say if

Playing sdp file (rtsp stream) from http url in android

浪子不回头ぞ 提交于 2019-12-04 17:13:28
I have a rtsp stream on my rtsp server in localhost. I would to play this file with the android class MediaPlayer. If I do setDataSource(rtsp://localhost/file.sdp) it works!! My problem is... if I copy the file on my http server and I do setDataSource(http://localhost/file.sdp) it does not work!! I receive an I/O exception. filePath = "http://localhost/file.sdp"; mediaPlayer.setDataSource(filePath); mediaPlayer.prepare(); mediaPlayer.start(); If I play this file with vlc application it works. RTSP and HTTP are different protocols. An HTTP server is not going to serve the data in the same way.