PythonネットワークIDEウェブサイトのコピーUbuntu 20.04.2 LTSオペレーティングシステムで実行されます。を使用しffmpeg.exe
て実行できる必要があります。一行良い
mpl.rcParams['animation.ffmpeg_path'] = r'C:\\Users\\xx\\Desktop\\ffmpeg\\bin\\ffmpeg.exe'
可能ですか?どの実行ファイルを使用する必要がありますか?ダウンロード可能なUbuntu FFmpegファイルのリストは次のとおりです。ここ、おそらく。
apt install ffmpeg
失敗する:
apt install ffmpeg
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
lsb_release -a
出力:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
ベストアンサー1
いつでも以下をインストールできますffmpeg
。
sudo apt install ffmpeg
次にスクリプトを編集し、代わりにffmpegを使用します。
C:\\Users\\xx\\Desktop\\ffmpeg\\bin\\ffmpeg.exe
MS-Windows 実行可能ファイルです。
正しい仮定PATH
など:
mpl.rcParams['animation.ffmpeg_path'] = r'ffmpeg'
(おそらくプレフィックスは必要ありませんr
)。
Wine を使用して多くのファイルを実行できますが、.exe
この状況では Wine を使用しないことをお勧めします。