This tool allows bulk conversion of videos using ffmpeg
Project description
Convert Videos
This tool allows bulk conversion of videos using ffmpeg.
By default it will append the codec name to the file, e.g. Best Movie Ever.avi
-> Best Movie Ever - x265.mkv
. This can be optionally overridden.
Videos are only converted if they do not already match the desired codec, allowing you to process a folder of mixed format files and only convert the ones you desire. This can optionally be overridden.
Videos can also be resized automatically by providing a width. Height is automatically calculated to ensure that the aspect ratio is maintained.
Default settings: Audio: 160bps 2 channel AAC Video: HEVC/x265 at quality of 22
Usage
Usage: convert-videos [OPTIONS] DIRECTORY
Options:
-i, --in-place Replace the original files instead of appending
the new codec name
-f, --force Force conversion even if the format of the file
already matches the desired format
--video-codec TEXT A target video codec [default: HEVC]
-q, --quality INTEGER The quantizer quality level to use [default: 22]
-p, --preset TEXT FFmpeg preset to use [default: medium]
-w, --width INTEGER Specify a new width to enable resizing of the
video
-e, --extra-args TEXT Specify any extra arguments you would like to pass
to FFMpeg here
--audio-codec TEXT A target audio codec [default: AAC]
--audio-channels INTEGER The number of channels to mux sound in to
[default: 2]
--audio-bitrate INTEGER The bitrate to use for the audio codec [default:
160]
--temp-dir TEXT Specify a temporary directory to use during
conversions instead of the system default
-v, --verbose Enable verbose log output
--container TEXT Specify a video container to convert the videos in
to [default: mkv]
-h, --help Show this message and exit.
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
Hashes for convert_videos-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d095bf53ed0126cba849c2f1acbbd5038573aad8c9577378c4d655fd008a1f5 |
|
MD5 | 5aee77483d30a5256696fc8e2d43bfd1 |
|
BLAKE2b-256 | 226c1c84217708f25d313bd22f72e158c138121f95d5c115670d6ff720b785b2 |