Using DirectShow CaptureNet to add audio to avi - directshow

Hi I am using the CaptureNet application out of the box from this codeproject source:
http://www.codeproject.com/KB/directx/directshownet.aspx
What I'm trying to do is also capture audio from the mic in this whilst video from my webcam is being saved to an AVi file, I want to interleave audio into the same file. Currently the one described that comes with just video capture. I'm fairly new to this, I have managed to capture audio separatly as a WAV file but no idea where to start to save both video and audio into the same AVI file?

You need to connect audio stream to the second input pin of AVI Mux filter which is created after you connect video stream to the first input pin.

Related

how to output a tring from an nfc tag to a text file using arduino uno and pn532?

iam in a deep trouble , I have an Arduino uno and a pn532 connected to it in SPI mode , I want to read a string from an nfc tag and output it to a text file , I have already managed to read from nfc tag and write on it easily , but what Iam facing now is how to output the string contained in the nfc tag to a text file instead of outputting it to the serial monitor of the Arduino studio , any help would be greatly appreciated , thanks a lot in advance .
If you want to write the file from the Arduino itself, you have a few options, depending on the available extra hardware and where you want to save the file.
The easier is to use a SD card and the standard SD Library. On the official reference page there are lots of examples.
If you want to save it on the PC, there are several virtual terminal applications that enables you to save the sent and received data. Coolterm is one of them, Putty is another one.
You can also make your own application that receives the data from the arduino through serial communication, and handle the file saving on this application.

Avr atmega 16 with webcam

I want use the webcam for image capturing and interface that web cam with avr atmega 16. Since the images are big in size where should I store the data. And secondly, Since the webcam gives the images in a form of file format how can i decode that file format and store the details in a particular storage medium?
Thankyou in advance
I got the answer. I can use the sd card for my solution. I found the blog over the internet that showed how to interface arduino with webcam

How to save a datastream in mp3 format?

I am receiving an mp3 file in packets over network and want to save them in mp3 format on my computer. I am programming in C++ and using Qt Creator as IDE.
To be more specific, I am storing the received data in a QDataStream object which is automatically writing to the file it is connected to...
Do I need any encoding or should I just name the file MyMusic.mp3 and that was it?
Thanks in advance
If the data you are receiving is an MP3, then it has already been encoded in that format. You just need to write it out to a file that has the extension .mp3

Arduino - Play MP3 From SD Card

I have an SD Card Shield from seeed studio attached to my Arduino Uno board. I also have an SD card with a siren .MP3 file in it. I want my Arduino board to play the MP3 file but I am not sure how to get it to do that. I have a speaker connected as well.
As mentioned the Arduino is not able to decode MP3's. As an alternative you could convert the MP3 to the less cpu intensive WAVe file format then use Adafruit's Wave library to play the file out a pin.
Or you can use the VS1053 Co-Processor Shield to play the MP3 file.
The Arduino Uno does not have enough power to play MP3s in software. You will need to get a separate hardware MP3 decoder and instruct it to play them instead.
There is a new Library that will play WAV files. It can be found at https://github.com/TMRh20/TMRpcm

Custom virtual video capture device

I`m new to media foundation and C++.
But I want to create a virtual video capture device which can be used by Microsoft Expression Encoder.
Can you tell me in which direction to look?
I think it should be something working asynchronously and a source will be byte stream from mobile device.
Thanks in advance.
I don't think you want to look into Media Foundation for this. Expression Encoder uses a richer API to capture video with, DirectShow. You want a virtual DirectShow camera, which was discussed multiple times and has a simple sample project to start from.
Virtual webcam input as byte stream
Simulate a DirectShow Webcam
How to use directshow filter as a live input for Expression Encoder 4?
Supported USB Capture Devices Expression Encoder 4:
Any device that provides a dshow filter is supported by EE4.
Currently, there is no list currently available of supported devices,
though most usb devices have little to no issues with encoder.

Resources