Skip to content

About

Offline, privacy-first batch converter for video, audio, images, and documents — 40+ formats, one app, Linux + Windows builds from a single repo.

Resources

Stars

11 stars

Watchers

2 watching

Forks

Repository files navigation

Cove Universal Converter

An offline, privacy-first batch file converter. Drop in video, audio, images, documents, comics, subtitles, spreadsheets, archives, or structured data and convert between 120+ formats - no files leave your machine.

CUC.mp4

One codebase, one repository, two native builds: a Windows .exe and a Linux binary. Everything below assumes you're starting from a fresh clone:

git clone https://github.com/Sin213/cove-universal-converter.git
cd cove-universal-converter

v3.0.0 - Better batch conversion

  • Several outputs from one file. Use the + beside a file's format dropdown to choose multiple targets. Outputs / Presets applies a selection across compatible queued files. The original single-format dropdown and Apply format to all still work as before.
  • Saved presets. Save a named format selection with the current quality settings, apply it to a file or batch, or delete it. Presets survive restarts in the existing local settings. Names are sanitized and limited to 80 characters; up to 32 presets can be saved. Saving the same name replaces it. Unsupported preset targets and busy files are skipped and reported in the summary/log; no substitute format is chosen. Files without a compatible preset target retain their previous selection.
  • Clear results. Targets run sequentially for each file under the existing batch concurrency limit. Successful outputs remain available when another target fails or the remainder is cancelled. Rows and batch summaries show complete success, partial success, failure, or cancellation. Hover over the output-count button for selected formats; right-click a completed/partial row to open its outputs or inspect a partial failure log.
  • SVG input converts to PNG, JPG, WebP, or PDF, with the restrictions below. Output names are reserved before execution, including case-insensitive collisions and same-stem sources. Existing files retain the overwrite/rename confirmation; case-only collisions are safely renamed. Sources are preserved.

SVG safety and rendering limits

SVG is input-only. PNG and WebP preserve transparency; JPG and PDF have a white background. Raster outputs use SVG's 96-DPI CSS pixel scale. Rendering uses the installed svglib/ReportLab subset and PDFium/Pillow, without additional packages.

