<div dir="ltr"><div><font color="#a64d79"><span style="font-size:12.8px">> </span><a href="https://stackoverflow.com/questions/38850260/errors-when-compiling-c-code-with-ffmpeg-library" target="_blank" style="font-size:12.8px">https://stackoverflow.com/<wbr>questions/38850260/errors-<wbr>when-compiling-c-code-with-<wbr>ffmpeg-library</a><span style="font-size:12.8px"> </span><span style="font-size:12.8px">'</span></font><br></div><div><br></div>Thank you Leandro,<div><br></div><div>It solved my problem. But I have another problem. When I want to run examples in shared/ffmpeg/examples, I get "Segmentation Fault(core dumped). This is my build script:</div><div><br></div><div><div>gcc metadata.c -L/home/dfalahati/ffmpeg_build/lib -lavdevice -lavfilter  -lavformat -lavcodec -lxcb-shm -lxcb-xfixes   -lstdc++ -lrt -lx264 -ldl -lvpx -lpthread -lvorbisenc -lvorbis -ltheoraenc -ltheoradec -logg -lopus -lmp3lame -lfdk-aac -lass  -lfreetype  -llzma -lbz2 -lz -lswresample -lswscale -lavutil  -lX11 -lm  -lvdpau -lva  -lva-x11 -lva-drm -lnuma -lva-x11 -o metadata-cmd</div></div><div><br></div><div>and when I run ./metadata-cmd myVideo.MOV , I get the explained error.  When I install libav-dev and fmpeg from ubuntu repositories, I don't have such problems, but I need to use the newest version.</div><div><br></div><div>Best,</div><div>Davood Falahati</div><div><br></div><div><br></div><div><br></div></div>