reVidx: Re-encode video to AVC/MP3 for legacy compatibility.
Project description
reVidx
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) toAVC(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, andElapsed Time. -
Fast Encoding: Uses
crf20 (default) withveryfastpreset 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
-oto specify a filename, ensure it ends with.mp4or .mkv(video) or.aac(audio). - Automatic Naming: If no name is provided, output is saved as
input-AvcMp3.mp4orinput.aac. - Overwriting: The tool automatically overwrites existing files without prompting.
- Subtitles: Subtitle index start from
0and ensure proper subtitle formats are passed when-burnis provided with external path. - Interrupting: Press
Ctrl+Cto abort the current encoding.
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file revidx-1.3.0.tar.gz.
File metadata
- Download URL: revidx-1.3.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33bc7dae814d00f75ee8de50d3e17ae77fe4dc98f12a9ae0670274e81a597082
|
|
| MD5 |
c816625d0f09ff4f9a3fd2f9085bc0b5
|
|
| BLAKE2b-256 |
80a9e8c934bc08352f811ac44b90244f35ed68bbc0e70a3880c703a619413947
|
Provenance
The following attestation bundles were made for revidx-1.3.0.tar.gz:
Publisher:
publish.yaml on voidsnax/reVidx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revidx-1.3.0.tar.gz -
Subject digest:
33bc7dae814d00f75ee8de50d3e17ae77fe4dc98f12a9ae0670274e81a597082 - Sigstore transparency entry: 830067850
- Sigstore integration time:
-
Permalink:
voidsnax/reVidx@cd79590558fcd703d85b85feb4dd66f641898ebc -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/voidsnax
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@cd79590558fcd703d85b85feb4dd66f641898ebc -
Trigger Event:
push
-
Statement type:
File details
Details for the file revidx-1.3.0-py3-none-any.whl.
File metadata
- Download URL: revidx-1.3.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
389f485aba4ea7a4cb1b1a6a03ec34578f1b6bb2daf1cb11a620589443fcf867
|
|
| MD5 |
63845ae0bdcca51043d08e0be97e2962
|
|
| BLAKE2b-256 |
0085feda0519e2806041ddaf5a4870f9547645b3401ebf7349be31ec08ea015b
|
Provenance
The following attestation bundles were made for revidx-1.3.0-py3-none-any.whl:
Publisher:
publish.yaml on voidsnax/reVidx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revidx-1.3.0-py3-none-any.whl -
Subject digest:
389f485aba4ea7a4cb1b1a6a03ec34578f1b6bb2daf1cb11a620589443fcf867 - Sigstore transparency entry: 830067906
- Sigstore integration time:
-
Permalink:
voidsnax/reVidx@cd79590558fcd703d85b85feb4dd66f641898ebc -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/voidsnax
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@cd79590558fcd703d85b85feb4dd66f641898ebc -
Trigger Event:
push
-
Statement type: