Catch 'temp disk full error' while encoding from vbscript

Windows Media

    Sponsored Links

    Next

  • 1. lossless audio codec not available?
    When I iterate through the available Windows Media Audio codecs using the interface IWMCodecInfo3 I see a codec named: Windows Media Audio 9.2 Lossless But when I call GetCodecFormatCount to get the count of formats available for that codec I get back a count of zero. Then if I try to manually construct a profile with an lossless audio stream and give that profile to the IWMWriter object and then call BeginWriting I get back a status of NS_E_AUDIO_CODEC_NOT_INSTALLED. Also if I try to use the Windows Media Encoder utility the help documentation mentions a lossless option but when using the program no lossless option seems to be available. So has the lossless codec been silently removed? Configuration: Windows XP SP2 Microsoft Visual C++ .NET 2003 Windows Media Format SDK 9.5 Windows Media Player 11
  • 2. WMP library from windows service
    Hi All, I am making a windows service which needs to access WMP library. My code is like this. using WMPLib; WMPLib.WindowsMediaPlayer Player; IWMPPlaylist mediaPlaylist; Player = new WMPLib.WindowsMediaPlayer(); mediaPlaylist = Player.mediaCollection.getByAttribute("MediaType", "audio"); Now mediaPlaylist.count is giving 0. But my Music library contains 20 files. I have tried this kind of code in a console application, it is working correct there. Is there any restriction imposed on the accessability of WMP library from windows service ( I am running my service as administrator). How to solve this problem? I am using WMP 10 sdk. In the documentation Settings.mediaAccessRights to know the access rights of WMP library and Settings.requestMediaAccessRights to requst the desired access right. But in my code player.settings don't have mediaAccessRights member. I don't know why I am not able to find this member? Thanking you in advance. Regards Arindam
  • 3. Features Windows Media Player 10
    When I open MPEG2 file - WMP10 build graph use DShow filter. But when I open WMV file, WMP10 build graph use own filter. How I can build graph use my filter in WMP 10?
  • 4. Warning Message
    Hi, I use AxWMPLib and WMPLib with C#. Often, when I want open file, I have warning message (about extension file). I ask you if you know how I can disable this warning message by C# program ? Thank you. Audrey
  • 5. Control Video window size from asf file?
    My program is creating wmv files using Windows media video 9 codec. These files will have 2 video streams that play at the same time. Both video streams are 640x480. My question is, is there a way of controlling the video window sizes? Is it possible to make both videos display 320x240 without transforming the videos streams to this size. The end user would be using Windows Media Player to view the videos. So it would have to be a configuration of the wmv file causing WMP to display the videos at 320x240, if it is possible. If I can control the size of the display window it wouldn't matter that the video stream is 640x480. Thanks for any help or advice. -- Best Regards "Failure is the opportunity to begin again more intelligently" Henry Ford

Catch 'temp disk full error' while encoding from vbscript

Postby Hendrik Klompmaker » Wed, 11 Aug 2004 20:06:57 GMT

I use a vbscript to encode DV tapes to wm9 files. Sometimes however the temp
disk runs out of storage space. Although the encoding session finishes
nicely with the part it did catch, I am unable to catch the error in
vbscript.
Are there any samples or suggestions how to do this?
This is part of the code I use:

function Encoder_OnError( intResult )
  g_intErrorCode = intResult
  Encoder_OnError = 0
end function

Encoder.Start
  If objArgs.Count = 1 Then
      Do Until (Encoder.RunState = 5) or (g_intErrorCode <> 0)
        if g_intErrorCode <> 0 Then wscript.echo "Error while encoding.
Error Code = 0x" & Hex ( g_intErrorCode ))
        WScript.Sleep 5000
      Loop
  End If
Encoder.Stop

Thanks
Hendrik



Re: Catch 'temp disk full error' while encoding from vbscript

Postby msnews.microsoft.com » Fri, 27 Aug 2004 05:45:38 GMT

Three weeks now and no reply. Does this mean it cannot be done?

Hendrik








Re: Catch 'temp disk full error' while encoding from vbscript

Postby Neil Smith [MVP Digital Media] » Fri, 27 Aug 2004 18:43:53 GMT

I guess nobody knows or has had this problem. It doesn't sound very
fault-tolerant to me, what you've written.

Why don't you run some sort of disk monitor process alongside or
inside your vbscript, which tells the encoder to Stop if the
filesystem has less than 10% of free space left ?

Cheers - Neil

On Wed, 25 Aug 2004 22:45:38 +0200, "msnews.microsoft.com"








Re: Catch 'temp disk full error' while encoding from vbscript

Postby msnews.microsoft.com » Fri, 03 Sep 2004 06:22:19 GMT

Hi Niel,

You are right about the fault tolerance but as I mentioned it is only 'part 
of the code'.
As you will probably know, wmenc already does the monitoring itself and 
behaves accordingly. My only problem is that there seems to be no way to get 
this status info back to the vbscript.

bye
Hendrik












Re: Catch 'temp disk full error' while encoding from vbscript

Postby Neil Smith [MVP Digital Media] » Fri, 03 Sep 2004 07:20:54 GMT

