GithubHelp home page GithubHelp logo

fborowiec / video_pyeditor Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 72 KB

This is my video editing tool I use for simple operations on videos.

Home Page: https://github.com/FBorowiec/video_pyeditor

License: Other

Python 87.02% Starlark 12.98%
video-editing video-editor ffmpeg-wrapper ffpmeg ffmpeg-script bazel imageio opencv opencv-python imageio-framework

video_pyeditor's Introduction

Script for basic video editing operations

This is my video editing tool I use for simple operations on videos.

The script allows you to:

  • trim the length of a video
  • change the format of the video
  • rotate a video
  • record your desktop
  • change video metadata
  • modify video aspect
  • resize a video
  • concatenate more videos
  • crop a video

How to run the code locally with Bazel already installed on host

First, you need to instal ffmpeg:

sudo apt install ffmpeg

Bazel installation

Install Bazel

Once you have successfully installed Bazel you can run the code using:

bazel run //:video_pyeditor -- --video_path=/path/to/my_video.mp4 --trim

Run the code inside a container

You can use my following Docker image to instantiate a container locally with Ubuntu and Bazel already installed:

docker run -it --rm framaxwlad/ubuntu_dev:latest

There you can simply clone the repository:

git clone https://github.com/FBorowiec/video_pyeditor.git
apt update && apt install -y ffmpeg
cd video_pyeditor/

And use the aforementioned commands to run the program:

bazel run //:video_pyeditor -- --video_path=/path/to/my_video.mp4 --trim

You might want to use the mount volume flag -v to the folder containing the video ex: -v ~/Videos:/home. Then running the script with a video under ~/Videos on host would look like:

docker run -it --rm -v ~/Videos:/home framaxwlad/ubuntu_dev:latest

git clone https://github.com/FBorowiec/video_pyeditor.git
apt update && apt install -y ffmpeg
cd video_pyeditor/
bazel run //:video_pyeditor -- --video_path=/home/my_video.mp4 --trim

video_pyeditor's People

Contributors

fborowiec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

swipswaps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.