video-capture

How to get file size of live video recording in android?

冷暖自知 提交于 2019-12-22 04:41:04
问题 How can I get the video file size while recording a video in Android using a MediaRecorder ? 回答1: String recVideoPath = Environment.getExternalStorageDirectory() + videoRecordedFileName; File file = new File(recVideoPath); long fileVideo = file.length(); More or less something like the one above. 回答2: Put this in a thread, or where ever you are updating the UI currentPosition = (int) mediaPlayer.getCurrentPosition(); yourProgressBar.setProgress(currentPosition); I hope this helps :) 来源: https

Brew downgrade formula to previous version (opencv3/3.0.0) on mac el capitan

北城以北 提交于 2019-12-21 17:50:57
问题 I am on mac and used brew to install opencv3. I was having opencv3/3.0.0 . Today, I updated it and got version 3.1.0_1. However, this update is breaking everything and when I try to use VideoCapture to read frames and use waitKey function it breaks by causing following: 2016-02-26 23:25:16.846 tracking[99869:1026824] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CaptureDelegate doFireTimer:]: unrecognized selector sent to instance 0x7fab5a601240' So,

Capture video using webcam in Java

偶尔善良 提交于 2019-12-21 12:26:38
问题 I am trying to capture video screenshot from a java application. I have donwloaded the sarxos/webcam-capture library. I have add to my project the executable jar. It is a little bit mess. I want to capture video from a simple javafx interface that I have created. The issue is that after installing the lib and slf4 then it required to install also xuggle. I add xuggle in the path and my code is the following: File file = new File("output.ts"); IMediaWriter writer = ToolFactory.makeWriter(file

How can I learn a DirectShow programming? [closed]

。_饼干妹妹 提交于 2019-12-21 10:57:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm a .Net C# Developer. I want to develop the media programming about video/audio codec, capture media from source, etc. I'm going to use the DirectShow Lib, but I read it on MSDN, and I'm very confused, because I'm a beginner. Do you have the best tutorials or some article that can make beginner understand to

Getting specific frames from VideoCapture opencv in python

寵の児 提交于 2019-12-21 09:21:49
问题 I have the following code, which continuously fetches all the frames from a video by using VideoCapture library in opencv in python: import cv2 def frame_capture: cap = cv2.VideoCapture("video.mp4") while not cap.isOpened(): cap = cv2.VideoCapture("video.mp4") cv2.waitKey(1000) print "Wait for the header" pos_frame = cap.get(cv2.cv.CV_CAP_PROP_POS_FRAMES) while True: flag, frame = cap.read() if flag: # The frame is ready and already captured cv2.imshow('video', frame) pos_frame = cap.get(cv2

How to render WPF animation as a video frame by frame?

不羁的心 提交于 2019-12-21 05:24:11
问题 I've created a nice effect that I like in WPF, I'd like to be able to "record" this effect. But it is choppy during run-time. Is there a way I can convert it to a frame-by-frame process and save it as a video myself instead of trying to record it during playback? Basically I'd like to render WPF as a video, or list a series of frames saved as bitmaps. Key thing is to be able to record the animation with out the choppiness. 回答1: Have you looked at using RenderTargetBitmap to render your Visual

How to start/stop video recording on Canon camera via SDK?

爷,独闯天下 提交于 2019-12-21 05:21:31
问题 I have a Canon 7D digital camera and I'd like to have an ability to control video recording from PC. I've downloaded Canon SDK 2.8, read all the document it contains but still cant figure out how to start or stop video recording on the camera. Is there any possibility to control video recording via Canon SDK? Thanks. 回答1: the latest canon camera sdk document contains an answer: 6.4.3 Begin/End movie shooting You can begin/end movie shooting with the following operations. EdsUInt32 record

DirectShow - Getting video frames

戏子无情 提交于 2019-12-21 04:26:08
问题 I'm creating a Windows video capture application and am using DirectShow for capture. As each frame comes in, I want to grab it as a raw RGB bitmap into a buffer, at which point my code will do whatever processing I need. I've been searching for samples similar to what I want to do, and everywhere I look online, people recommend using either the IMediaDet and/or the ISampleGrabber interface to do frame-by-frame capture. Unfortunately, both are deprecated and aren't even in the newest version

Video recording to a circular buffer on Android

跟風遠走 提交于 2019-12-20 22:05:44
问题 I'm looking for the best way (if any...) to capture continuous video to a circular buffer on the SD card, allowing the user to capture events after they have happened. The standard video recording API allows you to just write directly to a file, and when you reach the limit (set by the user, or the capacity of the SD card) you have to stop and restart the recording. This creates up to a 2 second long window where the recording is not running. This is what some existing apps like DailyRoads

Android Video Capture Sample App

女生的网名这么多〃 提交于 2019-12-20 10:28:41
问题 Is there a stand-alone sample code for video capturing in Android ? 回答1: Here is what I provide to my students: Camcorder Source 回答2: Not sure why I didn't think of this sooner. If you're just looking to capture a video so you can take that video and upload it to a server (or do something similar) you can use the native camera app extremely easily using intents. Launch the intent, capture the video, then return to your activity, and access the video via onActivityResult. // Setup a result