X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
73
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
6 years ago

树莓派安装ffmpeg

近日想尝试传输自己的流式媒体。目前测试了Hyper-V虚拟机,效果并不理想。原因是Hyper-V太吃资源。后来,测试在Hyper-V虚拟机下安装Linux系统进行推流,由于是yum安装的ffmpeg,年代有点过于久远,并且编译安装比较慢。于是,经过一系列资料的搜索,我便在Hyper-V上搭建了rtmp服务器,并选择利用树莓派的硬件视频解码器作为推流服务器(在同一内网下)。话不多说,开干~

1.安装Raspbian系统,这里选择的是无桌面环境的Raspbian

2. 编译安装x264解码器,代码为:

git clone git://git.videolan.org/x264.git
cd x264
./configure –host=arm-unknown-linux-gnueabi –enable-static –disable-opencl –enable-shared
make && make install

3. 开始编译安装ffmpeg,代码为:

wget http://ffmpeg.org/releases/ffmpeg-4.2.1.tar.gz

tar -xvf ffmpeg-4.2.1.tar.gz

cd ffmpeg-*

./configure –arch=armel –target-os=linux –enable-gpl –enable-libx264 –enable-nonfree

make && make install

4. 安装一点点依赖,代码为:

apt-get install libsdl2-dev -y

5. 经过一篇知乎文章的启发,再完成一下ldconfig的配置,代码如下:

echo “/usr/local/lib” >> /etc/ld.so.conf

ldconfig

6. 在命令行中输入ffmpeg,查看是否有输出,有输出则为成功

7. Enjoy~

 

文章参考:

https://zhuanlan.zhihu.com/p/36311427

https://blog.csdn.net/u011636440/article/details/80294235

  • 技术小絮
等 人表示很赞
2,917
0

📮Comments

No Comment.
xosadmin
xosadmin
6 years ago
推荐 如何设置使用树莓派首次开机启动脚本
树莓派是一款非常值得研究,也是一款功能非常强大的卡片式单片机。其自带的Raspbian系统可以代替计算机完成许多任务。但是首次设置对于部分用户来说是一件较为麻烦的事情。本文来带大家一起设置并使用树莓派的Firstboot.sh,让其自动完成 ...
  • 技术小絮
1,485 0
xosadmin
xosadmin
4 years ago
推荐 Debian设置自动对时
注意: 请使用Root用户操作,且不支持OpenVZ/LXC虚拟机。 在开始之前,我们需要设置Debian的时区,请使用以下命令: dpkg-reconfigure tzdate 之后,安装ntpdate: apt install ntpd ...
  • 技术小絮
752 0
xosadmin
xosadmin
2 years ago
推荐 如何使用Directadmin借助Let’s Encrypt签发Wildcard SSL证书
Directadmin是一个由加拿大JBMC开发的强大的虚拟主机面板。在新版本中,Directadmin支持通过Let’s Encrypt签发Wildcard证书(泛域证书)。该证书的签发方式为DNS验证。在本篇文章中,将以Cl ...
  • 技术小絮
319 0
xosadmin
xosadmin
8 years ago
推荐 如何在Linux(CentOS)上安装OpenVZ
近日,有一位朋友向我请教如何在其自己的CentOS服务器上安装OpenVZ虚拟化。所谓OpenVZ,官方对其的定义如下: “OpenVZ is a container-based virtualization for Linux. Op ...
  • 技术小絮
  • 虚拟化
2,279 0
xosadmin
xosadmin
6 years ago
推荐 ZeroTier内网主机互ping时出现destination host unreachable的解决方案
ZeroTier是一个十分好用的组内网软件。但是,部分主机虽然成功连接了ZeroTier并且获得了IP,但是内网中其他主机在ping此IP时,可能会提示Destination host unreachable,可能还伴有端口无法访问等问题, ...
  • 技术小絮
6,724 0
  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案

文章聚合

  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘

Multilangual Translator

Copyright © 2016-2026 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login