Looking for a way to stream movies directly from your server? This open-source PHP and MySQL-based movie streaming application lets you build your own movie platform effortlessly. Whether you’re a developer or a movie enthusiast, this project allows you to host and manage your movie library with ease.
In this article, we’ll walk you through the features, installation steps, and benefits of this self-hosted movie streaming solution.
Why Choose a Self-Hosted Movie Streaming Solution?
A self-hosted streaming platform gives you complete control over your content, unlike third-party streaming services. Here’s why this project is a great choice:
✔️ No third-party restrictions – Host and stream without limitations.
✔️ Customizable – Modify the code to fit your needs.
✔️ Secure & Private – Your data stays on your server.
✔️ Scalable – Expand your movie library as needed.
Key Features
📌 PHP & MySQL-Based – A lightweight yet powerful movie streaming solution.
📌 Easy Setup – Simple database configuration and installation.
📌 FFMpeg Support – Automatic thumbnail generation for a better user experience.
📌 MP4 Support – Optimized for MP4 format (MKV conversion available).
📌 User Login Logs – Track login activity through a dedicated log page.
📌 Secure & Fast – Ensures smooth playback without buffering issues.
How to Install & Deploy
Step 1: Setup Your Server
Ensure your server supports PHP 7.4 or 8.0 and has MySQL installed.
Step 2: Configure the Database
Edit the config/db.php file and replace the placeholders with your database credentials.
Step 3: Import the Database
Import the database.sql
file into your MySQL database to set up tables.
Step 4: Enable FFMpeg for Thumbnails
Install FFMpeg to generate movie thumbnails. Run the following command:
sudo apt-get install ffmpeg
Step 5: Upload Movies or Series
Place your movies or series in the /public/drive
directory. Only MP4 files are supported by default.
Step 6: Convert MKV Files (If Needed)
If your files are in MKV format, convert them to MP4 using the provided convert.sh
script:
./convert.sh # Convert MKV to MP4
./delete.sh # Delete MKV files after conversion
Ensure the script has the right permissions:
sudo apt-get install dos2unix
dos2unix convert.sh && dos2unix delete.sh
chmod +x convert.sh && chmod +x delete.sh
Modify the script path in convert.sh
:
root_directory="/home/yourdomain.com/public_html/public/drive"
Step 7: Monitor Login Logs
Access user login logs at:
🔗 https://yourdomain.com/logs.php
Screenshots
Here’s a glimpse of the streaming application in action:



Future Enhancements
🚀 MongoDB Support Coming Soon!
We are actively working on integrating MongoDB for better scalability. Stay tuned for updates!
Why This Project is Perfect for You
If you’re looking for an easy-to-use, customizable, and open-source movie streaming platform, this project is perfect for you.
✔️ Developers: Modify and expand functionalities as needed.
✔️ Movie Enthusiasts: Host your personal movie library.
✔️ Business Owners: Build a private streaming platform for your content.
Download & Get Started
🔗 GitHub Repository: Stream Movies from Your Server
🔗 FFMpeg Installation Guide: Official Documentation
Start streaming your favorite movies today! 🚀
Conclusion
This PHP and MySQL-based streaming project is a great way to host and manage your movies securely and efficiently. With easy setup, MP4 support, and FFMpeg integration, you can create a powerful movie streaming platform right on your server.
Download the project from GitHub and start building your own movie streaming service today!