OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#1

帖子 kashu » 2016-03-29 8:59

OBS Studio开发人员给的安装指南:https://github.com/jp9000/obs-studio/wi ... stallation

1)我已添加官方的PPA源:sudo add-apt-repository ppa:obsproject/obs-studio

2)但安装时报错

代码: 全选

kashu:/tmp$ sudo apt-get install obs-studio 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 obs-studio : Depends: libavcodec-ffmpeg56 (>= 7:2.4) but it is not installable
              Depends: libavdevice-ffmpeg56 (>= 7:2.4) but it is not installable
              Depends: libavfilter-ffmpeg5 (>= 7:2.4) but it is not installable
              Depends: libavformat-ffmpeg56 (>= 7:2.4) but it is not installable
              Depends: libavutil-ffmpeg54 (>= 7:2.4) but it is not installable
              Depends: libswresample-ffmpeg1 (>= 7:2.4) but it is not installable
              Depends: libswscale-ffmpeg3 (>= 7:2.4) but it is not installable
E: Unable to correct problems, you have held broken packages.
3)我没使用官方提供的ffmpeg,因为我的Xubuntu 14.04.4 LTS已经安装了ffmpeg 3.0.0,是比较新的版本。

代码: 全选

kashu:/tmp$ dpkg -s ffmpeg | grep Version
Version: 7:3.0.0+git~trusty
我不想删除我现在的ffmpeg,而去安装他们那个旧的2.4.3,他们给的是2014年的,很旧的一个ffmpeg版本(https://launchpad.net/~kirillshkrogalev ... fmpeg-next)

请问有什么方法能保留我现在的ffmpeg 3.0.0并成功安装OBS Studio?谢谢
另外,官方在最后还提供了一个Linux portable mode的安装方法,但我也安装不了。
[/size]


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: OBS无法安装?是因为我的ffmpeg版本太新的缘故吗?

#2

帖子 vickycq » 2016-03-29 9:53

obs-studio 0.13.1-315~trusty 的依赖:
Depends: libavcodec-ffmpeg56 (>= 7:2.4), libavdevice-ffmpeg56 (>= 7:2.4), libavfilter-ffmpeg5 (>= 7:2.4), libavformat-ffmpeg56 (>= 7:2.4), libavutil-ffmpeg54 (>= 7:2.4), libc6 (>= 2.17), libcurl3 (>= 7.16.2), libdbus-1-3 (>= 1.0.2), libfdk-aac0 (>= 0.1.1), libfontconfig1 (>= 2.9.0), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116, libpulse0 (>= 1:0.99.1), libqt5core5a (>= 5.2.0), libqt5gui5 (>= 5.2.0) | libqt5gui5-gles (>= 5.2.0), libqt5widgets5 (>= 5.2.0), libqt5x11extras5 (>= 5.1.0), libstdc++6 (>= 4.8.1), libswresample-ffmpeg1 (>= 7:2.4), libswscale-ffmpeg3 (>= 7:2.4), libudev1 (>= 183), libv4l-0 (>= 0.5.0), libx11-6, libx11-xcb1, libx264-142, libxcb-shm0, libxcb-xfixes0, libxcb-xinerama0, libxcb1, libxcomposite1 (>= 1:0.3-1), libxfixes3, zlib1g (>= 1:1.2.6)
恐怕你需要设法满足以上依赖 :em06
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#3

帖子 kashu » 2016-03-29 9:59

谢谢。 他们还提供了一个Linux portable mode的安装方式,这个是不是也得要先满足上面的那些依赖才能安装?
Linux portable mode

You can also build in portable mode on Linux, which installs all the files to an isolated directory:

mkdir build && cd build
cmake -DUNIX_STRUCTURE=0 \
-DCMAKE_INSTALL_PREFIX="${HOME}/obs-studio-portable" ..
make -j4 && make install
After that you should have a portable install in ~/obs-studio-portable Change to bin/64bit or bin/32bit and then simply run: ./obs


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#4

帖子 vickycq » 2016-03-29 10:04

kashu 写了:谢谢。 他们还提供了一个Linux portable mode的安装方式,这个是不是也得要先满足上面的那些依赖才能安装?

Portable Mode 也需要参考 Manually compiling on Debian-based distros 这一节
无论是编译还是运行都少不了 ffmpeg 的身影

前段时间编译一套定制的 vlc,也遇到 libavcodec-ffmpeg* 版本太高的问题。最后还是老老实实搞了个 Debian 7 才编译成功。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#5

帖子 kashu » 2016-03-29 10:09

谢谢! 我先拿个虚拟机测一下吧。

我物理机里如果把这个ffmpeg降级到这么低的版本,其它相关的一些应用程序可能会出乱子。


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
头像
qy117121
论坛版主
帖子: 50546
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#7

帖子 qy117121 » 2016-03-29 20:03

obs我装上了,但是不能录屏,点了录屏就闪退了,
我没开直播,所以串流时正常不不清楚,至少预览是正常的
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#8

帖子 kashu » 2016-03-29 22:01

qy117121 写了:obs我装上了,但是不能录屏,点了录屏就闪退了,
我没开直播,所以串流时正常不不清楚,至少预览是正常的


1)我在KVM里面的Xubuntu 14.04VirtualBox里面的Xubuntu 14.04里都测试过,可以安装成功,但就是打不开,无法使用

