Recent Changes - Search:

Main.HomePage2

VideoTools

Compile FFMPEG

Compile h264

Source

    # cd to test directory
    git clone git://git.videolan.org/x264.git
    cd x264
    ./configure --enable-static --enable-shared --disable-debug
    make
    sudo make install
    sudo ldconfig    # Prob not necessary
    cd ..            # Prepare for ffmpeg compile

Compile ffmpeg

    git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
    cd ffmpeg
    ./configure --enable-libx264 --enable-gpl
    make
    # Rather than installing to system, we put the static libraries in a separate directory
    cd ..
    mkdir lib
    cp ./ffmpeg/libavcodec/libavcodec.a lib
    cp ./ffmpeg/libavdevice/libavdevice.a lib
    cp ./ffmpeg/libavfilter/libavfilter.a lib
    cp ./ffmpeg/libavformat/libavformat.a lib
    cp ./ffmpeg/libavutil/libavutil.a lib
    cp ./ffmpeg/libswresample/libswresample.a lib
    cp ./ffmpeg/libswscale/libswscale.a lib

Compile test ffmpeg program

Test program:: decoding-encoding.c

Download test program and save it to decoding-encoding.c.

In the following, the previous steps for x264 and ffmpeg have been done in directory: /home/wim/projects/cogisen/test/git

In the directory containing this file:

    gcc -I"/home/wim/projects/cogisen/test/git/ffmpeg"  -fpermissive decoding-encoding.c -o decoding-encoding \ 
    -L"/home/wim/projects/cogisen/test/git/lib" -L"/usr/lib64" \ 
    -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswresample -lswscale -lpthread -lm -lz -lx264

run the test program:

    ./decoding-encoding h264    # Other options: mp2, mpg

Create video out of distinct pictures

Source

1. Create a directory for trying this solution, you better make a duplicate copy of the videos before trying this.

   mkdir temp

2. Copy all of your images to that directory temp you have created.

   cp *.JPG temp/.

3. Set the resolution of your images.

   mogrify -resize 800x800  temp/*.JPG

4. Convert them to be get morphed for soft transitions and and make them a mp4 video.

   convert temp/*.JPG -delay 10 -morph 10 temp/%05d.jpg
   ffmpeg -r 25 -qscale 2  -i temp/%05d.jpg output.mp4
Edit - History - Print - Recent Changes - Search
Page last modified on March 20, 2015, at 04:12 PM