Skip to content

Conversation

RunDevelopment
Copy link
Member

This PR moves the FFMPEG installation into the backend. FFMPEG will now be installed when a video node is used, instead of when chainner is first starting up after a fresh installation.

Since the backend now has to store files, I also added a storage_dir field to NodeContext, so nodes can now store files. This storage directory is set as a flag when starting the server. This allows the main electron process to set the storage dir when starting the backend. Since the main process doesn't start the backend in npm run dev, there's also some fallback logic in the backend to use chainner's app data dir.

Since appdirs is no longer used by our nodes, I moved it to requirements.txt to make it a dev dependency.

I also cleaned up the initialization of our AppContext classes a little.

Fixes #2271

Copy link
Member

@joeyballentine joeyballentine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good and this works really well. 👍

@joeyballentine joeyballentine merged commit c7532d5 into chaiNNer-org:main Apr 18, 2024
@RunDevelopment RunDevelopment deleted the ffmpeg-backend-installation branch April 18, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimal bug report
2 participants