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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
77
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,907
0

📮Comments

No Comment.
xosadmin
xosadmin
4 years ago
推荐 curl: (35) Peer reports incompatible or unsupported protocol version的解决方法
近日在做CentOS 7维护时,在尝试curl时,遇到了curl: (35) Peer reports incompatible or unsupported protocol version.的问题。本问题是由于相应的包版本过老导致的。 ...
  • 技术小絮
2,335 0
xosadmin
xosadmin
5 years ago
推荐 如何使用Grub4dos引导Grub2
Grub4dos是一个非常优秀的启动引导器,它可以引导Windows/Linux,甚至变色龙/四叶草。早期的Linux所带有的Legacy Grub可以与Grub4dos相互引导,非常有趣。但在Grub2中,本功能做出了一些改变。比如,启动 ...
  • 技术小絮
2,032 0
xosadmin
xosadmin
8 years ago
推荐 CentOS 6下如何安装KVM虚拟化
昨天,小编讲述了在CentOS上安装OpenVZ虚拟框架的方式。应公众号里部分读者的要求,今天再给大家讲讲如何在CentOS上安装KVM虚拟框架。所谓KVM,官网给的定义如下: KVM (for Kernel-based Virtual ...
  • 技术小絮
  • 虚拟化
2,198 1
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 ...
  • 技术小絮
481 0
xosadmin
xosadmin
5 years ago
推荐 Debian提示Malformed Description-md5的解决方法
近日,有一台vps在执行apt update时,报出以下错误,并返回错误值100。错误代码如下: E: Malformed Description-md5 line; doesn’t have the required leng ...
  • 技术小絮
1,681 0
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法

文章聚合

  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持
  • Proxmox报出RRDC/RRD update error的解决方法

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 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