分页: 1 / 1

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

发表于 : 2016-03-29 8:59
kashu
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]

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

发表于 : 2016-03-29 9:53
vickycq
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

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

发表于 : 2016-03-29 9:59
kashu
谢谢。 他们还提供了一个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

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

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

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

前段时间编译一套定制的 vlc,也遇到 libavcodec-ffmpeg* 版本太高的问题。最后还是老老实实搞了个 Debian 7 才编译成功。

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

发表于 : 2016-03-29 10:09
kashu
谢谢! 我先拿个虚拟机测一下吧。

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

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

发表于 : 2016-03-29 20:01
photor
:em09

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

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

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

发表于 : 2016-03-29 22:01
kashu
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/

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

发表于 : 2016-03-29 22:10
qy117121
然而我用的是16.04

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

发表于 : 2016-03-29 22:22
kashu
qy117121 写了:然而我用的是16.04

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

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

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

发表于 : 2016-03-30 6:34
poloshiao
我没使用官方提供的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

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

发表于 : 2016-03-30 6:45
kashu
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在我的物理机上安装不了,就先这样吧。

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

发表于 : 2016-03-30 6:54
poloshiao
基本上永远都是新版本比旧版本要好用、要高效。
沒錯
但是需要周圍其它條件都滿足 才能充分發揮 否則會有英雄無用武之地的時機
所謂 太早摘的葡萄是酸的
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

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

发表于 : 2016-03-30 15:38
nyfair
使用新版ffmpeg才是明智的选择,不过ffmpeg不同版本的abi是不兼容的

又要用老版本系统,又要用新版本程序,简而言之就是,连自己编译都不肯,还敢说爱她?

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

发表于 : 2016-03-31 6:47
kashu
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,串流也没问题。