video-capture

Save video in every 5 second interval while video recoding is ON (Android OS)

帅比萌擦擦* 提交于 2020-02-02 04:23:30
问题 I want to save the video every 5 seconds while the video recording is ON. I have tried many solutions but I am facing a Glitch that is, the Last Saved Frame remains in preview for around 300ms. I think the reason is in MediaRecorder class "Once a recorder has been stopped, it will need to be completely reconfigured and prepared before being restarted." Thanks 回答1: I think it's impossible to do that with MediaRecorder . The better approach could be encoding video by using MediaCodec and

How not to seek to keyframes

元气小坏坏 提交于 2020-01-31 18:32:00
问题 I've tried to find a solution to seek frame by frame (not only to keyframes) in my android app. approach: A simple VideoView of the android sdk : Here I've got a onSeekCompleteListener of the base class MediaPlayer from the onPreparedListener of VideoView and pause the playback right after started it and moved to a preferred position. Problem : Only seeks to keyframes! approach: MediaMetaRetriever : I have got something like this: MediaMetadataRetriever retriever; long Position; ImageView

How not to seek to keyframes

巧了我就是萌 提交于 2020-01-31 18:28:28
问题 I've tried to find a solution to seek frame by frame (not only to keyframes) in my android app. approach: A simple VideoView of the android sdk : Here I've got a onSeekCompleteListener of the base class MediaPlayer from the onPreparedListener of VideoView and pause the playback right after started it and moved to a preferred position. Problem : Only seeks to keyframes! approach: MediaMetaRetriever : I have got something like this: MediaMetadataRetriever retriever; long Position; ImageView

Where are video project files hidden in Windows Photo video editor?

谁说胖子不能爱 提交于 2020-01-24 22:44:27
问题 I discovered that Windows Photo has a pretty good basic video editor hidden in it. My wife used it to edit a family video. Then she wanted to save the project (clips and project file, not just the final product) to USB drive. Photo only gives you one option: Save to OneDrive. The claim is that other OneDrive devices running Photo will then be able to see the Project. However, careful inspection of OneDrive yields no file with the title of the project and nothing that obviously looks like a

Where are video project files hidden in Windows Photo video editor?

丶灬走出姿态 提交于 2020-01-24 22:44:12
问题 I discovered that Windows Photo has a pretty good basic video editor hidden in it. My wife used it to edit a family video. Then she wanted to save the project (clips and project file, not just the final product) to USB drive. Photo only gives you one option: Save to OneDrive. The claim is that other OneDrive devices running Photo will then be able to see the Project. However, careful inspection of OneDrive yields no file with the title of the project and nothing that obviously looks like a

How to maintain constant FPS when grabbing frames with opencv and python?

北城余情 提交于 2020-01-24 12:54:06
问题 I am using OpenCV4 along with python 3 to open a webcam, grab the frames and display them in a window, just like the first code tutorial provided here. However, it takes a different amount of time grabbing different frames: sometimes it takes 0.01 s to grab, and sometimes it takes 0.33 s, which creates lags when showing the frames in the window. Is there a way to force a constant time when grabbing frames so that i can see the video without lag? I think it is happening with OpenCV because

Appropriate codec for real-time video compression with DirectShow

半世苍凉 提交于 2020-01-22 16:10:07
问题 Can anybody suggest a good codec for real-time video compression? Here is a list of key requirements: Must be represented as DirectShow video compression filter Royalty-free Good quality/bitrate output comparable to the DivX on relatively low resolutions (640x480 max) Fast and resources-efficient for real-time compression Compatibility with some popular format (like MPEG-4) for wide support in different video players I mentioned DivX and I think it is a very good codec, but if I understand

OpenCV real time streaming video capture is slow. How to drop frames or get synced with real time?

和自甴很熟 提交于 2020-01-20 04:24:24
问题 Goal and problem I'd like to set up an opencv system to process either HLS streams or RMTP streams, however, I am running into a strange issue regarding a reduced frame-rate and an accumulating lag. It's as if the video gets further and further behind from where it is supposed to be in the stream. I'm looking for a way to keep up to date with a live source even if it means dropping frames. Current approach import cv2 cap = cv2.VideoCapture() cap.open('https://videos3.earthcam.com/fecnetwork

Run multiple AVCaptureSessions or add multiple inputs

流过昼夜 提交于 2020-01-20 01:44:30
问题 I want to display the stream of the front and the back facing camera of an iPad2 in two UIViews next to each other. To stream the image of one device I use the following code AVCaptureDeviceInput *captureInputFront = [AVCaptureDeviceInput deviceInputWithDevice:[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] error:nil]; AVCaptureSession *session = [[AVCaptureSession alloc] init]; session addInput:captureInputFront]; session setSessionPreset:AVCaptureSessionPresetMedium]; session

Run multiple AVCaptureSessions or add multiple inputs

痞子三分冷 提交于 2020-01-20 01:41:27
问题 I want to display the stream of the front and the back facing camera of an iPad2 in two UIViews next to each other. To stream the image of one device I use the following code AVCaptureDeviceInput *captureInputFront = [AVCaptureDeviceInput deviceInputWithDevice:[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] error:nil]; AVCaptureSession *session = [[AVCaptureSession alloc] init]; session addInput:captureInputFront]; session setSessionPreset:AVCaptureSessionPresetMedium]; session