首页 > 其他分享 >debian 12 编译 vlc/libvlc 支持 rtsp

debian 12 编译 vlc/libvlc 支持 rtsp

时间:2024-10-08 10:34:07浏览次数:1  
标签:non 12 aliyun vlc rtsp free https debian

debian 官方从11开始,不再提供支持 rtsp 的 VLC deb 包,通过 libvlc 播放 rtsp 也无法实现,因此需要自己编译。

# 安装编译环境,编译依赖库以及 contrib 第三方工具

sudo apt install git g++ make libtool automake autopoint pkg-config flex bison lua5.2
sudo apt build-dep vlc
sudo apt install subversion yasm cvs cmake ragel

 建议添加阿里云的镜像源

sudo nano /etc/apt/sources.list.d/aliyun.list

# 添加 debian 阿里云源到 /etc/apt/sources.list
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib

sudo apt update

 # 下载 vlc 源代码,解压

wget http://download.videolan.org/pub/videolan/vlc/3.0.21/vlc-3.0.21.tar.xz
tar xvJf vlc-3.0.21.tar.xz
cd vlc-3.0.21

# 创建编译目录

cd contrib
mkdir native && cd native
../bootstrap

# 下载 live555 源代码并编译,注意不是 live555 的最新版本,而是 videolan 提供的特定版本

wget http://downloads.videolan.org/pub/contrib/live555/live.2016.11.28.tar.gz -O ../contrib/tarballs/live.2016.11.28.tar.gz
make .live555

  # 配置 vlc 的编译参数,关键是指定安装位置,以及启用 rtsp,其他可选参数还有 --disable-alsa --disable-chromaprint --enable-shared 等, 开始编译

../../configure --prefix=/usr --enable-realrtsp --enable-live555
make

  # 编译完成后,查看是否已支持 live555

./vlc --list | grep live555

 # 安装

make install

 # 如果未安装在 /usr 下,想引用 libvlc 需要自己添加环境变量。也可以修改 /etc/ld.so.conf 或添加 /etc/ld.so.conf.d/libvlc.conf,填写"自定义的安装目录/lib",然后执行

sudo ldconfig

 # 本文参考
https://wiki.videolan.org/UnixCompile/
https://wiki.videolan.org/Configure/
https://blog.csdn.net/x740073529/article/details/133711117
https://blog.csdn.net/m0_37554445/article/details/122986059

 

标签:non,12,aliyun,vlc,rtsp,free,https,debian
From: https://www.cnblogs.com/towerbit/p/18451190

相关文章

  • [ARC112F] Die Siedler 题解
    智慧题。思路考虑第二种操作。我们会想到,我们可以先把所有牌转化成第一种牌。即:\[one=\sum_{i=1}^n\prod_{j=1}^i2^{j-1}(j-1)!c_i\]这就是第一种牌的数量。然后考虑,我们可以将第一种牌转化为第一种牌,花费的代价为:\[g=(\prod_{i=1}^n2^{i-1}(i-1)!)-1\]相当于对\(g\)......
  • Day 24 贪心算法part02| LeetCode 122.买卖股票的最佳时机II,55.跳跃游戏,45.跳跃游戏II
    122.买卖股票的最佳时机II局部最优:每天的正利润全局最优:每天的正利润之和121.买卖股票的最佳时机classSolution{publicintmaxProfit(int[]prices){intres=0;for(inti=1;i<prices.length;i++){i......
  • R12 SLA 子分类帐和GL总帐关联查询
    --R12SLA子分类帐和GL总帐关联查询selectxte.application_id"应用",xte.entity_id,xte.ledger_id"分类帐SOB",xte.entity_code,xett.name"事务实体类型",le.name"法人主体",le.legal_entity_identifier......
  • 20222412 2024-2025-1 《网络与系统攻防技术》实验一实验报告
    1.实验内容本周学习内容1.熟悉基本的汇编语言指令及其功能。2.掌握了栈与堆的概念及其在进程内存管理中的应用以及用户态与内核态的区别。3.熟练运用了Linux系统下的基本操作命令。实验任务1.手工修改可执行文件,改变程序执行流程,直接跳转到getShell函数。2.利用foo函数的Bo......
  • Java - 12 方法
    Java-12方法publicclassmain{ publicstaticvoidmain(String[]args){Personpers=newPerson();pers.speak();pers.cal(100);intreturnRes=pers.getSum(2,3); }}classPerson{Stringname;intage;......
  • GESP等级考试 20241006_121124
    官网CCF-GESP编程能力等级认证https://gesp.ccf.org.cn/考钢图形化1579692243025952.pdfhttps://gesp.ccf.org.cn/101/attach/1579692243025952.pdf考钢C++1579675000242208.pdfhttps://gesp.ccf.org.cn/101/attach/1579675000242208.pdf考级相关真题解析-CCF-GESP编程......
  • Centos7.9环境下安装Oracle12c 12.1.0【超级详细】
    目录1、软件包下载2、关闭防火墙3、安装依赖包4、创建用户和组 5、修改内核限制参数 6、手动配置内核参数7、修改login配置文件8、修改profile文件9、配置环境变量10、设置DISPLAY变量11、将系统换成英文 12、解压、授权13、安装数据库13.1、安装软件13.2、......
  • 12-网络安全审计技术原理与应用
    12.1概述1)概念:指对网络信息系统的安全相关活动信息进行获取、记录、存储、分析和利用的工作。作用:在于建立“事后”安全保障措施,保存网络安全事件及行为信息,为网络安全事件分析提供线索及证据,以便于发现潜在的网络安全威胁行为,开展网络安全风险分析及管理。常见的安全审计功......
  • 信息学奥赛复赛复习12-CSP-J2021-01分糖果-模运算、余数、打擂台求最值、最大值、最小
    PDF文档公众号回复关键字:202410051P7909[CSP-J2021]分糖果[题目描述]红太阳幼儿园有n个小朋友,你是其中之一。保证n≥2有一天你在幼儿园的后花园里发现无穷多颗糖果,你打算拿一些糖果回去分给幼儿园的小朋友们由于你只是个平平无奇的幼儿园小朋友,所以你的体力有限,至......
  • 【STC15】单片机中常说的 1T 和 12T 的意思
    标准51单片机是12T的,就是说12个时钟周期(晶振周期,例如12M的,周期是1/12M,单位秒),机器做一个指令周期,刚好就是1/12M*12=1us,常见指令例如_nop_就是一个周期,刚好1us,其他的大多多于一个周期,乘除法更多。所以如果计算指令时间可以这样算。而现在51核的单片机工艺质量上去后,频率大大提高,增......