Questions tagged [video-capture]

Questions related to computer oriented video capture and the programming tools and solutions for dealing with captured frames from a video.

2460 questions
18
votes
2 answers

Getting specific frames from VideoCapture opencv in python

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(): …
yusuf
  • 3,591
  • 8
  • 45
  • 86
18
votes
1 answer

Adding an Image Frame or Watermark for Video in Android programmatically

I am working on an Android Camera Application which have capability of Image and Video capturing. Later users can annotate on the image and add watermark to Video. All went fine when drawing Annotation on Image but failed to get no solution. In…
TNR
  • 5,839
  • 3
  • 33
  • 62
18
votes
1 answer

Run multiple AVCaptureSessions or add multiple inputs

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…
17
votes
1 answer

Record Video and play audio at same time ios

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"…
17
votes
4 answers

Android Video Capture Sample App

Is there a stand-alone sample code for video capturing in Android ?
Jason
  • 379
  • 2
  • 3
  • 8
17
votes
3 answers

How do I render a video from a list of time-stamped images?

I have a directory full of images following the pattern .png, where represents milliseconds elapsed since the first image. input.txt contains a list of the interesting images: file '0.png' file '97.png' file '178.png' file…
piedar
  • 2,599
  • 1
  • 25
  • 37
17
votes
1 answer

ios endless video recording

I'm trying to develop an iPhone app that will use the camera to record only the last few minutes/seconds. For example, you record some movie for 5 minutes click "save", and only the last 30s will be saved. I don't want to actually record five…
Adam Szeptycki
  • 387
  • 1
  • 4
  • 12
16
votes
2 answers

Can't set frame width and height with [OpenCV] cv2.VideoCapture.set()

I am trying to reduce the frame/window size of my video capture to 320x180 but I can't seem to do it. I am using a Windows Kinect for Xbox One and its connected to my pc using an adapter. I have tried setting the cv2.CAP_PROP_FRAME_WIDTH to 320 and…
blinkThrice
  • 305
  • 1
  • 2
  • 9
16
votes
4 answers

Anyone have an example of how to write audio and video simultaneously using AVAssetWriter?

Been trying to figure this out with zero success. I can write video output no problem ... but once I try to introduce a second AVAssetWriterInput to include audio the final quicktime movie is jumpy with frames being loss left and right and audio…
wgpubs
  • 8,131
  • 15
  • 62
  • 109
16
votes
3 answers

broken ffmpeg default settings detected

I am getting broken ffmpeg error while VideoWrite using X264 Fourcc codec.I have install all the dependencies.How can I rectify this problem.The sample code that I have been using is as follows. VideoWriter oVideoWriter ("path.mp4",…
Ramakrishna
  • 686
  • 1
  • 12
  • 25
15
votes
4 answers

How to capture pygame screen?

How can I capture and save a sequence of images or a video of a pygame screen? Basically I want to share my game video on youtube. Also, want to make a tutorial. The game is rendered mainly in a loop: def main(): while True: GetInput() …
lalli
  • 6,083
  • 7
  • 42
  • 55
15
votes
1 answer

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

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…
Ankush Roy
  • 1,621
  • 2
  • 15
  • 25
15
votes
1 answer

openCV Error: Assertion failed (scn == 3 || scn == 4)

I am having Assertion failed error at the last frame , while reading and writing a video frame by frame. The errors only shows at the last frame, don't know why. saw this answer here, whichs suggests to give waitkey, my code already have wait key on…
MMH
  • 1,676
  • 5
  • 26
  • 43
14
votes
6 answers

How to write a video file with OpenCV?

I am trying to write a program to analyze emotional expressions like tears. As part of my tracker I am using OpenCV to record sample videos. Particularly, I am not certain about how to correctly choose FPS (10FPS seems like it ought to work). I am…
CCS
  • 203
  • 2
  • 3
  • 6
14
votes
2 answers

Reverse video in android

I have recorded a video from camera in my app and saved in device storage.Now I want to reverse the video such that it plays from backwards.i.e. if video is of 10 seconds then the last frame at 10th second will become first frame and it starts…
Android Developer
  • 9,157
  • 18
  • 82
  • 139