rtsp

Detect MPEG4/H264 I-Frame (IDR) in RTP stream

坚强是说给别人听的谎言 提交于 2019-11-27 17:13:28
I need to detect MPEG4 I-Frame in RTP packet. I know how to remove RTP header and get the MPEG4 frame in it, but I can't figure out how to identify the I-Frame. Does it have a specific signature/header? Ok so I figured it out for h264 stream. How to detect I-Frame: remove RTP header check the value of the first byte in h264 payload if the value is 124 (0x7C) it is an I-Frame I cant figure it out for the MPEG4-ES stream... any suggestions? EDIT: H264 IDR This works for my h264 stream ( fmtp:96 packetization-mode=1; profile-level-id=420029; ). You just pass byte array that represents the h264

How to dump raw RTSP stream to file?

我的未来我决定 提交于 2019-11-27 17:08:11
Is it possible to dump a raw RTSP stream to file and then later decode the file to something playable? Currently I'm using FFmpeg to receive and decode the stream, saving it to an mp4 file. This works perfectly, but is CPU intensive, and will severely limit the number of RTSP streams I can receive simultaneously on my server. I would like to save the stream to file without decoding it, and delay the decoding part to when the file needs to be opened. Is this possible? I have tried VLC, which is even more CPU intensive than FFmpeg. I've also looked at this question where the answer says dumping

play streaming in VideoView, convert url to rtsp

大城市里の小女人 提交于 2019-11-27 16:17:49
I need to play youtube video and record video in the same layout. To perform this I search for youtube api and found that android version need to be higher than 2.2, this ok but, i want to use VideoView. I saw some post here about this issue and decide eventually to use this code to watch video in VideoView. videoView = (VideoView) findViewById(R.id.your_video_view); Log.d(TAG,getUrlVideoRTSP(current_url) + " id yotube1 " ); //here type the url... videoView.setVideoURI(Uri.parse(getUrlVideoRTSP(current_url))); videoView.setMediaController(new MediaController(this)); //sets MediaController in

Developing A Streaming Server For Android

我们两清 提交于 2019-11-27 15:24:27
问题 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

How to get RTSP Links Android

狂风中的少年 提交于 2019-11-27 14:28:42
Am having you-tube links like http://www.youtube.com/v/YR71GnQ4CU4?f=videos&app=youtube_gdata , then how to convert it to RTSP format to play in VideoView. Am searching gdata api with this: http://gdata.youtube.com/feeds/api/videos?&max-results=20&v=2&format=1&q= "+ URLEncoder.encode(activity.criteria) but i cant find how to get related RTSP url. I got my answer ..thanx to this Element rsp = (Element)entry.getElementsByTagName("media:content").item(1); String anotherurl=rsp.getAttribute("url"); In gdata api only we are getting this type of links : rtsp://v3.cache7.c.youtube.com

Playing RTSP with python-gstreamer

荒凉一梦 提交于 2019-11-27 13:49:45
I use gstreamer for playing RTSP stream from IP cameras (like Axis.) I use a command line like this: gst-launch-0.10 rtspsrc location=rtsp://192.168.0.127/axis-media/media.amp latency=0 ! decodebin ! autovideosink and it work fine. I want to control it with a gui in pygtk so I use the gstreamer python bindings. I've wrote this piece of code: [...] self.player = gst.Pipeline("player") source = gst.element_factory_make("rtspsrc", "source") source.set_property("location", "rtsp://192.168.0.127/axis-media/media.amp") decoder = gst.element_factory_make("decodebin", "decoder") sink = gst.element

MJPEG streaming and decoding

北城余情 提交于 2019-11-27 11:03:43
I want to receive JPEG images from an IP camera (over RTSP). For this, I tried cvCreateFileCapture_FFMPEG in OpenCV. But ffmpeg seems to have some problem with the MJPEG format of the streaming (since it automatically tries to detect the streaming info) and I end up with the following error mjpeg: unsupported coding type I, then, decided to use live555 for streaming. Till now, I can successfully establish streaming and capture (non-decoded) images through openRTSP. The question is how can I do this in my application, e.g., in OpenCV. How can I use openRTSP in OpenCV to get images and save them

sip/sdp/rtp/rtcp/rtsp间的关系

China☆狼群 提交于 2019-11-27 10:08:44
用一句简单的话总结:RTSP发起/终结流媒体、RTP传输流媒体数据 、RTCP对RTP进行控制,同步。 转自该博客:http://blog.csdn.net/xdwyyan/article/details/41721307?utm_source=tuicool&utm_medium=referral 感觉这些基础关系此君写的比较清楚,转载学习一下,如有侵权,联立删 1、 RTP Real-time Transport Protocol,是用于Internet上针对多媒体数据流的一种传输层协议。RTP协议详细说明了在互联网上传递音频和视频的标准数据包格式。RTP协议常用于流媒体系统(配合RTCP协议),视频会议和一键通(Push to Talk)系统(配合H.323或SIP),使它成为IP电话产业的技术基础。RTP协议和RTP控制协议RTCP一起使用,而且它是建立在UDP协议上的。 RTP 本身并没有提供按时发送机制或其它服务质量(QoS)保证,它依赖于网络应用程序去实现这一过程。 RTP 并不保证传送或防止无序传送,也不确定底层网络的可靠性。 RTP 实行有序传送, RTP 中的序列号允许接收方重组发送方的包序列,同时序列号也能用于决定适当的包位置,例如:在视频解码中,就不需要顺序解码。 2、 RTCP 实时传输控制协议(Real-time Transport Control

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

情到浓时终转凉″ 提交于 2019-11-27 09:15:48
问题 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

RTSP youtube link

守給你的承諾、 提交于 2019-11-27 07:08:37
I have gone all over google and am having trouble getting the rtsp link from a youtube video give the VIDEO_ID. I am confused on how to use that id and then parse google for the link. Thank you for your time and and effort. WarrenFaith I found this blog entry , maybe its a starting point. If you follow on of the <id> links you get another format where you should find the rtsp link. EDIT: after going through what WarrenFaith posted. PROPS TO HIM this is how you get a rtsp link. make a request http://gdata.youtube.com/feeds/mobile/videos/VIDEO_ID parse that data for the 3gp content It also