6

Patches for OBS Studio

 2 years ago
source link: https://gist.github.com/danieloneill/9952820ad3ae0fe36738b4106ae6a775
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Patches for OBS Studio · GitHub

Instantly share code, notes, and snippets.

Patches for OBS Studio

How did you get past the obs initialization open gl segmentation fault core dump

Oh, I just put it in /usr/local/include

you copied the obs executable to there? I built it in my $HOME/obs-studio, or do i move the whole folder?

I just copied the sse2neon.h file to /usr/local/include and did a make install as usual.

One thing I've not figured out yet, you need to LD_PRELOAD the libGL.so when launching OBS.

ahh i was wondering what magic you had in that obs.sh script. great work btw. I was attempting this on my own then stumbled upon this. I'll give it a go tonight. I'm working on that custom encoder to see if i can get it to use the tegra.

You can probably use the custom encoder option OBS offers, with a bit of googling and trial/fail. (In my tests it crashed OBS a lot)

On Tue, Nov 26, 2019, 15:28 Epiclemonaid, ***@***.***> wrote: ahh i was wondering what magic you had in that obs.sh script. great work btw. I was attempting this on my own then stumbled upon this. I'll give it a go tonight. I'm working on that custom encoder to see if i can get it to use the tegra.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://gist.github.com/9952820ad3ae0fe36738b4106ae6a775?email_source=notifications&email_token=ACQNLDPZZHO6Y5AMNM5X7VLQVWPH5A5CNFSM4JQ34NR2YY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF43DQ#gistcomment-3094072>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACQNLDPKE5IZGZRJ6GQ24U3QVWPH5ANCNFSM4JQ34NRQ> .

Epiclemonaid commented on Dec 5, 2019

edited

okay I finally tried it with

#!/bin/bash
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libGL.so
./bin/64bit/obs

still getting a segment fault. any wisdom to get past this? and did you compile the normal version of obs or the portable?

thanks for you help!

I just did a basic cmake, and you need to do a make install after building.

That should be all you need, your script looks the same as mine.

Can you ldd the binary, share the output, then try running it in strace, valgrind, and.. well, are you comfortable with gdb?

If so, a backtrace on crash would be useful too.

On Thu, Dec 5, 2019, 01:13 Epiclemonaid, ***@***.***> wrote: okay I finally tried it with #!/bin/bash LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libGL.so ./bin/64bit/obs still getting a segment fault. any wisdom to get past this? and did you compile the normal version of obs or the portable?

thanks for you help!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://gist.github.com/9952820ad3ae0fe36738b4106ae6a775?email_source=notifications&email_token=ACQNLDM667FEYNO4UUGEMT3QXCZ3NA5CNFSM4JQ34NR2YY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF5KDO#gistcomment-3101751>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACQNLDMML2JNBHQ6DI6RZODQXCZ3NANCNFSM4JQ34NRQ> .

ghost commented on Dec 5, 2019

Thank you!

I'm not super comfortable with valgrind or gdb. if you have a gist of what I should run to get that info that would be great. I'm setting up a fresh jetpack install and going to go through it again just to make sure I didint mess anything up while monkeying around.

cd build/rundir/RelWithDebInfo
LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libGL.so valgrind ./bin/64bit/obs

Then just paste where it segfaulted

Or with gdb:
LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libGL.so gdb ./bin/64bit/obs
run

bt

Then just paste that backtrace output into your comment here.
ldd bin/64bit/obs will tell us "some" things, but obs dlopens various libraries at runtime which won't show up here. Still, it'll tell us what it did link to at compile time, which could also be causing issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK