A simple web app using React to export your Flare(.flr) files into a video. Currently webm and mp4 is supported.
First and foremost a huge shout out for the www.2dimensions.com team. More references and documents to come.
Note: This is still a wip progress app. Following instructions might not just work. It is not completely tested.
- Clone the repo.
cd FlareExporter
or which ever directory you cloned it to.- run
npm install
- run
npm start
-
First choose the flare file or drag and drop the flare file on to the drop zone marked in big white bordered box.
-
Adjust the canvas width and height to your preferences
-
Choose the type of video to be exported.
Video Framerate & Quality attributes are work in progress. Still experimental. Not completely tested.
-
Choose the animation name from the list box if you have more than one.
-
Press te play button to check if the animation plays well as expected.
- Always plays in loop.
Otions to enable/disable loops are being assesed. 🧐
-
When you are ready to record click the record button.
Note: This will automatically restart the current animation in a loop.
-
Then stop the recording as and when required.
Please stop the recording within a limited duration(maybe couple of minutes). Note that the recorded buffer is part of your javascript memory and could lead to high memory usage. I haven't tested how long this in memory buffer can sustain. 😋
-
Click the download button to download the video in your prefered format.
- Handle buttons disabling logic properly.
- Give an option to restart the animation on click of the record button. I think this is a good option. If you want to implicitly record the animation from the begining. As of now the the recorder start recording the moment the button is pressed. this is ensure users can record the animation based on how much of the animation is to be recorded.
- Provide options for alterng video bitrate - currently set to 2.5Mbits/s
- Enable dowload gif option.
- Document the code properly and extract components appropriately.
- Clean Code and imports.
Anything you feel required can be added with a PR :D
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify