Skip to main content

Tools for video and audio editing

Project description

mixing

Tools for video and audio editing

To install: pip install mixing

Examples

mixing.video

write_subtitles_in_video

Write subtitles in a video.

Example usage:

>>> from mixing import write_subtitles_in_video
>>> output_path = write_subtitles_in_video("~/Downloads/some_video.mp4") 

Which is syntactic sugar for the more explicit:

>>> output_path = write_subtitles_in_video(
...     "~/Downloads/some_video.mp4", 
...     subtitles="~/Downloads/some_video.srt",
...     output_video="~/Downloads/some_video.mp4"
... )  

Further requirements

FFmpeg

Many of the tools also require ffmeg.

To install FFmpeg on your system, follow the instructions for your operating system below.

macOS

  1. Using Homebrew:
    • Open Terminal.
    • Run the following command:
      brew install ffmpeg
      

For more details, visit the FFmpeg installation page for macOS.

Linux

  1. Using the package manager:
    • For Debian/Ubuntu-based distributions, run:
      sudo apt update
      sudo apt install ffmpeg
      
    • For Fedora, run:
      sudo dnf install ffmpeg
      
    • For Arch Linux, run:
      sudo pacman -S ffmpeg
      

For more details, visit the FFmpeg installation page for Linux.

Windows

  1. Using Windows builds:
    • Download the executable from FFmpeg for Windows.
    • Extract the downloaded files and add the bin directory to your system's PATH.

For more details, visit the FFmpeg installation page for Windows.

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

mixing-0.0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

mixing-0.0.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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