我定期从不同的来源下载 mp3 文件,但几个月前我开始收到错误:
Can't open 1.mp3 for reading
当我尝试执行时:
mp3gain -s s 1.mp3
实用程序是否仍在维护?我几乎无法想象我的系统出了问题。
我在用着版本 1.6.2
我尝试重新安装该工具,但问题仍然存在
sudo snap remove mp3gain
sudo snap install mp3gain
以下是终端的一些输出
使用 MPlayer 播放:
$ mplayer 001.mp3
MPlayer 1.3.0 (Debian), built with gcc-9 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing 001.mp3.
libavformat version 58.29.100 (external)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 32000 Hz, 2 ch, s16le, 48.0 kbit/4.69% (ratio: 6000->128000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] 32000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 16.3 (16.3) of 28.0 (28.0) 0.1%
Exiting... (Quit)
使用文件实用程序获取文件信息:
$ file 001.mp3
001.mp3: Audio file with ID3 version 2.3.0, contains:MPEG ADTS, layer III, v1, 48 kbps, 32 kHz, Monaural
最后使用 mp3gain 获取音量级别:
$ mp3gain -s s 001.mp3
001.mp3
Can't open 001.mp3 for reading
答案1
我认为答案就在这里:https://github.com/dodeco/snap-mp3gain/issues/2
简而言之,它无法打开其他文件系统上的文件。将它们复制到您常用的文件系统,它应该可以正常工作。