-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include FFmpeg in exported application? #67
Comments
Oh good point! Gee... I never considered exporting the application. The library looks for its config file inside the Processing libraries folder, under |
I see that after running the exported application once, a settings file is created in the same folder. You could try to put ffmpeg in a subfolder and then edit that settings.json file to point to it. A relative path might work. |
Yes, I had the same idea, but couldn't fully test it yet. Win 10 Mac OS I'll let you know if the relative paths work. |
I hope that by setting the path in settings.json the Environmental Variables are not needed. Yes let me know how it goes. If it does I could add it to the readme :) |
Hey there Windows |
MacOS I think i have found a way. You can include the binaries in the exported app. Since the path changes when you move the App (or a different person installs it), I update the settings file when launching the App. Therefore I made a Settings.pde file with these functions.
|
The updateSettings function could definitely be nicer and the appname is hardcoded at the moment. |
And when testing the sketch it creates a folder 'App.app/Contents' - not so nice. |
I am happy to find that I am not the only person who needs this. @philipp-lehmann thanks for your solution for Mac. However this doesn't seem to work for me. I am not sure why yet. The creation of the absolute path seems to work fine, but I think for me the call |
I have hacked around my problem (in a messy way) and I am now able to change the absolute ffmpeg path in my settings.json file via code as described above. |
Hey there Clarifying on my earlier answer: There are two settings.json files. One is in the Data folder. On start I get the contents of this file as JSON, update the current app path, and the save it directly as a separate file into the App Folder.
|
I remember I also had the Issue, that the dialogue was hidden. And as you can see my current version is different, so I probably adressed this. |
@philipp-lehmann thank you so much! However, I don't see a crucial difference in your current version from the one before which shall prevent the reappearing popup asking for selection of the ffmpeg path even though it has been updated inside the settings.json file. The additional parts about the target path using the target.json has nothing to do with the issue, or does it? |
Further observation: |
Yes, the target.json is a directory where I export the movies to. |
Hey there
Thanks for the effort putting together this awesome library.
I ran into troubles when exporting a standalone application from processing.
Can you include FFmpeg into the export, so that you don't have to install it separately when distributing the app?
I see that you can change the location, would it be possible to install ffmpeg within the data folder and point to this location?
Do you have other ideas?
Best Philipp
The text was updated successfully, but these errors were encountered: