video-streaming

VideoWriter outputs corrupted video file

社会主义新天地 提交于 2020-03-18 12:23:01
问题 This is my code to save web_cam streaming. It is working but the problem with output video file. import numpy as np import cv2 cap = cv2.VideoCapture(0) # Define the codec and create VideoWriter object #fourcc = cv2.cv.CV_FOURCC(*'DIVX') #out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480)) out = cv2.VideoWriter('output.avi', -1, 20.0, (640,480)) while(cap.isOpened()): ret, frame = cap.read() if ret==True: frame = cv2.flip(frame,0) # write the flipped frame out.write(frame) cv2.imshow(

Trying to play an RTMP stream using ExoPlayer

丶灬走出姿态 提交于 2020-03-05 04:23:20
问题 I have this code: SimpleExoPlayer player = ExoPlayerFactory.newSimpleInstance(this); PlayerView playerView = findViewById(R.id.simple_player); playerView.setPlayer(player); RtmpDataSourceFactory rtmpDataSourceFactory = new RtmpDataSourceFactory(); MediaSource videoSource = new ProgressiveMediaSource.Factory(rtmpDataSourceFactory) .createMediaSource(Uri.parse("https://player.cdnmedia.tv/embed/a77aa67c")); player.prepare(videoSource); player.setPlayWhenReady(true); This is my graddle file:

Streaming server or http server

这一生的挚爱 提交于 2020-02-25 22:36:31
问题 We’re taking in mind the possibility of using a media server in order to build our on-premise media service. We’re only focusing at Video- and Audio-on-Demand use-case. Live stream is out of our scope right now. I mean, we’re need to serve pre-registered videos and audios with a good performance. We’ve played with ant community server, but we’ve some issues we’re not quite figure out. We’ve tested two scenarios: to serve a video hosted on a straight http server (httpd) to serve a video behind

Reordering segments in dash segment list

孤人 提交于 2020-02-25 05:01:25
问题 I have a live dash manifest that looks like this. <MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="" maxSegmentDuration="PT4S" minimumUpdatePeriod="PT595H" minBufferTime="PT2S" type="dynamic" availabilityStartTime="2016-11-20T17:00:54Z" publishTime="2016-11-20T17:00:54Z" profiles="urn:hbbtv:dash:profile:isoff-live:2012,urn:mpeg:dash:profile:isoff-live:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" timeShiftBufferDepth=

Restful-based video streaming

ⅰ亾dé卋堺 提交于 2020-02-20 09:32:46
问题 Using spring boot, I want to make RESTful-based video player. I have my .mp4 extension videos in my file browser. How can I serve these videos on the frontend side by creating a rest endpoint? I've tried this method. The video can be started or stopped. But it can not be done backwards or forwards. Can not get it to the desired minute and start. 回答1: Spring Content supports video streaming out of the box. Using Spring Content for the file-system (FS) you would be able to create yourself a

Nodejs, Android - Video Streaming

大城市里の小女人 提交于 2020-02-07 06:01:06
问题 I am working on an application which displays videos from Nodejs& MongoDB server. The problem here is because the videos are not streaming, mediaPlayer on Android fully downloads video and then displays it and this is really slow as you can guess. I am not a native speaker so reading documents mostly hard to understand for me. Which path should I go? RTSP or HTTP streaming. Any tips how can I achieve my goal? All your help is appreciated, best regards. 回答1: While dedicated streaming servers

How can play streaming Video from frame byte array

狂风中的少年 提交于 2020-02-06 07:50:29
问题 Thanks for watching of question and sorry about my english XD (use Android Studio with JAVA) How can i play streaming video from byte array to VideoView or MediaPlayer, i have received byte array from ZeroMQ socket, and byte array content is Frame(size w: 640 h: 360 base64 encoding) ZeroMQ protocol thread code public class ZeromQMessageTask extends AsyncTask<String, Void, String>{ @Override protected String doInBackground(String... strings) { DataOutputStream dataOutputStream = null; try{ ZMQ

How to embed streaming rtsp media into an html5 page

℡╲_俬逩灬. 提交于 2020-02-02 06:09:03
问题 I have a security cam that sends via rtsp, which I'm able to capture on vlc player, but I want to embed that into my webpage. I've been searching for hours on how to do this, but have failed to find any recent documentation on how to do this. I am not set on vlc either, so I'm basically trying to go from cam -> rtsp -> player (if required) -> html embed. Any help would be appreciated. And I know this is an open question, but I'm failing to find what I need on the net, so I'm open to any

How to embed streaming rtsp media into an html5 page

人盡茶涼 提交于 2020-02-02 06:05:51
问题 I have a security cam that sends via rtsp, which I'm able to capture on vlc player, but I want to embed that into my webpage. I've been searching for hours on how to do this, but have failed to find any recent documentation on how to do this. I am not set on vlc either, so I'm basically trying to go from cam -> rtsp -> player (if required) -> html embed. Any help would be appreciated. And I know this is an open question, but I'm failing to find what I need on the net, so I'm open to any

How to know which android devices support video playback?

自闭症网瘾萝莉.ら 提交于 2020-02-01 09:20:12
问题 I've made an app to view vine videos on Android devices. These are basically .mp4 videos being loaded into a VideoView . From the following documentation (http://developer.android.com/guide/appendix/media-formats.html), mp4 video playback is supported on Android version 3+ devices. I've already added a android:minSdkVersion="11" to the manifest file to filter out older android versions from downloading the app, but I'm still getting feedback from users running newer versions of Android (eg. 4