2011/07/27

FFmpeg build and run

How to build and run ffmpeg 0.8

1. download 0.8 ffmepg

2. Install libsdl libsdl-mix, using synaptic package manager

3 ./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-shared --disable-yasm --enable-debug=3 --disable-stripping --prefix=/home/xgu/ffmpeg

4. make; make install;

5. cd /home/xgu/ffmpeg/bin

6. LD_LIBRARY_PATH=../lib ./ffmpeg -s 640x480 -f video4linux2 -i /dev/video0 -f mpegts -vcodec mpeg2video out1.mpeg

7. LD_LIBRARY_PATH=../lib ./ffplay  Some_Video_File

No comments:

Post a Comment

Post Code on Blogger

Simplest way to post code to blogger for me: <pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black;overflow-x:...