Newbies rramsdale Posted January 19, 2018 Newbies Posted January 19, 2018 (edited) I understand this is an old thread, however I am having an issue with this and I am using BE_ExecuteSystemCommand. I am working on using the baseelements plugin to convert a file. I have the BE_ExportFieldContents working properly, but I am not having much luck with converting the file using ffmpeg. I have BE_ExecuteSystemCommand ("ffmpeg -i \"/Library/FileMaker Server/Data/Documents/IMG_4039.MOV\" -acodec copy \"/Library/FileMaker Server/Data/Documents/robert.m4v\""; 15000) Which doesnt seem to work. I have used terminal to get it working successfully with ffmpeg -i "/Library/FileMaker Server/Data/Documents/IMG_4039.MOV" -acodec copy "/Library/FileMaker Server/Data/Documents/robert.m4v" I have also tried BE_ExecuteSystemCommand ("/bin/bash -c ffmpeg -i \"/Library/FileMaker Server/Data/Documents/IMG_4039.MOV\" -acodec copy \"/Library/FileMaker Server/Data/Documents/robert.m4v\""; 15000) I have used the BE_ExecureSystemCommand successfully by calling BE_ExecuteSystemCommand ("osascript -e 'tell app \"Finder\" to display dialog \"Hello World\"'"; 60000) adding /bin/bash -c before the above code does not seem to work. I am on a mac running filemaker pro advanced using filemaker server. Also can I call the BE_ExportFieldContents using perform script on server. I couldnt seem to get it working, but the script schedule worked, as well as a local script not performed on the server. Thank you for any help. Edited January 19, 2018 by rramsdale
Lee Smith Posted January 20, 2018 Posted January 20, 2018 Old Thread I'm splitting this off into a new thread in Scripts, because the old thread was not a post as a Base Element question, it was only suggestion in a Reply. Hopefully having Base Element in the title will attract more attention.
IdealData Posted January 21, 2018 Posted January 21, 2018 Sounds like you're converting a video file, which might take some time. The Base Elements documentation says: Quote A result of 12000 is a plugin error : Timeout exceeded. Try checking for the error with BE_GetLastError. The error numbers are NOT FileMaker error codes.
Recommended Posts
This topic is 2498 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now