# FFmpeg2 **Repository Path**: dong2/FFmpeg2 ## Basic Information - **Project Name**: FFmpeg2 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-07 - **Last Updated**: 2021-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 2FFmpeg Tutorials for: > Using the FFmpeg library in your own projects > Developing with the FFmpeg library ## 1. build ffmpeg ./configure --prefix=/usr/local/ffmpeg --disable-x86asm make sudo make install ## 2. build ffmpeg + x264 ### environment variable echo "export LD_LIBRARY_PATH=/usr/local/ffmpeg/lib:$LD_LIBRARY_PATH">> ~/.bashrc echo "export PKG_CONFIG_PATH=/usr/local/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH">> ~/.bashrc source ~/.bashrc ### x264 ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-pic make sudo make install ### ffmpeg ./configure --prefix=/usr/local/ffmpeg --enable-libx264 --enable-gpl /* with the pkg-config, there is no need to add `--extra-cflags=-I/usr/local/ffmpeg/include --extra-cxxflags=-I/usr/local/ffmpeg/include --extra-ldflags=-L/usr/local/ffmpeg/lib` */ make sudo make install ## 3. example ```gcc muxing.c -o muxing `pkg-config --cflags --libs libavdevice libavformat libavfilter libavcodec libswresample libswscale libavutil` -lx264``` ## 4. reference [1] https://wiki.multimedia.cx/index.php/Category:FFmpeg_Tutorials [2] https://github.com/leandromoreira/ffmpeg-libav-tutorial [3] https://github.com/sorrowhill/FFmpegTutorial [4] http://dranger.com/ffmpeg/ [5] https://github.com/selvan/ffmpeg_tutorial [6] https://github.com/loupus/ffmpeg_tutorial [7] https://lists.ffmpeg.org/doxygen/trunk/examples.html