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

xosadmin

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

📮Comments

No Comment.
xosadmin
xosadmin
1 year ago
推荐 Proxmox VE通过全盘方式直通硬盘
本文章将以全盘映射的方式挂载整块硬盘到Proxmox KVM虚拟机。LXC虚拟机暂时不支持。 首先,打开SSH或者控制面板上的Shell,并执行以下代码以展示所有硬盘ID: ls /dev/disk/by-id Note: 硬盘ID通常没有 ...
  • proxmox
  • 技术小絮
442 0
xosadmin
xosadmin
3 years ago
推荐 如何在Debian安装Mariadb数据库
Mariadb是一款高效的数据库。因为其来源于MySQL,因此它对于Mysql具有较好的兼容性。这篇文章将介绍如何在Debian 11操作系统上安装MariaDB数据库。 安装依赖包并升级系统,命令: apt-get install s ...
  • 技术小絮
721 0
xosadmin
xosadmin
2 years ago
推荐 Debian 11平滑升级到Debian 12的方法
Debian 12于近日发布,其名称为Bookworm。同时,Debian 11 (Bullseye)也可以升级至Debian 12 Bookworm。本文介绍一种平滑升级的方法。 首先,确认当前版本是否为Debian 11 Bullsey ...
  • 技术小絮
349 0
xosadmin
xosadmin
5 years ago
推荐 OpenVZ Web Panel的错误undefined method `get_advanced_limits’解决方法
如题,在安装完OpenVZ Web Panel后,发现该面板的Server Templates功能无法打开,一执行即报500错误,详细错误信息如下: NoMethodError (undefined method `get_advanced ...
  • 技术小絮
1,452 0
xosadmin
xosadmin
5 years ago
推荐 apache提示You don’t have permission to access /* on this server.的解决方法
首先,X-osadmin在这里祝大家520快乐!近日有朋友遇到了这样一个问题:在CentOS 8下安装php-fpm+apache,在浏览器打开时均提示You don’t have permission to access / ...
  • 技术小絮
3,816 0
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持

文章聚合

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

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. Designed by nicetheme.
  • 博客主页 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