video-capture

UWP: How to record Screen and save as mp4 file?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 02:36:33
问题 I have figured out how to capture the screen and output it back to a previewer using the sample here: Microsoft Screen Capture Documentation Which is fine as far as it goes. What I can't figure out, nor can I find any documentation is to take those frames and write them to a video file. Ideally I want to stream them directly into an mp4 or similar which I can then use later with the MediaComposition system to do editing. I found VideoFrame.CreateWithDirect3D11Surface but I can't figure out

how to get the latest frame from capture device (camera) in opencv [python]

拟墨画扇 提交于 2019-12-05 01:16:50
I want to connect to a camera, and only capture a frame when an event happens (e.g. keypress). A simplified version of what I'd like to do is this: cap = cv2.VideoCapture(device_id) while True: if event: img = cap.read() preprocess(img) process(img) cv.Waitkey(10) However, cap.read seems to only capture the next frame in the queue, and not the latest. I did a lot of searching online, and there seems to be a lot of questions on this but no definitive answer. Only some dirty hacks which involve opening and closing the capture device just before and after grabbing (which won't work for me as my

Using RTMP or RTSP protocol in C# [closed]

六眼飞鱼酱① 提交于 2019-12-05 00:31:47
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Do you know any library that allows me to send from C# an encoded audio/video stream to a streaming server using RTMP or RTSP

Display timer while video recording android

馋奶兔 提交于 2019-12-04 20:03:34
I am making a video recorder and i want to have the time duration of how much time did the user have recorder the video. The time will counts upwards. in order to calculate the time, im using thread and the calculation start when the user click the start button and it will stop when the user click the stop button. for the timer thread im referring the tutorial from here . however my problem here is the timer is not working and i think the thread is not doing its job. below is my logcat. Here's my code for the main activity public class Videotest1Activity extends Activity implements

Why OpenCV's `cvCreateCameraCapture` and `cvCreateFileCapture` do not work?

烈酒焚心 提交于 2019-12-04 18:34:07
Have an AVI videofile, and a webcam. cvQueryFrame returns null in both cases. Code is applied(only for cam): #include "highgui.h" #include <iostream> using namespace std; int main( int argc, char** argv ) { cvNamedWindow( "KillCam", CV_WINDOW_AUTOSIZE ); cvWaitKey(0); CvCapture* capture = cvCreateCameraCapture(-1); assert(capture != NULL); IplImage* frame; while(1){ frame = cvQueryFrame( capture ); if( !frame ) break; cvShowImage( "KillCam", frame ); char c = cvWaitKey(33); if( c == 30 ) break; } cvReleaseCapture( &capture ); cvDestroyWindow( "KillCam" ); } I found, by stepping into the openCV

Record Video to External SD Card on Android

点点圈 提交于 2019-12-04 17:56:41
I am trying to record video to an external SD card. However, everytime I try and acutally record the data -- I always get a java.io.FileNotFound exception. I was wondering if anyone knew of any tutorials or could help correct my code. Here is the class in which tries to record video public class VideoActivity extends Activity { private SurfaceView preview; private SurfaceHolder previewHolder; private String locationName; private String filepath; private File video; public void onCreate(Bundle videocawk) { super.onCreate(videocawk); setContentView(R.layout.video_layout); setSurface();

opencv write webcam output to avi file

谁都会走 提交于 2019-12-04 17:53:39
问题 I am trying to create an avi video from my webcam output using opencv. No exceptions are thrown, however the avi file it creates is 414 bytes in size and does not grow. Also it will not play with any media player. I suspect there is something wrong with the writing to file part. Here is the code: CvCapture *capture = cvCaptureFromCAM( 0 ); int width = ( int )cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH ); int height = ( int )cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT );

How to create virtual webcam in Windows 10?

北城以北 提交于 2019-12-04 17:48:19
问题 I would like to take video from a webcam, render some text on the frames and do some motion tracking and pass it on to a virtual webcam so it can be streamed easily. I found some answers on stackoverflow suggesting that I should use DirectShow. According to information in DirectShow documentation, the DirectShow SDK is part of Windows SDK. So I installed the latest Windows SDK but it seems that it doesn't include DirectShow because there are no DirectShow samples under C:\Program Files (x86)

How to cut/crop/trim a video in respect with time or percentage and save output in different file

痴心易碎 提交于 2019-12-04 17:39:48
问题 Is there any tutorial or a c# library which which help me to accomplish the following Chose a file to edit Ask user to select cut/crop/trim method :- by time or by percentage cut/crop/trim the video by time or percentage as chosen ( say I wish to reduce a 5 minute video to 4 minute video, or reduce the video by 80%) Save the video as requested in required path now steps 1) and 4) I have implemented but could not find a good c# library to accomplish 3) and 4) I looked up the ffmpeg library but

Record Video and play audio at same time ios

限于喜欢 提交于 2019-12-04 16:09:21
问题 I want to record video and play audio simultaneously. when start recording video, preloaded audio start play and when stop video recording, audio also stops playing. I tried to record Video by using third party library " SwiftyCam " (https://github.com/Awalz/SwiftyCam) and start playing audio in delegate method when start writes video recording file. main ViewCOntroller code is below : override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) var temp = Data() let