Tool

Video File Size Reducer for Mobile Uploads

Compresses video files to a target file size while maintaining acceptable quality.

Outputs optimized MP4 files. The files open in your own spreadsheet, calendar and text programs.

Version 1.0.0 · Teranite Systems

$18.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $18.00

  • Download right after payment, and by email.
  • Runs on your own computer.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

Compresses video files to a target file size while maintaining acceptable quality. Outputs optimized MP4 files. The files open in your own spreadsheet, calendar and text programs.

What's inside

  • Video file size reducer for mo: Instructions.txt, License.txt, example_input_info.txt, example_output_info.txt, generate_test_video.py, video_reducer.py and 2 Python files.

With a README and the Teranite Facet Buyer Licence.

Sample

Video File Size Reducer for Mobile Uploads

Compresses video files to a target file size while maintaining acceptable quality. Outputs optimized MP4 files.

Files: Instructions.txt, License.txt, example_input_info.txt, example_output_info.txt, generate_test_video.py, video_reducer.py. video_reducer.py, start of the file:

#!/usr/bin/env python3
"""
Video File Size Reducer for Mobile Uploads
Version 1.0.0

Compresses video files to a target file size while maintaining acceptable quality.
Outputs optimized MP4 files suitable for mobile uploads and social sharing.

Requirements:
    - Python 3.8 or later
    - FFmpeg (with libx264 and aac codecs)
"""

import subprocess
import sys
import os
import argparse
import json
import shutil

VERSION = "1.0.0"


def check_dependencies():
    """Verify that ffmpeg and ffprobe are available."""
    for tool in ['ffmpeg', 'ffprobe']:
        if shutil.which(tool) is None:
            print(f"Error: {tool} is not installed or not in PATH.")
            print("Please install FFmpeg from https://ffmpeg.org/")
            sys.exit(1)


def get_video_info(input_path):
    """Get video information using ffprobe."""
    cmd = [
        'ffprobe', '-v', 'error',
        '-show_entries', 'format=duration,size,bit_rate:stream=width,height,codec_name,r_frame_rate,bit_rate,sample_rate,channels',
        '-of', 'json',
        input_path
    ]
    result = subprocess.run(cmd, capture_output=True, text=True)
    if result.returncode != 0:
        raise RuntimeError(f"Could not re

Requirements

  • A program that opens the file types listed.
  • Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
  • Not opened in other programs.

Install

Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Tools

See all