convert-videos-2.7.4
توضیحات
This tool allows bulk conversion of videos using ffmpeg
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | convert-videos-2.7.4 |
| نام | convert-videos |
| نسخه کتابخانه | 2.7.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Justin Dray |
| ایمیل نویسنده | justin@dray.be |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/convert-videos/ |
| مجوز | MIT |
# Convert Videos

[](https://codecov.io/gh/justin8/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 using the `--in-place` flag.
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.
## File output
### Container
The default output container is `mkv` format. This can be changed with the `--container` flag to anything that is supported by FFMPEG and the chosen video and audio codecs
## Video output
### Codecs
Currently only HEVC (x265) and AVC (h264) are supported for video codecs.
### Resizing
Videos can be resized automatically by providing a width. Height is automatically calculated to ensure that the aspect ratio is maintained.
### Hardware Acceleration
Hardware acceleration is supported on nVidia devices. Caveats:
- Conversions use constqp mode for the quality setting instead of CRF, this is because nvenc does not support CRF
- b-frames are not currently supported; nvenc itself supports them on 20xx+ series graphics cards.
Default settings:
Audio: 160kbps 2 channel AAC
Video: HEVC/x265 at quality of 23
## Subtitles
All subtitles will be copied from the source if they exist
## Usage
```
Usage: convert-videos [OPTIONS] DIRECTORIES...
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. Supported codecs: HEVC, AVC
[default: HEVC]
-q, --quality INTEGER The quantizer quality level to use [default: 23]
-p, --preset TEXT FFmpeg preset to use. [default: medium]
-w, --width INTEGER Specify a new width to enable resizing of the
video
--extra-input-args TEXT Specify any extra arguments you would like to pass
to FFMpeg input here
--extra-output-args TEXT Specify any extra arguments you would like to pass
to FFMpeg output 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]
--dry-run Do not make actual changes
--nvidia-hw-accel Use Nvidia HW acceleration instead of software
encoding
-h, --help Show this message and exit.
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.4.0,<0.5.0 | colorama |
| >=0.2.2,<0.3.0 | ffmpy |
| >=2.2.0,<3.0.0 | video_utils |
| >=7.0,<8.0 | click |
| >=0.7.2,<0.8.0 | prettytable |
| >=1.2.0,<2.0.0 | stringcase |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl convert-videos-2.7.4:
pip install convert-videos-2.7.4.whl
نصب پکیج tar.gz convert-videos-2.7.4:
pip install convert-videos-2.7.4.tar.gz