TWAIN video capturing - twain

I tried to implement a video capture program in c# with TWAIN and a Leica DFC295 camera.
The problem I have is the Twain lib on internet only allows me to capture an image from the camera and is not able to capture the video directly from the camera.
Unfortunately I tried other technologies like Microsoft Directshow and the camera doesn't support those tools so it ends up not even able to select from the data source.
Is there any possible way to implement the video capture feature with TWAIN?
Thanks!

The answer is no. TWAIN can only capture images or a series of images but not video.

Related

What is the specifications for a-frame 360 vr video?

I'm using a-frame for a web-vr project, and I'm planning to use 3d environment I made in Cinema 4d.
But there're not much information about the specification for the video other than the format.
I already tried to make the resolution same as the sample 360 video(3168x1584) for a-frame, but it also didn't work and I want to know if there's any information about this.
Plz let me know if anyone knows any doc about this. I already tried but I couldn't find any clue yet :'(
use .mp4 format.
Best if resolution is a power of 2. ie
1024 x 2048 (or any power of 2).
Video textures are known to fail on iphone.
Can you provide a few more details about your project?
How are you viewing it (desktop, phone, platform?)
How is it failing? No image? errors in console?
I assume you have seen the aframe docs on video textures, but if not here they are.
https://aframe.io/docs/0.9.0/primitives/a-videosphere.html
https://aframe.io/docs/0.9.0/components/material.html#video-textures

How to get image from preview panel, DirectShow.Net

i am writing an app that preview then capture video from a Video Device (ex:Cam), i didn't found a solution to take a snapshot during capturing with a ASF format.
so i thought i could take a picture from the preview panel but the background-image didn't contain it, and the image property of is null if i use a Picturebox .
do anyone knew how Directshow use the panel or Picturebox to preview video?
Typical solution for capture with preview is to add a tee (smart tee) and then do writing and presentation on the outputs of that tee respectively. PlayCap DirectShow.NET sample shows how to visualize video feed. Video renderer provides methods to read back last presented video frame, so that you could make a snapshot out of it.
Separate parts of this task have been discussed many times, including here:
Preview a camera in DirectShow and capture a still image - in VB.net
VB.Net Directshow Webcam Snapshot
Capturing pictures from webcam at high resolution while previewing at a lower one using DirectShow.Net
DirectShow - Capture Webcam While Viewing It?

How to resize Video capture in DirectShow?

I've look around in the documentation but can't find a good way to do this.
I capture video from my webcam and connect it to a ISampleGrabber filter to take screenshots. Which works fine but I would like to be able to scale the resolution on the video.
Thanks for any guidance!
Resizing in software is a relatively expensive operation, for which you also don't have an out of the box working component in DirectShow. You are typically more interested in setting proper capture resolution in first place, so that you don't need to resize.
Can't change video capture resolution using c#
Video Capture output always in 320x240 despite changing resolution
To resize video on runtime, you need either third party filter, or a custom filter, or instead copy a video from DriectShow pipeline and resize it there e.g. using StretchBlt API.
You can do the re-sizing job by manipulating the bitmaps you captured from directshow and then push them to new video file. However I generally do not recommend that .
FFmpeg already have this function integrated.
ffmpeg -i input.avi -s [width]x[height] output.avi

Apply a Filter to a Camera video stream publishing to Media Server

I am Trying to Apply some information Like text and An Image as an overlay to create a overlay effect as lice a security camera with time and date on the video along with a png based Logo.
I can record VIDEO Using Flex and FMS or any other Media Server. But I want to save a modified version of the stream being uploaded.
Use camTwist (mac) or webcammax (pc) as your video input...you can use that program to use the webcam and then add whatever over it (text, date). Use Flash Media Live Encoder and select camTwist as your video source. Stream and save your recordings using that FMLE.
Sorenson Squeeze is pretty awesome for this and is cross platform. Camtwist is cool but it's not really a 'pro' app, that makes me sound way snobbish. It's actually pretty fun and a good suggestion for a simple result but I haven't found anything better than Sorenson Squeeze for the features and control it gives you.

Flex video/audio chat for a site

Looking for a component which can be embedded inside my site (PHP, ASP.NET...whatever) and give a support for video chat.
I'm not a flex developer and would like to use a component. There are some/many video chats available, like flashcoms, red5chat...but all of those are heavy(monolit) components.
What I would like to have on my site is just a small video showing output from my camera (me) and another video showing the other party...but those videos should be split, not in the same flash component, but separate (two different EMBED tags on my page).
Are there any components available to do that (of course with support from appropriate media server)? Are there any good guides on how to develop such a component?
Thank you very much!
You will have to program in flash, there is no stright direct components just waiting to be implemented, you can use flash CS3 instead of flex!!
Which let you built an small video object to display the camera, publish it, and then capturing on another swf with an small video object but there you play a NetStream Object and add it to an Video Object and voila!!!

Resources