A Node.js application that creates tutorial videos from instruction files and images.
- Download the latest
TutorialMaker.zip
from the Releases page - Extract the ZIP file to any location
- Double-click
TutorialMaker.bat
to start the application
Note: Make sure you have Node.js and FFmpeg installed on your system.
- Node.js 14.0.0 or higher
- FFmpeg (required for video processing)
-
Clone this repository:
git clone https://github.com/yourusername/tutorial-maker.git cd tutorial-maker
-
Install dependencies:
npm install
-
Check your environment setup:
npm run check-deps
This will verify that all required dependencies are installed and create a sample data directory.
-
Place your tutorial images in the
sampleData
directory. -
Edit
sampleData/script.xml
with your tutorial content. Example:<?xml version="1.0" encoding="UTF-8"?> <tutorial> <speak>Welcome to this tutorial!</speak> <video src="example.mp4" /> <speak>This is the next step.</speak> </tutorial>
-
Run the application:
npm start
The output video will be saved as output.mp4
in the current directory.
The script.xml
file supports the following elements:
<speak>
: Text to be converted to speech<video>
: Include an existing video filesrc
attribute: Path to the video file
To create a distributable package:
npm run build
This will create a TutorialMaker.zip
file containing everything needed to run the application.
Run tests:
npm test
Run tests in watch mode:
npm run test:watch
If you see an error about FFmpeg not being found:
-
Windows:
- Download FFmpeg from https://ffmpeg.org/download.html
- Add FFmpeg to your system PATH
- Restart your terminal/command prompt
-
macOS:
brew install ffmpeg
-
Linux:
sudo apt-get install ffmpeg
If you see a Node.js version error, install a newer version from https://nodejs.org/
If you encounter any issues during installation:
- Make sure you have Node.js 14.0.0 or higher installed
- Make sure FFmpeg is installed and in your PATH
- Try running
npm run check-deps
to verify your environment
MIT