Missing videooutputs directory
Error symptoms
- Compression fails with an error message
- Application shows “Error: ENOENT: no such file or directory” in the output
- Compressed videos are not saved
Solution
Create thevideooutputs directory in your project root before running the application:
The directory must be created in the same location where you cloned the repository. The application saves compressed videos to this directory as specified in
renderer.js:51.Video file selection issues
No file selected error
If you click the “Compress” button without selecting a video file, you’ll see the message:Solution
- Click the file input button in the application interface
- Select a valid video file from your system
- Click the “Compress” button
Compression errors
Compression errors are caught and displayed in the application output area. These errors typically occur due to:Invalid video format
FFmpeg may not support certain video codecs or container formats.Solution
Solution
Try converting your video to a widely supported format like MP4 before compression. Ensure the input file is not corrupted.
Insufficient disk space
Compression requires temporary storage for processing.Solution
Solution
Ensure you have sufficient disk space in both:
- Your system’s temporary directory (used for processing)
- The
videooutputsdirectory (for the final compressed file)
Error handling implementation
The application implements error handling inrenderer.js:45-50:
Error messages are displayed in the application’s output area and logged to the console for debugging.
FFmpeg path issues
FFmpeg not found error
If you see errors related to FFmpeg not being found, it may indicate an issue with the ffmpeg-static package.Solution
- Reinstall the dependencies:
- Verify the FFmpeg path is set correctly in
renderer.js:7:
The ffmpeg-static package should automatically provide the correct binary path for your operating system.
Permission errors
Cannot write to videooutputs directory
Permission errors may occur when the application tries to write compressed videos.Solution
Ensure thevideooutputs directory has write permissions:
On Linux/macOS:
videooutputs folder, select Properties > Security, and ensure your user account has write permissions.
Cannot read temporary files
The application writes temporary files to your system’s temp directory during compression.Solution
Solution
Ensure your user account has read/write permissions for the system temporary directory:
- Linux/macOS:
/tmp - Windows:
%TEMP%orC:\Users\[YourUsername]\AppData\Local\Temp
Video loading issues
When viewing compressed videos in the application, you may encounter loading errors.Videos not displaying
This occurs when the application cannot read files from thevideooutputs directory.
Solution
Check the console for error messages (accessible via Developer Tools). The application logs video loading errors inrenderer.js:71-73:
Getting more help
If you encounter issues not covered here:- Check the console logs for detailed error messages
- Verify all dependencies are installed correctly
- Ensure you’re using compatible Node.js and npm versions
- Review the Dependencies page for version requirements