Subject:Saving metadata
Posted by: sjm
Date:12/12/2006 8:16:17 AM
I have a script that parses loop points in a file by saving out to a temporary wav file and parsing the file directly. Here's the code to save the temp file: ISfFileHost tempHost = host.NewFile(new SfAudioSelection(host)); tempHost.WaitForDoneOrCancel(); tempHost.SaveAs(tempFileName, ".wav", "Default Template", RenderOptions.RenderOnly | RenderOptions.OverwriteExisting); One of my users noticed that if he unchecks the "save metadata with file" option in the Save As dialog box, my script will break. The problem is that that setting is "sticky", so if it was unset during the user's last save, it will be unset when my script saves its temporary file. And if metadata isn't included when my script saves its file, I can't parse its loop points. Is there any way to programmatically change that setting, so my call to ISfFileHost.SaveAs will always save metadata? |
Subject:RE: Saving metadata
Reply by: _TJ
Date:12/12/2006 1:55:45 PM
Sorry, no. That setting is currently not script controllable. tj |
Subject:RE: Saving metadata
Reply by: epsobolik
Date:6/19/2007 1:45:10 PM
Hmmm. I'm having the opposite problem. I need to batch process a bunch of .avi files (normalize the volume and apply a noise gate). I created a Batch Converter. I get an error when it saves the processed file. 'Save failed. Value does not fall within the expected range.' If I 'Save as...' manually, I get a more detailed error 'Unable to save the following metadata type(s) inside of the file: Unknown chunks'. The error is in a dialog that gives the option of saving or not saving the data in an external file. I elect to not save. The file is saved successfully. I can also make the selection to not save persistant. If I save other files it saves them with out stopping. However, when I run the batch, it still fails. There isn't any meta data in the files (that I'm aware of). I added a copyright notice in the batch converter, but it didn't help. Any ideas how I can get around this. I have a couple of hundred (short) .avi's to prepare for a help system. Phil |