FFmpeg Helper

Build reusable ffmpeg commands for Android Termux. This page never runs ffmpeg — it only generates command lines.

How to use

Android browsers cannot reveal real filesystem paths. Pick files to get their names, then set base directories that Termux can access. The helper combines your base dirs with file names to form paths.

  • Typical input base dir: /storage/emulated/0/Download
  • Typical output base dir: /storage/emulated/0/Movies
  • Termux home: /data/data/com.termux/files/home

Placeholders like {inputPath} and {outputPath} are expanded per selected file. Copy commands and paste them into Termux bash.

FFmpeg tips
  • -i sets the input. Most commands start with ffmpeg -i {inputPath}.
  • -c copy (or -c:v copy -c:a copy) rewraps without re‑encoding.
  • -map 0 keeps all streams (extra audio tracks, subtitles).
  • Trimming: -ss start time, -t duration, or -to end time. Use -c copy for fast cuts when possible.
  • Quality: -crf controls size/quality (x264 typical 18–23, x265 typical 24–30). Lower is better quality and larger files. -preset trades speed for compression.
  • Filtergraphs often need quotes: -vf "fieldmatch,yadif,decimate". Use straight quotes.
  • In bash loops, add -nostdin before -i to avoid interactive stdin issues.

Settings

Used directly in commands. Must match a real Termux‑visible path.
Used directly in commands. Must match a real Termux‑visible path.
Generates {outputFileName}. Example:
If templates start with ffmpeg, this value is used instead.
Affects placeholders like {inputPath} and {outputPath}.
Data import/export

Source files

No files selected.
Input path preview
Output path preview

    Templates

    New template

    Allowed placeholders: {inputPath}, {outputPath}, {inputBaseName}, {inputExt}, {inputFileName}, {outputFileName}, {index}, {index1}, {inputBaseDir}, {outputBaseDir}, {ffmpegBinary}, plus any params you add.
    Parameters
    Live preview (first file)
    Select a file to preview.

    Import backup

    Choose how to apply the imported data.