video-capture

How I can have previewing permanently when capture video for android?

泪湿孤枕 提交于 2019-12-10 11:56:51
问题 I am writing a video capture app for android. I have preview first time I want to capture. But after I press stop, I no longer get preview when I start recording again. How can I have preview option permanently? protected void startRecording() throws IOException { String state = android.os.Environment.getExternalStorageState(); if (!state.equals(android.os.Environment.MEDIA_MOUNTED)) { throw new IOException("SD Card is not mounted. It is " + state + "."); } // make sure the directory we plan

Video re-streaming server (video output format)

拟墨画扇 提交于 2019-12-10 11:27:00
问题 I need to develop a video streaming server which would stream a live video to multiple users. It needs to support the following "video" sources for the re-stream server: web-camera surveillance camera (already supports MJPG stream) scanner I understand that I would need a different driver for adding support to each video input device. I also need to support the video-display in: web-browsers Mozilla Firefox 3.6 Internet Explorer 8 desktop applications developed in C++ / QT 4.6 My questions:

opencv VideoCapture d-link DCS-930L

亡梦爱人 提交于 2019-12-10 11:26:19
问题 I am trying to access my ip camera fom opencv without success. VideoCapture capture("http://IP/MJPEG.CGI?.mjpeg&user=username&password=mypassword") when trying using VLC it's works : http://IP/MJPEG.CGI?.mjpeg then VLC ask for username&password and it's fine. Thanks for helping 回答1: Done Successfully using the following: http://username:password@ip/video.cgi?.mjpg 来源: https://stackoverflow.com/questions/22202666/opencv-videocapture-d-link-dcs-930l

iOS drawing screen video capture not smooth

◇◆丶佛笑我妖孽 提交于 2019-12-10 10:33:09
问题 I am creating an application in which we can able to draw using our finger in an imageView , the same time we can record the screen also. I have done these features so far , but the problem is once the video recording is completed , if we play the recorded video the finger drawing is not smooth in video. I am not using opengl , the drawing is on UIImageView and on every 0.01 sec we capture th image from UIImageView and append the pixel buffer to the AVAssetWriterInputPixelBufferAdaptor object

Take a Video with ARKIT

ぐ巨炮叔叔 提交于 2019-12-10 10:20:57
问题 Hello Community , I try to build a App with Swift 4 and the great upcoming ARKit-Framework but I am stuck. I need to take a Video with the Framework or at least a UIImage-sequence but I dont know how. This is what I've tried : In ARKit you have a session which tracks your world. This session has a capturedImage instance where you can get the current Image. So I createt a Timer which appends the capturedImage every 0.1s to a List. This would work for me but If I start the Timer by clicking a

how to correct orientation of video in objective c

柔情痞子 提交于 2019-12-10 10:18:01
问题 I am using UIImagePickerController to capture video in iPhone but video is showing rotated 90 digree to right. How to fix this issue Is there any way by which we can correct the orientation. 回答1: you need make the re-encode video using AVExportSession to rotate video to correct orientation like said Oleksiy Ivanov. So you need something like this: NSError *error = nil; AVURLAsset *videoAssetURL = [[AVURLAsset alloc] initWithURL:self.videoUrl options:nil]; AVMutableComposition *composition =

MediaEncodingProfile.CreateWmv gives “No suitable transform was found to encode or decode the content.” error

孤者浪人 提交于 2019-12-10 10:02:37
问题 I am creating a Windows Phone app (XAML/C#) that uploads audio and video to a server. Using VideoCaptureDevice on Windows Phone 8.0 works fine, but it only allows resolutions supported by the device (on a Nokia 625 the smallest is 640 x 480). To get the size down I have upgraded the app to Windows Phone 8.1 Silverlight (Developer Preview) to use the Windows.Media.Capture.MediaCapture libraries. This works and the generic Qvga format: MediaEncodingProfile profile = MediaEncodingProfile

How to take a still photo in either DirectShow or Media Foundation

◇◆丶佛笑我妖孽 提交于 2019-12-10 09:28:02
问题 Is there a way to make a photo (still image) with either DirectShow or Media Foundation APIs? I got video capture working and I can just capture the very first frame and call it a day, but that's not what a photo is. Usually cameras have distinct video and photo modes, where photo mode allows for a lot greater resolution. For example, I have Logitech HD Pro Webcam C920 and it claims to allow to do 15mp photos. The software that came with it takes 5168x2907 photo images. So far I haven't seen

How to merge an Audio and Video files in Android

江枫思渺然 提交于 2019-12-10 03:45:24
问题 I have a small video clip and an audio file. The problem is how to write code to merge them into a single file. i have never written code for multimedia applications for android and don't know if the merging is possible with android media framework. Is there any third party library to do that? Can we right a merging code in Java and call it in Android? Please guide me through this. Thanks 回答1: You can try INDE Media for Mobile, tutorials are here: https://software.intel.com/en-us/articles

Cocoa - detect event when camera started recording

十年热恋 提交于 2019-12-09 13:54:08
问题 In my OSX application I'm using code below to show preview from camera. [[self session] beginConfiguration]; NSError *error = nil; AVCaptureDeviceInput *newVideoDeviceInput = [AVCaptureDeviceInput deviceInputWithDevice:captureDevice error:&error]; if (captureDevice != nil) { [[self session] removeInput: [self videoDeviceInput]]; if([[self session] canAddInput: newVideoDeviceInput]) { [[self session] addInput:newVideoDeviceInput]; [self setVideoDeviceInput:newVideoDeviceInput]; } else { DLog(@