我在VirtualBox里面的Windows 8.1 Enterprise里也测试过,在这就可以正常使用,并且我在某平台的直播可以正常观看。

我初步判断可能是因为虚拟机环境的缘故,导致OBS Stuido虽然可以在Xubuntu里安装成功,但却无法在Xubuntu里打开使用。
(可惜,我现在没有可用的物理机,不然我可以在物理机上的Xubuntu 14.04里安装OBS并测试下,所以物理机上能不能正常使用,至少目前来说我觉得应该是能用的,毕竟已经有这么多人在用,并且版本是针对14.04发布出来的。我笔记本上的Xubuntu 14.04.4由于ffmpeg版本太新的缘故装不了OBS,我不想删除我现在的ffmpeg)


2)让人纠结的是,OBS stuido官方的github没有issue标签(https://github.com/jp9000/obs-studio),无法提问
所以我还在OBS的官方论坛里发了个问题,静待回复:
https://obsproject.com/forum/threads/xu ... dio.45728/
上次由 kashu 在 2016-03-29 22:10,总共编辑 1 次。


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
头像
qy117121
论坛版主
帖子: 50546
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#9

帖子 qy117121 » 2016-03-29 22:10

然而我用的是16.04
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#10

帖子 kashu » 2016-03-29 22:22

qy117121 写了:然而我用的是16.04

你可以尝试一下从源码编译安装

在14.04/15.04里安装、使用肯定是没问题的
图片


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#11

帖子 poloshiao » 2016-03-30 6:34

我没使用官方提供的ffmpeg,因为我的Xubuntu 14.04.4 LTS已经安装了ffmpeg 3.0.0,是比较新的版本。
http://packages.ubuntu.com/search?suite ... chon=names
1. 基於某些原因 ffmpeg 套件 在 ubuntu 14.04 被移除 (被 libav 套件取代) 在 ubuntu 15.04 及以後版本 才又裝回
2. 縱使到 16.04 ffmpeg 還只是 2.8.6-1ubuntu2
3. Ubuntu 官網套件庫 為何不使用 3.0.0 ?
可能原因之一 就是 Ubuntu 作業系統 還無法充分滿足相依套件及相依套件版本的需求 你要安裝 3.0.0 可能需要先克服相依套件及相依套件版本的需求
viewtopic.php?p=3158978#p3158978
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#12

帖子 kashu » 2016-03-30 6:45

poloshiao 写了:
我没使用官方提供的ffmpeg,因为我的Xubuntu 14.04.4 LTS已经安装了ffmpeg 3.0.0,是比较新的版本。

http://packages.ubuntu.com/search?suite ... chon=names
1. 基於某些原因 ffmpeg 套件 在 ubuntu 14.04 被移除 在 ubuntu 15.04 及以後版本 才又裝回
2. 縱使到 16.04 ffmpeg 還只是 2.8.6-1ubuntu2
3. Ubuntu 官網套件庫 為何不使用 3.0.0 ?
可能原因之一 就是 Ubuntu 作業系統 還無法充分滿足相依套件及相依套件版本的需求 你要安裝 3.0.0 可能需要先克服相依套件及相依套件版本的需求
viewtopic.php?p=3158978#p3158978


谢谢,知道问题的原因就好了。

但是,ffmpeg这软件,我个人认为,基本上永远都是新版本比旧版本要好用、要高效。
现在OBS Studio在我的物理机上安装不了,就先这样吧。


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#13

帖子 poloshiao » 2016-03-30 6:54

基本上永远都是新版本比旧版本要好用、要高效。
沒錯
但是需要周圍其它條件都滿足 才能充分發揮 否則會有英雄無用武之地的時機
所謂 太早摘的葡萄是酸的
1)我已添加官方的PPA源:sudo add-apt-repository ppa:obsproject/obs-studio
https://obsproject.com/forum/threads/ob ... ost-126914
這一篇 成功安裝 obs-studio 在 Ubuntu 14.04 案例 供你參考
I got it all sorted out. I just had to ppa-purge the unstable obs-studio ppa, then update, then install the stable obs-studio ppa, then update and install the new ffmpeg ppa and then install obs. All is well now
头像
nyfair
帖子: 1067
注册时间: 2007-12-07 12:49
系统: winnux10
来自: Tree New Bee

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#14

