首先报错:
E:\Anaconda_all\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn’t find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn(“Couldn’t find ffmpeg or avconv - defaulting to ffmpeg, but may not work”, RuntimeWarning)
E:\Anaconda_all\lib\site-packages\pydub\utils.py:198: RuntimeWarning: Couldn’t find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn(“Couldn’t find ffprobe or avprobe - defaulting to ffprobe, but may not work”, RuntimeWarning)
以及 filenotfound
envdir_list.append(r'D:\ffmpeg-20200628-4cfcfb3-win64-static\bin')#添加这一行,注意里面的路径是ffmpeg.exe所在的路径
兴高采烈开始处理mp3,结果又报错:
Traceback (most recent call last):
File "f:\officialschool\project\trymp3.py", line 13, in <module>
genSong()
File "f:\officialschool\project\trymp3.py", line 7, in genSong
song = AudioSegment.from_mp3(path + 'z.mp3')
File "E:\Anaconda_all\lib\site-packages\pydub\audio_segment.py", line 738, in from_mp3
return cls.from_file(file, 'mp3', parameters=parameters)
File "E:\Anaconda_all\lib\site-packages\pydub\audio_segment.py", line 725, in from_file
p.returncode, p_err.decode(errors='ignore') ))
pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1
Output from ffmpeg/avlib:
ffmpeg version git-2020-06-28-4cfcfb3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.1 (GCC) 20200621
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 93.100 / 58. 93.100
libavformat 58. 47.100 / 58. 47.100
libavdevice 58. 11.100 / 58. 11.100
libavfilter 7. 86.100 / 7. 86.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
[mp3 @ 0000013f1498cf40] Invalid frame size (627): Could not seek to 1298.
F:/officialschool/project/music/z.mp3: Invalid argument
awsl
AWSL
AWSL
本文地址:https://blog.csdn.net/weixin_44489823/article/details/107140113
如对本文有疑问, 点击进行留言回复!!
MFC 第三方库 利用opencv的MAT类完成图片导入以及对图片进行翻转保存的操作
OpenGL入门 -- OpenGL的投影方式、固定着色器分类以及图元连接方式
【FFmpeg】警告:[hls] pkt-」duration = 0, maybe the hls segment duration will not precise
使用FFmpeg进行360全景视频格式转换:filter v360
网友评论