After a success configure, when I try to make I receive a compilation error.
[03:51:29] [broadcastencoder] [master] : ./configure
You can run 'make' now.
[03:51:46] [broadcastencoder] [master] : make
obe.c:25:25: error: input/input.h: No such file or directory
gcc -Wshadow -O3 -ffast-math -Wall -I. -falign-loops=16 -arch x86_64 -std=gnu99 -s -fomit-frame-pointer -fno-tree-vectorize -c -o obecli.o obecli.c
In file included from obecli.c:34:
obe.h:29:30: error: libavcore/avcore.h: No such file or directory
make: *** [obecli.o] Error 1
libavcore was removed from ffmpeg, that's why.
There's a lot of stuff that still hasn't been pushed in this repo (e.g input.h). I should probably mention that somewhere. If there's anything in particular you want to look at (albeit incomplete) feel free to ask.
So how does compilation work? Do I need to compile ffmpeg from source as well? If I can get to compile I'd be happy to write up some documentation.
Complilation will work when I push my tree soon.
The codebase keeps changing so often in these early stages it seemed a bit pointless to push code that would get rewritten so quickly. Having said that I'm in the final stages for a 0.1 alpha release for which I will push all the code and then that will give something for people to build on.
ffmpeg will be a dependency for all inputs. It won't be vanilla ffmpeg, but the ffmpeg-obe-dev that I have in my current tree.
Prevent crash on exit.
Calling pthread_cancel( NULL ) results in the same crash as calling
pthread_join( NULL, ... )
This fixes the following:
obecli> set input decklink
obecli> set input opts card-idx=0
obecli> probe input
Probing device: Decklink card 0. Timeout 20 seconds
Detected input streams:
Input-stream-id: 0 - Video: RAW 720x576i 25/1fps
Input-stream-id: 1 - Audio: PCM 16 channels 48kHz
Output-stream-id: 0 - Input-stream-id: 0 - Video: AVC
Output-stream-id: 1 - Input-stream-id: 1 - Audio: RAW - SDI audio pair: 1
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6675be1 in pthread_cancel () from /lib64/libpthread.so.0
#0 0x00007ffff6675be1 in pthread_cancel () from /lib64/libpthread.so.0
#1 0x00000000004483d1 in obe_close (h=0x1417860) at obe.c:1233
#2 0x000000000044433f in stop_encode (command=command@entry=0x0, child=child@entry=0x0) at obecli.c:1353
#3 0x0000000000446d92 in main (argc=<optimized out>, argv=<optimized out>) at obecli.c:1534