rtsp

How to use MediaCodec to decode data from RTSP server?

梦想的初衷 提交于 2019-12-21 15:04:51
问题 I tried setDataSource() in MediaExtractor class but it doesn't work with RTSP path. I can use the same path with MediaPlayer class and it works but it is very important for me to use MediaCodec class instead. I think Android doesn't have any RTSP API I could use nor I can find any RTSP libraries for Android. Is there a relatively easy way of feeding video stream from RTSP server into MediaCodec class? 回答1: No easy way. I ended up using this project: https://code.google.com/p/android-rtsp

Draw overlay (HUD) on Android VideoView?

孤者浪人 提交于 2019-12-21 12:00:15
问题 I have a custom view that draws HUD : Here is my layout: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <VideoView android:id="@+id/videoView1" android:layout_gravity="center" android:layout_width="match_parent" android:layout_height="wrap_content" /> <com.widgets.HUD android:id="@+id/hud" android:layout_width="fill_parent"

IP camera capture

走远了吗. 提交于 2019-12-21 06:35:31
问题 I am trying to capture the stream of two IP cameras directly connected to a mini PCIe dual gigabit expansion card in a nVidia Jetson TK1. I achieved to capture the stream of both cameras using gstreamer with the next command: gst-launch-0.10 rtspsrc location=rtsp://admin:123456@192.168.0.123:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink rtspsrc location=rtsp://admin:123456@192.168.2.254:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink It displays

IP camera capture

穿精又带淫゛_ 提交于 2019-12-21 06:35:11
问题 I am trying to capture the stream of two IP cameras directly connected to a mini PCIe dual gigabit expansion card in a nVidia Jetson TK1. I achieved to capture the stream of both cameras using gstreamer with the next command: gst-launch-0.10 rtspsrc location=rtsp://admin:123456@192.168.0.123:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink rtspsrc location=rtsp://admin:123456@192.168.2.254:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink It displays

IP camera capture

我与影子孤独终老i 提交于 2019-12-21 06:34:41
问题 I am trying to capture the stream of two IP cameras directly connected to a mini PCIe dual gigabit expansion card in a nVidia Jetson TK1. I achieved to capture the stream of both cameras using gstreamer with the next command: gst-launch-0.10 rtspsrc location=rtsp://admin:123456@192.168.0.123:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink rtspsrc location=rtsp://admin:123456@192.168.2.254:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink It displays

Can profile-level-id and sprop-parameter-sets be extracted from an RTP stream?

天大地大妈咪最大 提交于 2019-12-21 05:21:55
问题 I'm trying to stream live video from my android phone to a desktop RTSP server on my PC. The streamed video can be played in another device. I'm using H.264 video encoder, so the SDP returned by the server (as the reply of DESCRIBE request) should contain the profile-level-id and sprop-parameter-sets fields. The Spydroid project shows how to extract these info from a dummy file recorded to SD card by parsing it (from the avcC block). But I cannot do it like that. In Spydroid, the media

How to fix opencv python cv2.VideoCapture rtsp onvif “nonmatching transport in server reply” error?

做~自己de王妃 提交于 2019-12-21 05:11:12
问题 I'm on windows using python 3.6.4, installed opencv (3.4) through pip. Here's the code I'm using: import numpy as np import cv2 cap = cv2.VideoCapture('rtsp://192.168.15.116:554/onvif1') while(cap.isOpened()): ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('frame',gray) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows() I'm getting the following error: [rtsp @ 03858a40] Nonmatching transport in server reply warning: Error

What is RTSP and WebRTC for streaming?

元气小坏坏 提交于 2019-12-21 04:38:11
问题 I'm very newbie for streaming. But I must do a user-based streaming system with IP camera. It will be like security cameras. One user will has one stream. My team think working with RTSP. And they want know how will we do it and what is rtsp , webrtc , rtp. I'm researching and i want to ask to you. So what is exactly RTSP? Some IP cameras say supporting WebRTC and what is this? Is this compatitable with RTSP? Which is the best protocol for user based streaming ? 回答1: RTSP is a streaming

stream RTSP to HTML website

て烟熏妆下的殇ゞ 提交于 2019-12-21 02:49:09
问题 I would like to display IP cameras streaming in RTSP into a web page. I've tried many solutions, like using VLC to transcode the stream, but none of them seems to be reliable enough to create a real web service. I'm thinking on using some media server like flussonic or Red5. But I don't know if it will work. This is why I would like to know what is the best (and the simple) solution to display RTSP streams on a webpage. 回答1: After tried the "plugins" way suggested in How can I display an RTSP

How to stream RTSP live video in Firefox and Chrome now that the VLC plugin is not supported anymore?

荒凉一梦 提交于 2019-12-20 19:37:39
问题 Now that the NPAPI that the VLC plugin uses is being discontinued in Firefox and that Google Chrome has discontinued the NPAPI for long is there any solution to stream RTSP live video inside these browsers? Thanks a lot for your help on this. Regards, Tiago Dias 回答1: After a long time digging and following this topic I have came to interesting results. At this point the best option seems to be an RTSP proxy that changes RTSP in a way that makes it compatible with something supported by web