rtsp

Play video in Android from a bytes stream

给你一囗甜甜゛ 提交于 2019-12-03 12:41:02
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 TCP headers. I'm really surprised that I can't just pass a bytes stream to the MediaPlayer. Thanks in

VLC RTSP live stream to Android

痴心易碎 提交于 2019-12-03 12:13:46
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/stream.mpeg}' It is working in Android VLC 0.0.11, but only in WiFi, not in 3G. And I am not able to

海康大华安防监控网络摄像头网页无插件直播流媒体RTSP专用播放器方案之EasyPlayer-RTSP-Android如何获取拉流的回调?

…衆ロ難τιáo~ 提交于 2019-12-03 11:02:10
EasyPlayer是一个RTSP流媒体播放器,在GitHub上开源大部分源码,其主要功能有播放、抓图、录制视频、实时静音/取消静音。 EasyPlayer-RTSP-Android回调InitCallback 提出问题 EasyPlayer-RTSP-Android如何获取拉流的回调? 解决问题 在Client.java中有一个SourceCallBack接口,定义了拉流的各个回调方法: 1、onMediaInfoCallBack方法获取流的参数MediaInfo,获取解码器类型,fps,sps,pps等。 2、onSourceCallBack方法获取流数据。 3、onEvent方法的state参数展示连接的状态: 1:连接中,2:连接错误,3:连接线程退出 在EasyPlayerClient中将状态发送出去: 来源: https://www.cnblogs.com/TSINGSEE/p/11792383.html

To stream rtsp video in cordova ionic app

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Iam developing an android app in ionic. I need to stream video of rtsp protocol and. amp format. Tried cordava steaming media and cordova-rtsp. But iam getting error media player unknown. Plus help 回答1: In order to achieve this you need to install a Cordova plugin. Try this plugins to stream rtsp on cordova: https://github.com/dride/cordova-plugin-rtsp-vlc Install ionic cordova plugins add cordova-plugin-rtsp-vlc Usage: window.VideoPlayerVLC.play( url, done => {}, error => {} ); 文章来源: To stream rtsp video in cordova ionic app

RTSP、Onvif协议安防网络摄像头输出RTMP、RTSP、HLS、FLV直播流网页无插件直播方案EasyNVR之windows设备上双击EasyNVR无法启动程序的问题解析

怎甘沉沦 提交于 2019-12-03 10:21:06
EasyNVR的使用者应该都是清楚的知道,EasyNVR一个强大的功能就是可以进行全平台的无插件直播。主要原因在于rtsp协议的视频流(默认是需要插件才可以播放的)经由EasyNVR处理后可以满足无插件的全平台直播。处理后会获取到RTMP、HLS视频流,这就完美解决了插件直播的问题,只要终端设备支持H5,就可以播放EasyNVR分发出的视频流。 windows设备上双击EasyNVR无法启动程序 windows设备上双击EasyNVR、EasyDSS、EasyGBS可以执行文件无法启动程序问题? 问题分析 正常情况是双击执行文件可以启动对应服务,完成对应的功能服务需求,双击无法执行,无非就是系统对自身的保护导致的执行文件文法执行或者是对执行文件的执行权限没有满足对应的需要。 解决问题 通过远程客户现场,分析现场执行程序的对应属性发现,是由于运行软件的服务器自身的保护机制,阻止外来程序的启动,需要我们手动的信任执行文件,添加信任即可正常运行软件启动服务。 具体操作步骤: 右击执行文件->查看执行文件属性->勾选“常规”选项下“安全”栏目的勾选框。后续点击应用、确定完成设置。 来源: https://www.cnblogs.com/EasyNVR/p/11790788.html

streaming a webcam feed over rtsp using ffmpeg & ffserver to an android client

匿名 (未验证) 提交于 2019-12-03 10:10:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to stream my webcam over rtsp and open the stream using android. I managed to get the first part working (rtsp stream) using ffserver and ffmpgeg. Here is my ffserver.conf file : HTTPPort 8000 RTSPPort 8001 HTTPBindAddress 192.168.1.74 RTSPBindAddress 192.168.1.74 MaxClients 100 MaxBandwidth 10000 NoDefaults <Feed witty.ffm> File /tmp/witty.ffm FileMaxSize 20M </Feed> <Stream witty.mov> Feed witty.ffm Format rtp VideoSize 640x480 VideoQMin 1 VideoQMax 20 VideoFrameRate 30 VideoBitRate 500 AVOptionVideo flags +global_header

Cant get RTSP stream - nonmatching

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Raspberry Pi3 and I`m trying to get a RTSP stream through my wireless IP camera, but I'm getting this error: pi@raspberrypi:~ $ alprd -f INFO - Running OpenALPR daemon in the foreground. INFO - Using: /etc/openalpr/alprd.conf for daemon configuration Missing config value for company_id Missing config value for pattern INFO - Using: /home/pi/Database/pictures for storing valid plate images INFO - country: br -- config file: /etc/openalpr/openalpr.conf INFO - pattern: INFO - Stream 1: rtsp://192.168.1.230:554/onvif1 INFO - Starting

Gstreamer 1.0 saving rtsp stream to file

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I tried to create pipeline in which I get rtsp stream ,encode it to x264 and save it to mp4 file format but it doesn't seem to work . gst-launch-1.0 rtspsrc location=rtsp://ip/url ! videoconvert ! queue ! x264enc ! mp4mux ! filesink location=test.mp4 回答1: Okey I got it: gst-launch-1.0 rtspsrc location=rtsp://ip/url ! rtph264depay ! h264parse ! mp4mux ! filesink location=file.mp4 Explanation: With rtph264depay we extract h264 streams from RTSP then we parse it with h264parse we use mp4 as container and then we save it with filesink 文章来源:

vlc-android-sdk - cannot view RTSP live video

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been working on an Android application that shows live streaming video via RTSP. Assuming I have a well-functioning RTSP server that passes h264 packets, and to view the stream we should connect to rtsp://1.2.3.4:5555/stream So I tried to use the native MediaPlayer\VideoView, but no luck (the video was stuck after 2-3 seconds of playback, so I loaded mrmaffen's vlc-android-sdk (can be found here ) and used the following code: ArrayList<String> options = new ArrayList<String>(); options.add("--no-drop-late-frames"); options.add("--no

Is there a good way to stream video FROM Android to an RTSP server?

元气小坏坏 提交于 2019-12-03 08:51:24
I have searched around and haven't really found anything. I would like to send the video from the built in camera to my RTSP server via a stream. When looking for examples, I saw that it might be possible for MediaPlayer to have its setDataSource() method to just include the location of the stream on the server. I tried to emulate that with: mediaRecorder = new MediaRecorder(); mediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); mediaRecorder