解決 Python AttributeError: module 'ffmpeg' has no attribute 'input'
English Title
Solving AttributeError: module 'ffmpeg' has no attribute 'input' in Python
简体标题
type
Post
status
Published
date
Feb 9, 2024
slug
ffmpeg-has-no-attribute-input
summary
tags
Python
ffmpeg
media
Code
category
Dev 程式開發
blog
youtube
link
Property
Bilibili
TikTok
抖音
icon
最近,在使用 Python 調用 ffmpeg 遇到了一些問題

錯誤訊息

AttributeError: module 'ffmpeg' has no attribute 'input'

解決方案

這是因為同時安裝了 ffmpegffmpeg-python 。 刪除它們並重新安裝 ffmpeg-python

操作說明

  1. 使用以下命令卸載兩者:
pip uninstall ffmpeg
pip uninstall ffmpeg-python
  1. 再次安裝 ffmpeg-python:
pip install ffmpeg-python

報告完畢!

歡迎留言交流,或是到觀看我的 YouTube 頻道 @AndysTV
English Post
Recently, having issue to with python using ffmpeg.

Error Message

AttributeError: module 'ffmpeg' has no attribute 'input'

Solution

That's due to both ffmpeg and ffmpeg-python are installed. Remove both of them and reinstall ffmpeg-python

Instruction

  1. uninstall both with:
pip uninstall ffmpeg
pip uninstall ffmpeg-python
  1. and install ffmpeg-python again with :
pip install ffmpeg-python

Done!

 

Reference:

4-1 Number、Boolean 和 String 基本類型 | JavaScript 程式語言網頁設計入門好輕!開箱 MacBook Air 15! BTS 送 AirPods 還打折!蘋果 Apple Back to School 特典👋

留言區


如果你想使用 Facebook, Google, Twitter 帳號留言,或是匿名分享,可以使用 Disqus 留言。
擁有 Facebook 帳號的朋友可以使用 Facbook 原生社群插件留言。
若是有 Github 帳號可以使用 Giscus 留言!


  • Disqus
  • Facebook
  • Giscus
  • Cusdis