obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
58.51k stars 7.81k forks source link

[Linux] Failed to initialize output #213

Closed Kazunekit closed 10 years ago

Kazunekit commented 10 years ago

Hello, I discovered that a change made after commit 94e2bad has broken obs in it's ability to find modules. This only happens on a clean install.

Attempted path: ../../data/obs-studio/locale/en-US.ini
Attempted path: ../../data/obs-studio/locale.ini
Attempted path: ../../data/obs-studio/license/gplv2.txt
QObject::connect: invalid null parameter
info: OBS 0.4.2-55-gc9b205f (linux)
info: Processor: 8 logical cores
info: Processor: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
info: Physical Memory: 16029MB Total
info: Kernel Version: Linux 3.15.6-1-ARCH
info: Distribution: "Arch Linux" Unknown
info: audio settings reset:
samples per sec: 44100
speakers:        2
buffering (ms):  1000

info: X and Y: 909 480
Backbuffers: 2
Color Format: 3
ZStencil Format: 0
Adapter: 0

info: OpenGL version: 3.2.0 NVIDIA 340.24

info: Created new platform data
info: Attempting path: ../../data/libobs/default.effect

info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: Attempting path: ../../data/libobs/solid.effect

info: Attempting path: ../../data/libobs/format_conversion.effect

info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: convert_sampler_info: 1 <= max_anisotropy <= 16 violated, selected: 0, set: 1
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    fps:               25/1
info: Attempting path: ../../obs-plugins/64bit/libimage-source.so

warning: Module 'image-source' not found
info: Attempting path: ../../obs-plugins/64bit/libobs-ffmpeg.so

warning: Module 'obs-ffmpeg' not found
info: Attempting path: ../../obs-plugins/64bit/libobs-libfdk.so

warning: Module 'obs-libfdk' not found
info: Attempting path: ../../obs-plugins/64bit/libobs-x264.so

warning: Module 'obs-x264' not found
info: Attempting path: ../../obs-plugins/64bit/libobs-outputs.so

warning: Module 'obs-outputs' not found
info: Attempting path: ../../obs-plugins/64bit/librtmp-services.so

warning: Module 'rtmp-services' not found
info: Attempting path: ../../obs-plugins/64bit/liblinux-xshm.so

warning: Module 'linux-xshm' not found
info: Attempting path: ../../obs-plugins/64bit/liblinux-xcomposite.so

warning: Module 'linux-xcomposite' not found
info: Attempting path: ../../obs-plugins/64bit/liblinux-pulseaudio.so

warning: Module 'linux-pulseaudio' not found
info: Attempting path: ../../obs-plugins/64bit/liblinux-v4l2.so

warning: Module 'linux-v4l2' not found
error: Output 'flv_output' not found
error: Failed to initialize outputs
Xlib: sequence lost (0x104cd > 0x4ce) in reply type 0x6!
error: Failed to make context current.
QPaintDevice::metrics: Device has no metric information
zsh: abort      ./obs

As mentioned, this only happens on clean install. When doing an update, make install just copies more files into the obs-plugins directory. This is how the directory looks after and update:

└── obs-plugins
    └── 64bit
        ├── image-source.so
        ├── libimage-source.so
        ├── liblinux-pulseaudio.so
        ├── liblinux-v4l2.so
        ├── liblinux-xcomposite.so
        ├── liblinux-xshm.so
        ├── libobs-ffmpeg.so
        ├── libobs-libfdk.so
        ├── libobs-outputs.so
        ├── libobs-x264.so
        ├── librtmp-services.so
        ├── libtest-input.so
        ├── linux-pulseaudio.so
        ├── linux-v4l2.so
        ├── linux-xcomposite.so
        ├── linux-xshm.so
        ├── obs-ffmpeg.so
        ├── obs-libfdk.so
        ├── obs-outputs.so
        ├── obs-x264.so
        ├── rtmp-services.so
        └── test-input.so
ADcorpo commented 10 years ago

Same problem here, obs looks for plugins beginning with "lib" only. Could be fixed temporarily by renaming all plugins by their names beginning with "lib".