> https://stackoverflow.com/questions/38850260/errors- when-compiling-c-code-with-ffmpeg-library '
Thank you Leandro, 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: 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 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. Best, Davood Falahati
_______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user