I checked whether the “dest” file is writable. I’m using this code to get a
handle on the save file:
dlg = new SaveAsDialog
dlg.promptText = "Enter a file name."
dlg.Filter=FileTypes.quicktime
//*********************************************************
// Since this is AV Foundation, Windows is no longer supported
// Perhaps later when this is working separate rendering methods
// can be added for Windows.
//*********************************************************
dlg.suggestedFileName = "video.mv4"
dlg.ActionButtonCaption = "Save"
dlg.CancelButtonCaption = "Cancel"
dlg.title = "Save Movie"
if m_Debug then m_Report "Opening save dialog."
m_AV_DestFile = dlg.ShowModalWithin(WorkWindow)
This works for the Quicktime version but fails here.
When I substituted your demo code it works:
dim file as FolderItem
file = SpecialFolder.Desktop.Child("test.m4v")
if file.Exists then file.Delete
So, “m_AV_DestFile” although not nil cannot be written too.
On the other hand “file” can be written to. Very strange.
I’m working with Mac OS Sierra and Xojo 2016 r4.1
Best Regards,
Ola Olsson
[email protected]
> On Dec 23, 2016, at 2:25 PM, Christian Schmitz
> <[email protected]> wrote:
>
>
>> Am 23.12.2016 um 21:04 schrieb [email protected]:
>>
>> I’m converting an app from using Quicktime to use AV Foundation. I’m testing
>> the code that is in the "make video from images” demo. The demo runs but the
>> same code in my app always breaks at “.startWriting.” Here’s the code:
>
> Well, not sure what's different for your computer.
> Dest file not writable?
> Older Mac OS version?
>
> Could you inspect the dictionaries and see if they have different values
> compared to my examples?
>
> Sincerely
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info