display size
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
display size

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Joe
Guest





Posted: Tue Oct 05, 2004 5:45 am    Post subject: display size Reply with quote

I am using the format sdk to encode and write to file at 640x240, basically
taking a single NTSC field. I'd like to have this playback in windows media
player at 640x480 any time the file is viewed. Is there a way to muck with
the ASF header to trick Windows Media Player into doing this? I tried
changing the AspectRatioX and AspectRatioY attributes(1:2), but this
effectively makes the video display at 320x240. I tried changing the
WM/VideoWidth and WM/VideoHeight attributes to 640 and 480. No error occurs,
but the settings seem to be overwritten by the width and height set in the
profile. Note that the profile is set prior to setting these header
attributes prior to telling the writer to begin writing. I'm hoping this is
possible. I don't want to write a special reader/renderer and I don't want
to have to do anything special with windows media player or its plugin to
achieve this. Thanks.

Back to top
Becky Weiss [MS]
Guest





Posted: Sat Oct 09, 2004 4:39 am    Post subject: RE: display size Reply with quote

Joe,

Is it possible for you to instead encode to a profile with 640x480? If so,
you can still input the frames as 640x240 (so long as you set the input media
type to indicate as much), and the WMFSDK Writer will automatically resize
your frames to 640x480 before encoding them. Whoever plays it back will of
course get 640x480. This may not be an option for you, though; I'm not sure
from your post.

Becky

This posting is provided AS IS with no warranties and confers no rights.

"Joe" wrote:

Quote:
I am using the format sdk to encode and write to file at 640x240, basically
taking a single NTSC field. I'd like to have this playback in windows media
player at 640x480 any time the file is viewed. Is there a way to muck with
the ASF header to trick Windows Media Player into doing this? I tried
changing the AspectRatioX and AspectRatioY attributes(1:2), but this
effectively makes the video display at 320x240. I tried changing the
WM/VideoWidth and WM/VideoHeight attributes to 640 and 480. No error occurs,
but the settings seem to be overwritten by the width and height set in the
profile. Note that the profile is set prior to setting these header
attributes prior to telling the writer to begin writing. I'm hoping this is
possible. I don't want to write a special reader/renderer and I don't want
to have to do anything special with windows media player or its plugin to
achieve this. Thanks.
Back to top
Joe
Guest





Posted: Tue Oct 12, 2004 7:33 am    Post subject: RE: display size Reply with quote

Yes, I am aware of this. Thank you for the response though. The
stretch/resize happens before the video gets to the codec, right? So more
work is done(higher cpu usage) and probably more disk space for storage is
required, no? The cpu usage is the bigger issue for me as I am doing
multiple encodes simultaneously.

Thanks.

"Becky Weiss [MS]" wrote:

Quote:
Joe,

Is it possible for you to instead encode to a profile with 640x480? If so,
you can still input the frames as 640x240 (so long as you set the input media
type to indicate as much), and the WMFSDK Writer will automatically resize
your frames to 640x480 before encoding them. Whoever plays it back will of
course get 640x480. This may not be an option for you, though; I'm not sure
from your post.

Becky

This posting is provided AS IS with no warranties and confers no rights.

"Joe" wrote:

I am using the format sdk to encode and write to file at 640x240, basically
taking a single NTSC field. I'd like to have this playback in windows media
player at 640x480 any time the file is viewed. Is there a way to muck with
the ASF header to trick Windows Media Player into doing this? I tried
changing the AspectRatioX and AspectRatioY attributes(1:2), but this
effectively makes the video display at 320x240. I tried changing the
WM/VideoWidth and WM/VideoHeight attributes to 640 and 480. No error occurs,
but the settings seem to be overwritten by the width and height set in the
profile. Note that the profile is set prior to setting these header
attributes prior to telling the writer to begin writing. I'm hoping this is
possible. I don't want to write a special reader/renderer and I don't want
to have to do anything special with windows media player or its plugin to
achieve this. Thanks.


Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB