Skip to content

tppi/ffmpeg2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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://github.com/mpenkov/ffmpeg-tutorial
[8] https://lists.ffmpeg.org/doxygen/trunk/examples.html

About

Developing with the FFmpeg library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages