<p>How to encode video on the fly and send it trough the network from C#?</p>

<p>Can't find a suitable library. I need to encode in WMV and don't mind if the actual encoding is made in C++ as long as the library has a .NET assembly available.</p>

<p>Thanks</p>

[{'answer_id': 44222, 'author': 'spoulson', 'author_id': 3347, 'author_profile': 'https://Stackoverflow.com/users/3347', 'pm_score': 2, 'selected': False, 'text': '<p>I\'m aware of <a href="http://ffmpeg.mplayerhq.hu/" rel="nofollow noreferrer">ffmpeg</a>, but it is native C code only.  If you\'re ok with interoperability this may be your ticket.</p>\n\n<p>Edit: It turns out someone already wrapped this in a .NET assembly.  It\'s called <a href="http://www.intuitive.sk/fflib/" rel="nofollow noreferrer">FFlib.NET</a>.</p>\n'}, {'answer_id': 44529, 'author': 'Andrew Burns', 'author_id': 3683, 'author_profile': 'https://Stackoverflow.com/users/3683', 'pm_score': 0, 'selected': False, 'text': '<p>Depending on what you are encoding (size, framerate, hardware, etc) real-time encoding may not even be possible.  Video encoding is VERY CPU intensive.</p>\n'}, {'answer_id': 2453802, 'author': 'Mike Pollitt', 'author_id': 221432, 'author_profile': 'https://Stackoverflow.com/users/221432', 'pm_score': 2, 'selected': False, 'text': '<p>I use the Windows Media Format SDK, although I admit I use it directly in C++ native code. I believe it can be called from managed code.</p>\n\n<p>This is now included as part of the Windows SDK here: </p>\n\n<p><a href="http://msdn.microsoft.com/en-us/windows/bb190307.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/windows/bb190307.aspx</a></p>\n\n<p>(or you can download it separately - see the list in the left-hand panel)</p>\n\n<p>Be warned, it is a fair bit to get your head around. However, there are sample code resources which should assist.</p>\n'}]
['https://Stackoverflow.com/questions/44161', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4269/']