帖子 nyfair » 2016-03-30 15:38

使用新版ffmpeg才是明智的选择,不过ffmpeg不同版本的abi是不兼容的

又要用老版本系统,又要用新版本程序,简而言之就是,连自己编译都不肯,还敢说爱她?
上次由 月下叹逍遥 在 2016-03-30 17:11,总共编辑 1 次。
原因: 文明语言,不搞地域攻击
本人在此论坛仅负责吐槽,问题急需解决请支付宝转账5毛至{我的id@qq.com},将会竭诚为您服务

linux常见多媒体问题处理指南

1. 视频播放有问题->卸载gstreamer
2. 音频播放有问题->卸载pulseaudio
3. 远程播放有问题->卸载avahi
4. 系统全都有问题->卸载systemd,远离Lennart这傻逼让你从此轻松自在

⇩自由网络⇩
https://github.com/nyfair/freeweb
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: OBS Studio无法安装?是因为我的ffmpeg版本太新的缘故吗?

#15

帖子 kashu » 2016-03-31 6:47

poloshiao 写了: 這一篇 成功安裝 obs-studio 在 Ubuntu 14.04 案例 供你參考
I got it all sorted out. I just had to ppa-purge the unstable obs-studio ppa, then update, then install the stable obs-studio ppa, then update and install the new ffmpeg ppa and then install obs. All is well now

谢谢,有机会我再在「物理机」里的Xubuntu上再试试看

我在「虚拟机」里的Ubuntu 14.04.4、Xubuntu 14.04.4里安装后都打不开(分别在KVM和Virtualbox里都安装测试过,打不开OBS Studio)

代码: 全选

kashu$ obs
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Default.qss
Attempted path: /usr/share/obs/obs-studio/themes/Default.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 4 logical cores
info: Processor: QEMU Virtual CPU version 2.0.0
info: Processor: QEMU Virtual CPU version 2.0.0
info: Processor: QEMU Virtual CPU version 2.0.0
info: Processor: QEMU Virtual CPU version 2.0.0
info: Physical Memory: 993MB Total
info: Kernel Version: Linux 3.16.0-67-generic
info: Distribution: "Ubuntu" "14.04"
info: OBS 0.13.1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 44100
	speakers:        2
error: ARB_GLX_create_context not supported!
error: Failed to create context!
error: device_create (GL) failed
error: Failed to initialize video:  Unspecified error
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 2380.87 ms
info:  ┣OBSApp::AppInit: 1.853 ms
info:  ┃ ┗OBSApp::InitLocale: 1.11 ms
info:  ┗OBSApp::OBSInit: 122.281 ms
info:    ┣obs_startup: 4.58 ms
info:    ┗OBSBasic::OBSInit: 37.423 ms
info:      ┣OBSBasic::InitBasicConfig: 0.963 ms
info:      ┣OBSBasic::ResetAudio: 0.15 ms
info:      ┗OBSBasic::ResetVideo: 36.183 ms
info: obs_hotkey_thread(25 ms): min=0.082 ms, median=0.23 ms, max=16.367 ms, 99th percentile=16.367 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.007 ms, median=0.012 ms, max=0.035 ms, 99th percentile=0.035 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.162 ms, median=25.367 ms, max=46.286 ms, 77.381% within ±2% of 25 ms (0% lower, 22.619% higher)
info: =================================================
info: Number of memory leaks: 122
但,在虚拟机Windows 8.1 Enterprise里可以正常使用OBS Studio,串流也没问题。


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
回复