how to implement a fake webcam? - delphi

I want to play a recorded movie as my webcam? How can i do this , i am a Delphi programmer it's necessary to write a device driver ?
I am waiting for ideas on getting this task done.Thank you!

You'll want to take a look at the Windows Image Acquisition service. At first glance it looks like you're correct. You will probably have to write a user mode driver to do this. Once this is accomplished you should be able to stream your movie through any software that takes advantage of a webcam.

If you want the movie to be accessible to webcam-related APIs and OS features, then yes, you would need to write (or find a thirdp-party) device driver that is usable by multimedia APIs.

Related

Cam streaming Flash client/widget

I'm looking for a Flash widget that does this: http://i.imgur.com/eRKhvkK.png
That's from a webcam streaming site that does what I need, the four boxes are a screenshot of each step of their widget:
Connecting screen, enable webcam prompt, configure and broadcast with a cam preview, broadcasting window with a cam preview with option to stop broadcast.
It doesn't need to be exactly the same, just something similar. Are there any open-source solutions or packages that offer this that I can use on my website? I'm open to the idea of coding it myself, but I've never touched Flash before, so I'll need help with resources on what I'll need to create such a widget. Preferably there's something out there that does this already, or close to this, that I can modify to meet my needs.
The only thing I found was this: https://github.com/AF83/webcam-streaming -- but it doesn't provide any interface or configuration window, it just starts streaming straight away. I could potentially modify this if there's no other options out there, but I have no idea how to add all of those UI elements, how to hook them together, or what software I need to do so. If this is the only option I have, can you please point me in the right direction in learning how to do that (I use Windows 7 64bit).
Thank you!
I have exactly what you need : an open source publisher in flash with video preview. The source code is on github at https://github.com/MonaSolutions/MonaClients/.
This is our sample and it work with MonaServer installed on our raspberry pi, this is good for testing but for production you will need to install an RTMP or RTMFP server. If you want to use MonaServer you can go to our installation page or download the windows binary from sourceforge : http://sourceforge.net/projects/monaserver/files/MonaServer_Windows_32.zip/download
Then if you want to modify the source code and implement a better-looking client you can use FlashDevelop, it's free and complete.
For information it is also possible to broadcast with WebRTC and HTML5 rather than RTMP/RTMFP and Flash.

iOS Audio Service : Read & write audio files

guys.
I'm working on some audio services on iOS.
I trying to search any examples or tutorials about
how audio service or stream can read a existing audio file than
process something like filter, than write another file.
Is there any body who can help me?
Dirac3LE (by Stephan M. Bernsee) is a great library for this job.
There are examples and manual included in the download.
It is particulary inteded for time and pitch manipulation
but in your case you'll be interested in its EAFRead and EAFWrite
classes.
If you want to get familiar with the lower level library that you can also use for microphone input/sound output, and that you can get raw samples into and out of, I would suggest taking a look at Audio Queue Services.
I used it in my side project to get audio from the microphone, and I also wrote some code you might find useful to do fast vectorized, FFT based FIR filtering on input audio. You can find the code here https://github.com/jamescarlson/FreeAPRS

XNA | C# : Record and Change the Voice

My aim is code a project which records human sound and changes it (with effects).
e.g : a person will record its sound over microphone (speak for a while) and than the program makes its like a baby sound.
This shall run effectively and fast (while recording the altering operation must run, too)
What is the optimum way to do it ?
Thanks
If you're looking for either XNA or DirectX to do this for you, I'm pretty sure you're going to be out of luck (I don't have much experience with DirectSound; maybe somebody can correct me). What it sounds like you want to do is realtime digital signal processing, which means that you're either going to need to write your own code to manipulate the raw waveform, or find somebody else who's already written the code for you.
If you don't have experience writing this sort of thing, it's probably best to use somebody else's signal processing library, because this sort of thing can quickly get complicated. Since you're developing for the PC, you're in luck; you can use any library you like using P/Invoke. You might try out some of the solutions suggested here and here.
MSDN has some info about the Audio namespace from XNA, and the audio recording introduced in version 4:
Working with Microphones
Recording Audio from a Microphone
Keep in mind that recorded data is returned in PCM format.

Is there a virtual/dummy IMAQ camera for LabVIEW?

I'm writing LabVIEW software that grabs images from an IMAQ compatible GigE camera.
The problem: This is a collaborative project, so I only have intermittent access to the actual camera.I'd like to be able to keep developing this software even when the camera isn't present.
Is there a simple/fast way to create a virtual or dummy IMAQ camera in software? Ideally I'd like the dummy camera grab frames from an AVI or a stack of JPEG's. Something like this must exist, I just can't find it on Google.
I'm looking for something that won't take very long (e.g.< 2 hours effort) and that is abstracted away through the standard LabVIEW IMAQ interface, so that my software won't know or care whether its dealing with a dummy camera or an actual camera.
You can try this method using LabVIEW classes:
Hardware Emulation Using LabVIEW Classes
If you have the IMAQdx driver, you might consider just buying a cheap USB webcam for $10.
Use the IMAQdx driver (assuming you have it), and then insert the Vision Acquisition Express VI, and you can choose AVIs or even pics as a source.
Something like this: GigESim is a camera emulation software. Unfortunately it is proprietary and too expensive (>$500) for my own needs, but perhaps others will find this link useful.
Anyone know of a viable Open Source alternative?
There's an IP Camera emulator project that emulates IP camera with python. I haven't used it myself so i don't know if it can be used by IMAQ.
Let us know if it's good for you.
I know this question is really old, but hopefully this answer helps someone out.
IMAQdx also works with Windows DirectShow devices. While normally these are actual physical capture devices (think USB Webcams), there is no necessity that they have to be.
There are a few different pre-made options available on the web. I found using Open Broadcaster Studio and this Virtual Cam plugin to be easy enough. Basically:
Download and install both.
Load your media sources in the sources list.
Enable the VirtualCam stream (Tools > VirtualCam). Press Start.

How to write virtual audio device driver for WinXP

How to write simpliest audio virtual device driver in WinXP? I know that one way is to write a WDM driver but I suppose it is not an easyly task. I need to implement some audio filtering for a Flash based application. Unfortunatelly it seems that it is the only way to do it - outside a Flash, by a device driver, then a Flash app can attach to my virtual device.
I was wondering if I can write a device driver using some high level API (higher that WDM), maybe UMDF as virtual usb audio device(?) or maybe only some dll which will register a virtual device. As I can see Google Talk plugin contain googleadapter.dll which provfides virtual webcams, I wonder how they wrote it.
Thanks in advance,
ternyk
For WinXP it is enough to write Installable Driver which is a simple user-mode dll. However it will not work under Vista or higher because they have different audio model.
What API? First thing i'd worry about is learning how the app(s) interface with Windows and the best way to do this is to actually learn how to code an application with audio using the same interface. So, if it uses DirectSound audio, learn how to code an application which uses DirectSound.
The reason i say this is that once you know how your code works you will also know what API need to be hooked. Then it goes from there, code the loader/dll injector so that it performs what you're after.
Finally, don't forget to use Google to do as much research on your own first:
[quote]Give a man a fish, he'll eat for a day... Teach a man to fish and he'll never go hungry again...[/quote]

Resources