LEADTOOLS Support
Multimedia
Multimedia SDK Questions
Encoding video using Windows Media Encoder & LEADTools
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, May 8, 2008 1:13:44 PM(UTC)
Groups: Registered
Posts: 2
Hi,<p>
I'm trying to encode capture video using MS Video 9 Encoder.<p>
I've created a sample application in .Net2/C# using LEADTools 15 which captures live video and allows choosing from available video encoders.<p>
The list is composed using <b>AxLTMMLib.AxltmmCaptureCtrl.VideoCompressors</b> property<p>
WMVideo 8 DMO and WMVideo 9 DMO encoders are presented in the list.
However, when I'm trying to switch to them, I get a black screen.<p>
Then, I used <b>EditGraph()</b> function and GraphStudio utility to take a look at DirectShow graph, constructed by LEADTools' CaptureCtrl.
The graph was empty (only video source was presented on it).<p>
I also tried setting TargetFormat to ltmmCapture_TargetFormat.ltmmCapture_TargetFormat_Asf.<br>
But, that didn't change anything.<p>
Does that mean that LEADTools doesn't support Windows Media Encoders at all or I'm doing something frong?<p><br>
I searched the forums and only found this discussion
<a HREF="/SupportPortal/cs/forums/14097/ShowPost.aspx">http://support.leadtools.com/SupportPortal/cs/forums/14097/ShowPost.aspx</a><p>
but, this is not quite what I'm looking for.<p><br>
Any help will be appreciated.<p>
Thanks,
#2
Posted
:
Monday, May 12, 2008 5:51:54 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
If you want to save your videos to wmv, set the TargetFormat to ltmmCapture_TargetFormat_Asf, ltmmCapture_TargetFormat_Asf_Compressor_Mux or ltmmCapture_TargetFormat_Asf_Mux without setting the video compressor.
This will automatically cause appropriate encoders to be used.
If you want to control the encoder begin used, you should use Windows Media profiles as explained by the forum post
http://support.leadtools...orums/5867/ShowPost.aspx
LEADTOOLS Support
Multimedia
Multimedia SDK Questions
Encoding video using Windows Media Encoder & LEADTools
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.