Ultimate Video - PHP Script for Trending and Viral Videos
A complete, self-hosted PHP video platform for Trending and Viral Videos & entertainment content. Multi-category videos, a Plyr-powered player with auto quality-switching, skippable ad monetization, Smartlink gate, and a built-in Search & Replace tool — ready to install on any shared hosting or VPS in minutes.
✓ Recently UpdatedDescription
Ultimate Video is a ready-made website script for running a video content site — for example a movie trailers and reviews site. You do not need to know how to code. Everything is controlled from a simple Admin Panel: adding videos, organizing categories, writing pages, changing the site's look, and setting up ads.
The script is self-hosted, which means it runs on your own hosting account (like Hostinger, any cPanel host, free hosting, or a VPS) instead of depending on a third-party platform. You own the code, the database, and all the content.
The video player is built on Plyr, a widely used open-source player, so playback, fullscreen, keyboard shortcuts, and quality-switching all work the same reliable way real streaming sites use.
Features
Visitor-Facing Website
- Clean, dark "cinema" themed design that works on mobile, tablet, and desktop
- Hamburger menu navigation on mobile
- Homepage with latest uploads and trending videos
- Category browsing pages — a video can belong to more than one category at once
- Search box
- Video pages support two video types: embedded links (YouTube/Vimeo/others) and direct video upload with a built-in player
- Random "Related Videos" section under every video (you choose how many are shown, arranged 2 per row) — also shown right over the player itself when it's paused
- Clean, short web addresses — for example yoursite.com/movie-name instead of a long link with symbols
- Category pages at yoursite.com/category/action, and static pages (About, Contact, etc.) at short addresses like yoursite.com/about-us
- Built-in About Us, Contact Us (with working contact form), Privacy Policy, and Disclaimer pages
- Custom 403 and 404 error pages that match your site's design
Video Player
- Built on Plyr, a mature open-source video player — reliable fullscreen, keyboard shortcuts (spacebar to play/pause), and a proper Settings menu, all self-hosted (no external service)
- Direct-upload videos can offer multiple resolutions — 1080p / 720p / 480p / 360p / Auto — switchable any time from the player's Settings menu
- Playback automatically starts at a quality that matches the visitor's connection speed (fast connection → higher quality, slow connection → lower quality) — the visitor can still change it manually at any time
- Right-click on the video is disabled (toggles play/pause instead) and there is no "Download" option in the player, as a deterrent against casual saving/copying
- YouTube and Vimeo links are played through Plyr's own integration, which (unlike a plain embedded iframe) allows the skippable-ad timer and the pause-overlay features below to work on those videos too, not just on directly uploaded ones
- Both the skippable ad and the pause-related-videos overlay reliably appear in every viewing mode — normal and fullscreen, on both mobile and desktop
Skippable Player Ads & Smartlinks
- An optional skippable 300×250 banner ad that appears over the player at a timer you control (e.g. every 30 seconds), with a small "✕" button to skip it
- An optional "Smartlink" (companion link) system: the first two clicks on the player open a rotating ad link in a new tab, and the third click plays the video — with 5 link slots that rotate evenly across visitors
Admin Panel
- Simple dashboard showing total videos, published videos, total views, and categories
- Add, edit, and delete videos — with a modern editor (see below) and the ability to assign more than one category to each video
- Add, edit, and delete categories and custom pages
- Change your login email and password, site branding, and website address at any time
- An "Upload" button next to each file field uploads it immediately in the background, so Save happens quickly instead of waiting on a large file transfer
- A "Select Existing" option lets you re-use a video or thumbnail you already uploaded for another post
- A "Remove" checkbox next to any attached video/thumbnail file deletes it from the server when you save
- A built-in Search & Replace tool for fixing a word, link, or piece of code across your entire site at once
- Everything works on a mobile phone too — the admin panel is fully responsive
SEO Tools
- Editable meta title, meta description, and keywords for the whole site, and per video/page/category
- Canonical tags, Open Graph tags, and Twitter Card tags on every page
- Schema.org structured data (WebSite and VideoObject)
- Automatic, always up-to-date XML sitemaps, split for large sites: /sitemap.xml (index), /page-sitemap.xml, /category-sitemap.xml, and /post-sitemap1.xml, /post-sitemap2.xml, and so on automatically (200 videos per file)
Monetization
- A "Site Monetization" page for homepage/video-page banner ads (up to 3 slots — 2 required, 1 optional)
- A separate "Player Ads" page for the in-player skippable ad and the Smartlink rotation
Code Injection
- Paste your Google Analytics or tracking code once — it applies to every page automatically
- Custom "Header Code" and "Footer Code" boxes for anything else you need to inject site-wide
Performance and Caching
- Every page sends correct cache headers, so browsers and hosting-level caches always show your latest content — no stale pages after you publish something new
- CSS/JS (public site and admin panel) automatically get a fresh version number whenever updated
- Uploaded video files get browser caching headers for faster repeat views/seeking
- Video playback starts at a connection-appropriate quality automatically, reducing buffering on slow connections
Benefits
You Own Everything
No monthly platform fees, no third-party lock-in. The code, design, database, and every video run on your own hosting account.
Works on Cheap Hosting
Runs comfortably on affordable shared hosting or free hosting, as well as any VPS. Even multi-quality video conversion works without special server software.
No Coding Needed Day-to-Day
Adding videos, pages, and categories, changing branding, and managing ads is all done through simple admin panel forms.
Search-Engine Friendly
Clean URLs, full meta tag control, structured data, and automatic sitemaps give your site a real chance to rank in Google.
Ready to Monetize
Banner ads, an in-player skippable ad, and a Smartlink click-gate — drop in codes/links from any network in minutes.
Flexible Organization
Videos can belong to multiple categories at once, and a Search & Replace tool makes site-wide content updates painless.
How to Use It
Log in at yoursite.com/admin/ with the email and password you set during installation.
1- Categories (Multiple per Video)
Go to Categories to add a category (name, optional description and SEO fields). When adding or editing a video, all your categories appear as a row of checkboxes — tick as many as apply. The video will then appear on every one of those category pages, and all of them show as clickable tags on the video's own page.
2- Adding Videos
- Click Add New Video in the sidebar.
- Enter the title — the clean web address is generated automatically underneath the title box.
- Write the description using the Visual/Text editor (see 4.3).
- Tick one or more categories, and set the status to Published or Draft.
- Under Video Source, choose either: Embed — paste a YouTube/Vimeo link or embed code, or Direct Upload — upload a video file directly, then optionally click Upload next to it to send it to the server right away
- Upload a thumbnail image (optional but recommended), or click Select Existing to reuse one already on the server (see 4.7).
- If you uploaded a Direct Upload video, you can optionally add 1080p/720p/480p/360p versions — see 4.6 for the easy way to do this automatically.
- Fill in the SEO fields if you want a custom meta title/description for this video.
- Click Save Video.
3- The Editor
Both "Add New Video" and "Add Custom Page" use a WordPress-style editor with two tabs:
- Visual — a normal formatting toolbar (bold, italic, lists, links, images, alignment) — you type and format like in a word processor, no HTML knowledge required.
- Text — shows the raw HTML source, for advanced users who want full control over the markup.
Switching between the two tabs keeps your content in sync both ways.
4- The Video Player
- Quality menu — appears in the player's Settings (⚙) menu whenever a video has more than one quality file uploaded (see 4.6). The visitor can switch any time; the video resumes from the same point.
- Starting quality — chosen automatically from the visitor's connection speed the first time the video loads; the visitor's manual choice always takes priority afterward.
- Fullscreen — the ad and related-videos overlays keep working correctly in fullscreen too, on both mobile and desktop.
- Keyboard shortcuts — spacebar toggles play/pause anywhere on the page (as long as you're not typing in a text field).
Connection speedStarting qualitySlow-2G / 2G360p3G480p4G (moderate)720p4G (fast)1080p / best available
5- Player Ads & Smartlinks
Go to Player Ads in the admin sidebar:
- Skippable banner ad — turn it on, set how many seconds between ad breaks, and paste your 300×250 ad code. Works fully (pausing and resuming) for direct uploads and YouTube/Vimeo links; other embed types still show the ad on a timer without pausing.
- Smartlink (Companion Link) — turn it on and fill in up to 5 link URLs. The first two clicks on the player open one of these in a new tab (rotating fairly); the third click plays the video normally.
Neither of these is required — leave them switched off if you don't want to show any player ads.
6- Multi-Quality Videos & Auto-Generate
On the Add/Edit Video screen, below the main video upload, there's an optional "Additional Quality Files" panel with four fields: 1080p, 720p, 480p, 360p. Fill these manually, or click 🪄 Auto-Generate Lower Qualities to have your browser convert the video automatically (no special server software needed, so it works on any shared hosting):
- HD/4K source → generates 1080p, 720p, 480p, 360p
- 1080p source → generates 720p, 480p, 360p
- 720p source → generates 480p, 360p
- 480p source → generates 360p
Good to know: Auto-Generate uses your own computer's processing power (not the server's), so it takes a few minutes depending on the video's length and your device, and the first use downloads a one-time ~30MB converter (cached afterward). Very large files (400MB+) may be slow or fail on older/weaker devices — if that happens, the manual Upload fields below always work as a fallback.
7- Media Library (Select Existing / Remove)
- Select Existing — next to every video/thumbnail/quality upload field, this opens a small browser of everything already uploaded to your site, so you can reuse a file instead of uploading it again.
- Remove — a checkbox appears next to any file that's currently attached; tick it and click Save to delete that file from the server.
8- Social Sharing
Every video page has a Share button under the title. Clicking it opens a panel with a copyable link and one-click buttons for WhatsApp, Telegram, X, Facebook, LinkedIn, Reddit, and VK — no setup required.
9- SEO Tools
Fill in the meta title/description/keywords fields wherever you see them. Your sitemaps update automatically — just submit yoursite.com/sitemap.xml once in Google Search Console.
10- Search & Replace
Go to Search & Replace in the admin sidebar to find and fix a word, link, or piece of code across your whole site at once — video titles, descriptions, embed codes, meta fields, category text, page content, and site settings (like header/footer code). Search first to preview every match with a snippet and a count, choose exactly which ones to change (or leave all ticked), then click Replace Selected. A regular-expression mode is available for advanced patterns.
Back up your database first (phpMyAdmin → Export) before using Replace — it edits the database directly and can't be undone.
Security & Anti-Copy
Domain License Lock
During installation, your domain is automatically saved as the "licensed domain" (visible/editable any time in Site Settings). If the site's files are copied to a different domain, visitors there see a "not licensed for this domain" notice instead of your content — the admin panel itself always stays reachable so you can update the licensed domain yourself if you legitimately move to a new domain.
Video Save/Copy Deterrents
- Right-click on the video is disabled and toggles play/pause instead of showing a save menu
- No "Download" option in the player's controls
- Picture-in-Picture shortcut and drag-out-of-page are both disabled on the video element
Please read — set realistic expectations: both of the above are reasonable deterrents used by many commercial sites, not unbreakable protection. Since this is a self-hosted script, whoever legitimately owns a copy has full access to the code and could remove these checks from files they own; and any video played in a browser can, in principle, be captured through other technical means. Treat this as raising the bar for casual copying, not as guaranteed DRM.