BigicloudTV Video Optimization Tool
This guide explains how to use the automated video converter to prepare your videos for upload to the BigicloudTV platform. This tool automatically:
- Resizes video to 720p (HD).
- Adds your logo to the top right corner.
- Compresses the video to a strict bitrate (2Mbps total) to ensure smooth streaming.
Part 1: Windows Users
1. Initial Setup (One-Time Only)
The script requires a tool called FFmpeg. Follow these steps carefully:
- Click here to download FFmpeg (Windows).
- Extract the downloaded ZIP file.
- Open your C: Drive (
C:\). - Create a new folder named
ffmpeg. - Copy the contents of the extracted folder so that the
binfolder is located strictly at:C:\ffmpeg\bin\
Verification: You should see the fileffmpeg.exeinside that folder.
2. Create the Script
Open Notepad and copy the code below. Save the file as convert_all.bat (ensure "All Files" is selected in the save dialog so it doesn't end with .txt).
@echo off
setlocal enabledelayedexpansion
REM === Path to ffmpeg ===
set FFMPEG=C:\ffmpeg\bin\ffmpeg.exe
set LOGO=%~dp0logo.png
REM === Encoding settings (Strict ~2Mbps Total Limit) ===
REM Video (1800k) + Audio (128k) + Overhead ~= 2000k Total
set TARGET_BITRATE=1800k
set MAX_BITRATE=1800k
set BUF_SIZE=3600k
set AUDIO_BITRATE=128k
cd /d %~dp0
set OUTPUT=%~dp0converted
if not exist "%OUTPUT%" mkdir "%OUTPUT%"
for %%a in (*.mp4) do (
echo Processing: %%a
"%FFMPEG%" -i "%%a" -i "%LOGO%" -filter_complex ^
"[0:v]scale=1280:720[bg];[1:v]scale=70:-1[logo];[bg][logo]overlay=W-w-40:40" ^
-c:v h264_nvenc -preset p5 ^
-profile:v high -level 4.0 -pix_fmt yuv420p ^
-b:v %TARGET_BITRATE% -maxrate %MAX_BITRATE% -bufsize %BUF_SIZE% ^
-r 30 -g 60 -keyint_min 60 -sc_threshold 0 ^
-c:a aac -ar 48000 -b:a %AUDIO_BITRATE% ^
-movflags +faststart ^
-y "%OUTPUT%\%%~nxa"
)
echo.
echo Done! BigicloudTV optimized files created.
pause
3. Preparing Your Folder
- Create a folder on your Desktop (e.g., "BigicloudTV_Convert").
- Place the
convert_all.batfile (that you just created) in this folder. - Add Your Logo:
- Copy your logo image into this folder.
- Crucial Step: You must rename your logo file to
logo.png. The script will only look for a file with this exact name.
- Copy all the
.mp4videos you want to convert into this same folder.
4. Running the Converter
- Double-click
convert_all.bat. - A window will open showing the progress.
- Once finished, a new folder named
convertedwill appear containing your BigicloudTV-ready videos.
5. Customization & Troubleshooting
Right-click convert_all.bat and select Edit to change settings.
Changing Resolution (720p to 1080p)
By default, the script outputs 720p. To switch to Full HD (1080p):
- Find:
scale=1280:720 - Replace with:
scale=1920:1080
Switching from GPU to CPU (If the script crashes)
By default, the script uses NVIDIA GPU acceleration. To use standard CPU mode:
- Find:
-c:v h264_nvenc -preset p5 ^ - Replace with:
-c:v libx264 -preset fast ^
Changing Quality (Bitrate)
Find set TARGET_BITRATE=1800k and increase it (e.g., to 3000k) if your BigicloudTV plan supports higher quality.
Part 2: Mac Users
MacOS cannot run .bat files. Please use the script below.
1. Install FFmpeg on Mac
- Open the Terminal app.
- Install Homebrew if needed, then type:
brew install ffmpeg
2. Create the Mac Script
Create a text file named convert_for_bigicloud.sh with the following content:
#!/bin/bash
# Settings for BigicloudTV
TARGET_BITRATE="1800k"
MAX_BITRATE="1800k"
BUF_SIZE="3600k"
AUDIO_BITRATE="128k"
LOGO="logo.png"
# Create output folder
mkdir -p converted
# Loop through all MP4 files
for f in *.mp4; do
echo "Processing for BigicloudTV: $f"
ffmpeg -i "$f" -i "$LOGO" -filter_complex \
"[0:v]scale=1280:720[bg];[1:v]scale=70:-1[logo];[bg][logo]overlay=main_w-overlay_w-40:40" \
-c:v libx264 -preset fast \
-profile:v high -level 4.0 -pix_fmt yuv420p \
-b:v $TARGET_BITRATE -maxrate $MAX_BITRATE -bufsize $BUF_SIZE \
-r 30 -g 60 -keyint_min 60 -sc_threshold 0 \
-c:a aac -ar 48000 -b:a $AUDIO_BITRATE \
-movflags +faststart \
-y "converted/${f%.*}.mp4"
done
echo "Done! BigicloudTV optimized files created."
3. Running on Mac
- Put the script,
logo.png, and videos in one folder. - Open Terminal, type
cd(with a space) and drag the folder into the window. Hit Enter. - Type
chmod +x convert_for_bigicloud.shto make it executable. - Run it by typing
./convert_for_bigicloud.sh - Note: To change resolution on Mac, edit the file and change
scale=1280:720toscale=1920:1080.