1 Star 0 Fork 1

晓晓 / video-audio-tools

forked from tisttsf / video-audio-tools 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

视频和音频处理/剪辑

image image image image

English Version | 中文版

基于PythonFFmpeg库实现的处理/剪辑视频和音频。

特别鸣谢FFmpeg及其贡献者。关于更多相关内容,请访问FFmpeg网站

目录

功能

  • 提取视频中的音频。

  • 添加音频到不含音频的视频。

  • 删除视频中的音频。

  • 转换音频的格式。

  • [新!] 剪切视频或音频为片段。

  • [新!] 拼接视频或音频的片段。

依赖项

  • ffmpeg 4.1.1 (针对Linux系统)
  • ffmpeg 4.1.3 (针对Mac系统)

安装Linux版本的FFmpeg

  • 安装
$ sudo apt-get install ffmpeg
  • 更新(如果适用)
# FFmpeg的最新版本为4.1.x(2019年4月11日)。
$ sudo add-apt-repository ppa:jonathonf/ffmpeg-4
$ sudo apt update && sudo apt upgrade

安装Mac版本的FFmpeg

  • 安装
# 安装homebrew。
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# 通过homebrew安装FFmpeg。
$ brew install ffmpeg
  • 更新(如果适用)
# 通过homebrew更新FFmpeg。
$ brew update && brew upgrade ffmpeg

使用方法

参考程序注释,设置输入和输出多媒体文件的文件名/路径。

视频和音频处理

请使用VideoAudio_Processing/中提供的程序。

  • 运行run_VAP_extract.py提取视频中的音频。

  • 运行run_VAP_add.py添加音频到视频。

  • 运行run_VAP_remove.py删除视频中的音频。

  • 运行run_VAP_convert.py转换音频的格式。

视频和音频剪辑

请使用VideoAudio_Editing/中提供的程序。

  • [新!] 运行run_VAE_Video_01Clip.pyrun_VAE_Audio_01Clip.py剪切视频或音频为片段。

  • [新!] 运行run_VAE_Video_02Merge.pyrun_VAE_Audio_02Merge.py拼接视频或音频的片段。


如果您对该项目有任何问题,请报告issue,我将会尽快回复。

如果该项目对您有帮助,请为其加星支持哈,非常感谢。^_^

MIT License Copyright (c) 2019 He Zhang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

To process/edit video and audio with Python+FFmpeg. [简单实用] 基于Python+FFmpeg的视频和音频的处理/剪辑。 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/xiaoxiao88/video-audio-tools.git
git@gitee.com:xiaoxiao88/video-audio-tools.git
xiaoxiao88
video-audio-tools
video-audio-tools
master

搜索帮助