2017-05-27 25 views
2

私はこのコードを実行します。Python Pydub許可が拒否されましたか?

from pydub import AudioSegment 
sound = AudioSegment.from_mp3("i.mp3") 
sound.export("F:\\bh", format="wav") 

ffmpegのウィンドウがポップアップし、私はこのエラーを取得:Error Pic

私は管理者privillegesでそれを実行している場合でも: Error with admin privilleges

Note :
The error occurs on every location that I try to export

+1

同じ問題、解決策なし – Macumbaomuerte

+0

解決策は見つかりましたか? @Anonymous – lalithkumar

答えて

0
from pydub.playback import play 
from pydub import AudioSegment 
AudioSegment.converter = r"C:\\ffmpeg\\bin\\ffmpeg.exe" 
AudioSegment.ffmpeg = r"C:\\ffmpeg\\bin\\ffmpeg.exe" 
myAudioFile = 'C:\\Users\\User\\Documents\\UNDAR\\CepreUNDAR\\Shema.mp3' 
print(myAudioFile) 
sound_stereo = AudioSegment.from_mp3(myAudioFile) 
sound_monoL = sound_stereo.split_to_mono()[0] 
sound_monoR = sound_stereo.split_to_mono()[1] 
# Invert phase of the Right audio file 
sound_monoR_inv = sound_monoR.invert_phase() 
# Merge two L and R_inv files, this cancels out the centers 
sound_CentersOut = sound_monoL.overlay(sound_monoR_inv) 
# Export merged audio file 
myAudioFile_CentersOut = "ShemaDrumless.mp3" 
fh = sound_CentersOut.export(myAudioFile_CentersOut, format="mp3") 
関連する問題