Note: ffmpeg problem, conda, Mac
keunwoochoi opened this issue · 5 comments
Just in case someone's having problem with ffmpeg with these kinds of error messages:
>>> tracks[0].targets['vocals'].audio
dyld: Library not loaded: @rpath/libx264.138.dylib
Referenced from: /Users/keunwooc/miniconda3/bin/ffprobe
Reason: image not found
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/keunwooc/miniconda3/lib/python3.6/site-packages/musdb/audio_classes.py", line 113, in audio
audio = source.audio
File "/Users/keunwooc/miniconda3/lib/python3.6/site-packages/musdb/audio_classes.py", line 47, in audio
filename=self.path, stem_id=self.stem_id
File "/Users/keunwooc/miniconda3/lib/python3.6/site-packages/stempeg/read.py", line 91, in read_stems
FFinfo = FFMPEGInfo(filename)
File "/Users/keunwooc/miniconda3/lib/python3.6/site-packages/stempeg/read.py", line 19, in __init__
self.json_info = read_info(self.filename)
File "/Users/keunwooc/miniconda3/lib/python3.6/site-packages/stempeg/read.py", line 55, in read_info
out = sp.check_output(cmd)
File "/Users/keunwooc/miniconda3/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/Users/keunwooc/miniconda3/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ffprobe', '../../Data/musdb18/train/A Classic Education - NightOwl.stem.mp4', '-v', 'error', '-print_format', 'json', '-show_format', '-show_streams']' died with <Signals.SIGABRT: 6>.
flatironinstitute/CaImAn#317 (comment) help me by, I think, installing libx264.138.dylib
with command below.
$ conda install -c conda-forge x264=20131218
It's not really an issue but probably best to be written here.
This is weird. x264 should not be needed for decoding as this is an AAC stream. Which ffmpeg version have you installed? The Travis builds of stempeg use conda as well and are tested against
- FFMPEG_VERSION=3.4
- FFMPEG_VERSION=2.8.6
- FFMPEG_VERSION=3.2.4
Interesting. My FFMPEG is 2.8.6
with miniconda python 3.6 and stempeg 0.1.3
- in case it matters.
i will try to reproduce this weekend
Actually. a fresh installation of ffmpeg by miniconda now points to ffmpeg 4.0.2. Also it indeed comes with x264 as a dependency:
I tried it here on OS X... works. Also I've updated the travis test matrix. All combinations seem to pass. Maybe try again with a fresh environment.
Hm strange, mine was also a pretty fresh - a 1-month old mac, High Sierra, up-to-date miniconda etc. Now that it works for me so I'm fine with it -- and maybe it was quite a corner case. So let me just close this issue :)