Discussion:
Video quality issue with a program developed using WME SDK
(too old to reply)
Tamer Ibrahim
2010-04-15 16:24:19 UTC
Permalink
Hi,

I'm writing a program to capture computer's screen in video using WME
SDK and I have a problem with the quality of the output video. The
video has very poor quality. I'm using the guidelines of WME SDK
documentation and the same thing is written on many references on the.
here is the procedure:

1. create WMEncoder object.
2. get video source.
3. set a profile to the IWMEncSourceGroupCollection.
4 define a .wmv output file.
5. start encoding.

I'm new to WME SDK and searched a lot about any method to enhance the
quality of the video programmatically but found nothing. In some
websites it's written that it's a Windows Vista issue but I tested it
on Windows XP and found the same thing. The solution should run on
Windows Vista and Windows Server 2008 which has the same base code of
Windows Vista.

Kindly, could you tell me why this happens and how can I solve it ?


(Thanks in advance)

Tamer Ibrahim
Alessandro Angeli
2010-04-15 17:54:27 UTC
Permalink
From: "Tamer Ibrahim"
Post by Tamer Ibrahim
I'm writing a program to capture computer's screen in video using WME
SDK and I have a problem with the quality of the output video. The
video has very poor quality. I'm using the guidelines of WME SDK
documentation and the same thing is written on many references on the.
The quality of the result depends on the profile settings. None of the
predefined profiles gives good results so you shpuld create your own.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Tamer Ibrahim
2010-04-15 20:33:32 UTC
Permalink
Post by Alessandro Angeli
From: "Tamer Ibrahim"
Post by Tamer Ibrahim
I'm writing a program to capture computer's screen in video using WME
SDK and I have a problem with the quality of the output video. The
video has very poor quality. I'm using the guidelines of WME SDK
documentation and the same thing is written on many references on the.
The quality of the result depends on the profile settings. None of the
predefined profiles gives good results so you shpuld create your own.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
//http://www.riseoftheants.com/mmx/faq.htm
Thanks for your response .. I've used the predefined profile "Screen
Video/Audio High (CBR)" and the result is quite good.
Kindly, I have another issue to run the application. It crashes,
sometimes gives access violation exception and sometimes can't
instantiate the encoder object !

Some solutions about allowing "Data Execution Prevention" and some
fixes for windows vista ... but they are not stable at all. Could you
give me any advices ?

(Thanks)
Alessandro Angeli
2010-04-15 21:40:17 UTC
Permalink
From: "Tamer Ibrahim"
Post by Tamer Ibrahim
Kindly, I have another issue to run the application. It crashes,
sometimes gives access violation exception and sometimes can't
instantiate the encoder object !
Some solutions about allowing "Data Execution Prevention" and some
fixes for windows vista ... but they are not stable at all. Could you
give me any advices ?
Diagnosing crashes via Usenet is pretty much impossible. Anyway...

1. Windows version?

2. Windows Media Player version?

3. error code of the crash?

4. crashing module?

5. if you have a debugger, attach it and look at the callstack

6. when does it crash?

Without this informations, it is impossible to even begin to diagnose
the problem.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Tamer Ibrahim
2010-04-15 23:36:12 UTC
Permalink
Post by Alessandro Angeli
From: "Tamer Ibrahim"
Post by Tamer Ibrahim
Kindly, I have another issue to run the application. It crashes,
sometimes gives access violation exception and sometimes can't
instantiate the encoder object !
Some solutions about allowing "Data Execution Prevention" and some
fixes for windows vista ... but they are not stable at all. Could you
give me any advices ?
Diagnosing crashes via Usenet is pretty much impossible. Anyway...
1. Windows version?
2. Windows Media Player version?
3. error code of the crash?
4. crashing module?
5. if you have a debugger, attach it and look at the callstack
6. when does it crash?
Without this informations, it is impossible to even begin to diagnose
the problem.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
//http://www.riseoftheants.com/mmx/faq.htm
Here is the information about the crash:

1. under Windows Vista
2. Windows Media Player 11
3. The crash message "No specified device driver is present".
4. It crashes when the encoding process is about to start.

Other capturing programs can operate properly without any bugs. I
checked all possible solutions; audio drivers, Audio and Image
acquisition services and other programs that could be blocking the
devices.

Note: I'm capturing both Screen and audio from default audio device.


(Thanks in advance)

Tamer Ibrahim
Alessandro Angeli
2010-04-16 18:18:29 UTC
Permalink
From: "Tamer Ibrahim"
Post by Tamer Ibrahim
1. under Windows Vista
2. Windows Media Player 11
3. The crash message "No specified device driver is present".
4. It crashes when the encoding process is about to start.
The code is useful, the message not so much.

In any case, that looks like a normal error (0xC00D0072 to be exact) and
not a crash (a crash is something like "this program has executed an
invalid operation and will be terminated").

Are you running under a remote desktop, virtual machine, system
service...? That is, anything but the normal interactive local console?
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Tamer Ibrahim
2010-04-17 07:35:50 UTC
Permalink
Post by Alessandro Angeli
From: "Tamer Ibrahim"
Post by Tamer Ibrahim
1. under Windows Vista
2. Windows Media Player 11
3. The crash message "No specified device driver is present".
4. It crashes when the encoding process is about to start.
The code is useful, the message not so much.
In any case, that looks like a normal error (0xC00D0072 to be exact) and
not a crash (a crash is something like "this program has executed an
invalid operation and will be terminated").
Are you running under a remote desktop, virtual machine, system
service...? That is, anything but the normal interactive local console?
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
//http://www.riseoftheants.com/mmx/faq.htm
No. Everything is normal.

Loading...