screen-recorder-ffmpeg-cpp icon indicating copy to clipboard operation
screen-recorder-ffmpeg-cpp copied to clipboard

Segmentation fault

Open Arash-codedev opened this issue 8 years ago • 0 comments

Just compile the file after a lot of attempts and got

 Registering required functions...

Segmentation fault (core dumped)

Stack trace:

#0  0x000000000104d0a2 in av_opt_next (last=0x0, obj=0x7fcf6f1b8040) at libavutil/opt.c:51
#1  av_opt_set_defaults2 (s=0x7fcf6f1b8040, mask=mask@entry=0, flags=flags@entry=0) at libavutil/opt.c:1299
#2  0x000000000104d369 in av_opt_set_defaults (s=<optimised out>) at libavutil/opt.c:1293
#3  0x0000000000a3088e in init_context_defaults (s=s@entry=0x365d140, codec=codec@entry=0x7fcfc1695299 <__GI___cxa_atexit+25>) at libavcodec/options.c:135
#4  0x0000000000a30956 in avcodec_alloc_context3 (codec=0x7fcfc1695299 <__GI___cxa_atexit+25>) at libavcodec/options.c:164
#5  0x00000000004803ae in ScreenRecorder::init_outputfile (this=this@entry=0x7fff4b36f190) at ScreenRecorder.cpp:272
#6  0x00000000004805e7 in main () at ScreenRecorder.cpp:352

Also, in the liking process, it seems -lXv is necessary.

Arash-codedev avatar Nov 20 '17 05:11 Arash-codedev