মিডিয়া কনভার্টার
আপলোড করা ভিডিও FFmpeg দিয়ে আপনার বেছে নেওয়া সাইজে স্ট্রিম-যোগ্য MP4-এ বদলায়, পোস্টার ও ওয়াটারমার্কসহ, তাই AIO Player-এ কোয়ালিটি মেনু আসে। প্রিমিয়াম।
The Media Converter plugin takes every uploaded video and, in the background with FFmpeg, makes MP4 copies that start playing at once (faststart) in the sizes you choose - 360p, 720p, 1080p and so on - plus a poster frame, and optionally burns your watermark into the picture. The AIO Player (Downloads) then shows a quality menu, and an AVI, MKV or MOV upload plays in every browser.
It is for sites that host video: without it, a browser can only play what it was uploaded with, and a 4 GB MKV will not stream to a phone.
Switching it on
Media Converter is a premium plugin: it needs the media-converter addon on your licence. Buy it at lcpanel.com, press Check again now on Admin → Configuration → License, then switch Media Converter on at Admin → Extensions → Plugins (Manage Plugins). Two pages appear under Extensions: Conversion Queue (/admin/plugin/media-converter) and Schedule Conversion (/schedule).
It needs FFmpeg on the server. The site looks in the usual places (/usr/bin/ffmpeg, /usr/local/bin/ffmpeg, and the path on the command line) - Admin → System Tools → Test Tools has an FFmpeg check, and the queue page shows a warning while none is found. On a host without one, install it (ffmpeginstaller.com, or your package manager) or type its path into the plugin's FFmpeg path setting.
Conversion runs from the cron job process_converter_queue (Media converter queue, every minute) - see Scheduled jobs. Without the cron line the queue only fills up; the page's Run the queue now button works it off by hand.
Settings
The settings are grouped in tabs:
Conversion Options
| Setting | What it does |
|---|---|
| Process files | Extensions that are converted (default avi,3gp,ogg,mpg,mpeg,mov,mj2,flv,wmv,webm,mp4,m4v,mkv,ts). |
| Convert videos | Yes (convert videos and capture the screenshot) or No (just capture the screenshot). |
| Converted output | MP4 (default) (H.264 + AAC) or WebM (VP9 + Opus). |
| Process existing MP4s | No: an uploaded MP4 is only made streamable (-movflags +faststart, no re-encode) and kept. Yes: converted like any other type. |
| Make a web preview for videos a browser cannot play | On by default. See The web preview below. |
| How hard to squeeze | Fastest - bigger files, Balanced (recommended), Small files (2-3x slower) or Smallest files (slowest). Slower modes make smaller files for the same picture. |
| Quality shift | From -4 (best, biggest) to +4 (smallest, softest); 0 by default. Moves the quality number of every size. |
| Smart copy | On by default. When the picture is already web-safe H.264 at the right size and small enough, it is copied (with an AAC sound) instead of encoded again: seconds instead of the length of the film. |
| FFmpeg threads | Default 2; 0 lets FFmpeg decide. |
| Highest framerate | Default 30; a source with a higher rate is brought down to it; 0 keeps the source framerate. |
| Frame-rate cap | On: 30 frames a second at 480p and below, 60 at most anywhere. |
| Make the poster picture | On: a frame of the video (see Screenshots) becomes its thumbnail and the player's poster. |
Video Resolutions - a 144p to 2160p row each, with a switch and its own bitrate: 144p (256 wide, 150k), 240p (400k), 360p (800k), 480p (1200k), 720p (2500k), 1080p (5000k), 1440p (9000k), 2160p (16000k). 360p to 1080p are on by default. A size larger than the source is skipped.
FFMPEG & Cron - FFmpeg path (empty = found automatically; the help text tells you where), FFprobe path (empty = next to FFmpeg) and PHP (command line) path (used to start the background worker; empty = found automatically). Then the settings that keep the site quick while videos are converted:
| Setting | What it does |
|---|---|
| Run in the background | On: when the queue is started from a web request, a separate process does the work so the page does not wait. The real cron always works in place. |
| Gentle mode | On: FFmpeg runs at a lower priority so pages stay quick. |
| While the server is busy, conversion may use | Everything, 75 %, 50 % (recommended), 35 % or 25 % of its batch when the load is high. Not used where the load cannot be read (Windows). |
| Small files first | On: the queue starts with the smallest videos, so short clips are ready before long films. |
| Resume | On: a size (or web preview) already made is not made again when the video is queued again. |
| Keep free on the disk (MB) | 300 by default. Conversion waits rather than use the last of the disk - a full disk stops the database too. |
Other Options - Max concurrent conversions (jobs per cron run, default 1), Keep the original file (default on; off replaces the original with the best converted size once done and recounts the member's storage), Allow experimental codecs.
Video Watermark - Burn a watermark into the video, Watermark image (a PNG with transparency, stored in uploads/logos), Watermark position (nine positions from Top-Left to Middle), Watermark padding (px).
Screenshots - Screenshot taken After x seconds or After x percent, and x (default 5).
The queue
Every video upload whose extension is in Process files is queued the moment it arrives. Conversion Queue shows Pending conversions, Failed last 3 days, Total completed and Completed last 3 days, then the jobs: Date Added, File (name, short url, size), Convert Video, Capture Screen, Status with FFmpeg's message when it failed, Date Started. Filter By status or by File. A pending or processing job has Run now and Cancel; a finished or failed one has Redo; any row can be Deleted. Finished and cancelled rows older than 30 days are cleared by themselves.
Run now on a row converts that one file at once, in the page request you made, without waiting for the cron: the row turns Completed or Failed and the page answers Converted: … or Failed: … with FFmpeg's own words. A long film can take longer than the web server allows a page to run, so for a big file prefer the cron or the background worker, and use Run now for short clips and for finding out why a job fails. Run the queue now, under the table, works the next batch off by hand, as the cron would.
Two notices can appear above the numbers:
- FFmpeg was not found on this server, so every job stays pending. Install FFmpeg (
apt install ffmpeg, or ask the host) and type its path into the plugin's FFmpeg path setting (the notice links to Settings). A second, yellow notice repeats it under the numbers while no FFmpeg is found. - The cron line is not arriving, so the queue only moves when you press "Run now" or "Run the queue now" here, or when a page view triggers it. It links to Background Tasks, where the cron line to paste into cPanel is (Scheduled jobs).
Neither notice means something is broken beyond that: the queue keeps filling, and the jobs run as soon as FFmpeg is found and the cron (or you) starts them.
Schedule Conversion queues videos that were uploaded before the plugin was on, or that you want again: paste Enter file short url(s) - the part of a file's address after the domain, e.g. x2d3a, one per line or comma separated, at most 500 - choose Conversion type (Convert video & capture screenshot or Capture screenshot only) and press Schedule conversion.
What a conversion does
- Fetches the primary copy from its file server (a local copy is made for a bucket or FTP server).
- Takes the poster frame at the chosen second or percentage into
uploads/thumbs/<id>-m.jpg(and-l.jpg); it becomes the file's thumbnail in the file manager and the player's poster. - Makes each enabled size that is not larger than the source,
-preset veryfast, with the watermark filter when it is on, and stores it as an artifactvideo_<height>pon the same server. An existing MP4 is only given faststart when Process existing MP4s is No. - The player lists every size in its quality menu (File Previewer hands video files to the AIO Player).
Deleting a file cancels its pending job.
The web preview
Some videos play with no picture or no sound in a browser even though they play on a computer: a film from a torrent as an MKV with HEVC (H.265) video and Dolby Digital Plus (E-AC3) or DTS sound is the classic. A browser can only play H.264, VP8, VP9 or AV1 pictures with AAC, MP3, Opus, Vorbis or FLAC sound, in an MP4, M4V or WebM box.
With Make a web preview for videos a browser cannot play on, every uploaded video is checked with FFprobe. One that a browser cannot play as it is gets a second, small copy next to the original - an MP4 with H.264 video and AAC sound, stored as the file's video_web copy. The player lists that copy first, as Original, and takes the raw file out of its list; the original stays untouched for download. Notes:
- It works even when every size under Video Resolutions is switched off, and any video is looked at even if its extension is not in Process files.
- Smart copy makes it cheap: a picture that is already H.264 is copied, a sound that is already AAC or MP3 (stereo or mono) is copied, and only the part a browser cannot play is encoded - so an MKV with good H.264 picture and E-AC3 sound is ready in seconds. The size does not exceed the largest size you enabled, and the bitrate follows that size's setting.
- Until the copy exists, the file page shows Preparing the web preview… sound and picture will work in a minute under the player.
- A video that has a converted size (360p and so on) already plays in the browser and gets no extra preview. Resume keeps an existing preview from being made again when the video is queued again.
Tips
- Start with 360p, 720p and 1080p. Every extra size costs disk space on the file server and minutes of CPU.
- Keep Max concurrent conversions at 1 on shared hosting; raise it only on a server with spare cores, and lower FFmpeg threads if the site gets slow while converting.
- Keep the original file off saves a lot of space on a video site, but the member's original bytes are gone for good - say so in your terms.
- A failed job's message is FFmpeg's own; "codec not found" usually means a build without
libx264orlibvpx-vp9.