 |
|

|
Hi Massimo Conti,
Cool Demo, really nice!
But where is the audio when preview ? Would you please demo show how to play out audio using Expression? Actually preview is not just have a look without any audio. right ? THANKS
Johnson
|
|
|
|

|
I am not able to view the broadcast on a remote computer how do i go about it...!!
plzzz help me...!!
in desperate need for this...!!
Gaurav Sagwan
|
|
|
|

|
I downloaded the application. It is working great!. But it works only for 4 times. Fifth time when I click on Preview button, it shows black screen in preview window. If I close the application and run it again then it works. but only 4 times. It does not work continuously.
Pleas help. It's an urgent.
Thanks
|
|
|
|

|
Nice demo! I have been searching for some example C# code for several days to help me manage my webcam for a work project. I was amazed at how few good examples were to be had, as I require both Video AND Audio capture. Most examples just do video or require 3rd party software or were actually wrappers from C++ (which I know, but not as well as C#). Your example doesn't do exactly what I need, but at least you got me started and hopefully I can find the remaining answers in the MS Expression Encoder docs.
My only suggestion would be that you post a link to those docs on this page, but I'm guessing I can find them without much trouble. Thanks again!
|
|
|
|

|
Hi,
I downloaded and executed the code.
But, I am getting a black screen for preview.
While recording, I am able to record the videos.
Please help me.
|
|
|
|

|
How do I display a text on the image. When recording is on file in?
|
|
|
|

|
Thanks for this projet. It works perfectly on Windows 7.
However, error occured on Windows 8 on Preview click button...
|
|
|
|

|
It is actually what I`m looking for ! =)
|
|
|
|
|

|
using Microsoft.Expression.Encoder.Utilities;
using Microsoft.Expression.Encoder.Types;
not found
i added the refernces but i not able to namespace in my project help me please
|
|
|
|

|
When i run the project it only shows "Screen Capture Source" , i have checked that the webcam is conected and working ok with other aplicaction such as skype etc
|
|
|
|

|
well i just realized that when i run from VS2010 it only detects screen capture device but if a i run the .exe file it detect my camera
|
|
|
|
|

|
can EE4 capture and record video from ip camera?
|
|
|
|

|
First of all i want to thank you for this article. It's very useful. And for fun i try to adjust it using wcf. Everything work fine except live screen capture streaming. I don't know what i really make wrong but after broadcasting the live screen capture i got video with black background wheras audio works perfectly.
Can you help me to fix my issue?
Thank.
|
|
|
|

|
It works almost perfect...
|
|
|
|

|
I got 2 webcams
If i use the "logitech C270" no problem
If i use the "logitech HD Pro C920" witch I want to use i get the follow error at:
_deviceSource = _job.AddDeviceSource(video, audio);
Unable to create Device. It may be in use or not functioning.
hopefully someone has an idea
|
|
|
|

|
Hi, new to C# and Visual Studio here. I downloaded the source code but I only see frmEE4WebCam.cs, frmEE4WebCam.Designer.cs, frm$$4WebCam.resx, and Program.cs. Also, how do I implement this in an existing project?
|
|
|
|

|
Can u help me to do the same in c# .net frame work?
|
|
|
|

|
Hello,
Good job. It's work well. But now I want to write something in front of the video and can't...
Label transparency doesn't work and drawstring doesn't anymore...
Have you some idea?
Thanks
|
|
|
|

|
hi guys please help me my final year project
i need security camera system
that can detect four cameras
and start recording when detects a motion
and stop recording when motion became static
save recorded video to a folder with the date and hour
any idea or code
hint: i'm using vb2010 and 64 bit computer with windows 7 professional
|
|
|
|

|
this is exactly what I needed)Thanks
|
|
|
|

|
Hi,
great project - thanks!
I have a minor issue though. When I install the application on a secondary machine the application hangs when the _videoDevice is addded to the _job. The camera is properly connected and the _videoDevice is created properly.
Any clues?
_videoDevice = EncoderDevices.FindDevices(EncoderDeviceType.Video).Where(p => p.Name == "Digital microscope").FirstOrDefault();
_job = new LiveJob();
_deviceSource = _job.AddDeviceSource(_videoDevice, null);<--- Here
Cheers
/T
modified 14 Jun '12 - 11:37.
|
|
|
|

|
what are the modifications that i should made to broadcast this live video on the internet.please help me i need this for my university project...thanxxx
|
|
|
|

|
This source is really helpful for me Thank you :X
But I get a problem about video quality. It becomes lagging (delay image) after I run it for 1 minute.
Anybody have any ideas for this problem :(
|
|
|
|

|
One more thing, when I compile successful and I run it ok on my laptop (my webcam is actived). But I copy an exe file to another laptop, it doesn't work ? Do I need to install Microsoft Expression Encoder 4 into that laptop? Is it necessary?
|
|
|
|

|
I wanna grab 1280x720 as I have a Microsoft HD-3000.
I tried to force
panelVideoPreview.Size = new Size(1280, 720);
_job.OutputFormat.VideoProfile.Size = new Size(1280, 720);
But it didn't work.
Any ideas?
Tks!
|
|
|
|

|
thnks for the code i was looking for it.but i need to is there any way to see the steamed video in a website.like asp.net.because i need to see the video through web.thanx again...
|
|
|
|

|
Thanks for your reply,and sorry my english
i start my university project "live stream over LAN" and your project help me ,can you help me on this project,or sned me tips for this project
|
|
|
|

|
Great article,
Is there a way to use a database to save and retrieve the encoded result rather than a physical file.
|
|
|
|

|
I can get my feed of Camera on this app but ,if i press Record Button ,app can thrown expection
Overall this app is awsome
|
|
|
|

|
I guess you have the UAC (User Accout Control) enabled.
If you need UAC enabled, try to run the application with 'Run as Administrator'.
You could also disable it and try again, or simply change where to save the stream, so NOT in C:\, but in your Document Folder.
I hope this helps.
|
|
|
|

|
first of all good job ! .. but streaming is giving a delay.. any suggestions on how to put performance better ? Also, how is decoding done on the receiving end?
|
|
|
|

|
Great work. Just a quick question. How would I go about converting the stream and the audio from LiveJob into a byte array/stream so that I can transmit it over a network with WCF? Thanks for any suggestions.
|
|
|
|

|
any ideas guys? is it at all possible to get the capture output as a Stream object?
|
|
|
|

|
Simple and straight to the point, excellent !
|
|
|
|

|
Great piece of work!, but I had to change the folder where program saved to other than C:\ before the pics and vids actually got saved to my hard drive? I am running win 7 64 bit HP pavillion dv6 with updated OS and BIOS and C# Express as well, using the HP true Vision webcam integrated into the laptop. I changed to c:\\Users\\... and found them. Thank you *****
|
|
|
|

|
You have 15 for the frame length param. But the param is not frame rate, it is frame LENGTH measured in 100ns units.. so for 15 fps you need to call this instead:
_deviceSource.PickBestVideoFormat(new Size(1280, 1024), 10000000 / 15);
|
|
|
|
|

|
You cant use 15. Thats the frame rate. Instead you need to pass 10000000 / 15 for the value. That will give you the frame length for 15 fps. It will make a huge difference because passing 15 will ask for a frame rate of 666,666 frames per second... which is impossible so the call will never yield a match for your request.
|
|
|
|

|
ie look closely.. the second argument is frame LENGTH.. not frame RATE.....
|
|
|
|

|
Yes, you are right. I got it.
Thanks
|
|
|
|

|
Hi, I'm trying to use the streamed webcam on the receiving end to do Face Recognition, and cant find a way to make use of the MediaElement which is responsible for handling the http client side of the stream, and turning it into video.
I don't want/need a wpf app with a control and a video feed being constructed out of the http stream. Instead, I need to get a hold of the series of video frames on the receiving end, either as C# Image/Bitmap objects, or even as a byte[], which I can then turn into the Images.
Can I leverage the MediaElement to get a handle to those video frames, or do I need to reconstitute them myself?
|
|
|
|
|

|
If you have a window over the window you want to capture the capture will be an image of the over window or if you minimize the window occurs the same, you'll capture a screenshot of the coordenates. This method is a capture of screen with coordenates.
How it would be the capture image of the streaming???
|
|
|
|

|
Actualy it seems it is not in the sdk yet the possibility to take a snapshot from a live straming. You could try to contact Microsoft. Anyway I thought about a solution in 5 minutes and I came out with the following:
// Add a new button to the form called 'btnGrabImage2' and double click on it.
// Add the code below for that method.
private void btnGrabImage2_Click(object sender, EventArgs e)
{
string strVideoFile;
btnGrabImage2.Enabled = false;
btnGrabImage2.Refresh();
FileArchivePublishFormat fileOut = new FileArchivePublishFormat();
strVideoFile = String.Format("C:\\WebCam{0:yyyyMMdd_hhmmss}.wmv", DateTime.Now);
fileOut.OutputFileName = strVideoFile;
_job.PublishFormats.Add(fileOut);
_job.StartEncoding();
try
{
Thread.Sleep(200);
_job.StopEncoding();
string strGrabFileName = String.Format("C:\\Snapshot2_{0:yyyyMMdd_hhmmss}.jpg", DateTime.Now);
toolStripStatusLabel1.Text = strGrabFileName;
var video = new MediaItem(strVideoFile);
using (var bitmap = video.MainMediaFile.GetThumbnail(new TimeSpan(0, 0, 1), new System.Drawing.Size(640, 480)))
{
bitmap.Save(strGrabFileName, System.Drawing.Imaging.ImageFormat.Jpeg);
}
btnGrabImage2.Enabled = true;
btnGrabImage2.Refresh();
}
catch (Exception ex)
{
toolStripStatusLabel1.Text = "Exception error in job_Status event --> " + ex.Message;
}
}
Basically the idea is this:
Let it start to capture the video streaming to file and after the fist frame stop it and take the first Thumbnail from that file.
I hope this help.
|
|
|
|

|
Thank you for this, it really helped me with a problem I was having. However, creating a media item from a file is a bit time consuming, is there any way to stream the video to an in-memory object and then taking a thumbnail from that object?
|
|
|
|

|
The current source I downloaded has this:
private void cmdGrabImage_Click(object sender, EventArgs e) {
// Create a Bitmap of the same dimension of panelVideoPreview (Width x Height)
using (Bitmap bitmap = new Bitmap(panelVideoPreview.Width, panelVideoPreview.Height)) {
using (Graphics g = Graphics.FromImage(bitmap)) {
// Get the paramters to call g.CopyFromScreen and get the image
Rectangle rectanglePanelVideoPreview = panelVideoPreview.Bounds;
Point sourcePoints = panelVideoPreview.PointToScreen(new Point(panelVideoPreview.ClientRectangle.X, panelVideoPreview.ClientRectangle.Y));
g.CopyFromScreen(sourcePoints, Point.Empty, rectanglePanelVideoPreview.Size);
}
string strGrabFileName = String.Format(@"d:\temp\Snapshot_{0:yyyyMMdd_hhmmss}.jpg", DateTime.Now);
toolStripStatusLabel1.Text = strGrabFileName;
bitmap.Save(strGrabFileName, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}
|
|
|
|

|
Hello Chad Z. Hower aka Kudzu,
Yes that code does the grab image.
The problem is that if there is a windows over the panel (for example the notepad), you get it and not the picture that is below. May be the same problem could occur if the application is minimized and you want to grab the picture.
I hopw now you got the issue.
Regards,
Massimo.
|
|
|
|
 |