How to set output sound device with selenium in c# - c#

I have 30 virtual audio devices and I need to get output from each browser to process audio in real time. To get audio output I am using c# library (naudio) that connects to audio device and gets audio stream. Basically, I need to get sound stream from every browser. How can I set audio device? Or maybe use different way to capture output stream?
I tried using use-file-for-fake-audio-capture to get audio stream from file, but it can not be done for real time processing.
I am using seleium to control browser to get to websites which audio I want to process (eg. youtube or facebook). But I have like 30 browsers running at the same time. I think I can use NAudio library to capture stream from a specific application but I didn't find some information about it.

Related

How to live uploading video on a folder while filming at the same time this video in c# for ASP.NET Wep Api?

is there a way to live upload a video in a folder while im filming it?
I mean by that that while im recording a video i want at the same time uploading it on a folder:if i cut the record intentionnaly or unintentionnaly there will be a copy in the folder as it's live uploading.
you want to essentially ensure that if there is an issue, the video is still saved. This solution is not c# based, but more based on web streaming protocols.
Many live streaming services offer the capability to save a video after a live stream is completed. api.video allows you to live stream (to no one, if you desire), and upon completion, a copy of your video is available (nearly instantly) for playback on the server.

Convert JPEGs to H264 and stream to my server

I have a c# app.
At the moment I upload jpegs to my server to be rendered onto client browser to give the appearance of a video.
To save on bandwidth I am considering whether I can convert these jpegs to H264 video format and provide a constant stream to my server.
I have seen example (notably) on this forum that will do this using ffmpeg.
However, the examples show that the video is created and THEN can be uploaded to my server.
The only way I can see this working is to do continuous 'cut off''s of say 15 seconds worth of footage and upload to my server.
Is there a better way?
ADDITIONAL NOTES ABOUT MY APPLICATION
The main point of the application is to allow customers to view motion caught on their CCTV cameras - using IP cameras - via a web browser.
These images HAVE to be MPJEG format.
The other side of the application is that the customer also wants to see live streaming on the browser as well.
Normally, to do this with a high FPS rate and low bandwidth usage the H264 encoder is used. But, H264 uses predictive encoding which cannot be used for motion 'stills'.
The live streaming I have at the moment is not bad. But will never rival H264 either in FPS or/and bandwidth.
So, I wanted to see if I can have 2 streams going to my server. One would save motion 'stills' to the hard drive and the other will display the live feed.
To achieve this I would presume I would have to do this 'cut off' at time chosen by me - like 15 seconds.
The better option would be to never have a cut off but pipe the stream to my server.
FFMPEGServer seems to offer this but is not available for Windows OS.
I am unsure how to use FFMPEG to send a 'stream' to my server and then receive it on my server C# code.

Audio and Video streaming at the same time using C#

I'd like to create an application client-server in C# (WPF).
On the server side I want to make a capture from few cameras and I want to send a preview to client (monitoring system).
Apart from that client can select one of the preview and take the audio stream from one of the camera.
What library I can use to get stream from few webcams simultaneously?
What about audio streaming from one of the camera?
I don't know how to synchronize video and audio streaming.
Do you have any idea how to achieve this functionality?

Stream microphone input to HTML5 using c#

I want to capture an audio source such as mic or sound card using c# and stream it to a remote HTML5 application preferably using the HTML5 "Audio" tag.
I don't want to use browser plugins (such as VLC or Flash)
I need the latency to be minimal.
Thanks!
Uzi

.Net code to capture HDMI input from external device

I have a pet project I want to write that would require a .Net application to be able to capture a video stream from an HDMI input into the PC. I see capture h/w devices out there that will allow for HDMI input, but these normally come with their own software for the client. Is there a h/w appliance that will allow me stream via HDMI into my PC and then capture that stream directly using .Net? Or, is there a different approach that I should be looking for?
The important part is that I want to get the video stream from an external video source that outputs via HDMI into a .Net application on my PC.
Thanks
Neil

Categories

Resources