如何下载blob开头的链接文件

最近有一个直播课想把回放保存到本地。我用了这个方法。

1.找到扩展名.m3u8文件的链接地址(使用Chrome浏览器的开发工具)

2.终端中使用$ ffmpeg -i 'https://xxxx.f100230.m3u8' test.mp4命令。

在使用ffmpeg命令时出现了一个小问题。

ffmpeg -i 'https://xxx/v.f100230.m3u8' test.mp4
dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
  Referenced from: /usr/local/opt/p11-kit/lib/libp11-kit.0.dylib
  Reason: image not found
Abort trap: 6

解决过程:

1.尝试brew install libffi。提示libffi 3.3_3已经安装。

$ brew install libffi
Updating Homebrew...
Warning: libffi 3.3_3 is already installed and up-to-date.
To reinstall 3.3_3, run:
  brew reinstall libffi

2.遂进入系统问题目录查看$ cd /usr/local/opt/libffi/lib,发现目录中有libffi.7.dylib

3.尝试$ ln -s libffi.7.dylib libffi.6.dylib

4.返回桌面,重试$ ffmpeg -i 'https://xxx/v.f100230.m3u8' test.mp4

5.问题解决。

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.