利用树莓派做一个简单的广告机
废话不多说开始
1. 安装 omxplayer
omxplayer 简易介绍:omxplayer是专门针对树莓派的GPU的播放器,支持硬件解码,最高支持分辨率是1080P,omxplayer这个命令行播放器,是专门针对树莓派优化了的GPU的播放器,支持硬件解码。支持格式:MKV、AVI、FLV、MP4。
鄙人亲自验证过,MP4格式视频文件播放流畅不卡顿
废话结束
安装
sudo apt-get install omxplayer
安装完毕
pi@raspberrypi:~ $ sudo apt-get install omxplayer
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
omxplayer is already the newest version (20190723+gitf543a0d-1).
The following packages were automatically installed and are no longer required:
alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-0
libgstreamer0.10-0 libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-2
pimixer point-rpi vlc-l10n vlc-plugin-notify vlc-plugin-samba vlc-plugin-video-splitter
vlc-plugin-visualization xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
因为我的树莓派已经安装过所以系统就跳过了
2. 测试 omxplayer
man omxplayer

最低0.47元/天 解锁文章
1089

被折叠的 条评论
为什么被折叠?



