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?
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
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 :)
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 :)