![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
小孟boy
信号完整性分析资浅无证工程师。
展开
-
python合并音频Couldn‘t find ffprobe or avprobe解决办法
1. cmd指令pip install pydub,安装pydub库,当然,还需要ffmpeg库,pip install ffmpeg安装或者下载ffmpeghttps://ffmpeg.zeranoe.com/builds/,解压安装后将路径复制到python安装路径下如D:\Python\Python37\Lib\site-packages,找到ffmpy.py,复制到对应位置,见下图。之后新建脚本文件输入代码from pydub import AudioSegmentAudioSegment..原创 2021-01-12 11:24:18 · 11132 阅读 · 2 评论 -
python从视频中提取音频
首先进入CMD,使用指令pip install moviepy安装扩展库安装完成后,进入python安装路径,比如说C:\python37,新建test.py文件,输入如下内容:from moviepy.editor import *mp4FileName = r'G:\test\kk\test.mp4'mp3FileName = r'G:\test\kk\test.mp3'video = VideoFileClip(mp4FileName)video.audio.write_audiof原创 2021-01-07 15:27:41 · 914 阅读 · 0 评论 -
python学习笔记
1、error:expected an indented blocksolution:print前要有四个空格。2、error:missing parentheses in call to printsolution:python3的print后要加括号()。3、error:inconsistent use of tabs and spaces in indentationso...原创 2017-10-10 11:05:03 · 228 阅读 · 0 评论