Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging FFmpeg

I am using FFmpeg @ Android and would like to be able to step-in to the FFmpeg code ( Eclipse + Seqouya ), while compiling FFmpeg I use the --disable-stripping --enable-debug=3 flags, still, stepping in with the debugger throws me at some unrelated line of code.

What settings should I use to enable FFmpeg debugging ?

like image 251
NadavRub Avatar asked Oct 26 '25 22:10

NadavRub


2 Answers

After some research, The only thing that was missing to enable stepping through ffmpeg code was adding ffmpeg build script --extra-cflags="-gstabs+"

like image 74
NadavRub Avatar answered Oct 28 '25 14:10

NadavRub


This works for me, not sure how much necessary/helpful:

--disable-optimizations --extra-cflags=-Og --extra-cflags=-fno-omit-frame-pointer --enable-debug=3 --extra-cflags=-fno-inline

Then use ffmpeg_g :)

like image 42
rogerdpack Avatar answered Oct 28 '25 14:10

rogerdpack