Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
media
danimation.controls
danimation.programming
devices
drm
dshow.programming
dtransform
encoder
encoder.optimization
hometheaterpc
media
media.beta
media.beta.encoder
mediacenter
mediacenter.portable
mediaplayer
music.products
musicproducer
player
player.plugins
player.skins
player.solaris
player.visualizations
player.web
sdk
server
tools
  
 
date: Wed, 2 Jul 2008 08:19:26 +0200,    group: microsoft.public.windowsmedia.sdk        back       


How do I monitor encoding file's size while encoding?   
I am using the sdk to do screen capture recording and need to be able to 
monitor the size of the file while recording. For some reason the file size 
stays around 6k untill you call the WMEncoder.Stop() function at which point 
it write the data to the file.

Any tips appreciated?
date: Wed, 2 Jul 2008 08:19:26 +0200   author:   Chevron Boyde

Re: How do I monitor encoding file's size while encoding?   
On Jul 2, 8:19 am, "Chevron Boyde"  wrote:
> I am using the sdk to do screen capture recording and need to be able to
> monitor the size of the file while recording. For some reason the file size
> stays around 6k untill you call the WMEncoder.Stop() function at which point
> it write the data to the file.
>
> Any tips appreciated?

you can access WM Encoder's Statistics object
WMEncoder.Statistics.FileArchiveStats.FileSize

or, if you've already done that, you can use:

WMEncoder.Statistics.WMFOutputStats.AverageBitrate
and with multiplying it with time passed, calculate filesize.

Jerislav
date: Wed, 2 Jul 2008 02:51:25 -0700 (PDT)   author:   Jerislav

Re: How do I monitor encoding file's size while encoding?   
On Jul 2, 11:51 am, Jerislav  wrote:
> On Jul 2, 8:19 am, "Chevron Boyde"  wrote:
>
> > I am using the sdk to do screen capture recording and need to be able to> > monitor the size of the file while recording. For some reason the file size
> > stays around 6k untill you call the WMEncoder.Stop() function at which point
> > it write the data to the file.
>
> > Any tips appreciated?
>
> you can access WM Encoder's Statistics object
> WMEncoder.Statistics.FileArchiveStats.FileSize
>
> or, if you've already done that, you can use:
>
> WMEncoder.Statistics.WMFOutputStats.AverageBitrate
> and with multiplying it with time passed, calculate filesize.
>
> Jerislav

Or you can use :)
WMEncoder.Statistics.WMFOutputStats.ByteCount

For already calculated size :)
date: Wed, 2 Jul 2008 02:52:15 -0700 (PDT)   author:   Jerislav

Re: How do I monitor encoding file's size while encoding?   
Thanks!

"Jerislav"  wrote in message 
news:e79efab7-94ec-435e-ac0e-62b53a79e3f2@d77g2000hsb.googlegroups.com...
On Jul 2, 11:51 am, Jerislav  wrote:
> On Jul 2, 8:19 am, "Chevron Boyde"  wrote:
>
> > I am using the sdk to do screen capture recording and need to be able to
> > monitor the size of the file while recording. For some reason the file 
> > size
> > stays around 6k untill you call the WMEncoder.Stop() function at which 
> > point
> > it write the data to the file.
>
> > Any tips appreciated?
>
> you can access WM Encoder's Statistics object
> WMEncoder.Statistics.FileArchiveStats.FileSize
>
> or, if you've already done that, you can use:
>
> WMEncoder.Statistics.WMFOutputStats.AverageBitrate
> and with multiplying it with time passed, calculate filesize.
>
> Jerislav

Or you can use :)
WMEncoder.Statistics.WMFOutputStats.ByteCount

For already calculated size :)
date: Mon, 7 Jul 2008 09:57:19 +0200   author:   ChevronBoyde

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us