wfcirilo / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

MJPEGStream object not working well when using VideoFileWriter to record in .NET framework 4 #334

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create MJPEGStream to display the video of IP Camera on pictureBox
2.Record the video stream using VideoFileWriter
3.

What is the expected output? What do you see instead?
There will be video display of the IP Camera on pictureBox as like using .NET 
framework 3.5
There is no display on the pictureBox and could not do any recording using 
VideoFileWriter object.

Please provide any additional information below.
When in .NET framework 3.5, there is video display streaming of the IP Camera 
on PictureBox, and able to record the streaming in .avi file with the selected 
codec.

When in .NET framework 4, only the video display streaming of the IP Camera on 
PictureBox is working well without the use of recording. Once add in the 
VideoFileWriter to record, video can be streamed to the PictureBox.

Original issue reported on code.google.com by leejy0...@gmail.com on 27 Feb 2013 at 1:19

GoogleCodeExporter commented 8 years ago
You better narrow down you issue. MJPEGStream seems to work fine from what 
you've described, so don't see any issues. There may be a problem with 
VideoFileWriter, but this a different thing. Don't need to mess things together.

I would suggest to try using VideoFileWriter on its own with .NET 4 application.

Original comment by andrew.k...@gmail.com on 27 Feb 2013 at 9:42

GoogleCodeExporter commented 8 years ago
Not an issue of the framework, but it is an issue of your application.

Using AForge.Video.FFMPEG in .NET 4 generates exception:
"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and 
cannot be loaded in the 4.0 runtime without additional configuration 
information."

That is why you don't see any video.

You can:
1) Rebuilt framework for .NET 4;
2) Or use solution from here:
http://stackoverflow.com/questions/2455654/what-additional-configuration-is-nece
ssary-to-reference-a-net-2-0-mixed-mode

P.S. Learn debugging before posting bug reports.

Original comment by andrew.k...@gmail.com on 27 Feb 2013 at 9:51