rtsp

Read Frames from RTSP Stream in Python

痞子三分冷 提交于 2019-11-28 21:40:23
问题 I have recently set up a Raspberry Pi camera and am streaming the frames over RTSP. While it may not be completely necessary, here is the command I am using the broadcast the video: raspivid -o - -t 0 -w 1280 -h 800 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/output.h264}' :demux=h264 This streams the video perfectly. What I would now like to do is parse this stream with Python and read each frame individually. I would like to do some motion detection for surveillance

How to configure live555 framework for iphone app development?

早过忘川 提交于 2019-11-28 20:58:26
I have the live555 framework with me. How to use it in Xcode? If you haven't managed to configure it yet. Try this command in the terminal in live555 folder make iphoneos It will generate the static libraries for you. 来源: https://stackoverflow.com/questions/5191819/how-to-configure-live555-framework-for-iphone-app-development

What steps are needed to stream RTSP from FFmpeg?

时光毁灭记忆、已成空白 提交于 2019-11-28 19:17:54
问题 What steps are needed to stream RTSP from FFmpeg? Streaming UDP is not a problem, but as I want to stream to mobile devices which can natively read RTSP streams, I couldn't find any setup which tells what exactly is needed. Do I need an RTSP streaming server like LIVE555 or can I use FFmpeg only? My Command: ffmpeg -i space.mp4 -vcodec libx264 -tune zerolatency -crf 18 -f rtsp -muxdelay 0.1 rtsp://192.168.1.200:1234 I get an Input/Output error. Do I need a SDP description to use RTSP? And if

Receiving RTP packets after RTSP setup

不问归期 提交于 2019-11-28 16:53:28
问题 I'm trying to stream RTP packets from an IP camera using Python. I am able to send the describe, setup & play commands using RTSP protocol, however, I am unable to start streaming the actual videostream using RTP. Here is the code: import socket def printrec(recst): recs=recst.split('\r\n') for rec in recs: print rec dest="DESCRIBE rtsp://admin:12345@192.168.1.74 RTSP/1.0\r\nCSeq: 2\r\nUser-Agent: python\r\nAccept: application/sdp\r\n\r\n" setu="SETUP rtsp://admin:12345@192.168.1.74/trackID=1

how to get vlc logs? [closed]

*爱你&永不变心* 提交于 2019-11-28 16:08:47
问题 I am trying to run rtsp url from the VLC player. But an error appears, and "see logs for details" comes up in a dialog box. How can I enable logs in VLC? 回答1: Or you can use the more obvious solution, right in the GUI: Tools -> Messages (set verbosity to 2)... 回答2: I found the following command to run from command line: vlc.exe --extraintf=http:logger --verbose=2 --file-logging --logfile=vlc-log.txt 来源: https://stackoverflow.com/questions/4303017/how-to-get-vlc-logs

Live stream RTMP/RTSP player without using webview (WOWZA server) on Android

醉酒当歌 提交于 2019-11-28 15:31:37
I am developing an Android application in which I want to publish as well as stream a video... What I want is: My app records a video and that video is sent to the server The recorded video will be streamed live to another Android device at the same time.. I have completed the first task using javac and ffmpeg . I am stuck in the second task. I have searched a lot to stream the video from the server, but I didn't succeed. I don't want to use WebView and play the video in it. I want an RTMP player . This task has been completed in iOS... I want the same for Android. What is some link to fulfill

What is the difference between RTP or RTSP in a streaming server?

↘锁芯ラ 提交于 2019-11-28 14:43:56
问题 I'm thinking about developing a streaming server and I have the following question, do over RTSP (example url: rtsp://192.168.0.184/myvideo.mpg ) or RTP (example url: rtp://192.168.0.184 ). As I have understood, an RTSP server is mainly used for streaming of files that already exist, ie, not live. RTP server is used to broadcast. Somebody correct me if I'm wrong, am I right?. What I want to develop a server to broadcast live content on the computer screen, that is, which is displayed at the

ffmpeg fails with error \"max delay reached. need to consume packet\"

烂漫一生 提交于 2019-11-28 11:07:15
rtsp服务默认使用udp协议,容易丢包,报这个错误。改为tcp,则解决。 ffmpeg-设置rtsp推流/拉流使用的协议类型(TCP/UDP)(转) 拉流(设置TCP/UDP) //设置参数 AVDictionary *format_opts = NULL; av_dict_set(&format_opts, "stimeout", std::to_string( 2* 1000000).c_str(), 0); //设置链接超时时间(us) av_dict_set(&format_opts, "rtsp_transport", "tcp", 0); //设置推流的方式,默认udp。 //初始化输入上下文 AVFormatContext * m_InputContext = avformat_alloc_context(); //打开输入流。 avformat_open_input(&m_InputContext, "rtsp://127.0.0.1:554/", NULL, &format_opts); // ...... 推流(设置TCP/UDP) //初始化输出流上下文。 AVFormatContext * output_format_context_ = NULL; avformat_alloc_output_context2(&output_format_context

VLC搭建RTSP服务器

牧云@^-^@ 提交于 2019-11-28 11:06:15
实时流协议 RTSP 是在实时传输协议的基础上工作的,主要实现对多媒体播放的控制。用户对多媒体信息的播放、暂停、前进和后退等功能就是通过对实时数据流的控制来实现的。 而这些播放控制功能的实现不仅需要多媒体播放器, 同时还需要实时流协议。实时流协议是通过请求报文和响应报文的交互实现的,请求报文和发送报文。 下面我们来再详细的介绍一下它的搭建。 参看:VLC搭建RTSP服务器的过程 一、VLC搭建RTSP服务器的过程 服务器搭建: 第一步,打开VLC 第二步:在媒体下拉菜单下!有一个子菜单“串流”如图所示: 点击“串流”子菜单 弹出一个窗口!如下图所示。 添加一个你要串流的本地文件,我刚才传给你的那个长一点的文件。 第三步,会出现如下的界面: 第四:点击下一步 第五步:在下拉框内部,选择”rtsp”,然后点击右边的“添加”按钮,出现如下图片 注意:红框内部的两个蓝色的地方需要修改:一个是缺省的端口号5544!可以不改。 另外一个是URL的上下文,我这边写的是1! 加入你的本机IP地址是192.168.1.1.188,则产生的rtsp串是:“rtsp://192.168.1.188:5544/1”. 注意一点!在红框下面有一个“激活转码”复选框不要选中! 第六步:点击“下一个”按钮。出现如下界面: 该图,可以不做任何修改,如果不需要组播。直接点击“串流”按钮即可! 会出下如下图: 注意

How to Play RTSP Video in Android?

三世轮回 提交于 2019-11-28 09:49:01
问题 I want to play Youtube Video on VideoView . I have searched very much & find that VideoView Support rtsp URL Video . But I am getting error: My android device is 2.3.5 & using Wifi. My VideoView Code is: final VideoView videoView = (VideoView) findViewById(R.id.VideoView); Button youtube=(Button)findViewById(R.id.button1); final MediaController mediaController = new MediaController(this); mediaController.setScrollBarStyle(DEFAULT_KEYS_DISABLE); mediaController.setPressed(true);