video-capture

C# web cam WM_CAP_CONNECT: Want to force a capture source when multiple capture sources present

放肆的年华 提交于 2019-12-11 03:33:48
问题 I am using WebCam_Capture code I found online to access through C# a web cam. On a computer with one video source it works like a charm! (Program starts up at start up, finds the webcam and it works). Though on a computer with many video sources (Say a web cam and then manycam running on top of that), the program starts and queries the user which source to use. I would love my program to start up autonomously at the restart of a machine so this waiting for user input throws a wrench in that,

DirectShow - Capture Webcam While Viewing It?

空扰寡人 提交于 2019-12-11 03:27:57
问题 I am trying to make a webcam application in c# that allows users to record video. I have been using DirectShow.Net to preview the webcam and to take snapshots. But need to be able to capture video and audio while previewing the webcam at the same time. One thing I tried was using capturing multiple snapshots and converting them to a video using ffmpeg, however this obviously does not capture audio. Any ideas on how I could accomplish this? 回答1: Things you should be aware of: Capture device is

VB.NET and WebCam Select Video Source dialog

喜你入骨 提交于 2019-12-11 02:12:09
问题 So, I am building an application which needs to have access to a single webcam on the computer, the problem is that whenever I run the application I get a dialog from Windows asking to select a Video Source. I would like to make it programatically select the standard device. Does anybody have any idea on how should I approach this? Main App code: Imports WindowsApplication1.iCam Imports System.Drawing.Imaging Public Class Form1 Dim myCam As iCam Dim Dir As String Private Sub Form1_Load(sender

Hardware Accelerated Image Scaling in windows using C++

坚强是说给别人听的谎言 提交于 2019-12-11 00:36:20
问题 I have to scale a bitmap image (e.g 1280 x 720 to 1920 X 180 and vice versa). I am using this scaling in video capturing from screen. Software based scaling consumes lots of CPU scaling and slower as well. Is there any hardware accelerated API or library to perform scaling? Some methods are discussed in thread How to use hardware video scalers?. Buts no final conclusion. Support Needed : Windows 7 onwards 回答1: If you have a a IDirect3DTexture9 of the image to be scaled, you can use

Capture Thumbnail Whilte Downloading Youtube Video

守給你的承諾、 提交于 2019-12-11 00:25:46
问题 I want to capture a thumbnail of Youtube video on certain timeline. (e.g. 3.2sec) I used ytdl and fluent-ffmpeg with node.js to implement it. It was possible to capture a thumbnail when the downloading has finished. var fs = require('fs'); var ytdl = require('ytdl'); var ffmpeg = require('fluent-ffmpeg'); var videostream = fs.createWriteStream('video.flv'); var myytdl = ytdl('http://www.youtube.com/watch?v=A02s8omM_hI'); myytdl.pipe(videostream); videostream.on('close',function() { console

Directshow capture to file, nothing happens

时光毁灭记忆、已成空白 提交于 2019-12-10 22:19:48
问题 I am trying to follow through the DirectShow examples on the windows dev center to make my own application that can capture screen and audio to video: Capturing Video to an AVI File All code goes ok but nothing happens, the avi file is not appearing. The web cam is connected I can see stream with AMCap. In code cam is appearing with correct filename. The windows SDK is installed, my platform is win7 x64. My code: #include "stdafx.h" #include <iostream> #include <windows.h> #include <dshow.h>

How to record video from Front Facing Camera?

本秂侑毒 提交于 2019-12-10 21:48:47
问题 we got a requirement to record video from front and rear cameras simultaniously.. In the Android 2.1 SDK we only have the MediaRecorder.VideoSource.CAMERA and DEFAULT, but not FRONT_CAMERA and REAR_CAMERA. So, is there any other way to record from Front camera.. like any third party API's.. thank you.. 回答1: I only know of two devices that have a front camera and that are on 2.1 or that were on 2.1 (EVO and Epic in the US from Sprint). Sprint actually packages the front facing camera in a

video call using android

一曲冷凌霜 提交于 2019-12-10 15:42:43
问题 I want to develop a app which uses 3G for video calling where secondary camera will be use for video call. Is that possible to make video call? If it is possible please give me some reference or tutorial. 回答1: you should look for SIP protocol stack in android. There are various open source projects out there. look for SipDroid, IMSDroid is also a good example. And Sip Api is also available in Android after API level 9. 回答2: Another one worth looking at is the CSipSimple project. It is using

Stable way to set Max duration for MediaStore.ACTION_VIDEO_CAPTURE

大兔子大兔子 提交于 2019-12-10 13:45:30
问题 I learned from few post here that MediaStore.EXTRA_DURATION_LIMIT for capturing video, could work only from versions 2.2 ,but i am using Samsung Galaxy S II which is of 2.3.3 version . The below code seems to have no effect for max duration. Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 2000); intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); intent.putExtra(MediaStore.EXTRA_FINISH_ON_COMPLETION,true); startActivityForResult

AVCaptureVideoDataOutput and setting kCVPixelBufferWidthKey & kCVPixelBufferHeightKey

混江龙づ霸主 提交于 2019-12-10 13:08:28
问题 I'm trying to capture frames in a specific size from AVCaptureVideoDataOutput by setting kCVPixelBufferWidthKey & kCVPixelBufferHeightKey . Problem is the buffer width and height never change, they always come back 852x640 Here is me code: // Add the video frame output self.videoOutput = [[AVCaptureVideoDataOutput alloc] init]; [videoOutput setAlwaysDiscardsLateVideoFrames:YES]; // Use RGB frames instead of YUV to ease color processing [videoOutput setVideoSettings:[NSDictionary