unsilence:控制台界面和库,用于删除媒体文件的静默部分:speaker_low_volume:

  • d1_737809
    了解作者
  • 4.7MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-26 09:05
    上传日期
沉默 控制台界面和库,用于删除媒体文件的静默部分 演示版 未经编辑(之前) 由沉默处理(之后) 编辑前时间:0:09:45(100%) 编辑后时间:0:07:56(81.2%),差异:-0:01:50(-18.8%) 开始时不包括MIT简介,因为我将其留给展示视频的许可证。 这些视频来自此在线讲座: 安娜·贝尔(Ana Bell),埃里克·格里姆森(Eric Grimson)和约翰·古塔格(John Guttag)。 6.0001 Python中的计算机科学和编程简介。 2016年秋季。麻省理工学院:MIT OpenCourseWare, ://ocw.mit.edu。许可:知识共享BY-NC-SA。 在本自述文件的“许可”部分中可以找到有关许可的更多信息。 介绍 Unsilence是一种开源工具,可从您选择的媒体剪辑(音频,视频)中消除静音。 您可以使用它来加快视频速度,而无需更改音频
unsilence-master.zip
内容介绍
<h1 align="center">Unsilence</h1> *<p align="center">Console Interface and Library to remove silent parts of a media file</p>* <p align="center"> <a href="https://github.com/lagmoellertim/unsilence/blob/master/LICENSE" target="_blank" rel='nofollow' onclick='return false;'><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat" alt="MIT License Badge"/></a> <a href="https://github.com/lagmoellertim/unsilence/actions" target="_blank" rel='nofollow' onclick='return false;'><img src="https://github.com/lagmoellertim/unsilence/workflows/Upload Python Package/badge.svg" alt="Github Action Badge"/></a> <a href="https://hub.docker.com/repository/docker/lagmoellertim/unsilence" target="_blank" rel='nofollow' onclick='return false;'><img src="https://img.shields.io/docker/cloud/build/lagmoellertim/unsilence" alt="Docker Cloud Build Status"/></a> <a href="https://unsilence.readthedocs.io" target="_blank" rel='nofollow' onclick='return false;'><img src="https://readthedocs.org/projects/unsilence/badge/?version=latest" alt="Documentation Build Status"/></a> <a href="https://app.codacy.com/manual/lagmoellertim/unsilence?utm_source=github.com&utm_medium=referral&utm_content=lagmoellertim/unsilence&utm_campaign=Badge_Grade_Dashboard" target="_blank" rel='nofollow' onclick='return false;'><img src="https://api.codacy.com/project/badge/Grade/912008edef1b4960818c29a16ef2c29f" alt="Codacy Badge"/></a> <img alt="Lines of code" src="https://img.shields.io/tokei/lines/github/lagmoellertim/unsilence"> </p> --- <p align="center"> <a href="https://asciinema.org/a/jnU7VsPNqaNER3dSrvLp2RAQF" target="_blank" rel='nofollow' onclick='return false;'><img src="https://raw.githubusercontent.com/lagmoellertim/unsilence/master/media/terminal.gif"/></a> </p> ### Demo |Unedited (Before)|Processed by Unsilence (After)| |:-:|:-:| |[![Unedited Demo Video][unedited_demo_video_1_gif]][unedited_demo_video_1_vid]|[![Edited Demo Video][edited_demo_video_1_gif]][edited_demo_video_1_vid]| |Time before edit: 0:09:45 (100%)| Time after edit: 0:07:56 (81.2%), Difference: -0:01:50 (-18.8%)| The MIT Intro at the beginning is not included into the time, since I left it in to show the license of the videos. These videos are from this online lecture: Ana Bell, Eric Grimson, and John Guttag. 6.0001 Introduction to Computer Science and Programming in Python. Fall 2016. Massachusetts Institute of Technology: MIT OpenCourseWare, https://ocw.mit.edu. License: Creative Commons BY-NC-SA. More Information about Licensing can be found in the Licensing Segment of this README. [unedited_demo_video_1_gif]: https://raw.githubusercontent.com/lagmoellertim/unsilence/master/media/unedited_demo.gif [unedited_demo_video_1_vid]: https://youtu.be/wl7bveY5Ze4 [edited_demo_video_1_gif]: https://raw.githubusercontent.com/lagmoellertim/unsilence/master/media/edited_demo.gif [edited_demo_video_1_vid]: https://youtu.be/EaQh9cZ_jrs ## Introduction Unsilence is an **open-source tool** that **removes silence** from a media clip of your choice (audio, video). You can use it to **speed up** videos without changing the audible speed, so you can understand everything, but get through a video **faster**. ### Exemplary use cases - You are a college student and watch your lectures online (but have access to the video files). Instead of just increasing the playback speed to ~1.5x, you can remove the parts that do not contain any value, like your lecturer thinking or waiting for something. But instead of cutting out these silent parts, speeding them up by a different, much faster factor (think 6-8x) makes you still able to follow what is happening, so drawing or writing with no speech is sped up, which makes it far more pleasant to watch - You want a video editor that automatically cuts any time you talk (or make any sound). That could be useful for manual time lapses (you make a sound every time a short segment should be recorded), or for very fast jump cut videos with no manual editing required - You want to have some fun and remove all the audible parts from a video, leaving only the parts where nearly silent noises are in the video (breathing, writing, ...) ### Communication If you have any (technical) questions about unsilence or want to get community feedback, you can use the new [GitHub Discussions Feature](https://github.com/lagmoellertim/unsilence/discussions/). To report a bug or suggest a new feature, create a new issue instead. ### Usage Information Unsilence can be used as a console line interface or as a python library, with which you can develop your own projects ### Prerequisites - [Python](https://www.python.org/) >= 3.7.0 - [pip](https://pypi.org/) (should be installed automatically with python, could be different on some linux distros) - [ffmpeg](https://ffmpeg.org/) >= 4.2.4 In order to see the fancy progress bar and other terminal styling on windows, you should use [Windows Terminal](https://github.com/microsoft/terminal). ### Installation as command line interface (using pip and pipx) ```sh # Installing pipx pip install pipx # Installing Unsilence as Command Line Software pipx install unsilence # If pipx asks you to, you also need to execute the following line # as well as close and reopen your terminal window pipx ensurepath ``` ### Installation as library (using pip) ```sh # Installing Unsilence as Command Line Software pip install unsilence ``` ### Installation as command line interface (from source) ```sh # Clone the repository (stable branch) git clone -b master https://github.com/lagmoellertim/unsilence.git unsilence #Change Directory cd unsilence # Install pip packages pip install -r requirements.txt pip install pipx # Install unsilence package pipx install . ``` ### Installation as library (from source) ```sh # Clone the repository (stable branch) git clone -b master https://github.com/lagmoellertim/unsilence.git unsilence #Change Directory cd unsilence # Install pip packages pip install -r requirements.txt # Install unsilence package python3 setup.py install ``` ## Basic Command Line Usage This generates a new file, where the silent parts are 6x as fast as before, the audible parts are the same speed as before ```sh unsilence [input_file] [output_file] ``` You can change the speed of audible parts with `-as [speed]`, the speed of silent parts with `-ss [speed]` ```sh unsilence [input_file] [output_file] -as [speed] -ss [speed] ``` You can change the volume of audible parts with `-av [volume]`, the volume of silent parts with `-sv [volume]` ```sh unsilence [input_file] [output_file] -av [volume] -sv [volume] ``` To generate an audio only output file, you can add the `-ao` flag ```sh unsilence [input_file] [output_file] -ao ``` To speed up the rendering process, you can increase the thread count using `-t [threads]` ```sh unsilence [input_file] [output_file] -t [threads] ``` For many more settings, type `-h` or `--help` ```sh unsilence --help ``` ## Basic Library Usage Take a look at this [example](https://github.com/lagmoellertim/unsilence/blob/master/examples/basic_usage.py) ## Idea/Inspiration For this project, I took inspiration from the CaryKH's video [Jumpcutter](https://www.youtube.com/watch?v=DQ8orIurGxw). This project does not share any source code with his implementation, and is more optimized for my use case (fast and efficient lecture silence removal). ## Contributing If you are missing a feature or have new idea, go for it! That is what open-source is for! �윑� ## Author **Tim-Luca Lagm철ller** ([@lagmoellertim](https://github.com/lagmoellertim)) ## Donations / Sponsors I'm part of the official GitHub Sponsors program where you can support me on a monthly basis. <a href="https://github.com/sponsors/lagmoellertim" target="_blank" rel='nofollow' onclick='return false;'><img src="https://github.com/lagmoellertim/shared-repo-files/raw/main/github-sponsors-button.png" alt="GitHub Sponsors" height="35px" ></a> You can also contribute by buying me a coffee (this is a one-time donation). <a href="https://ko-fi.com/lagmoellertim" target="_blank" rel='nofollow' onclick='return false;'><img src="https://github.com/lagmoellertim/shared-repo-files/raw/main/kofi-sponsors-button.png" alt="Ko-Fi Sponsors" he
评论
    相关推荐
    • Python
      Python
    • python
      Python 这是用于大多数基本和简单python代码的示例模板的存储库。
    • Python
      Python Dit是Mijn储存库van Python
    • python
      Python 基本的python编程
    • Python
      Python python和pyspark
    • Python教程
      本手册不会尝试涵盖 Python 的全部知识和每个特性,甚至不会涵盖所有常用的特性。相反地,它介绍了 Python 中许多最引人瞩目的特性,并且会给你一个关于语言特色和风格的认识。读完之后,你将能够阅读和编写 Python ...
    • python绑定
      适用于C ++的库的Python绑定或扩展演示 重点 使用boost.pythonPython.h使c ++工作。 :heavy_large_circle: 的展开方法boost.pythonpython.h :cross_mark: 笔记 没有 资料来源 使用Python.h。 使用boost.python...
    • python学习
      python学习 安装Python 我们转到Python页面进行初始下载:( )在为Mac OSX选择了最新版本(3.9.2)之后,我将其下载到了我的计算机上。 然后,我们搜索了“ Python入门”,并确认VS Code是适用于Python的可行代码...
    • Fluent Python
      This book was written for practicing Python programmers who want to become proficient in Python 3. If you know Python 2 but are willing to migrate to Python 3.4 or later, you should be fine. At the ...
    • Python
      Python 该存储库包含与Python编程研究相关的文档