2017-09-04 6 views
1

これは潜在的な「問題」です。 .wavまたは.mov形式のファイルに対してコンバージョンを実行しています。私は...、 'WAV' を指定した場合、その後のエンコードがで失敗)、AudioSegment.from_file(pic[0].audiodesc.path)'wav'を指定した場合、AudioSegment.from_fileが失敗する

  if pic[0].audiodesc.path.lower().endswith('.wav'): 
       sound = AudioSegment.from_file(pic[0].audiodesc.path) 
       sound.export(mp3_filepath, format = 'mp3', bitrate = '64k') 
      elif pic[0].audiodesc.path.lower().endswith('.mov'): 
       sound = AudioSegment.from_file(pic[0].audiodesc.path, 'mov') 
       sound.export(mp3_filepath, format = 'mp3', bitrate = '64k') 

: 'WAV' は、問題を修正削除

avconv version 9.20-6:9.20-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers built on Dec 7 2016 21:22:31 with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 
/tmp/tmpGhtAOn: Operation not permitted 

答えて

0

テストは、次のようになります。

関連する問題