My app captures jpegs from a USB cam and I upload each frame to my server using wcf. I then render these images to a canavs control on a client browser.
Is it possible to encode to a mjpeg stream and upload that then to the html5 video element (in real-time). What would you recommend I use? I am on a Windows Platform ad using C#.
You seem to know what you are talking about and I liked your article so I thought I would pose the question
For what you are looking to do, your best bet may be to record your video format in real time using a live streaming service, then saving the recording for a later date, which users can view at their convience.
This allows you to live stream your video. It will also be uploaded to Azure for you automatically.
From there, I'd suggest integrating the Azure Video Player into your website, and pointing it towards your feeds, so that viewers can locate your previously recorded video content and watch it through your player. The advantage of using this is the fact the video format adapts to the device your user is viewing it from. No additional work on your end.
Dave, thanks for those links. Much appreciated and I will certainly take a look.
Do you know if it is possible to avoid using Azure and host this myself? The reason i ask is that there will be many clients with their own cameras uploading to my server and the client's client' will be wanting to view it real-time via a browser.
I am not sure if Azure would be viable for this scenario.
I did look at ffmpeg but ffmpeg server (which is what I need) only seems to server Linuz boxes..
There are multiple ways of looking at this.b The Azure portion can do several things:
Azure Media Services:
Converts your video from one format (say, .MP4) to a number of other formats, including the ability to generate a manifest file for smoothstreaming.
Azure web hosting:
Host your website where clients can view their feeds. Just supply a unique URL to the video player for each client.
Azure Media Player:
You only need this if you are using Media Services,as this will auto-detect the device the client is using, and supply the correct video feed to this video player for you.
Otherwise, you'd have to write the code in your video player of choice to handle the selection of the apporpriate format.
So no, you do not need Azure for what you would like to do. Azure can simply provide a few services to fill in the gaps where you amy be missing anything.