Giter Club home page Giter Club logo

video-silence-remover's Introduction

Video Silence Remover

The objective of this project is to create software capable of assisting in automatic video editing, with minimal human supervision. I have a video (in Portuguese) that explains the project.

How to Use

First of all, you need to have ImageMagick installed on your system. I have used ImageMagick-7.0.10-Q16.

Installing

  1. Clone the repository with the following command: git clone https://github.com/lucaslattari/Video-Silence-Remover.git
  2. Install the requirements with the following command: pip install -r requirements.txt

Running

Run the following command from the project folder to execute the program: python main.py video.mp4

At the end of the program execution, the final.mp4 file will be created in the same folder.

Disclaimer

This software has not been tested on Linux and may not work as expected. While efforts have been made to ensure compatibility with Windows, the software may not function properly on other operating systems. Use at your own risk.

More Details

  • YouTube Video - A video explaining how the software works and the source code (in Brazilian Portuguese).
  • Blog Post - The first part of a blog post that explains how the software works in the most updated version (in Brazilian Portuguese).

Built With

  • pydub - A Python library for audio manipulation with a simple and easy high-level interface (http://pydub.com).
  • moviepy - A Python library for video editing.

Contributing

Feel free to contribute to the project!

Authors

Acknowledgments

  • People who follow me on YouTube and on the internet.
  • Douglas Lacerda - HermesPasser for helping to improve the initial code.

video-silence-remover's People

Contributors

adolfont avatar adorilson avatar dunossauro avatar hermespasser avatar lucaslattari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

video-silence-remover's Issues

The program opens a ImageMagick windows instead of trimming the video

I tried to run the code the first time, then it asked me to select ImageMagick .exe file, after doing that, a ImageMagick window opened. I thought the window would open and then close to go on with the execution, but it didn't work, and when I close the window manually, the program throws the error in the video attached.
Obs:
I was using Windows 10.
Python's version = 3.8.3
ImageMagick-7.0.10-Q16-HDRI
All requirements were installed from requirements.txt.

2021-01-03.12-34-44.mp4

Some improvements need about ImageMagick

Some improvements need about ImageMagick

  1. Bug when I cancel the IM exec choice

If I cancel the IM exec choice the file settings.in is created as well.

Then we I run again, I get the error:

OSError: ImageMagick binary cannot be found at ()

  1. I dont selected the IM exec in Linux platform

  2. Some comments in source-code cites config.ini (the correct is settings.ini)

Cant install inside a VENV? Failed to install

Got this error:

 File "C:\Users\x\AppData\Local\Temp\pip-build-env-nr8lwnpu\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 505, in spawn
          return super().spawn(cmd, env=env)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\x\AppData\Local\Temp\pip-install-1ogos32k\numpy_97c0f0c9df5944748d9db9fe5380354e\numpy\distutils\ccompiler.py", line 90, in <lambda>
          m = lambda self, *args, **kw: func(self, *args, **kw)
                                        ^^^^^^^^^^^^^^^^^^^^^^^
      TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
      [end of output]

Failed to install

Hi there

I couldn't install because of the below errors:

Command: python main.py video.mp4
Output:

 File "main.py", line 9
SyntaxError: Non-ASCII character '\xc3' in file main.py on line 9, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Command: pip install -r requirements.txt
Ouput:

Defaulting to user installation because normal site-packages is not writeable
Collecting certifi==2019.11.28
  Downloading certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
     |████████████████████████████████| 156 kB 163 kB/s 
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 172 kB/s 
Collecting decorator==4.4.2
  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting idna==2.9
  Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Collecting imageio==2.8.0
  Downloading imageio-2.8.0.tar.gz (3.3 MB)
     |████████████████████████████████| 3.3 MB 139 kB/s 
ERROR: Package 'imageio' requires a different Python: 2.7.18 not in '>=3.5'````

Can you help please? thanks

I wasn't able to install it.

I am using Ubuntu LInux 22.04.

When I ran:

pip install -r requirements.txt

The result was:

Collecting certifi==2020.12.5
  Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting chardet==4.0.0
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting decorator==4.4.2
  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting idna==2.10
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting imageio==2.9.0
  Using cached imageio-2.9.0-py3-none-any.whl (3.3 MB)
Collecting imageio-ffmpeg==0.4.2
  Using cached imageio_ffmpeg-0.4.2-py3-none-manylinux2010_x86_64.whl (26.9 MB)
Collecting moviepy==1.0.3
  Using cached moviepy-1.0.3.tar.gz (388 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

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.