rtsp

Receiving RTP packets after RTSP setup

微笑、不失礼 提交于 2019-11-29 20:21:14
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 RTSP/1.0\r\nCSeq: 3\r\nUser-Agent: python\r\nTransport: RTP/AVP;unicast;client_port=60784-60785\r\n\r

how to get vlc logs? [closed]

本小妞迷上赌 提交于 2019-11-29 20:13:50
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? Or you can use the more obvious solution, right in the GUI: Tools -> Messages (set verbosity to 2)... garima 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

(转)FFMPEG类库打开流媒体的方法(需要传参数的时候)

寵の児 提交于 2019-11-29 16:10:38
本文链接: https://blog.csdn.net/leixiaohua1020/article/details/14215393 使用ffmpeg类库进行开发的时候,打开流媒体(或本地文件)的函数是avformat_open_input()。 其中打开网络流的话,前面要加上函数avformat_network_init()。 一般情况下,只要传入流媒体的url就可以了。但是在打开某些流媒体的时候,可能需要附加一些参数。 例如在播放中央人民广播电台的声音信号的时候,其url为“rtsp://mms.cnr.cn/cnr003?MzE5MTg0IzEjIzI5NjgwOQ==” 如果直接进行打开是不会成功的,我们可以使用ffplay做一下实验: ffplay rtsp://mms.cnr.cn/cnr003?MzE5MTg0IzEjIzI5NjgwOQ== 会出现错误: Invalid data found when processing input 这时候我们需要指定其传输方式为TCP,需要将命令改为如下形式: ffplay -rtsp_transport tcp rtsp://mms.cnr.cn/cnr003?MzE5MTg0IzEjIzI5NjgwOQ== 附加了参数以后,发现就可以正常播放了。 此外还可以附加一些参数,比如 ffplay -rtsp_transport

MediaElement and RTSP

末鹿安然 提交于 2019-11-29 15:18:11
问题 Does MediaElement support RTSP? I've got a stream going and I'm able to consume the stream with VLC Player via: rtsp://192.168.1.17:554/stream However, when trying to use Windows Media Player, I'm not able to stream it. Which begs the question, does MediaElement support RTSP? I'm working with WPF on .NET 4.0. 回答1: VLC has comprehensive support for RTSP (through live555 library), while support in Windows Media Player is limited. You might want to check this article on MSDN: Supported Media

Android 4.1 - RTSP using VideoView and MediaController

蹲街弑〆低调 提交于 2019-11-29 12:35:06
问题 Developing a simple app to play a RTSP stream on Android 4.1, but unable to do so Update I am able Able to play if I use BigBuckBunny_115k.mov Uri video = Uri.parse("rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"); BUT I tried with lot of RTSP streams mentioned here and here, but none worked :( ****Problem: I could not see any stream on my phone, only black screen is visible.. After some time, a dialog box appears "Can't play this video". I tried with many RTSP streams, but same result,

JPEG streaming with live555

两盒软妹~` 提交于 2019-11-29 12:26:15
I want to stream JPEG images or motion-JPEG file through live 555. But the problem is that in live 555 implementation for Jpegs is not available. Anyone can help ?? You can find a implementation that was posted to the devel mailing list http://lists.live555.com/pipermail/live-devel/2012-February/014672.html . The code and a sample is available but this modification was rejected by live555 maintainer. First we need to implement an MJPEGVideoSource than can feed a JPEGVideoRTPSink . #include "JPEGVideoSource.hh" class MJPEGVideoSource : public JPEGVideoSource { public: static MJPEGVideoSource*

RTSP Streaming in objective C

混江龙づ霸主 提交于 2019-11-29 08:50:31
I need RSTP Live Streaming.I Started R&D but i am not get it.some one said Using FFMPEG library ,But i don't know how to add FFMPEG library to myProject.Please any one help me How to get Live RTSP Streaming . Please give me idea and any RTSP Live Streaming Video Sample code. Thanks in advanced RTSP is quite simple protocol by itself, just reading RFC2326 will help a lot. Source code examples you can find, for example, at former live.com or jrtplib (it's RTP/RTCP library, but as I said RTSP is very simple) You'll need ffmpeg (or other encoder/decoder library) later. There are a lot of ffmpeg

Server to stream RTSP to android

笑着哭i 提交于 2019-11-29 02:35:36
Can Flash Media Server 3.5 serve a video rtsp stream to the Android media player? Or do we need to use Wowza or red5 to serve an rtsp stream to the Android media player rtsp client? Are there any other rtsp servers to consider when the video needs to be viewed on Android (without the Adobe Flash app)? Try darwin streaming server. This can stream MPEG-4 and 3GPP. Note that Videoplayer in Android supports RTSP streaming as per 3GPP PSS Streaming specifications. i.e fileformat is 3GP/MP4 and the supported codecs are MPEG-4 Video, AVC, MPEG4 Audio, AMR, and H263. One potential drawback with darwin

Live555 on Android

南笙酒味 提交于 2019-11-29 02:30:16
I'm trying to get the RTSP video stream play in my Android App using the build-in Videoview/MediaPlayer, but there're always various problems on different ROMs or different network status(UDP packets blocked), it's really annoying so I want to implement my own rtsp client with the live555 source and GLES and ffmpeg. I can figure out how to use ffmpeg and GLES to show a video, but I'm not familiar with live555. Are there any compiled version of live555 on Android? or how could I do that myself? Thanks. I think I found a sample code from github, it works for me. bad news - I think you won't find

Developing A Streaming Server For Android

老子叫甜甜 提交于 2019-11-29 00:39:11
I am trying to develop a Streaming AV Media Server for use with an Android handset as the client. This instantly puts a constraint on me to develop a server that uses RTSP. I am versed in Java programming and have found that Netty (Java NIO) can be used to fill in the otherwise massive gap in the Java Media Framework for this protocol. I have played around with it and have had no real success. I know about live555 but I’m on a tight schedule and don't really want to start messing around with C++ as I know very little on the subject. I have been stuck on this problem for many weeks and have