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
7 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,925
0

📮Comments

No Comment.
xosadmin
xosadmin
6 years ago
推荐 OpenVZ Web Panel的错误undefined method `get_advanced_limits’解决方法
如题,在安装完OpenVZ Web Panel后,发现该面板的Server Templates功能无法打开,一执行即报500错误,详细错误信息如下: NoMethodError (undefined method `get_advanced ...
  • 技术小絮
1,520 0
xosadmin
xosadmin
5 years ago
推荐 curl: (35) Peer reports incompatible or unsupported protocol version的解决方法
近日在做CentOS 7维护时,在尝试curl时,遇到了curl: (35) Peer reports incompatible or unsupported protocol version.的问题。本问题是由于相应的包版本过老导致的。 ...
  • 技术小絮
2,355 0
xosadmin
xosadmin
2 years ago
推荐 Proxmox VE通过全盘方式直通硬盘
本文章将以全盘映射的方式挂载整块硬盘到Proxmox KVM虚拟机。LXC虚拟机暂时不支持。 首先,打开SSH或者控制面板上的Shell,并执行以下代码以展示所有硬盘ID: ls /dev/disk/by-id Note: 硬盘ID通常没有 ...
  • proxmox
  • 技术小絮
547 0
xosadmin
xosadmin
2 months ago
推荐 Proxmox强制删除离线集群节点方法
在本篇文章中,模拟如下cluster中的其中一个node因损坏而宕机,由此需要通过其他集群节点强行移除该node的情况。假设cluster如下: Node 1: 192.168.1.1/24 Node 2: 192.168.1.2/24 N ...
  • proxmox
  • 技术小絮
25 0
xosadmin
xosadmin
2 years ago
推荐 Debian上重装Nginx的方法
1. 卸载现有Nginx以及配套包: apt-get remove nginx -y apt-get autoremove 2. 删除配置目录(在删除前可以备份以备恢复): cp -r /etc/nginx /home/backup-ngi ...
  • 技术小絮
505 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