Skip to main content

reVidx: Re-encode video to AVC/MP3 for legacy compatibility.

Project description

reVidx

FFmpeg

reVidx is a cross-platform CLI tool designed to re-encode video files to AVC (H.264) codec and audio to MP3 for compatibility with legacy devices and players.

Built on top of FFmpeg, it offers a simple, fast interface for batch processing video conversion, subtitle burning, and audio extraction (aac) with a minimal terminal progress bar.

Requirements

Installation from source

  • Install directly from github repo
    git clone https://github.com/voidsnax/reVidx.git
    cd revidx
    pip install -e .
    

Features

  • Video Conversion: Converts HEVC (H.265) to AVC (H.264) with proper pixel format and colour range settings for older device compatibility.

  • Audio Conversion: Encodes audio to mp3 (192kbps) for video files.

  • Audio Extraction: Extracts audio directly to aac (128kbps).

  • Subtitle Burning: Hardcode subtitles into the video track.

  • Progress Bar: Displays real-time stats including Size, Duration, Percentage, and Elapsed Time.

  • Fast Encoding: Uses crf 20 (default) with veryfast preset for a balance of speed and quality.

  • Batch Processing: Process multiple video files sequentially with a single command.

Usage

usage: revidx INPUTFILES ... [OPTIONS]

positional arguments:
  inputfiles          Input video files

options:
  -h, --help          show this help message and exit
  -o [PATH/NAME]      Output directory or filename
  -skip               Skip video encoding (copy)
  -burn [INDEX/PATH]  Burn subtitles into the video (default: first subtitle stream from input)
  -aindex INDEX       Audio index (default: 0)
  -audio              Extract only audio to AAC
  -crf VALUE          CRF value (default: 20)

Basic Conversion

Convert a video file to avc/mp3. The output will be saved as input-AvcMp3.mp4.

revidx inputvideo

Skip Video Encoding

Convert the audio to mp3 and Keep the original video stream.

revidx inputvideo -skip

Specify Output Path

Convert a videofile and save it with specific name or convert multiple files and save them to specific folder.

revidx inputvideo -o ~/Covertedvideo.mp4
revidx inputvideo -o ./ConvertedVideos

Burn Subtitles

Burn the first subtitle track into the video.

revidx inputvideo -burn

Burn a specific subtitle stream from input video.

revidx inputvideo -burn 2

Burn a specific external subtitle file.

revidx inputvideo -burn pathtosubfile

Extract Audio Only

Extract the audio track to an aac file.

revidx inputvideo -audio

Notes

  • Output Extensions: When using -o to specify a filename, ensure it ends with .mp4 or .mkv (video) or .aac (audio).
  • Automatic Naming: If no name is provided, output is saved as input-AvcMp3.mp4 or input.aac.
  • Overwriting: The tool automatically overwrites existing files without prompting.
  • Subtitles: Subtitle index start from 0 and ensure proper subtitle formats are passed when -burn is provided with external path.
  • Interrupting: Press Ctrl+C to abort the current encoding.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revidx-1.3.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

revidx-1.3.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file revidx-1.3.3.tar.gz.

File metadata

  • Download URL: revidx-1.3.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for revidx-1.3.3.tar.gz
Algorithm Hash digest
SHA256 2390fd26aa381cf35eeb1b9fa1fede1a24c1d11afa0c6cc71c795407ac747fae
MD5 47fe03d16da5d77e0484632cf86e5d7b
BLAKE2b-256 59c62caef2f12663b3017c4881cc8e8481b2c0d09e60dfd5a44f9e1937aad2fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for revidx-1.3.3.tar.gz:

Publisher: publish.yaml on voidsnax/reVidx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file revidx-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: revidx-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for revidx-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63854d415780e73851f1936b0bc201406661b5a027db593a017d1863b8f5262e
MD5 0b661828c5f55d307df195be0a6dfe05
BLAKE2b-256 13c7e2abcdabd288bfaa92d95ecea699ef39cb7c9138fe2fd44237e9b05edec1

See more details on using hashes here.

Provenance

The following attestation bundles were made for revidx-1.3.3-py3-none-any.whl:

Publisher: publish.yaml on voidsnax/reVidx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page