Only UTF-8, self-contained vector shapes, paths, text, basic gradients, and clipping are accepted. Scripts, event handlers, DTDs/entities, processing instructions (except an XML declaration), embedded/linked images, use, external references (including relative paths and symlinks), style elements, CSS imports and escaped CSS are rejected with an error. Safe inline styles and local url(#id) paint/clip references are accepted. Fonts use built-in Helvetica, Times, or Courier substitutes; SVG names cannot trigger font-file discovery or external font tools. No SVG-controlled network or local resource fetching is permitted.

Limits: 2 MiB input, 10,000 parsed elements, 64 nesting levels, 8,192 pixels per output dimension, and 16 million pixels total. Parsing also rejects attributes longer than 32,768 characters or containing over 4,096 numeric entries, and conservatively bounds cumulative attribute complexity to 250,000 units (characters plus numeric entries, with ancestor attributes counted again for each descendant). This limits inherited lists, inline styles, points and path data before rendering. On POSIX, the spawned renderer additionally requests 512 MiB address-space/data limits; these are best-effort where supported and unavailable on Windows. Memory exhaustion fails the conversion cleanly. Parsing and rendering run in a fresh spawned process with a 15-second deadline per target, including startup; cancellation or timeout terminates it (and kills it if needed) before temporary-output cleanup. Successful earlier targets remain. This is process isolation with input restrictions, not an OS security sandbox.

This is not a browser renderer: filters, masks, animation, foreign objects and other unlisted SVG elements are rejected. Text shaping, fonts, gradients, clipping and other supported drawing details may differ from browser output. Simplify unsupported artwork in a trusted editor before converting it.

v2.4.0 - Expanded format coverage

This release focuses on breadth: many more input and output formats across every engine, plus a couple of small conversion-quality controls.

New conversions in v2.4.0

  • Video containers - .mxf, .rm, .swf, .vob, .asf, .ogv, .m2ts, .mts, .f4v now read and write like the existing containers. .y4m and .ivf are new write-only targets for tools that expect raw YUV4MPEG2 or IVF/VP9 elementary streams.
  • Audio formats - .ac3, .mp2, .spx, .caf, .au, .wv, .voc, .w64, .mka, .m4b, .oga, .aif, .tta, .amr, and .weba join the existing audio targets.
  • Image formats - .jpe, .jfif, .avif, .jp2/.j2k/.jpx, .tga, .pcx, .ppm/.pgm/.pbm, .dds, and .icns are now supported inputs and outputs.
  • Documents - many more Pandoc-backed input formats (.rst, .org, .textile, .typst, .ipynb, .fb2, .opml, .muse, .man, .native, .mediawiki, .wiki, .dokuwiki, .jira, .docbook) and output formats (.adoc, .tei, .icml, .pptx).
  • Comics - CBZ/CBT to PDF, ZIP, or TAR. New Comic Book Archive support: extracts page images and rebuilds them as a PDF, or repacks the archive into a different container.
  • Subtitles - ASS, SSA, LRC, SBV. Join SRT and VTT with full pairwise conversion between all six formats. Converting ASS/SSA to SRT shows a tooltip warning that styling, karaoke, and positioning are dropped.
  • Spreadsheets - TSV. Round-trips with CSV and XLSX alongside the existing CSV/XLSX pair.
  • Archives - tar.bz2, tbz2, tar.xz, txz. Join ZIP, TAR, and TGZ with bzip2 and xz compressed tarballs, including their short aliases.
  • Structured data - NDJSON, JSONL, plist. Join JSON and YAML for line-delimited JSON and Apple property list interchange.
  • Video codec choice. MP4/MKV output can now target H.264 or AV1.
  • M4A audio codec choice. M4A output can now target AAC or ALAC.

Routing, hardening, and correctness fixes shipped alongside this format expansion are listed in .github/RELEASE_NOTES_v2.4.0.md.


v2.0.0 — Cove redesign

The UI has been rebuilt around the Cove design language shared with the rest of the Cove app suite:

  • Frameless window with custom title bar — Cove icon, centered title with a monospace v2.0.0 chip, and min/max/close controls (no traffic lights). Drag the bar to move, double-click to maximize, grab any edge to resize.
  • Teal accent on a dark navy surface, Geist / Geist Mono fonts when available (with system fallbacks).
  • Redesigned drop zone — dashed border that lights up teal on hover/drag, gradient art tile, and a corner info button that pulls up the full format-support list.
  • Format-tinted file badges in the queue: video = blue, audio = pink, images = teal, documents = green — so a glance tells you what kind of file each row is.
  • Animated progress bars and status chips — Ready / Queued / Processing / Done / Failed states each have their own color and tint.
  • Restyled Quality dialog — segmented controls for video preset and audio bitrate, sliders for image quality and max concurrency, advanced row for fine-grained CRF / WebP tuning.
  • Toast notifications for "Added N files", "Quality settings saved", "All N conversions complete", etc.

New conversions in v2.0.0

  • PDF → DOCX / ODT / RTF / EPUB is now supported. The PDF text is extracted with pypdf, then piped through pandoc to the target document/ebook format. Output is text-only (the original PDF formatting is dropped — that always loses fidelity), but you can edit the result in Word, LibreOffice, or any RTF/EPUB-aware reader.
  • PDF → MD / HTML / TXT (already worked, retained).
  • The PDF target dropdown in the queue now lists .docx, .odt, .rtf, .epub, .md, .html, .txt — pick whichever document tooling you want to land in.
  • Subtitles — SRT ↔ VTT. Pure-stdlib worker that handles the timestamp punctuation difference (, vs .), strips/synthesises cue indices, and drops VTT-only NOTE / STYLE / REGION blocks on the way to SRT.
  • Spreadsheets — CSV ↔ XLSX. Backed by openpyxl; round-trips plain tabular data faithfully (formulae and formatting are dropped on purpose, the goal is interchange not workbook cloning).
  • Archives — ZIP ↔ TAR ↔ TGZ. Stdlib zipfile + tarfile; extracts to a temp dir then repacks. Uses filter='data' on extract (Python 3.12+) to block path traversal / symlink escapes.
  • Data interchange — JSON ↔ YAML. yaml.safe_load / safe_dump only, so untrusted YAML can't construct arbitrary Python objects.

Each new format type has its own UI badge color (lavender for subtitles, mint for spreadsheets, gold for archives, indigo for data) so the queue still tells you what kind of file each row is at a glance.

Optimizations and fixes shipped with v2.0.0

  • HiDPI-aware icons. The Cove title-bar icon and every inline-SVG button icon are now rendered at size × devicePixelRatio and tagged with the right setDevicePixelRatio, so they stay crisp on 1.25× / 1.5× / 2× displays instead of being bilinearly blurred.
  • Visible icon tints. Inline SVGs that used stroke="currentColor" were silently rasterizing to near-black on the dark surface (Qt's QSvgRenderer falls back to black for currentColor outside a CSS-painted document). Every icon now substitutes an explicit tint at rasterization time, so the title-bar min/max/close, the drop-zone info button, and the empty-state file icon are clearly visible.
  • SVG pixmap cache. Inline SVGs are rasterized once per (svg, size, color) combo and reused — opening a file dialog or quality dialog no longer re-renders the same chrome icons.
  • Stylesheet repolish guard. Progress ticks (~5×/sec per active row) and status updates only re-polish the Qt stylesheet when the chip/bar state actually changes, instead of on every value update.
  • Resize cursor no longer sticks. With a translucent frameless window the main window's mouseMoveEvent only fires over the 6 px margin, so leaving that margin into a child widget never reset the cursor. The chrome widget now has an event filter that clears the cursor on Enter, and the move handler uses unsetCursor() so children's own cursors take over again.
  • "Open file" + "Show output folder" buttons. When a batch finishes with at least one successful conversion, two ghost buttons appear in the action row: "Open file" launches the most recent converted file in your default app, "Show output folder" opens the destination directory in your system file manager. Both go through QDesktopServices.openUrl so they work on Linux, Windows, and macOS.
  • Per-row right-click menu. Right-clicking a Done row offers "Open file" and "Show in folder" actions for that specific file — useful when a batch produced several outputs and you want to open one that isn't the most recent. The existing "Remove" item still works for any selection.
  • Toast no longer overlaps the action row. Pinned to the top-center of the window (just below the title bar) so it doesn't hide the new button.
  • Toast lifecycle fix. The fade-out animation finished signal is wired once at construction time instead of reconnecting every show, eliminating the slow per-toast handler accumulation.
  • Centralized theme. A single cove_converter/ui/theme.py owns the palette and global stylesheet, applied once to the QApplication — replaces the per- widget QSS strings each Qt widget used to carry.

"Can it match cloudconvert.com?"

Cloudconvert supports ~200 formats across 24 categories backed by a fleet of cloud workers (LibreOffice headless, ImageMagick, Calibre, FFmpeg, pandoc, ghostscript, plus their own engines). Cove already covers the FFmpeg + Pillow

  • pandoc + xhtml2pdf intersection of that — a meaningful slice of what most people actually convert (A/V, common images, common docs, ebooks). Categories that still aren't supported and would each need their own engine:
  • Spreadsheets: xlsx ↔ csv ↔ ods (would add openpyxl / pandas).
  • Presentations: pptx ↔ pdf ↔ odp (LibreOffice headless is the realistic path).
  • Archives: zip / tar / 7z (pure-Python zipfile, tarfile, py7zr).
  • Vector: svg ↔ png/pdf (cairosvg or svglib).
  • CAD / fonts / 3D / etc.: each of these is its own world.

If any of those categories is interesting to you, file a request and I'll add it the same way the existing engines are wired — one module under cove_converter/engines/, one entry per format in routing.py.


What it can do

Category Supported extensions
Video mp4, mkv, webm, mov, avi, mxf, rm, swf, vob, asf, ogv, m2ts, mts, f4v (read/write); y4m, ivf (write-only); flv, wmv, m4v, mpg, mpeg, 3gp, ts, dv, gif (read-only)
Audio mp3, wav, flac, ogg, m4a, aac, opus, ac3, mp2, spx, caf, au, wv, voc, w64, mka, m4b, oga, aif, tta, amr, weba; wma, aiff (read-only)
Images png, jpg, jpeg, jpe, jfif, webp, bmp, tiff, tif, ico, heic, heif, avif, jp2, j2k, jpx, tga, pcx, ppm, pgm, pbm, dds, icns; svg (input-only, to png/jpg/webp/pdf)
Documents pdf, docx, odt, rtf, epub, md, html, htm, txt, tex, adoc, tei, icml, pptx, rst, org, textile, typst, ipynb, fb2, opml, muse, man, native, mediawiki, wiki, dokuwiki, jira, docbook
Comics cbz, cbt (to pdf, zip, or tar)
Subtitles srt, vtt, ass, ssa, lrc, sbv
Spreadsheets csv, tsv, xlsx
Archives zip, tar, tgz, tar.gz, tar.bz2, tbz2, tar.xz, txz
Data json, yaml, yml, ndjson, jsonl, plist

PDF works in both directions: any of the document formats above can be rendered into a PDF, and a PDF can be exported back out to docx, odt, rtf, epub, md, html, txt, or cbz. PDF -> doc-family conversions extract the text via pypdf and pipe it through pandoc, so the original visual layout is dropped in favor of clean editable structure.

Features:

  • Drag-and-drop, click-to-browse, or drop a whole folder (recurses automatically).
  • Per-file target dropdown and multiple outputs via +, saved presets, or use the "Save to" field to batch-write to one folder.
  • Near-lossless quality by default (CRF 17, preset slow, 320 kbps audio, 95% JPEG/WebP). An opt-in "Customize quality settings" checkbox exposes sliders if you'd rather trade quality for smaller files.
  • Video codec choice for MP4/MKV output (H.264 or AV1) and M4A audio codec choice (AAC or ALAC), independent of the quality-customize toggle.
  • Hardware video encoding: a "Video encoder" choice (Automatic / CPU / NVIDIA NVENC / AMD AMF) offloads H.264 conversions to a supported GPU for a large speed-up. Unavailable vendors are greyed out and unsupported outputs (VP9, etc.) always stay on CPU; a forced-but-missing GPU falls back to CPU without failing the job.
  • A warning tooltip on the target dropdown when converting ASS/SSA subtitles to SRT, since styling, karaoke, and positioning don't survive the format change.
  • Real-time progress bars parsed from FFmpeg's output.
  • Overwrite confirmation with optional auto-rename to file (1).ext, file (2).ext, ...
  • Right-click a row (or press Delete) to remove it from the queue.

Running from source (Linux)

You need Python 3.11 or newer. On Arch:

sudo pacman -S python ffmpeg pandoc

Set up a virtual environment and install the Python dependencies:

python -m venv .venv
.venv/bin/pip install -r requirements.txt

Launch the app:

./run.sh
# or, equivalently:
.venv/bin/python -m cove_converter

Always launch through the venv interpreter (./run.sh enforces this). Running plain python -m cove_converter against your system Python will silently skip optional deps like xhtml2pdf and produce confusing mid-conversion failures (e.g. TXT → PDF appearing to fail at 60%).

FFmpeg and Pandoc are resolved from your system PATH when the app isn't running as a packaged build.


Running from source (Windows)

You need Python 3.11+ from python.org. During installation, tick "Add Python to PATH".

Install FFmpeg and Pandoc:

  • FFmpeg: download a release from gyan.dev, unzip it, and add the bin\ folder to your PATH, or drop ffmpeg.exe into bin\win\ inside this repo.
  • Pandoc: grab the installer from pandoc.org and run it — the installer adds it to PATH automatically.

Then in PowerShell from the repo root:

py -m venv .venv
.venv\Scripts\pip install -r requirements.txt
.venv\Scripts\python -m cove_converter

Building release artifacts

PyInstaller can't cross-compile, so Linux artifacts have to be built on Linux and Windows artifacts on Windows. Each platform has its own build script that downloads hash-verified ffmpeg / pandoc archives and produces the final files. Both scripts install the hash-locked runtime set from requirements-runtime.lock and exact tools from requirements-build.txt. After an intentional dependency update, regenerate the runtime export with uv export --frozen --no-emit-project --no-dev --format requirements-txt --output-file requirements-runtime.lock.

Linux — AppImage + .deb

bash scripts/build-release.sh
# Output in release/:
#   Cove-Universal-Converter-3.0.0-x86_64.AppImage
#   cove-universal-converter_3.0.0_amd64.deb

Override the version with VERSION=3.0.0 bash scripts/build-release.sh. The build rejects unsafe versions and tag mismatches, then runs real packaged conversions before writing checksums.

Windows — Setup.exe + Portable.exe

Requires Inno Setup 6 to be installed (bundled on GitHub Actions' windows-latest).

.\build.ps1 -Version 3.0.0
# Output in release\:
#   cove-universal-converter-3.0.0-Setup.exe
#   cove-universal-converter-3.0.0-Portable.exe

Troubleshooting

"Could not find ffmpeg" on launch System has neither a PATH install nor a bundled binary. Install ffmpeg via your package manager, or drop the binary into bin/linux/ or bin\win\.

HEIC files won't open Make sure pillow-heif was installed (pip install -r requirements.txt). Some ancient HEIC files from older iPhones use HEVC Range Extensions and still fail — convert them with another tool first.

PDF output looks plain We render PDFs via xhtml2pdf (pure Python, no LaTeX dependency). That trades some typographical polish for a zero-friction cross-platform install. If you want LaTeX-quality PDFs, install a TeX distribution and switch the PDF engine.

Windows console window flashes during conversion Shouldn't happen — we pass CREATE_NO_WINDOW to every subprocess. If you see one, please open an issue with your Python and PySide6 versions.

About

Offline, privacy-first batch converter for video, audio, images, and documents — 40+ formats, one app, Linux + Windows builds from a single repo.

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages