macOS 黑苹果 使用 ffplay 播放斗鱼直播 替代 浏览器播放flash占用CPU过高发热
2023-09-14 09:09:53 时间
ffplay 播放斗鱼直播
1,macOS 安装 ffplay
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G65
$ brew search ffmpeg
$ brew install ffmpeg
$ brew install ffmpeg --with-ffplay
Error: ffmpeg 4.1 is already installed
To upgrade to 4.1_1, run `brew upgrade ffmpeg`
brew install ffmpeg --with-sdl2
Error: ffmpeg 4.1 is already installed
To upgrade to 4.1_1, run `brew upgrade ffmpeg`
$ brew info ffmpeg
ffmpeg: stable 4.1 (bottled), HEAD
Play, record, convert, and stream audio and video
https://ffmpeg.org/
/usr/local/Cellar/ffmpeg/4.1 (282 files, 55.4MB) *
Poured from bottle on 2018-11-08 at 18:56:29
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb
==> Dependencies
Build: nasm ✘, pkg-config ✔, texi2html ✘
Required: lame ✔, libvorbis ✔, libvpx ✔, opus ✔, sdl2 ✘, snappy ✔, theora ✔, x264 ✘, x265 ✔, xvid ✔, xz ✔
Optional: aom ✘, chromaprint ✘, fdk-aac ✘, fontconfig ✘, freetype ✘, frei0r ✘, game-music-emu ✘, libass ✘, libbluray ✘, libbs2b ✘, libcaca ✘, libgsm ✘, libmodplug ✘, librsvg ✘, libsoxr ✘, libssh ✘, libvidstab ✘, libvmaf ✘, opencore-amr ✘, openh264 ✘, openjpeg ✘, openssl ✘, rtmpdump ✘, rubberband ✘, speex ✘, srt ✘, tesseract ✔, two-lame ✘, wavpack ✘, webp ✘, zeromq ✘, zimg ✘
$ which ffplay
/usr/local/bin/ffplay
2,安装 you-get
$ brew search you-get
$ brew install you-get
$ you-get --version
you-get: version 0.4.1193, a tiny downloader that scrapes the web.
3,播放斗鱼直播
$ you-get -p ffplay 'https://www.douyu.com/8733'
参考:
相关文章
- EasyNVR摄像机网页无插件直播方案H5前端构建之:bootstrap-datepicker日历插件的实时动态展现
- EasyNVR无插件直播服务器软件览器低延时播放监控摄像头视频(EasyNVR播放FLV视频流)
- rtsp转rtmp、hls网页直播服务器EasyNVR前端兼容性调试:ie下的 pointer-events- none
- 一种流量成本节省60%以上的手机直播微信直播H5直播幼儿园直播方案
- 那些千奇百怪的视频直播延时测试方法,论正确姿势是什么?
- 网络摄像机IPCamera RTSP直播播放网络/权限/音视频数据/花屏问题检测与分析助手EasyRTSPClient
- EasyPusher手机直播编码推送之图像旋转90度后画面重复的问题
- EasyPusher RTSP直播之RTP数据包格式解析
- 用EasyDarwin进行IPTV rtsp mpeg-ts smil流的转发和分发直播服务
- EasyDarwin+ffmpeg进行PC(摄像头+麦克风)流媒体直播服务
- 直播技术初探