Creating audio visualizer using libvlc - c#

I am trying to create a audio wave visualizer using libvlc. Have searched the net thoroughly but was unable to find any help. It would be really great if anyonce can help me out here.
Thanks in advance :)

I think, you can get waveform with the help of Stream to memory module (smem)
https://wiki.videolan.org/Stream_to_memory_(smem)_tutorial/

Have a look at MediaPlayer Class.
MSDN:
http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx
It is a wrapper around Windows Media Player which will let you do in code most of what WMP can do.
If you are using .NET 2.0 you will have to look at Windows Media Player SDK.
In that case, this answer might be helpful for you.

Related

Get system audio stream buffer for visualization

I tried getting the system output device stream buffer using NAudio but I had this problem:
C# Unity 3D NAudio throws NullPointerException while checking for default audio endpoint
The same exact code mentioned in that question works just fine in my windows forms projects(outside Unity).
NAudio would be the perfect solution for me, but it just doesn't want to cooperate with Unity for some reason. So is there any free alternative to NAudio or any other free possible solution for this problem?
I personally have used FMOD to great success, for help on how to integrate into unity you can look at an open source project that utilises it to great effect :) here: https://github.com/OrderOfThePorcupine/ProjectPorcupine.

Kinect recording a video in C# WPF

I want to record my kinect camera vision.I have searched, but I couldn't find any C# same core codes. Do you have same simple codes or same suggestions? thanks.
I believe the AForge library may be of use to you. Here: http://www.aforgenet.com/framework/features/ffmpeg.html you can see how you can instantiate a VideoFileWriter and write individual frames into it.
I am using this kinect record library for the kinect Kinect toolbox library
http://kinecttoolbox.codeplex.com/
and here is a tutorial
http://blogs.msdn.com/b/eternalcoding/archive/2011/07/04/gestures-and-tools-for-kinect.aspx

FFmpeg and DirectSound/XAudio2 in C#

I have been attempting to get this working for a while and am a bit stuck.
I am attempting to be able to play a video in C# using libavcodec outputting to DirectX and either DirectSound or XAudio2. I have managed to get it to play a video, but am stuck on getting it to output sound.
It doesn't help that I have had no experience with either of DirectSound or XAudio2, or that libavcodec has little documentation. I have managed to get the audio codec, but am stuck trying to decode it or output it through DirectSound/XAudio2.
If anyone is able to either point me in the right direction, or just tell me how to do it I would be grateful.
I am currently doing approximately the same thing as you and am also stuck at the same point! All I can tell you for now is, if you haven't found it, there's a good tutorial showing how to do it with SDL at An ffmpeg and SDL Tutorial, using SDL_Audio for audio playback.
I am looking to see how to adapt this for XAudio2 or DirectSound and if I find anything more I'll let you know. Am currently reading through the official XAudio2 documentation at MSDN.
Good luck!

So I want to make a basic music visualizer in C# as practice. Is there a library that lets me handle sound files easily in C#?

What is a sound library I can use to easily manipulate sound files (mp3, ogg, wav, etc.).
I'm doing this as a leasure project and as such I'm more than willing to read a bit because I want this to be a little learning experience.
Any help, SO? :D
If you need more than just .wav files, as it appears you do, and you're using .NET 3.0 or higher, have a look at:
MediaPlayer Class
It's basically a wrapper around Windows Media Player, and will let you do in code most (if not all) of what WMP can do.
If you're still in .NET 2.0, have a look at the Windows Media Player SDK, which is a significantly uglier wrapper around Windows Media Player. See this answer.
SoundPlayer class for wav. At the bottom of that documentation there is a link to a page explaining how to also play mp3 and wma.

Using c# .NET 3.0 on a Windows XP machine, what is the most efficent way to record from multiple webcams?

I am trying to figure out what APIs to use to connect and record from a webcam. In al of my research, Google, I have found many OLD articles which discus Directshow and COM. I don't want to write code that is using an obsolete API.
Any direction with this is greatly appreciated.
DiectShow is still the best way to connect to Webcams (or other sources).
You can use DirectShow.NET which is a thin warpper arund DirectShow.
If you are using Vista, you can use the new Media Foundation APIs. But, they are not available on XP, so DirectShow is the way to go. The DirectShow.NET wrapper pointed to by Shay works great with C#. Be sure to also download the Samples, there are several capture samples worth checking out like PlayCap and CapWMV.
UberDemo wrote an article about another way of capturing using the Windows Media Encoder SDK with WPF in this article.
avicap32.dll I guess is the safest option due to its readily availability... http://channel9.msdn.com/forums/TechOff/93476-Programatically-Using-A-Webcam-In-C has the PInvoke code you will be needing.
http://codeplex.com/touchless is an interesting related project!

Categories