[FFmpeg-user] FFmpeg Library
Steven Liu
lingjiujianke at gmail.com
Thu Sep 17 10:47:48 CEST 2015
You can reference the doc/example file makefile
gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -std=c99
-fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings
-Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast
-Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch
-Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno
-fno-signed-zeros -fno-tree-vectorize -Werror=format-security
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto
-Wno-maybe-uninitialized -c -o doc/examples/transcoding.o
doc/examples/transcoding.c
gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample
-Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed
-Wl,-z,noexecstack -Wl,--warn-common
-Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample
-o doc/examples/transcoding_g doc/examples/transcoding.o -lavdevice
-lavfilter -lavformat -lavcodec -lpostproc -lswresample -lswscale -lavutil
-lXv -lX11 -lXext -lva -lva-x11 -lva -lxcb -lxcb-shm -lxcb -lxcb-xfixes
-lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lX11 -lx264 -lmp3lame
-lfaac -lm -lz -pthread
the simple is looks like :
gcc -g doc/examples/muxing.c -o muxing -lavcodec -lavdevice -lavfilter
-lavformat -lavutil -lswscale -lswresample -lpostproc -lx264 -lmp3lame -lz
-liconv -lbz2
2015-09-17 15:08 GMT+08:00 Satinder Singh <satinder at frankly.me>:
> Hi ,,
>
> Any body please help me . I want use ffmpeg library in my C program How I
> can use that . I following a ffmpeg tutorial from the dranger.com , but if
> I following that tutorial and merge the ffmpeg library as per as tutorial ,
> I got maximum large no. of undefined function errors . Please help me .
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list