質問編集履歴

6

kaizen

2022/05/03 06:53

投稿

agentj
agentj

スコア0

test CHANGED
File without changes
test CHANGED
@@ -45,27 +45,28 @@
45
45
 
46
46
  # 参考(Terminalの実行結果)
47
47
  ```
48
- pip show ffmpeg
48
+ pip show ffmpeg-python
49
49
 
50
- Name: ffmpeg
50
+ Name: ffmpeg-python
51
- Version: 1.4
51
+ Version: 0.2.0
52
- Summary: ffmpeg python package url [https://github.com/jiashaokun/ffmpeg]
52
+ Summary: Python bindings for FFmpeg - with complex filtering support
53
- Home-page: https://github.com/jiashaokun/ffmpeg
53
+ Home-page: https://github.com/kkroening/ffmpeg-python
54
- Author: SkeyJIA
54
+ Author: Karl Kroening
55
- Author-email: 363604236@qq.com
55
+ Author-email: karlk@kralnet.us
56
- License: MIT Licence
56
+ License: UNKNOWN
57
57
  Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
58
- Requires:
58
+ Requires: future
59
59
  Required-by:
60
60
 
61
61
 
62
62
 
63
- pip show ffprobe
63
+ pip show ffprobe-python
64
64
 
65
- Name: ffprobe
65
+ Name: ffprobe-python
66
- Version: 0.5
66
+ Version: 1.0.3
67
+ Summary:
67
- Summary: Wrapper around ffprobe command to extract metadata from media files
68
+ A wrapper around ffprobe command to extract metadata from media files.
68
- Home-page: http://www.simon-hargreaves.com/ffprobe
69
+ Home-page: https://github.com/gbstack/ffprobe-python
69
70
  Author: Simon Hargreaves
70
71
  Author-email: simon@simon-hargreaves.com
71
72
  License: UNKNOWN

5

環境

2022/05/03 04:41

投稿

agentj
agentj

スコア0

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,7 @@
1
1
  # 環境
2
2
  Mac OS monterey 12.3.1
3
3
  Python 3.10.2
4
+ VS Code
4
5
  # 質問
5
6
  Pydubを使って曲の音量を上げる作業をしていたのですが、No Such file Or Directory: 'ffprobe'とのErrorが出たため、(とりあえず)brew install ffmpeg , pip install ffmpeg-python, pip install ffprobe-pythonをターミナルで実行したのですが、依然としてエラーは改善しませんでした。
6
7
  誰か改善策を教えていただけないでしょうか?

4

見やすさ改善

2022/05/03 04:11

投稿

agentj
agentj

スコア0

test CHANGED
File without changes
test CHANGED
@@ -7,7 +7,7 @@
7
7
  足りない情報などがあればすぐに対応します。
8
8
 
9
9
  # コード
10
- ```
10
+ ```python3
11
11
  from pydub import AudioSegment
12
12
  #音声ファイルを読み込む
13
13
 
@@ -25,7 +25,7 @@
25
25
  ```
26
26
 
27
27
  # エラー文
28
- ```
28
+ ```terminal
29
29
  Traceback (most recent call last):
30
30
  File "/Users/programming/complete/test2.py", line 4, in <module>
31
31
  sourceAudio = AudioSegment.from_mp3("/Users/J/Downloads/test.mp3")
@@ -43,6 +43,7 @@
43
43
  ```
44
44
 
45
45
  # 参考(Terminalの実行結果)
46
+ ```
46
47
  pip show ffmpeg
47
48
 
48
49
  Name: ffmpeg
@@ -82,4 +83,6 @@
82
83
  Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
83
84
  Requires:
84
85
  Required-by:
86
+ ```
85
87
 
88
+

3

コード

2022/05/03 04:08

投稿

agentj
agentj

スコア0

test CHANGED
File without changes
test CHANGED
@@ -7,6 +7,7 @@
7
7
  足りない情報などがあればすぐに対応します。
8
8
 
9
9
  # コード
10
+ ```
10
11
  from pydub import AudioSegment
11
12
  #音声ファイルを読み込む
12
13
 
@@ -21,9 +22,12 @@
21
22
  processedAudio.export("out.mp3", format="mp3")
22
23
  #結果を出力
23
24
 
25
+ ```
26
+
24
27
  # エラー文
28
+ ```
25
29
  Traceback (most recent call last):
26
- File "/Users/programming/complete/test2.py", line 5, in <module>
30
+ File "/Users/programming/complete/test2.py", line 4, in <module>
27
31
  sourceAudio = AudioSegment.from_mp3("/Users/J/Downloads/test.mp3")
28
32
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydub/audio_segment.py", line 796, in from_mp3
29
33
  return cls.from_file(file, 'mp3', parameters=parameters)
@@ -36,6 +40,8 @@
36
40
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1842, in _execute_child
37
41
  raise child_exception_type(errno_num, err_msg, err_filename)
38
42
  OSError: [Errno 8] Exec format error: 'ffprobe'
43
+ ```
44
+
39
45
  # 参考(Terminalの実行結果)
40
46
  pip show ffmpeg
41
47
 

2

タイトル

2022/05/02 13:55

投稿

agentj
agentj

スコア0

test CHANGED
@@ -1 +1 @@
1
- Python3、Pydubのエラー, No Such file Or Directory : 'ffprobe'
1
+ Python3、Pydubのエラー, No Such file Or Directory : 'ffprobe' (モジュールダウンロード後も)
test CHANGED
File without changes

1

タイトル

2022/05/02 13:54

投稿

agentj
agentj

スコア0

test CHANGED
@@ -1 +1 @@
1
- Pydub使用時, No Such file Or Directory : 'ffprobe'
1
+ Python3、Pydubのエラー, No Such file Or Directory : 'ffprobe'
test CHANGED
File without changes