How do you compress captured video in Silverlight?
One of the big deals in Silverlight v4 is audio/video capture... but I haven't found an example yet that does what I want to do. So:
How do you capture audio/video with Silverlight (from a webcam), and then save it as a compressed format (WMV or MP4)? The idea here is to upload it after compression.
Have already looked at this blog post for the capture piece, but need to find a way to compress audio/video for upload.
Silverlight does not support video encoding and more likely this won't be implemented at least by Microsoft. To transmit video over network, some people use "pseudo-MJPEG" codec by compressing individual frames as regular JPEG images. Some people even improved that idea by dividing frames into fixed block (say 8x8), and only transmits changed blocks (with lossy comparison).
If you're a veteran programmer and enjoy coding, here is another slightly improved version of "psuedo-MJPEG" idea:
This is more or less a standard JPEG algorithm actually. But, actual advantages over standard JPEG are:
Another option could be pay for 3rd party software (sorry, I don't know any free software). I find that product. I didn't used it at all. But, I believe it could be useful for you.
链接地址: http://www.djcxy.com/p/81024.html