Skip to main content

Mixed videos concatenator

Project description

MixVideoConcat

CodeQL PyPI - Version PyPI - Downloads Code style: black

MixVideoConcat is a Python tool/library based on ffmpeg for concatenating video files of different formats, resolutions, and orientations into a single video file. It supports various input formats and ensures seamless merging of videos while handling differences in resolution and orientation.

Installation

You can install MixVideoConcat via pip:

pip install mixvideoconcat

Command line tool usage

mixvideoconcat [-h] [-t TMPDIR] [-l LOGFILE] [-f] sources [sources ...] destination

positional arguments:
  sources               Source files
  destination           Destination file

options:
  -h, --help            show this help message and exit
  -t TMPDIR, --tmpdir TMPDIR
                        Directory for temprary files (they can be huge!)
  -l LOGFILE, --logfile LOGFILE
                        Log file
  -f, --force           Overwrite existing
  --deinterlace {on,off,auto}
                        Deinterlace mode (default: auto)
  --stabilize {on,off}  Stabilize mode (default: on)
  -v, --verbose         Print verbose information (ffmpeg output)

Example

Concatenate three video files (video1.mp4, video2.mov, video3.avi) into a single video file named output.mp4:

mixvideoconcat video1.mp4 video2.mov video3.avi output.mp4

Library usage

from mixvideoconcat import concat

concat(['video1.mp4', 'video2.mov', 'video3.avi'], 'output.mp4')

Tune

You can override the default constant rate factor (CRF) of 23 by setting the FFMPEG_CRF environment variable. The frame rate will be determined as the maximum frame rate among the source files. To override this, use the FFMPEG_FR environment variable.

Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

Show your support

Give a ⭐️ if this project helped you!

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

mixvideoconcat-1.3.0.tar.gz (45.0 kB view details)

Uploaded Source

Built Distribution

mixvideoconcat-1.3.0-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file mixvideoconcat-1.3.0.tar.gz.

File metadata

  • Download URL: mixvideoconcat-1.3.0.tar.gz
  • Upload date:
  • Size: 45.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for mixvideoconcat-1.3.0.tar.gz
Algorithm Hash digest
SHA256 56946fb50f16362fcf777150ac3bb8f23bc1885b21794755a125127e8cdd6932
MD5 7333a7bb9d5e957a46b0743e1f80d20e
BLAKE2b-256 d149d767f675982bfb4acf49836c36cf8fac395fabba29f696f381638c95decb

See more details on using hashes here.

File details

Details for the file mixvideoconcat-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mixvideoconcat-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2393774f054adf158cbf1a5c3b5e06f926570d3607eb5b68eac7ab30a6d79099
MD5 b3c983166d52393b9ac4f592bad92550
BLAKE2b-256 d9da8e930427fe024e260ef4f1afceb0784c7e2c4b41d050f3010f5560e30eeb

See more details on using hashes here.

Supported by

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