No, that status information is freely available in VBScript from the
drives collection. You just need to write the code correctly.

This page might help : 
 http://www.**--****.com/ 

Cheers - Neil

On Wed, 1 Sep 2004 23:22:19 +0200, "msnews.microsoft.com"












Similar Threads:

1.Disk Full error...Bug?

Hi Jose,

I think you are right.

I did also try it with the streamwriter, to be sure that it was not an
incident.

It seems if that if you  try to close after that an error is thrown because
of a diskfull and the command is not executed and then when you try to end
your program, the framework tries again to close it automaticly but has no
room for it and you are even not able to undo your operation.

I did try to catch it in the closing and close event to be sure that there
was no escape and that was not working either.

Cor


2.Disk Full error...on certain file and driectory create/copy methods

I have these functions in my application.

FileInfo.CopyTo

DirectoryInfo.Create

File.Copy

Directory.Create

Do these methods generate a exception when the DISK is full were they are
trying to create a directory or copy a file? If so what is the exception?

VJ



3.Funky Intermittent Error Occurring - 5987 Disk is full...

Hello,
I am getting the following  intermittent error-

5987: The disk is full, free some space on this drive or save the document
on another disk. Try one
or more of the following, close any unneeded documents, programs and
windows, save the document to another disk.

I have plenty of disk space.
I can get it to repeat on some computers but not others.
Everything seems to be fine and my functions all seem to execute properly
after the error occurrs.
Before calling the CloseDocument Function far below, I have opened up the
document, unprotected it with the following code before making the function
call-
         loWordWork.OpenApplication
         loWordWork.OpenDocument sQuickFilename, True  Note:(sQuickFileName
is the file, Paremeter True is LeaveApplicationOpen)
         loWordWork.UnProtectDocument "password"
         loWordWork.CloseDocument False   Note:(Parameter False is DoNotSave
as Boolean)
         loWordWork.CloseApplication
In the code below I am using the document.close method while leaving the
word application open (as passed in by the parameter LeaveApplicationOpen
above).
This being said, it is the  "moDoc.Close MW_wdSaveChanges" line in the code
below that is the point of failure.
I wonder if  turning protection on or off  has anything to do with it?
Curious if anyone else has ever seen a bug like this?
Any ideas would be most appreciated!
Thanks,
Andy
CLOSE DOCUMENT FUNCTION CODE:
Public Function CloseDocument(Optional DoNotSave As Boolean) As Boolean
   On Error GoTo FunctionError
   If mIsOpen Then
      If Not moDoc Is Nothing Then
         If DoNotSave Then
            moDoc.Close MW_wdDoNotSaveChanges
         Else
            moDoc.Close MW_wdSaveChanges
         End If
      End If
      If Not mIsLeaveApplicationOpen Then

         If DoNotSave Then
            moWord.Quit MW_wdDoNotSaveChanges
         Else
            moWord.Quit MW_wdSaveChanges
         End If
         KillObject moWord
         mIsApplicationOpen = False
      End If
   End If
   CloseDocument = True
   Exit Function
FunctionError:
   If Err.Number = 5987 Then
      goSession.LogIt mwl_Workstation, mwl_Warning, "Warning in
mwManuals.mwWorkWork.CloseDocument, disk full error encountered closing Word
Application object."
      CloseDocument = True
   Else
      goSession.RaisePublicError "General Error in
mwWordWork.CloseDocument.", Err.Number, Err.Description
      CloseDocument = False
   End If
End Function





4."Disk Full" error whenever I try to save my Word document

Hello.  My operating system is Windows 2000, and I get the above error
whenever I try to save a Word file to my hard drive.  Although I get the
"disk full" message, I know for a fact that my 30GB hard drive is only 60%
full.  In fact, the file can be saved if it is first saved to another drive
or media (eg. a USB drive).  From there, I can then copy the file onto my
hard drive using Windows Explorer.

The same thing happens when someone else using Word from a different
computer in our office network tries to save a file directly onto my
computer.  They too have to first save the Word file on their own computer,
and then transfer it to my hard drive using Windows Explorer.  This suggests
that the problem is not due to a corruption of the Word program on my
computer.

Can anyone tell me what is going on?  By the way, this problem cropped up a
few days after I installed a new 2nd hard drive on my computer as part of a
backup RAID system (where the 2nd hard drive works in the background to make
a mirror image of my 1st hard drive for backup purposes).  Could this have
anything to do with it (although in all other respects, the computer is
working normally)?

Any help is much appreciated.  Thanks!

Barry Fung



5.Disk Full error

When I try to save a Project after editing a module in VBA (Word 2003) I am 
getting an error message:  "The disk is full. Free some space on this drive". 
I have been able modify and save other projects, but this one won't save. 

The drive space cannot possibly be an issue on this computer, does anyone 
know what this problem is?

Thanks.

-- 
singeredel (Julie)

6. Disk is full error message from out of nowhere

7. runtime error 5113 - No Memory or disk full

8. Disk is full error



Return to Windows Media

 

Who is online

Users browsing this forum: No registered users and 66 guest