hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

how to compile ffmpeg for Pi2 (iterating to a working build)

Sat Feb 14, 2015 3:11 am

Hello. [newbie alert]
I hope to compile the latest ffmpeg for the new Pi 2 armv7, on the Pi2, resulting in a static exe.
Some googling indicated the commands below would build some of ffmpeg for the old Pi Model B armv6.

Could someone please indicate what needs to be changed to compile it for ARMv7 ?
(also, what needs to happen to compile the missing pieces such as libxvid)

And/or links to relevant resources, outlining the concepts, to help me work it out.
Thanks.

Code: Select all

snip. superseded.
Last edited by hydra3333 on Mon Feb 23, 2015 11:00 am, edited 3 times in total.

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: how to compile ffmpeg for Pi2

Tue Feb 17, 2015 10:20 am

In general you would search for 'armv6' and replace with 'armv7'. This 'incantation' does not seem to include any.

The only thing I spotted quickly glancing through is the '--arch=armel' on line 205 which seems to suggest using the emulated floating points not hard fp, so might want to change to '--arch=armhf'.

Some more discussion on compiler options http://www.raspberrypi.org/forums/viewt ... 33&t=98354
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23708
Joined: Sat Jul 30, 2011 7:41 pm

Re: how to compile ffmpeg for Pi2

Tue Feb 17, 2015 10:26 am

I've done this but my notes are at work..will try and remember to post them tomorrow.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2

Wed Feb 18, 2015 8:58 am

jamesh wrote:I've done this but my notes are at work..will try and remember to post them tomorrow.
Very much looking forward to this, thank you !

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23708
Joined: Sat Jul 30, 2011 7:41 pm

Re: how to compile ffmpeg for Pi2

Wed Feb 18, 2015 10:02 am

Something like this...where you will need to replace my path to the cross compiler to where ever you have it installed.

Code: Select all

export CCJPREFIX="/home/james/projects/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-"

./configure --enable-cross-compile --cross-prefix=${CCJPREFIX} --arch=armel --target-os=linux

make
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2

Wed Feb 18, 2015 10:24 am

ah. I was hoping to compile on the Pi 2 (and didn't know the switches to use).
I guess I'll have to google for introductory beginners tutes on compiling and then what to use to compile for native Pi 2 hardware.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23708
Joined: Sat Jul 30, 2011 7:41 pm

Re: how to compile ffmpeg for Pi2

Wed Feb 18, 2015 10:26 am

Well, for a on Pi compile, you just forget the cross compile switch, BUT you may need to upgrade the compiler.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Sun Feb 22, 2015 1:53 pm

Returning back here from seeking help on compilation over at
http://www.raspberrypi.org/forums/viewt ... 44#p700944
ie stopped posting there.

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Mon Feb 23, 2015 11:22 am

Many (but not all) ffmpeg external libraries seemed to build using the native Pi compiler 4.6.3 for a target of Pi2 hardware.
As a real beginner, I'm not clear if each build is right or reasonable though, so advice would be welcomed.
The external libraries and their dependencies use different makes and cmakes and autogens, etc and they sometimes recognise cflags and sometimes not and sometimes they take different switches and in a few cases they simply won't compile.
Anyway, "ffmpeg --version" doesn't crash immediately when built as below.
I guess I need to look for a test suite mostly for mpg, mp2, mp3, mp4 and give it a whirl.

Next, to try "neon" based builds, library by library to check each builds without error, and after that try to guess why some of the external libraries won't compile/build whereas they and their dependencies seem to be able to be built by others.
eg for neon and compiler 4.6.3, use CFLAGS="-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm" instead of CFLAGS="-march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm"

Code: Select all

#!/bin/bash
# this script fixes its companion scripts, turning them from MS-DOS format to unix format
# to get rid of MSDOS format do this to this file: 
#  sudo sed -i s/\\r//g ./filename
# References
# http://www.raspberrypi.org/forums/viewtopic.php?f=43&t=53936
# http://www.jeffreythompson.org/blog/2014/11/13/installing-ffmpeg-for-raspberry-pi/
# https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
# http://owenashurst.com/?p=242
#
#========================
# http://www.cmake.org/pipermail/cmake/2009-April/028853.html
# for cmake, either 
#   THIS DOES NOT WORK FOR OPENCV set the environment variables CFLAGS and CPPFLAGS 
#   before running cmake initially, AFAIK cmake will pick them up then.
# or
#   set the cmake variables CMAKE_C_FLAGS and CMAKE_CXX__FLAGS in your cmake commandline
# NOTE:
# http://answers.opencv.org/question/4934/setting-cflags-and-cxxflags-for-opencv-243/
# As of OpenCV 2.4.3 the CMake scripts seem to be 
# actively ignoring/resetting the user specified CFLAGS
# So ... set the cmake variables CMAKE_C_FLAGS and CMAKE_CXX__FLAGS in your 
# cmake commandline like this
# sudo cmake -G "Unix Makefiles" ../../ -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_NEON:BOOL=ON -DINSTALL_TESTS:BOOL=ON -DWITH_FFMPEG:BOOL=ON -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm" -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm"
#========================

set +x

# http://community.arm.com/groups/tools/blog/2013/04/15/arm-cortex-a-processors-and-gcc-command-lines
# 
## fp only
#themfpu=vfpv4
## fp plus simd
themfpu=neon-vfpv4

# ask someone about
# sudo ./configure --host=arm-unknown-linux-gnueabi 
# versus
# sudo ./configure --host=armv71-unknown-linux-gnueabihf 
# versus
# sudo ./configure --host=arm-unknown-linux-gnueabihf 
#
# as at 2015.02.21 gcc is version 4.6.3
#
echo "#"
echo "# Start building some external libraries for ffmpeg on Raspberry Pi 2"
echo "#"
echo "# This is a COMPLETE source download and rebuild of some ffmpeg external libraries on Raspberry Pi 2"
echo "#"
echo "# Once day, ask someone about which if these works and is *the best* for the Pi2"
echo "# sudo ./configure --host=arm-unknown-linux-gnueabi "
echo "#   versus"
echo "# sudo ./configure --host=armv71-unknown-linux-gnueabihf "
echo "#   versus"
echo "# sudo ./configure --host=arm-unknown-linux-gnueabihf "
echo "#"
#echo "# NOTE:"
#echo "# THERE WILL BE SOME INTERACTIVE PROMPTING from time to time"
#echo "# FROM AUTOGEN ETC. We can't do anything about that."
echo "#"

set +x
read -p "Do you wish to re-download every Source library as we go ? [y/n,default=n]" dlYN
# [[ "$dlYN" =~ ^([yY]) ]] && ( statement ; separated ; by ; semicolons ; )
# or
# if [[ "$dlYN" =~ ^([yY]) ]] ; then
#   echo "Yes"
# elif [[ "$dlYN" =~ ^([nN]) ]] ; then
#   echo "No"
# else
#   echo "unknown"
# fi
#
read -p "Do you wish to press Enter between each library build ? [y/n,default=n]" pressenterYN
checkPressEnterYN() { [[ "$pressenterYN" =~ ^([yY]) ]] && ( set +x; echo "#"; read -p "Press Enter to continue..." xx ; echo "#"; set -x; ) }
# OK now use this statement ...
checkPressEnterYN
set -x
#--------
## from zeranoe windows build. 
## those with a single # we will attempt to include progressively 
##
##--enable-avisynth 
##--enable-frei0r (cant compile, opencv dependency) https://www.dyne.org/software/frei0r/   http://ffmpeg.zeranoe.com/builds/source/external_libraries/frei0r-20130909-git-10d8360.tar.xz
##--enable-gnutls (cant compile ... try again) http://gnutls.org/  http://ffmpeg.zeranoe.com/builds/source/external_libraries/gnutls-3.2.20.tar.xz
##--enable-libbluray 
#--enable-libbs2b dependency: libsndfile which wont compile   http://bs2b.sourceforge.net/  http://ffmpeg.zeranoe.com/builds/source/external_libraries/libbs2b-3.1.0.tar.xz
##--enable-libcaca 
##--enable-libgme 
##--enable-libgsm 
##--enable-libilbc 
#--enable-libmodplug http://modplug-xmms.sourceforge.net/#download   http://ffmpeg.zeranoe.com/builds/source/external_libraries/libmodplug-0.8.8.5.tar.xz
##--enable-libopencore-amrnb 
##--enable-libopencore-amrwb 
#--enable-libopus  http://opus-codec.org/   http://ffmpeg.zeranoe.com/builds/source/external_libraries/opus-1.1.tar.xz
##--enable-libschroedinger 
##--enable-libspeex 
#--enable-libvidstab http://public.hronopik.de/vid.stab/    http://ffmpeg.zeranoe.com/builds/source/external_libraries/vid.stab-0.98.tar.xz
##--enable-libvo-aacenc 
##--enable-libvo-amrwbenc 
##--enable-libxavs 
##--enable-decklink 
##--extra-libs=-ldl 
#--------
# Our build, in the order the libraries are built below
#--enable-libfaac 
#--enable-libx265
#--enable-libx264
#--enable-libmp3lame 
#--enable-libvpx 
#--enable-librtmp 
#--enable-libfdk-aac
#--enable-libxvid 
#--enable-libwebp
#--enable-libogg
#--enable-libvorbis
#--enable-libtheora 
#--enable-fontconfig 
#--enable-libass
#--enable-bzlib 
#--enable-libfreetype 
#--enable-libopenjpeg 
#--enable-libsoxr 
#--enable-libtwolame 
#--enable-libwavpack 
#--enable-lzma 
#--enable-zlib 
#--enable-iconv

set -x
sudo apt-get update -y
sudo apt-get upgrade -y
# some googling indicated these should be installed first
sudo apt-get -y install wget
sudo apt-get -y install git-core
#- sudo apt-get install -y git  # no, use git-core
sudo apt-get -y install gcc 
sudo apt-get -y install make 
sudo apt-get -y install bc
sudo apt-get -y install screen
sudo apt-get -y install ncurses-dev
sudo apt-get -y install autoconf
sudo apt-get -y install automake 
sudo apt-get -y install autogen
sudo apt-get -y install checkinstall
sudo apt-get -y install libtool
sudo apt-get -y install gettext
sudo apt-get -y install texinfo
sudo apt-get -y install texi2html 
sudo apt-get -y install build-essential
sudo apt-get -y install cmake
sudo apt-get -y install pkg-config 
sudo apt-get -y install texinfo
sudo apt-get -y install doxygen
sudo apt-get -y install lzip
# mercurial for h265
sudo apt-get -y install mercurial cmake-curses-gui 

checkPressEnterYN

#-- none of these ---
#sudo apt-get install -y libavcodec-dev
#sudo apt-get install -y libtool
#sudo apt-get install -y libtool-dev
#sudo apt-get install -y libmp3lame-dev
#sudo apt-get install -y libasound2-dev 
#sudo apt-get install -y libssl-dev
#sudo apt-get install -y libass-dev
#sudo apt-get install -y libpq-dev
#sudo apt-get install -y zlib1g-dev 
#sudo apt-get install -y libgpac-dev 
#sudo apt-get install -y fftw3-dev 
#sudo apt-get install -y libfftw3-dev
#sudo apt-get install -y libavutil-dev
#sudo apt-get install -y libavformat-dev
#sudo apt-get install -y libbz2-dev
#sudo apt-get install -y libfreetype6-dev 
#or sudo apt-get install -y freetype-devel
#sudo apt-get install -y libsdl1.2-dev 
#sudo apt-get install -y libtheora-dev 
#sudo apt-get install -y libvdpau-dev 
#sudo apt-get install -y libvorbis-dev 
#sudo apt-get install -y libva-dev 
#sudo apt-get install -y libva1 
#sudo apt-get install -y libva1-dev 
#sudo apt-get install -y libavutil51
#sudo apt-get install -y libavformat53
#sudo apt-get install -y libavcodec53
#sudo apt-get install -y libavcodec-extra-53
#sudo apt-get install -y libavfilter2
#sudo apt-get install -y libavdevice53
##sudo apt-get install -y libpq5
##sudo apt-get install -y libmysqlclient18 libmysqlclient-dev
#sudo apt-get install -y gpac
#sudo apt-get install -y gpac-dev
#- but not these since I want to build them myself if i can
#sudo apt-get install -y libx264-dev
#sudo apt-get install -y libvpx-dev
#sudo apt-get install -y libxvid-dev
#sudo apt-get install -y libaacplus-dev
#sudo apt-get install -y librtmp-dev
#sudo apt-get install -y ffmpeg-dev
#-
#?????????? newer packages, check them out later
#old:
#sudo apt-get install -y libjpeg62 
#sudo apt-get install -y libjpeg62-dev
#new:
#sudo apt-get install -y libjpeg-dev
#sudo apt-get install -y libjpeg8
#sudo apt-get install -y libjpeg8-dev
#?????????? newer packages, check them out later
#old:
#sudo apt-get install -y libc6
#sudo apt-get install -y libc6-dev
#new:
#sudo apt-get install -y libc6.1
#sudo apt-get install -y libc6.1-dev
#-
#-----
#checkPressEnterYN

sudo apt-get remove -y ffmpeg-dev
sudo apt-get remove -y ffmpeg

#------------------------------
# build sources in /usr/src. 
sudo mkdir /usr/src
sudo chmod -R 777 /usr/src
cd /usr/src
#
#-----
# build the FAAC aac LC module
# --libfaac
# It installes the resulting library in /usr/local/lib/libfaac.
sudo apt-get remove -y libfaac-dev
sudo apt-get remove -y libfaac 
sudo apt-get remove -y libaacplus-dev
sudo apt-get remove -y libaacplus 
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir faac-1.28
   sudo chmod -R 777 faac-1.28
   sudo rm -rf faac-1.28
   sudo mkdir faac-1.28
   sudo chmod -R 777 faac-1.28
   sudo curl -#LO http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz
   sudo tar xzvf faac-1.28.tar.gz
else
   sudo chmod -R 777 faac-1.28
fi
cd /usr/src/faac-1.28
# there HAS to be a way to automate this. I don;t know how, yet.
set +x
echo "#When you’re in the nano editor, you will need to go to line 126. "
echo "#Once you’re at that line, make the below code THE SAME as below … COPY THIS TEXT FIRST"
echo "#Once you’re at that line, make the below code THE SAME as below … COPY THIS TEXT FIRST"
echo "#Once you’re at that line, make the below code THE SAME as below … COPY THIS TEXT FIRST"
echo "#ifdef __cplusplus"
echo "extern \"C\" {"
echo "#endif"
echo "#ifndef _STRING_H"
echo "char *strcasestr(const char *haystack, const char *needle);"
echo "#endif"
echo "#ifdef __cplusplus"
echo "}"
echo "#endif"
echo " "
read -p "Press Enter to EDIT the file using sudo nano common/mp4v2/mpeg4ip.h   " xx 
set -x
sudo nano common/mp4v2/mpeg4ip.h
read -p "Press Enter to continue AFTER your editing  sudo nano common/mp4v2/mpeg4ip.h" xx 
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --disable-asm --host=arm-unknown-linux-gnueabi --enable-static --disable-shared  
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN 
#
#-----
# --enable-libx265
#FFmpeg can make use of the x265 library for HEVC encoding.
#Go to http://x265.org/developers.html and follow the instructions for installing the library. 
#Then pass --enable-libx265 to configure to enable it.
#x265 is under the GNU Public License Version 2 or later 
#(see http://www.gnu.org/licenses/old-licenses/gpl-2.0.html for details), 
#you must upgrade FFmpeg’s license to GPL in order to use it.
#
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir x265-1.5
   sudo chmod -R 777 x265-1.5
   sudo rm -rf x265-1.5
   sudo mkdir x265-1.5
   sudo chmod -R 777 x265-1.5
   #sudo hg clone https://bitbucket.org/multicoreware/x265 
   sudo wget http://ffmpeg.zeranoe.com/builds/source/external_libraries/x265-1.5.tar.xz
   sudo tar xf x265-1.5.tar.xz
else
   sudo chmod -R 777 x265-1.5
fi
cd /usr/src/x265-1.5/build/linux
#echo "Make sure shared is OFF in the settings for ./make-Makefiles.bash"
#echo "Then press the letter c"
#echo "Then press the letter g"
#checkPressEnterYN 
# The instructions to build, say do this
#sudo ./make-Makefiles.bash
# that line above actually does 
#   cmake -G "Unix Makefiles" ../../source && ccmake ../../source
# so instead we will do them manually ourselves 
# so we can set the static flag using -DENABLE_SHARED:BOOL=OFF
# About   sudo ccmake ../../source
# wiki says  (ccmake is curses cmake (curses is the terminal gui))
# and seems likely only used to check/set variables, so lets not do it
# since we can setup for static using -DENABLE_SHARED:BOOL=OFF 
# Also, oh joy, configure does not exist so we cannot do this
#sudo ./configure --disable-asm --host=arm-unknown-linux-gnueabi --enable-static --disable-shared   
# somehow add these 
#--host=arm-unknown-linux-gnueabi 
#--enable-static 
# http://www.cmake.org/Wiki/CMake_Cross_Compiling 
# http://stackoverflow.com/questions/5139403/whats-the-difference-of-configure-option-build-host-and-target
# so we will not do sudo ccmake ../../source
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo cmake -G "Unix Makefiles" ../../source -DENABLE_SHARED:BOOL=OFF -DCMAKE_SYSTEM_NAME:STRING=Linux
sudo cmake -G "Unix Makefiles" ../../source -DENABLE_SHARED:BOOL=OFF -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm" -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ccmake  ../../source 
# Oh joy it won't build properly for the raspberry pi2 since it spits out this error ...
#   -- CMAKE_SYSTEM_PROCESSOR value `armv7l` is unknown
#   -- Please add this value near /usr/src/x265-1.5/source/CMakeLists.txt:55
# but looking at it, instead we can add the missing bits with CFLAGS !
#cd ../../source
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN 
#
#-----
# advice from one post :-
# I first built the assembler YASM, but I now believe this step is unnecessary.
# So, it is important to include the flag to disable the use of the assembler.
# ie skip this YASM step below
## an assembler used by x264 and ffmpeg
#cd /usr/src
#wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
#tar xzvf yasm-1.2.0.tar.gz
#cd yasm-1.2.0
#./configure
#make
#sudo make install
# So, it is important to include the flag to disable the use of the assembler.
#
#-----
# --libx264
# build x264
sudo apt-get remove -y libx264-dev
sudo apt-get remove -y libx264 
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir x264
   sudo chmod -R 777 x264
   sudo rm -rf x264
   sudo mkdir x264
   sudo chmod -R 777 x264
   sudo git clone git://git.videolan.org/x264
else
   sudo chmod -R 777 x264
fi
cd /usr/src/x264
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --disable-asm --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl  --extra-cflags="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations"
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# --libmp3lame
# build a lame MP3 encoder. 
# It installs the resulting library in /usr/local/lib/libmp3lame
sudo apt-get remove -y libmp3lame-dev
sudo apt-get remove -y libmp3lame
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir lame-3.99
   sudo chmod -R 777 lame-3.99
   sudo rm -rf lame-3.99
   sudo mkdir lame-3.99
   sudo chmod -R 777 lame-3.99
   sudo wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz
   sudo tar xzvf lame-3.99.tar.gz
else
   sudo chmod -R 777 lame-3.99
fi
cd /usr/src/lame-3.99
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN 
#
#-----
# --libvpx
# build a LIBVPX video encoder 
# It installs the resulting library in /usr/local/lib/libvpx ??
# libvpx is an emerging open video compression library which is gaining popularity for distributing high definition video content on the internet. 
# FFmpeg supports using the libvpx library to compress video content. To acquire and build libvpx, perform the following:
sudo apt-get remove -y libvpx-dev
sudo apt-get remove -y libvpx
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir libvpx
   sudo chmod -R 777 libvpx
   sudo rm -rf libvpx
   sudo mkdir libvpx
   sudo chmod -R 777 libvpx
   sudo git clone http://git.chromium.org/webm/libvpx.git
else
   sudo chmod -R 777 libvpx
fi
cd /usr/src/libvpx
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --enable-static --disable-shared --disable-examples --enable-vp8 --enable-vp9 --enable-webm-io --enable-libyuv --extra-cflags="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo make -j4
#sudo make install
sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
sudo ldconfig
checkPressEnterYN 
#
#-----
#The GnuTLS (TLS security) Transport Layer Security Library
# note: do not bother ... gmplib will NOT configure before the make
# note: do not bother ... gmplib will NOT configure before the make
#   dependencies: nettle gmplib
#http://www.lysator.liu.se/~nisse/nettle/
#The public git repository for Nettle is located at git.lysator.liu.se. 
# After checkout, you need to run the .bootstrap script before the standard ./configure && make.
#https://ftp.gnu.org/gnu/nettle/nettle-3.0.tar.gz
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir nettle-3.0
   #sudo chmod -R 777 nettle-3.0
   #sudo rm -rf nettle-3.0
   #sudo mkdir nettle-3.0
   #sudo chmod -R 777 nettle-3.0
   #sudo wget https://ftp.gnu.org/gnu/nettle/nettle-3.0.tar.gz
   #sudo tar xzvf nettle-3.0.tar.gz
#else
  #sudo chmod -R 777 nettle-3.0
 #fi
#cd /usr/src/nettle-3.0
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --disable-assembler 
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN 
#https://gmplib.org/
#https://gmplib.org/download/gmp/gmp-6.0.0a.tar.lz
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir gmp-6.0.0
   #sudo chmod -R 777 gmp-6.0.0
   #sudo rm -rf gmp-6.0.0
   #sudo mkdir gmp-6.0.0
   #sudo chmod -R 777 gmp-6.0.0
   #sudo wget https://gmplib.org/download/gmp/gmp-6.0.0a.tar.lz
   #sudo tar --lzip -xvf gmp-6.0.0a.tar.lz
#else
   #sudo chmod -R 777 gmp-6.0.0
#fi
#cd /usr/src/gmp-6.0.0
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./configure --build=arm --host=arm-unknown-linux-gnueabi --enable-static --disable-shared  --enable-fft
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN 
# Now build the main GnuTLS
#http://gnutls.org/
#ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-3.3.12.tar.xz
#checkPressEnterYN 
#
#-----
# build an rtmp module
# It installs the resulting library in /usr/local/lib/librtmp ??
# librtmp provides support for the RTMP content streaming protocol developed by Adobe 
# and commonly used to distribute content to flash video players on the web. 
# FFmpeg supports using the librtmp library to stream content from RTMP sources. 
sudo apt-get remove -y rtmpdump-dev
sudo apt-get remove -y rtmpdump
sudo apt-get install -y libssl-dev
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir rtmpdump
   sudo chmod -R 777 rtmpdump
   sudo rm -rf rtmpdump
   sudo mkdir rtmpdump
   sudo chmod -R 777 rtmpdump
   sudo git clone git://git.ffmpeg.org/rtmpdump
else
   sudo chmod -R 777 rtmpdump
fi
cd /usr/src/rtmpdump
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export XCFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo make -j4 SYS=posix XCFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo checkinstall --pkgname=rtmpdump --pkgversion="2:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
sudo ldconfig
checkPressEnterYN 
#
#-----
# 5. do NOT build an aac HC module - instead rely on libfaac which is LC
#Downloading Compiling LibaacPlus - HC
## LIBAACPLUS AAC ENCODER encoder
# cd /usr/src
# sudo mkdir libaacplus-2.0.2
# sudo chmod -R 777 libaacplus-2.0.2
# sudo rm -rf libaacplus-2.0.2
# sudo mkdir libaacplus-2.0.2
# sudo chmod -R 777 libaacplus-2.0.2
# sudo wget http://tipok.org.ua/downloads/media/aacplus/libaacplus/libaacplus-2.0.2.tar.gz
# sudo tar -xzf libaacplus-2.0.2.tar.gz
# cd libaacplus-2.0.2
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
# sudo ./autogen.sh --with-parameter-expansion-string-replace-capable-shell=/bin/bash --host=arm-unknown-linux-gnueabi --enable-static --disable-shared
# sudo make
# sudo make install
# sudo ldconfig
#
#--------------------------
# ?? --enable-libfdk-aac
# not the libfaac above
# fdk-aac
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir fdk-aac
   sudo chmod -R 777 fdk-aac
   sudo rm -rf fdk-aac
   sudo mkdir fdk-aac
   sudo chmod -R 777 fdk-aac
   sudo git clone --depth 1 git://github.com/mstorsjo/fdk-aac
else
   sudo chmod -R 777 fdk-aac
fi
cd /usr/src/fdk-aac
#sudo autoreconf -i
sudo autoreconf -fiv
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared   
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# No, do not build the ALSA as there's no ffmpeg -- switch to enable it. Work it out another year.
# ?? --extra-libs=-lasound
#wget http://mirrors.zerg.biz/alsa/lib/alsa-lib-1.0.25.tar.bz2
#tar xjf alsa-lib-1.0.25.tar.bz2
#cd alsa-lib-1.0.25
#checkPressEnterYN
#
#-----
# build libxvid, google to find out how
sudo apt-get remove -y libxvid-dev
sudo apt-get remove -y libxvid 
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir xvidcore
   sudo chmod -R 777 xvidcore
   sudo rm -rf xvidcore
   sudo mkdir xvidcore
   sudo chmod -R 777 xvidcore
   sudo wget http://downloads.xvid.org/downloads/xvidcore-1.3.3.tar.gz
   sudo tar xzvf xvidcore-1.3.3.tar.gz
else
   sudo chmod -R 777 xvidcore
fi
#cd xvidcore
cd /usr/src/xvidcore/build/generic 
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --disable-asm --disable-avs --disable-cli --host=arm-unknown-linux-gnueabi --enable-static --disable-shared   
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# build libwebp
# --enable-libwebp
#WebP is a new image format that provides lossless and lossy compression for images on the web
#https://developers.google.com/speed/webp/
#http://downloads.webmproject.org/releases/webp/libwebp-0.4.2.tar.gz
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/libwebp-0.4.2.tar.xz
#Install the packages needed to convert between JPEG, PNG, TIFF, GIF and WebP image formats.
sudo apt-get install -y libjpeg-dev 
sudo apt-get install -y libpng-dev
sudo apt-get install -y libtiff-dev
sudo apt-get install -y libgif-dev
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir libwebp-0.4.2
   sudo chmod -R 777 libwebp-0.4.2
   sudo rm -rf libwebp-0.4.2
   sudo mkdir libwebp-0.4.2
   sudo chmod -R 777 libwebp-0.4.2
   sudo wget http://downloads.webmproject.org/releases/webp/libwebp-0.4.2.tar.gz
   sudo tar xvzf libwebp-0.4.2.tar.gz
else
   sudo chmod -R 777 libwebp-0.4.2
fi
cd /usr/src/libwebp-0.4.2
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# build libvorbis.
# --enable-libvorbis 
# Prerequisite: libogg 
#http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir libogg-1.3.2
   sudo chmod -R 777 libogg-1.3.2
   sudo rm -rf libogg-1.3.2
   sudo mkdir libogg-1.3.2
   sudo chmod -R 777 libogg-1.3.2
   sudo wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
   sudo tar xzvf libogg-1.3.2.tar.gz
else
   sudo chmod -R 777 libogg-1.3.2
fi
cd /usr/src/libogg-1.3.2
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir vorbis-tools-1.4.0
   sudo chmod -R 777 vorbis-tools-1.4.0
   sudo rm -rf vorbis-tools-1.4.0
   sudo mkdir vorbis-tools-1.4.0
   sudo chmod -R 777 vorbis-tools-1.4.0
   sudo wget http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz
   sudo tar xzvf vorbis-tools-1.4.0.tar.gz
else
   sudo chmod -R 777 vorbis-tools-1.4.0
fi
cd /usr/src/vorbis-tools-1.4.0
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --enable-threads=posix --disable-oggtest --disable-vorbistest --disable-curltest 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir libvorbis-1.3.4
   sudo chmod -R 777 libvorbis-1.3.4
   sudo rm -rf libvorbis-1.3.4
   sudo mkdir libvorbis-1.3.4
   sudo chmod -R 777 libvorbis-1.3.4
   sudo wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
   sudo tar xzvf libvorbis-1.3.4.tar.gz
else
   sudo chmod -R 777 libvorbis-1.3.4
fi
cd /usr/src/libvorbis-1.3.4
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --disable-oggtest  
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# build libtheora, google to find out how
# --enable-libtheora 
# depends on libogg, libvorbis built first
#http://theora.org/
#The libtheora implementation depends on the following libraries...
#libogg-1.3.1
#libvorbis-1.3.3
#libSDL 1.2 or later for the playback example
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/libtheora-1.1.1.tar.xz
#http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
#
sudo apt-get install -y libsdl1.2-dev
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir libtheora-1.1.1
   sudo chmod -R 777 libtheora-1.1.1
   sudo rm -rf libtheora-1.1.1
   sudo mkdir libtheora-1.1.1
   sudo chmod -R 777 libtheora-1.1.1
   sudo wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
   sudo tar jxf libtheora-1.1.1.tar.bz2
else
   sudo chmod -R 777 libtheora-1.1.1
fi
cd /usr/src/libtheora-1.1.1
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --disable-asm --disable-oggtest --disable-vorbistest --disable-sdltest --disable-examples 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# build fontconfig
# --enable-fontconfig
# dependencies:  
#Fontconfig is a library for configuring and customizing font access.
#http://freedesktop.org/wiki/Software/fontconfig/
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir fontconfig
   sudo chmod -R 777 fontconfig
   sudo rm -rf fontconfig
   sudo mkdir fontconfig
   sudo chmod -R 777 fontconfig
   sudo git clone git://anongit.freedesktop.org/fontconfig
else
   sudo chmod -R 777 fontconfig
fi
cd fontconfig
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
./autogen.sh --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man --localstatedir=/var
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --enable-iconv --enable-libxml2
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN#
#
#-----
# build libass, google to find out how
# --enable-libass
#libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format
#https://code.google.com/p/libass/
# dependencies:  fontconfig libfribidi gperf  iconv
# http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
sudo apt-get install -y libfribidi-dev 
sudo apt-get install -y gperf 
sudo apt-get install -y libxml2-dev
#
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir libiconv-1.14
   sudo chmod -R 777 libiconv-1.14
   sudo rm -rf libiconv-1.14
   sudo mkdir libiconv-1.14
   sudo chmod -R 777 libiconv-1.14
   sudo wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
   sudo tar xzvf libiconv-1.14.tar.gz
else
   sudo chmod -R 777 libiconv-1.14
fi
cd /usr/src/libiconv-1.14
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --disable-asm
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir libass
   sudo chmod -R 777 libass
   sudo rm -rf libass
   sudo mkdir libass
   sudo chmod -R 777 libass
   sudo git clone https://github.com/libass/libass.git
else
   sudo chmod -R 777 libass
fi
cd /usr/src/libass
export COVERITY_SCAN_TOKEN=[secure]
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./autogen.sh 
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --disable-asm 
export PROJECT_NAME=libass/libass
sudo make -j4
sudo make all-recursive
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
#--enable-bzlib 
sudo apt-get install -y libzip-dev
sudo ldconfig
# bzip2 is a freely available, patent free, high-quality data compresso
#http://bzip.org/
#http://bzip.org/1.0.6/bzip2-1.0.6.tar.gz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir bzip2-1.0.6
   sudo chmod -R 777 bzip2-1.0.6
   sudo rm -rf bzip2-1.0.6
   sudo mkdir bzip2-1.0.6
   sudo chmod -R 777 bzip2-1.0.6
   sudo wget http://bzip.org/1.0.6/bzip2-1.0.6.tar.gz
   sudo tar xzvf bzip2-1.0.6.tar.gz
else
   sudo chmod -R 777 bzip2-1.0.6
fi
cd /usr/src/bzip2-1.0.6
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# do NOT try to make this
# --enable-libbluray 
#http://www.videolan.org/developers/libbluray.html
# do NOT try to make this
#
#-----
#--enable-libbs2b 
# dependency: libsndfile
#http://sourceforge.net/projects/bs2b/files/libbs2b/3.1.0/
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/libbs2b-3.1.0.tar.xz
#http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
# git clone git://github.com/erikd/libsndfile.git
#
# first the dependency
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir libsndfile
   #sudo chmod -R 777 libsndfile
   #sudo rm -rf libsndfile
   #sudo mkdir libsndfile
   #sudo chmod -R 777 libsndfile
   #sudo git clone git://github.com/erikd/libsndfile.git
#else
   #sudo chmod -R 777 libsndfile
#fi
#cd /usr/src/libsndfile
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./autogen.sh
## configure will tell us this.  we don't care, for now.
## * External libs (FLAC, Ogg, Vorbis) disabled.
## * configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
## * configure: WARNING: *** libvorbis) is either missing (possibly only the development
## * configure: WARNING: *** headers) or is of an unsupported version.
## * Unfortunately, for ease of maintenance, the external libs are an all or nothing affair. 
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --enable-stack-smash-protection --disable-sqlite --disable-alsa --disable-external-libs --enable-sanitizer 
## results in 
##Compiling some other packages against libsndfile may require
##the addition of '/usr/local/lib/pkgconfig' to the
##PKG_CONFIG_PATH environment variable.
#sudo make -j4
#sudo make -j4 check
#sudo make install
#sudo ldconfig
#checkPressEnterYN
## now for libbs2b
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir libbs2b-3.1.0
   #sudo chmod -R 777 libbs2b-3.1.0
   #sudo rm -rf libbs2b-3.1.0
   #sudo mkdir libbs2b-3.1.0
   #sudo chmod -R 777 libbs2b-3.1.0
   #sudo wget http://ffmpeg.zeranoe.com/builds/source/external_libraries/libbs2b-3.1.0.tar.xz
   #sudo tar xf libbs2b-3.1.0.tar.xz
#else
   #sudo chmod -R 777 libbs2b-3.1.0
#fi
#cd /usr/src/libbs2b-3.1.0
### PKG_CONFIG_PATH from libsndfile above
#export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export LIBS="-lm"
#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
#sudo make -j4
## well, this make fails and I dont know why
##gcc -g -O2 -o bs2bconvert bs2bconvert.o  -lsndfile ./.libs/libbs2b.a
##./.libs/libbs2b.a(bs2b.o): In function `init':
##/usr/src/libbs2b-3.1.0/src/bs2b.c:161: undefined reference to `pow'
##/usr/src/libbs2b-3.1.0/src/bs2b.c:162: undefined reference to `pow'
##/usr/src/libbs2b-3.1.0/src/bs2b.c:163: undefined reference to `log10'
##/usr/src/libbs2b-3.1.0/src/bs2b.c:163: undefined reference to `pow'
##/usr/src/libbs2b-3.1.0/src/bs2b.c:170: undefined reference to `exp'
##/usr/src/libbs2b-3.1.0/src/bs2b.c:174: undefined reference to `exp'
##/usr/src/libsndfile/src/pcm.c:2587: undefined reference to `lrint'
#sudo make install
#sudo ldconfig
#export -n PKG_CONFIG_PATH
#export -n LIBS
#checkPressEnterYN
#
#-----
#--enable-libfreetype 
#http://freetype.sourceforge.net/freetype2/index.html
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/freetype-2.5.4.tar.xz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir freetype-2.5.4
   sudo chmod -R 777 freetype-2.5.4
   sudo rm -rf freetype-2.5.4
   sudo mkdir freetype-2.5.4
   sudo chmod -R 777 freetype-2.5.4
   sudo wget http://ffmpeg.zeranoe.com/builds/source/external_libraries/freetype-2.5.4.tar.xz
   sudo tar xf freetype-2.5.4.tar.xz
else
   sudo chmod -R 777 freetype-2.5.4
fi
cd /usr/src/freetype-2.5.4
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
#The OpenJPEG library is an open-source JPEG 2000 codec
#--enable-libopenjpeg 
#http://www.openjpeg.org/
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/openjpeg-1.5.2.tar.xz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir openjpeg-1.5.2
   sudo chmod -R 777 openjpeg-1.5.2
   sudo rm -rf openjpeg-1.5.2
   sudo mkdir openjpeg-1.5.2
   sudo chmod -R 777 openjpeg-1.5.2
   sudo wget http://ffmpeg.zeranoe.com/builds/source/external_libraries/openjpeg-1.5.2.tar.xz
   sudo tar xf openjpeg-1.5.2.tar.xz
else
   sudo chmod -R 777 openjpeg-1.5.2
fi
cd /usr/src/openjpeg-1.5.2
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./bootstrap.sh
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --enable-mj2 --enable-jpwl --enable-jpip
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
#--enable-libsoxr 
#http://sourceforge.net/projects/soxr/
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/soxr-0.1.1.tar.xz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir soxr-0.1.1
   sudo chmod -R 777 soxr-0.1.1
   sudo rm -rf soxr-0.1.1
   sudo mkdir soxr-0.1.1
   sudo chmod -R 777 osoxr-0.1.1
   sudo wget http://ffmpeg.zeranoe.com/builds/source/external_libraries/soxr-0.1.1.tar.xz
   sudo tar xf soxr-0.1.1.tar.xz
else
   sudo chmod -R 777 osoxr-0.1.1
fi
cd /usr/src/soxr-0.1.1
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#cmake --help
#cmake [OPTIONS] ..
#sudo ./go
cmake -G "Unix Makefiles" ./ -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm" -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm"
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo make -j4 
sudo make test
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
#TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder
#--enable-libtwolame 
#http://twolame.org/
#http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/twolame-0.3.13.tar.xz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir twolame-0.3.13
   sudo chmod -R 777 twolame-0.3.13
   sudo rm -rf twolame-0.3.13
   sudo mkdir twolame-0.3.13
   sudo chmod -R 777 twolame-0.3.13
   sudo wget http://ffmpeg.zeranoe.com/builds/source/external_libraries/twolame-0.3.13.tar.xz
   sudo tar xf twolame-0.3.13.tar.xz
else
   sudo chmod -R 777 twolame-0.3.13
fi
cd /usr/src/twolame-0.3.13
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
#WavPack is a completely open audio compression format 
#--enable-libwavpack 
#http://wavpack.com/
#http://wavpack.com/wavpack-4.70.0.tar.bz2
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/wavpack-4.70.0.tar.xz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir wavpack-4.70.0
   sudo chmod -R 777 wavpack-4.70.0
   sudo rm -rf wavpack-4.70.0
   sudo mkdir wavpack-4.70.0
   sudo chmod -R 777 wavpack-4.70.0
   sudo wget http://ffmpeg.zeranoe.com/builds/source/external_libraries/wavpack-4.70.0.tar.xz
   sudo tar xf wavpack-4.70.0.tar.xz
else
   sudo chmod -R 777 wavpack-4.70.0
fi
cd /usr/src/wavpack-4.70.0
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
#--enable-lzma 
#http://tukaani.org/xz/
#http://tukaani.org/xz/xz-5.2.0.tar.gz
#http://tukaani.org/xz/xz-5.2.0.tar.xz
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/xz-5.2.0.tar.xz
#git clone http://git.tukaani.org/xz.git
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir xz-5.2.0
   sudo chmod -R 777 xz-5.2.0
   sudo rm -rf xz-5.2.0
   sudo mkdir xz-5.2.0
   sudo chmod -R 777 xz-5.2.0
   sudo wget http://tukaani.org/xz/xz-5.2.0.tar.xz
   sudo tar xf xz-5.2.0.tar.xz
else
   sudo chmod -R 777 xz-5.2.0
fi
cd /usr/src/xz-5.2.0
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --disable-assembler --disable-scripts --disable-lzma-links --disable-doc
#sudo ./configure --host=armv71-unknown-linux-gnueabihf --enable-static --disable-shared --disable-assembler --disable-scripts --disable-lzma-links --disable-doc
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# --enable-zlib
#http://zlib.net/
#http://ffmpeg.zeranoe.com/builds/source/external_libraries/zlib-1.2.8.tar.xz
#http://zlib.net/zlib-1.2.8.tar.xz
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir zlib-1.2.8
   sudo chmod -R 777 zlib-1.2.8
   sudo rm -rf zlib-1.2.8
   sudo mkdir zlib-1.2.8
   sudo chmod -R 777 zlib-1.2.8
   sudo wget http://zlib.net/zlib-1.2.8.tar.xz
   sudo tar xf zlib-1.2.8.tar.xz
else
   sudo chmod -R 777 zlib-1.2.8
fi
cd /usr/src/zlib-1.2.8
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --static 
sudo make -j4
sudo make install
sudo ldconfig
checkPressEnterYN
#
#-----
# build frei0r -- GIVE UP, SEE BELOW OPENCV fails to compile
# --enable-frei0r
# Frei0r is a minimalistic plugin API for video effects. 
#DEPENDENCIES:
# frei0r can be built linking the following libraries:
# Gavl – required for the scale0tilt and vectorscope filters
#        http://gmerlin.sourceforge.net/
# OpenCV – required for face detection filters
#        http://gmerlin.sourceforge.net/
# Cairo – required for some fine color blending mixers
#        http://gmerlin.sourceforge.net/
#        Please download one of the latest releases in order to get an API-stable version of cairo. 
#        You'll need both the cairo and pixman packages.
#
# so ... we build all the prerequisites just to build build frei0r
#
# Gavl
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir gavl-1.4.0
   #sudo chmod -R 777 gavl-1.4.0
   #sudo rm -rf gavl-1.4.0
   #sudo mkdir gavl-1.4.0
   #sudo chmod -R 777 gavl-1.4.0
   #wget http://internode.dl.sourceforge.net/project/gmerlin/gavl/1.4.0/gavl-1.4.0.tar.gz
   #sudo tar xzvf gavl-1.4.0.tar.gz
#else
   #sudo chmod -R 777 gavl-1.4.0
#fi
#cd /usr/src/gavl-1.4.0
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN
# Opencv ... but requires prerequisites
#Prerequsites for OpenCV:  VTK
#CMake 2.6 or higher;
#Depending on target platform you need to choose gnueabi or gnueabihf tools. 
#Install command for gnueabi:
#   sudo apt-get install gcc-arm-linux-gnueabi
#Install command for gnueabihf:
#   sudo apt-get install gcc-arm-linux-gnueabihf
#pkgconfig;
#Python 2.6 for host system
#[optional] libav development packages for armeabi(hf): libavcodec-dev, libavformat-dev, libswscale-dev;
#[optional] libdc1394 2.x;
#[optional] libjpeg-dev, libpng-dev, libtiff-dev, libjasper-dev for armeabi(hf).
## ?? VTK?? # http://www.vtk.org/VTK/project/about.html
## WAS LAZY AND USED THE OLD STANDARD -dev LIBRARIES FOR THE PI
#sudo apt-get install -y libjpeg-dev
#sudo apt-get install -y libpng-dev
#sudo apt-get install -y libtiff-dev
#sudo apt-get install -y libjasper-dev
#sudo apt-get remove  -y ffmpeg
#sudo apt-get remove  -y ffmpeg-dev
## I cant get VTK to build
### OpenCV prerequisite ?? VTK??  http://www.vtk.org/VTK/project/about.html
## The Visualization Toolkit (VTK) is an open-source, freely available software system 
## for 3D computer graphics, modeling, image processing, volume rendering, 
## scientific visualization, and information visualization.
## http://www.vtk.org/Wiki/VTK/Building/Linux
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir VTK
   #sudo chmod -R 777 VTK
   #sudo rm -rf VTK
   #sudo mkdir VTK
   #sudo chmod -R 777 VTK
   #sudo git clone git://vtk.org/VTK.git
#else
   #sudo chmod -R 777 VTK
#fi
#cd /usr/src/VTK
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING="Release" -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm" -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm" ./ 
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN
## now openCV
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir opencv
   #sudo chmod -R 777 opencv
   #sudo rm -rf opencv
   #sudo mkdir opencv
   #sudo chmod -R 777 opencv
   #sudo git clone https://github.com/itseez/opencv
#else
   #sudo chmod -R 777 opencv
#fi
#cd /usr/src/opencv
##cd /usr/src/opencv/platforms/linux
#cd platforms/linux
##========================
## http://www.cmake.org/pipermail/cmake/2009-April/028853.html
## for cmake, either 
##   THIS DOES NOT WORK FOR OPENCV set the environment variables CFLAGS and CPPFLAGS 
##   before running cmake initially, AFAIK cmake will pick them up then.
## or
##   set the cmake variables CMAKE_C_FLAGS and CMAKE_CXX__FLAGS in your cmake commandline
## NOTE:
## http://answers.opencv.org/question/4934/setting-cflags-and-cxxflags-for-opencv-243/
## As of OpenCV 2.4.3 the CMake scripts seem to be 
## actively ignoring/resetting the user specified CFLAGS
## So ... set the cmake variables CMAKE_C_FLAGS and CMAKE_CXX__FLAGS in your 
## cmake commandline like this
## sudo cmake -G "Unix Makefiles" ../../ -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_NEON:BOOL=ON -DINSTALL_TESTS:BOOL=ON -DWITH_FFMPEG:BOOL=ON -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm" -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm"
##========================
## npr.cpp fails to compile, it says use -fPIC sp lets try the -fPIC flag above
## BUT when we add -fPIC to the compiler flags, the other stuff crashes ... we cant win.
## GIVE UP NOW
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm"
#sudo cmake -G "Unix Makefiles" ../../ -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_NEON:BOOL=ON -DINSTALL_TESTS:BOOL=ON -DWITH_FFMPEG:BOOL=ON -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm" -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -fPIC -lm"
##sudo cmake -G "Unix Makefiles" ../../ -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_NEON:BOOL=ON -DINSTALL_TESTS:BOOL=ON -DWITH_FFMPEG:BOOL=ON 
## ????????????????? CMAKE_EXE_LINKER_FLAGS set -lpthread -lrt (two extra system library needed for OpenCV)
##YES YES we know VTK is not built. Lets see if opencv builds without VTK anyway
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN
## Cairo – required for some fine color blending mixers
## dependencies - pixman
## To compile the clone, you need to run ./autogen.sh initially 
## and then follow the instructions in the file named INSTALL.
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir pixman
   #sudo chmod -R 777 pixman
   #sudo rm -rf pixman
   #sudo mkdir pixman
   #sudo chmod -R 777 pixman
   #sudo git clone git://anongit.freedesktop.org/git/pixman
#else
   #sudo chmod -R 777 pixman
#if
#cd /usr/src/pixman
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir cairo
   #sudo chmod -R 777 cairo
   #sudo rm -rf cairo
   #sudo mkdir cairo
   #sudo chmod -R 777 cairo
   #sudo git clone git://anongit.freedesktop.org/git/cairo
#else
   #sudo chmod -R 777 cairo
#fi
#cd /usr/src/cairo
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared 
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN
## at last ...
## frei0r - remember to do the autogen
#cd /usr/src
#if [[ "$dlYN" =~ ^([yY]) ]] ; then
   #sudo mkdir frei0r
   #sudo chmod -R 777 frei0r
   #sudo rm -rf frei0r
   #sudo mkdir frei0r
   #sudo chmod -R 777 frei0r
   #sudo git clone git://code.dyne.org/frei0r.git
#else
   #sudo chmod -R 777 frei0r
#fi
#cd /usr/src/frei0r
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./autogen.sh --help
# sudo ./configure --help
#export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
#sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-shared --enable-cpuflags
#sudo make -j4
#sudo make install
#sudo ldconfig
#checkPressEnterYN
##
#-----

echo "#"
echo "# do we need to REBOOT now ?"
echo "#"

read -p "Press Enter to Finish ..." xx

exit
edit: changed to neon-vfpv4 per the post below
Last edited by hydra3333 on Tue Feb 24, 2015 10:24 am, edited 3 times in total.

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Mon Feb 23, 2015 11:23 am

and this is the ffmpeg build (the combo was too large to have in the one post above)

Code: Select all

#!/bin/bash
# this script fixes its companion scripts, turning them from MS-DOS format to unix format
# to get rid of MSDOS format do this to this file: 
#  sudo sed -i s/\\r//g ./filename
# References
# http://www.raspberrypi.org/forums/viewtopic.php?f=43&t=53936
# http://www.jeffreythompson.org/blog/2014/11/13/installing-ffmpeg-for-raspberry-pi/
# https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
# http://owenashurst.com/?p=242

# http://community.arm.com/groups/tools/blog/2013/04/15/arm-cortex-a-processors-and-gcc-command-lines
# 
## fp only
#themfpu=vfpv4
## fp plus simd
themfpu=neon-vfpv4

set +x
read -p "Do you wish to re-download the Source as we go ? [y/n,default=n]" dlYN

# ask someone about
# sudo ./configure --host=arm-unknown-linux-gnueabi 
# versus
# sudo ./configure --host=armv71-unknown-linux-gnueabihf 
# versus
# sudo ./configure --host=arm-unknown-linux-gnueabihf 
#
# as at 2015.02.21 gcc is version 4.6.3
#

echo " "
echo "Assume the ffmpeg External Libraries have already been built"
echo "and the necessary packages installed including make etc ..."
echo " "

set +x
#read -p "Do you wish to press Enter between each library build ? [y/n,default=n]" pressenterYN
#checkPressEnterYN() { [[ "$pressenterYN" =~ ^([yY]) ]] && ( set +x; echo "#"; read -p "Press Enter to continue..." xx ; echo "#"; set -x; ) }
# OK now use this statement ...
#checkPressEnterYN
set -x
#--------
## from zeranoe windows build. 
## those with a single # we will attempt to include progressively 
##
##--enable-avisynth 
##--enable-frei0r (cant compile, opencv dependency) https://www.dyne.org/software/frei0r/   http://ffmpeg.zeranoe.com/builds/source/external_libraries/frei0r-20130909-git-10d8360.tar.xz
##--enable-gnutls (cant compile ... try again) http://gnutls.org/  http://ffmpeg.zeranoe.com/builds/source/external_libraries/gnutls-3.2.20.tar.xz
##--enable-libbluray 
#--enable-libbs2b dependency: libsndfile which wont compile   http://bs2b.sourceforge.net/  http://ffmpeg.zeranoe.com/builds/source/external_libraries/libbs2b-3.1.0.tar.xz
##--enable-libcaca 
##--enable-libgme 
##--enable-libgsm 
##--enable-libilbc 
#--enable-libmodplug http://modplug-xmms.sourceforge.net/#download   http://ffmpeg.zeranoe.com/builds/source/external_libraries/libmodplug-0.8.8.5.tar.xz
##--enable-libopencore-amrnb 
##--enable-libopencore-amrwb 
#--enable-libopus  http://opus-codec.org/   http://ffmpeg.zeranoe.com/builds/source/external_libraries/opus-1.1.tar.xz
##--enable-libschroedinger 
##--enable-libspeex 
#--enable-libvidstab http://public.hronopik.de/vid.stab/    http://ffmpeg.zeranoe.com/builds/source/external_libraries/vid.stab-0.98.tar.xz
##--enable-libvo-aacenc 
##--enable-libvo-amrwbenc 
##--enable-libxavs 
##--enable-decklink 
##--extra-libs=-ldl 
#--------
# Our build, in the order the libraries are built below
#--enable-libfaac 
#--enable-libx265
#--enable-libx264
#--enable-libmp3lame 
#--enable-libvpx 
#--enable-librtmp 
#--enable-libfdk-aac
#--enable-libxvid 
#--enable-libwebp
#--enable-libogg
#--enable-libvorbis
#--enable-libtheora 
#--enable-fontconfig 
#--enable-libass
#--enable-bzlib 
#--enable-libfreetype 
#--enable-libopenjpeg 
#--enable-libsoxr 
#--enable-libtwolame 
#--enable-libwavpack 
#--enable-lzma 
#--enable-zlib 
#--enable-iconv

set -x

sudo apt-get remove -y ffmpeg-dev
sudo apt-get remove -y ffmpeg

# build sources in /usr/src. 
sudo mkdir /usr/src
sudo chmod -R 777 /usr/src
cd /usr/src

# build a STATIC ffmpeg from a nightly snapshot
# I have been warned that it would take a long time 3 to 12 hours
# It installs the resulting program in /usr/bin/ffmpeg

cd /usr/src/
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo mkdir ffmpeg
   sudo chmod -R 777 ffmpeg
   sudo rm -rf ffmpeg
   sudo mkdir ffmpeg
   sudo chmod -R 777 ffmpeg
   sudo git clone git://source.ffmpeg.org/ffmpeg.git
else
   sudo chmod -R 777 ffmpeg
fi
cd /usr/src/ffmpeg      
export CFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure \
--arch=armv7-a --target-os=linux \
--enable-static --disable-shared --disable-asm --disable-yasm --enable-pic \
--extra-cflags="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm" \
--extra-cxxflags="-march=armv7-a -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm" \
--enable-gpl --enable-nonfree --enable-version3  \
--disable-w32threads --disable-ffserver --enable-ffplay  \
--extra-libs=-ldl  \
--enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx  \
--enable-librtmp --enable-libfdk-aac --enable-libxvid --enable-libwebp \
--enable-libvorbis --enable-libtheora --enable-bzlib \
--enable-libopenjpeg --enable-libsoxr --enable-libtwolame \
--enable-libwavpack --enable-lzma --enable-zlib --enable-iconv

#--arch=armhf --target-os=linux \

# --enable-libass 
#ERROR: libass not found using pkg-config

# --enable-fontconfig 
#ERROR: fontconfig not found using pkg-config

# --enable-libx265 
#ERROR: x265 not found using pkg-config

# --enable-libfreetype 
#ERROR: freetype2 not found

#  --arch=ARCH              select architecture []
#  --cpu=CPU                select the minimum required CPU (affects 
#                           instruction selection, may crash on older CPUs)
#  --target-os=OS           compiler targets OS []
#  --pkg-config=PKGCONFIG   use pkg-config tool PKGCONFIG [pkg-config]
#  --pkg-config-flags=FLAGS pass additional flags to pkgconf []
#  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS []
#  --extra-ldexeflags=ELDFLAGS add ELDFLAGS to LDEXEFLAGS []

sudo make -j4
sudo make install
sudo ldconfig

ls -al /usr/bin/f*fmpeg*
ls -al ./f*fmpeg*

#sudo rm  /usr/bin/ffmpeg
#sudo chmod +x ./ffmpeg
sudo cp ./ffmpeg /usr/bin
sudo chmod +x /usr/bin/ffmpeg
#read -p "Press Enter to continue..." xx

ffmpeg -version

#read -p "Press Enter to continue..." xx

#-----
#--- finished ?
# we should have a static ffmpeg build now ...
# to do an average bitrate use  -c:a libfaac -b:a 224k 
# to do a WDTV compatible coversion, 
#  ffmpeg -i input.mp4 -map 0:v -c:v h264 -preset fast -profile:v high -level 4.1 -crf 16-coder 0 -movflags +faststart -y output.mp4
#-----

read -p "Press Enter to continue..." xx

exit

Usage: configure [options]
Options: [defaults in brackets after descriptions]

Help options:
  --help                   print this message
  --list-decoders          show all available decoders
  --list-encoders          show all available encoders
  --list-hwaccels          show all available hardware accelerators
  --list-demuxers          show all available demuxers
  --list-muxers            show all available muxers
  --list-parsers           show all available parsers
  --list-protocols         show all available protocols
  --list-bsfs              show all available bitstream filters
  --list-indevs            show all available input devices
  --list-outdevs           show all available output devices
  --list-filters           show all available filters

Standard options:
  --logfile=FILE           log tests and output to FILE [config.log]
  --disable-logging        do not log configure debug information
  --fatal-warnings         fail if any configure warning is generated
  --prefix=PREFIX          install in PREFIX []
  --bindir=DIR             install binaries in DIR [PREFIX/bin]
  --datadir=DIR            install data files in DIR [PREFIX/share/ffmpeg]
  --docdir=DIR             install documentation in DIR [PREFIX/share/doc/ffmpeg]
  --libdir=DIR             install libs in DIR [PREFIX/lib]
  --shlibdir=DIR           install shared libs in DIR [LIBDIR]
  --incdir=DIR             install includes in DIR [PREFIX/include]
  --mandir=DIR             install man page in DIR [PREFIX/share/man]
  --enable-rpath           use rpath to allow installing libraries in paths
                           not part of the dynamic linker search path
                           use rpath when linking programs [USE WITH CARE]

Licensing options:
  --enable-gpl             allow use of GPL code, the resulting libs
                           and binaries will be under GPL [no]
  --enable-version3        upgrade (L)GPL to version 3 [no]
  --enable-nonfree         allow use of nonfree code, the resulting libs
                           and binaries will be unredistributable [no]

Configuration options:
  --disable-static         do not build static libraries [no]
  --enable-shared          build shared libraries [no]
  --enable-small           optimize for size instead of speed
  --disable-runtime-cpudetect disable detecting cpu capabilities at runtime (smaller binary)
  --enable-gray            enable full grayscale support (slower color)
  --disable-swscale-alpha  disable alpha channel support in swscale
  --disable-all            disable building components, libraries and programs
  --enable-incompatible-libav-abi enable incompatible Libav fork ABI [no]
  --enable-raise-major     increase major version numbers in sonames [no]

  
Program options:
  --disable-programs       do not build command line programs
  --disable-ffmpeg         disable ffmpeg build
  --disable-ffplay         disable ffplay build
  --disable-ffprobe        disable ffprobe build
  --disable-ffserver       disable ffserver build

Documentation options:
  --disable-doc            do not build documentation
  --disable-htmlpages      do not build HTML documentation pages
  --disable-manpages       do not build man documentation pages
  --disable-podpages       do not build POD documentation pages
  --disable-txtpages       do not build text documentation pages

  
Component options:
  --disable-avdevice       disable libavdevice build
  --disable-avcodec        disable libavcodec build
  --disable-avformat       disable libavformat build
  --disable-avutil         disable libavutil build
  --disable-swresample     disable libswresample build
  --disable-swscale        disable libswscale build
  --disable-postproc       disable libpostproc build
  --disable-avfilter       disable libavfilter build
  --enable-avresample      enable libavresample build [no]
  --disable-pthreads       disable pthreads [auto]
  --disable-w32threads     disable Win32 threads [auto]
  --disable-os2threads     disable OS/2 threads [auto]
  --disable-network        disable network support [no]
  --disable-dct            disable DCT code
  --disable-dwt            disable DWT code
  --disable-error-resilience disable error resilience code
  --disable-lsp            disable LSP code
  --disable-lzo            disable LZO decoder code
  --disable-mdct           disable MDCT code
  --disable-rdft           disable RDFT code
  --disable-fft            disable FFT code
  --disable-faan           disable floating point AAN (I)DCT code
  --disable-pixelutils     disable pixel utils in libavutil

Hardware accelerators:
  --disable-dxva2          disable DXVA2 code [autodetect]
  --disable-vaapi          disable VAAPI code [autodetect]
  --disable-vda            disable VDA code [autodetect]
  --disable-vdpau          disable VDPAU code [autodetect]

  Individual component options:
  --disable-everything     disable all components listed below
  --disable-encoder=NAME   disable encoder NAME
  --enable-encoder=NAME    enable encoder NAME
  --disable-encoders       disable all encoders
  --disable-decoder=NAME   disable decoder NAME
  --enable-decoder=NAME    enable decoder NAME
  --disable-decoders       disable all decoders
  --disable-hwaccel=NAME   disable hwaccel NAME
  --enable-hwaccel=NAME    enable hwaccel NAME
  --disable-hwaccels       disable all hwaccels
  --disable-muxer=NAME     disable muxer NAME
  --enable-muxer=NAME      enable muxer NAME
  --disable-muxers         disable all muxers
  --disable-demuxer=NAME   disable demuxer NAME
  --enable-demuxer=NAME    enable demuxer NAME
  --disable-demuxers       disable all demuxers
  --enable-parser=NAME     enable parser NAME
  --disable-parser=NAME    disable parser NAME
  --disable-parsers        disable all parsers
  --enable-bsf=NAME        enable bitstream filter NAME
  --disable-bsf=NAME       disable bitstream filter NAME
  --disable-bsfs           disable all bitstream filters
  --enable-protocol=NAME   enable protocol NAME
  --disable-protocol=NAME  disable protocol NAME
  --disable-protocols      disable all protocols
  --enable-indev=NAME      enable input device NAME
  --disable-indev=NAME     disable input device NAME
  --disable-indevs         disable input devices
  --enable-outdev=NAME     enable output device NAME
  --disable-outdev=NAME    disable output device NAME
  --disable-outdevs        disable output devices
  --disable-devices        disable all devices
  --enable-filter=NAME     enable filter NAME
  --disable-filter=NAME    disable filter NAME
  --disable-filters        disable all filters

External library support:
  --enable-avisynth        enable reading of AviSynth script files [no]
  --disable-bzlib          disable bzlib [autodetect]
  --enable-fontconfig      enable fontconfig, useful for drawtext filter [no]
  --enable-frei0r          enable frei0r video filtering [no]
  --enable-gnutls          enable gnutls, needed for https support
                           if openssl is not used [no]
  --disable-iconv          disable iconv [autodetect]
  --enable-ladspa          enable LADSPA audio filtering [no]
  --enable-libaacplus      enable AAC+ encoding via libaacplus [no]
  --enable-libass          enable libass subtitles rendering,
                           needed for subtitles and ass filter [no]
  --enable-libbluray       enable BluRay reading using libbluray [no]
  --enable-libbs2b         enable bs2b DSP library [no]
  --enable-libcaca         enable textual display using libcaca [no]
  --enable-libcelt         enable CELT decoding via libcelt [no]
  --enable-libcdio         enable audio CD grabbing with libcdio [no]
  --enable-libdc1394       enable IIDC-1394 grabbing using libdc1394
                           and libraw1394 [no]
  --enable-libfaac         enable AAC encoding via libfaac [no]
  --enable-libfdk-aac      enable AAC de/encoding via libfdk-aac [no]
  --enable-libflite        enable flite (voice synthesis) support via libflite [no]
  --enable-libfreetype     enable libfreetype, needed for drawtext filter [no]
  --enable-libfribidi      enable libfribidi, improves drawtext filter [no]
  --enable-libgme          enable Game Music Emu via libgme [no]
  --enable-libgsm          enable GSM de/encoding via libgsm [no]
  --enable-libiec61883     enable iec61883 via libiec61883 [no]
  --enable-libilbc         enable iLBC de/encoding via libilbc [no]
  --enable-libmfx          enable HW acceleration through libmfx
  --enable-libmodplug      enable ModPlug via libmodplug [no]
  --enable-libmp3lame      enable MP3 encoding via libmp3lame [no]
  --enable-libnut          enable NUT (de)muxing via libnut,
                           native (de)muxer exists [no]
  --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]
  --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
  --enable-libopencv       enable video filtering via libopencv [no]
  --enable-libopenh264     enable H.264 encoding via OpenH264 [no]
  --enable-libopenjpeg     enable JPEG 2000 de/encoding via OpenJPEG [no]
  --enable-libopus         enable Opus de/encoding via libopus [no]
  --enable-libpulse        enable Pulseaudio input via libpulse [no]
  --enable-libquvi         enable quvi input via libquvi [no]
  --enable-librtmp         enable RTMP[E] support via librtmp [no]
  --enable-libschroedinger enable Dirac de/encoding via libschroedinger [no]
  --enable-libshine        enable fixed-point MP3 encoding via libshine [no]
  --enable-libsmbclient    enable Samba protocol via libsmbclient [no]
  --enable-libsoxr         enable Include libsoxr resampling [no]
  --enable-libspeex        enable Speex de/encoding via libspeex [no]
  --enable-libssh          enable SFTP protocol via libssh [no]
  --enable-libstagefright-h264  enable H.264 decoding via libstagefright [no]
  --enable-libtheora       enable Theora encoding via libtheora [no]
  --enable-libtwolame      enable MP2 encoding via libtwolame [no]
  --enable-libutvideo      enable Ut Video encoding and decoding via libutvideo [no]
  --enable-libv4l2         enable libv4l2/v4l-utils [no]
  --enable-libvidstab      enable video stabilization using vid.stab [no]
  --enable-libvo-aacenc    enable AAC encoding via libvo-aacenc [no]
  --enable-libvo-amrwbenc  enable AMR-WB encoding via libvo-amrwbenc [no]
  --enable-libvorbis       enable Vorbis en/decoding via libvorbis,  
                            native implementation exists [no]
  --enable-libvpx          enable VP8 and VP9 de/encoding via libvpx [no]
  --enable-libwavpack      enable wavpack encoding via libwavpack [no]
  --enable-libwebp         enable WebP encoding via libwebp [no]
  --enable-libx264         enable H.264 encoding via x264 [no]
  --enable-libx265         enable HEVC encoding via x265 [no]
  --enable-libxavs         enable AVS encoding via xavs [no]
  --enable-libxcb          enable X11 grabbing using XCB [auto]
  --enable-libxcb-shm      enable X11 grabbing shm communication [auto]
  --enable-libxcb-xfixes   enable X11 grabbing mouse rendering [auto]
  --enable-libxcb-shape    enable X11 grabbing shape rendering [auto]
  --enable-libxvid         enable Xvid encoding via xvidcore,
                           native MPEG-4/Xvid encoder exists [no]
  --enable-libzmq          enable message passing via libzmq [no]
  --enable-libzvbi         enable teletext support via libzvbi [no]
  --disable-lzma           disable lzma [autodetect]
  --enable-decklink        enable Blackmagick DeckLink I/O support [no]
  --enable-nvenc           enable NVIDIA NVENC support [no]
  --enable-openal          enable OpenAL 1.1 capture support [no]
  --enable-opencl          enable OpenCL code
  --enable-opengl          enable OpenGL rendering [no]
  --enable-openssl         enable openssl, needed for https support
                           if gnutls is not used [no]
  --disable-sdl            disable sdl [autodetect]
  --enable-x11grab         enable X11 grabbing (legacy) [no]
  --disable-xlib           disable xlib [autodetect]
  --disable-zlib           disable zlib [autodetect]
  
 
Toolchain options:
  --arch=ARCH              select architecture []
  --cpu=CPU                select the minimum required CPU (affects 
                           instruction selection, may crash on older CPUs)
  --cross-prefix=PREFIX    use PREFIX for compilation tools []
  --progs-suffix=SUFFIX    program name suffix []
  --enable-cross-compile   assume a cross-compiler is used
  --sysroot=PATH           root of cross-build tree
  --sysinclude=PATH        location of cross-build system headers
  --target-os=OS           compiler targets OS []
  --target-exec=CMD        command to run executables on target
  --target-path=DIR        path to view of build directory on target
  --target-samples=DIR     path to samples directory on target
  --tempprefix=PATH        force fixed dir/prefix instead of mktemp for checks
  --toolchain=NAME         set tool defaults according to NAME
  --nm=NM                  use nm tool NM [nm -g]
  --ar=AR                  use archive tool AR [ar]
  --as=AS                  use assembler AS []
  --windres=WINDRES        use windows resource compiler WINDRES [windres]
  --yasmexe=EXE            use yasm-compatible assembler EXE [yasm]
  --cc=CC                  use C compiler CC [gcc]
  --cxx=CXX                use C compiler CXX [g++]
  --dep-cc=DEPCC           use dependency generator DEPCC [gcc]
  --ld=LD                  use linker LD []
  --pkg-config=PKGCONFIG   use pkg-config tool PKGCONFIG [pkg-config]
  --pkg-config-flags=FLAGS pass additional flags to pkgconf []
  --ranlib=RANLIB          use ranlib RANLIB [ranlib -D]
  --doxygen=DOXYGEN        use DOXYGEN to generate API doc [doxygen]
  --host-cc=HOSTCC         use host C compiler HOSTCC
  --host-cflags=HCFLAGS    use HCFLAGS when compiling for host
  --host-cppflags=HCPPFLAGS use HCPPFLAGS when compiling for host
  --host-ld=HOSTLD         use host linker HOSTLD
  --host-ldflags=HLDFLAGS  use HLDFLAGS when linking for host
  --host-libs=HLIBS        use libs HLIBS when linking for host
  --host-os=OS             compiler host OS []
  --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS []
  --extra-cxxflags=ECFLAGS add ECFLAGS to CXXFLAGS []
  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS []
  --extra-ldexeflags=ELDFLAGS add ELDFLAGS to LDEXEFLAGS []
  --extra-libs=ELIBS       add ELIBS []
  --extra-version=STRING   version string suffix []
  --optflags=OPTFLAGS      override optimization-related compiler flags
  --build-suffix=SUFFIX    library name suffix []
  --enable-pic             build position-independent code
  --enable-thumb           compile for Thumb instruction set
  --enable-lto             use link-time optimization

Advanced options (experts only):
  --malloc-prefix=PREFIX   prefix malloc and related names with PREFIX
  --disable-symver         disable symbol versioning
  --enable-hardcoded-tables use hardcoded tables instead of runtime generation
  --disable-safe-bitstream-reader
                           disable buffer boundary checking in bitreaders
                           (faster, but may crash)
  --enable-memalign-hack   emulate memalign, interferes with memory debuggers
  --sws-max-filter-size=N  the max filter size swscale uses [256]


Optimization options (experts only):
  --disable-asm            disable all assembly optimizations
  --disable-altivec        disable AltiVec optimizations
  --disable-amd3dnow       disable 3DNow! optimizations
  --disable-amd3dnowext    disable 3DNow! extended optimizations
  --disable-mmx            disable MMX optimizations
  --disable-mmxext         disable MMXEXT optimizations
  --disable-sse            disable SSE optimizations
  --disable-sse2           disable SSE2 optimizations
  --disable-sse3           disable SSE3 optimizations
  --disable-ssse3          disable SSSE3 optimizations
  --disable-sse4           disable SSE4 optimizations
  --disable-sse42          disable SSE4.2 optimizations
  --disable-avx            disable AVX optimizations
  --disable-xop            disable XOP optimizations
  --disable-fma3           disable FMA3 optimizations
  --disable-fma4           disable FMA4 optimizations
  --disable-avx2           disable AVX2 optimizations
  --disable-armv5te        disable armv5te optimizations
  --disable-armv6          disable armv6 optimizations
  --disable-armv6t2        disable armv6t2 optimizations
  --disable-vfp            disable VFP optimizations
  --disable-neon           disable NEON optimizations
  --disable-inline-asm     disable use of inline assembly
  --disable-yasm           disable use of nasm/yasm assembly
  --disable-mips32r2       disable MIPS32R2 optimizations
  --disable-mipsdspr1      disable MIPS DSP ASE R1 optimizations
  --disable-mipsdspr2      disable MIPS DSP ASE R2 optimizations
  --disable-mipsfpu        disable floating point MIPS optimizations
  --disable-fast-unaligned consider unaligned accesses slow

Developer options (useful when working on FFmpeg itself):
  --disable-debug          disable debugging symbols
  --enable-debug=LEVEL     set the debug level []
  --disable-optimizations  disable compiler optimizations
  --enable-extra-warnings  enable more compiler warnings
  --disable-stripping      disable stripping of executables and shared libraries
  --assert-level=level     0(default), 1 or 2, amount of assertion testing,
                           2 causes a slowdown at runtime.
  --enable-memory-poisoning fill heap uninitialized allocated space with arbitrary data
  --valgrind=VALGRIND      run "make fate" tests through valgrind to detect memory
                           leaks and errors, using the specified valgrind binary.
                           Cannot be combined with --target-exec
  --enable-ftrapv          Trap arithmetic overflows
  --samples=PATH           location of test samples for FATE, if not set use
                           $FATE_SAMPLES at make invocation time.
  --enable-neon-clobber-test check NEON registers for clobbering (should be
                           used only for debugging purposes)
  --enable-xmm-clobber-test check XMM registers for clobbering (Win64-only;
                           should be used only for debugging purposes)
  --enable-random          randomly enable/disable components
  --disable-random
  --enable-random=LIST     randomly enable/disable specific components or
  --disable-random=LIST    component groups. LIST is a comma-separated list
                           of NAME[:PROB] entries where NAME is a component
                           (group) and PROB the probability associated with
                           NAME (default 0.5).
  --random-seed=VALUE      seed value for --enable/disable-random

NOTE: Object files are built at the place where configure is launched.
edit: also changed per the post below
Last edited by hydra3333 on Tue Feb 24, 2015 10:21 am, edited 1 time in total.

fsck
Posts: 26
Joined: Mon Feb 23, 2015 4:49 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Mon Feb 23, 2015 4:54 pm

@hydra3333: you should use -mfpu=neon-vfpv4.

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Tue Feb 24, 2015 10:23 am

fsck wrote:@hydra3333: you should use -mfpu=neon-vfpv4.
Oh, of course, thank you.
For reference: http://community.arm.com/groups/tools/b ... mand-lines
we are trying FP + SIMD

Also, a note on Licensing ... we must all abide by the correct licenses (this web page http://ffmpeg.zeranoe.com/builds/ explains it)

itsmedoofer
Posts: 359
Joined: Wed Sep 25, 2013 8:43 am

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Fri Mar 06, 2015 11:58 am

Hi,

How did this turn out, I was looking to build avconv on the pi2 with all the optimizations, but if someone has ffmpeg running I'll go for that.... Why reinvent the wheel ?

I like to do time lapse videos but the conversion from jpg to mp4 is way too slow on the pi as it is, so I've been cheating and doing the conversion on my Mint Lap Top, I was was hoping an optimized Pi2 exe would speed things up enough to keep the process native.....

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23708
Joined: Sat Jul 30, 2011 7:41 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Fri Mar 06, 2015 1:46 pm

itsmedoofer wrote:Hi,

How did this turn out, I was looking to build avconv on the pi2 with all the optimizations, but if someone has ffmpeg running I'll go for that.... Why reinvent the wheel ?

I like to do time lapse videos but the conversion from jpg to mp4 is way too slow on the pi as it is, so I've been cheating and doing the conversion on my Mint Lap Top, I was was hoping an optimized Pi2 exe would speed things up enough to keep the process native.....
That will be about 30 times faster on the Pi2 (if using x264)
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Sat Mar 07, 2015 12:23 am

itsmedoofer wrote:Hi,
How did this turn out, I was looking to build avconv on the pi2 with all the optimizations, but if someone has ffmpeg running I'll go for that.... Why reinvent the wheel ?
I like to do time lapse videos but the conversion from jpg to mp4 is way too slow on the pi as it is, so I've been cheating and doing the conversion on my Mint Lap Top, I was was hoping an optimized Pi2 exe would speed things up enough to keep the process native.....
It compiles. I am unclear whether any or how much of the fancy filtering is baked into ffmpeg code or whether it relies on external filters I've not included or not been able to successfully build - try it and see I guess.
I've yet to try it to compare to my intel i3820 :) ... using same settings to see if the outputs are bit identical.
Will use it mainly for converting mpeg2 TV captures, or home-video DVDs, to h264/mp3 in mp4 containers, for storing in my chromecast media server library on my other Pi2 (for legal timeshifted viewing).
jamesh wrote: That will be about 30 times faster on the Pi2 (if using x264)
Brilliant.
Just wondering, are you able please post "blow by blow" instructions for download/building the latest version of the separate x264 program on the Pi2 ?
IIRC, x264 only handles the video component ? So I suppose the workflow could be like this ?
- use x264 to convert mpeg2 video into an h264 file
- use ffmpeg to convert mpeg2 audio into an .mp3 file
- use ffmpeg to input both h264 file and the mp3 file, and output a .mp4 file with the MOOV atom at the front of the mp4 file, for compatibility/use with chromecast and other streaming methods
Regards

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Sun Mar 08, 2015 5:57 am

some test results, converting source 30 seconds of PAL 576i mpeg2,
to (i) interlaced mp4 and then (ii) deinterlaced mp4

Code: Select all

#!/bin/bash
# this script fixes its companion scripts, turning them from MS-DOS format to unix format
# to get rid of MSDOS format do this to this file: 
#  sudo sed -i s/\\r//g ./filename
set -x
echo "#" >results.txt
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "---------------------------------------------------------------------------------------------------------------------------------------------------------------------" >>results.txt
echo "ffmpeg -loglevel info -stats -i test.mpg -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y test-interlaced.mp3" >>results.txt 2>&1
time ffmpeg -loglevel info -stats -i test.mpg -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y test-interlaced.mp3 >>results.txt 2>&1

#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "---------------------------------------------------------------------------------------------------------------------------------------------------------------------" >>results.txt
echo "ffmpeg -loglevel info -stats -i test.mpg -threads 4 -an -c:v h264 -preset fast -flags +ildct+ilme -ildctcmp satd -top 1 -profile:v high -level 4.1 -crf 22 -coder 0 -y test-interlaced.h264" >>results.txt 2>&1
time ffmpeg -loglevel info -stats -i test.mpg -threads 4 -an -c:v h264 -preset fast -flags +ildct+ilme -ildctcmp satd -top 1 -profile:v high -level 4.1 -crf 22 -coder 0 -y test-interlaced.h264 >>results.txt 2>&1

#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "---------------------------------------------------------------------------------------------------------------------------------------------------------------------" >>results.txt
echo "ffmpeg -loglevel info -stats -i test-interlaced.h264 -i test-interlaced.mp3 -threads 4 -c:v copy -c:a copy -movflags +faststart -y test-interlaced.mp4" >>results.txt 2>&1
time ffmpeg -loglevel info -stats -i test-interlaced.h264 -i test-interlaced.mp3 -threads 4 -c:v copy -c:a copy -movflags +faststart -y test-interlaced.mp4 >>results.txt 2>&1

#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "---------------------------------------------------------------------------------------------------------------------------------------------------------------------" >>results.txt
echo "ffmpeg -loglevel info -stats -i test.mpg -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y test.mp3" >>results.txt 2>&1
time ffmpeg -loglevel info -stats -i test.mpg -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y test.mp3 >>results.txt 2>&1

#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "---------------------------------------------------------------------------------------------------------------------------------------------------------------------" >>results.txt
echo "ffmpeg -loglevel info -stats -i test.mpg -threads 4 -an -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 25 -profile:v high -level 4.1 -crf 22 -coder 0 -y test.h264" >>results.txt 2>&1
time ffmpeg -loglevel info -stats -i test.mpg -threads 4 -an -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 25 -profile:v high -level 4.1 -crf 22 -coder 0 -y test.h264 >>results.txt 2>&1

#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "---------------------------------------------------------------------------------------------------------------------------------------------------------------------" >>results.txt
echo "ffmpeg -loglevel info -stats -i test.h264 -i test.mp3 -threads 4 -c:v copy -c:a copy -movflags +faststart -y test.mp4" >>results.txt 2>&1
time ffmpeg -loglevel info -stats -i test.h264 -i test.mp3 -threads 4 -c:v copy -c:a copy -movflags +faststart -y test.mp4 >>results.txt 2>&1
read -p "Press Enter to Finish ..." xx
exit
produced

Code: Select all

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffmpeg -loglevel info -stats -i test.mpg -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y test-interlaced.mp3
ffmpeg version N-70147-ge87e206 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armv7-a --target-os=linux --enable-static --disable-shared --disable-asm --disable-yasm --enable-pic --extra-cflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --extra-cxxflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --enable-gpl --enable-nonfree --enable-version3 --disable-w32threads --disable-ffserver --enable-ffplay --extra-libs=-ldl --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-librtmp --enable-libfdk-aac --enable-libxvid --enable-libwebp --enable-libvorbis --enable-libtheora --enable-bzlib --enable-libopenjpeg --enable-libsoxr --enable-libtwolame --enable-libwavpack --enable-lzma --enable-zlib --enable-iconv
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.104 / 56. 23.104
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.101 /  5. 11.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
Output #0, mp3, to 'test-interlaced.mp3':
  Metadata:
    TSSE            : Lavf56.23.104
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26.100 libmp3lame
Stream mapping:
  Stream #0:1 -> #0:0 (mp2 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size=      59kB time=00:00:01.82 bitrate= 263.4kbits/s    
size=     118kB time=00:00:03.71 bitrate= 259.6kbits/s    
size=     176kB time=00:00:05.59 bitrate= 258.4kbits/s    
size=     235kB time=00:00:07.47 bitrate= 257.8kbits/s    
size=     291kB time=00:00:09.24 bitrate= 257.5kbits/s    
size=     345kB time=00:00:10.99 bitrate= 257.2kbits/s    
size=     401kB time=00:00:12.77 bitrate= 257.1kbits/s    
size=     457kB time=00:00:14.57 bitrate= 256.9kbits/s    
size=     512kB time=00:00:16.32 bitrate= 256.8kbits/s    
size=     567kB time=00:00:18.07 bitrate= 256.7kbits/s    
size=     621kB time=00:00:19.82 bitrate= 256.7kbits/s    
size=     675kB time=00:00:21.55 bitrate= 256.6kbits/s    
size=     728kB time=00:00:23.25 bitrate= 256.6kbits/s    
size=     783kB time=00:00:25.00 bitrate= 256.5kbits/s    
size=     838kB time=00:00:26.75 bitrate= 256.5kbits/s    
size=     892kB time=00:00:28.50 bitrate= 256.5kbits/s    
size=     940kB time=00:00:30.04 bitrate= 256.4kbits/s    
video:0kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.091463%
real    0m8.776s
user    0m8.570s
sys     0m0.180s
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffmpeg -loglevel info -stats -i test.mpg -threads 4 -an -c:v h264 -preset fast -flags +ildct+ilme -ildctcmp satd -top 1 -profile:v high -level 4.1 -crf 22 -coder 0 -y test-interlaced.h264
ffmpeg version N-70147-ge87e206 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armv7-a --target-os=linux --enable-static --disable-shared --disable-asm --disable-yasm --enable-pic --extra-cflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --extra-cxxflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --enable-gpl --enable-nonfree --enable-version3 --disable-w32threads --disable-ffserver --enable-ffplay --extra-libs=-ldl --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-librtmp --enable-libfdk-aac --enable-libxvid --enable-libwebp --enable-libvorbis --enable-libtheora --enable-bzlib --enable-libopenjpeg --enable-libsoxr --enable-libtwolame --enable-libwavpack --enable-lzma --enable-zlib --enable-iconv
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.104 / 56. 23.104
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.101 /  5. 11.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
[libx264 @ 0x19faa60] interlace + weightp is not implemented
[libx264 @ 0x19faa60] using SAR=64/45
[libx264 @ 0x19faa60] using cpu capabilities: none!
[libx264 @ 0x19faa60] profile High, level 4.1
Output #0, h264, to 'test-interlaced.h264':
  Metadata:
    encoder         : Lavf56.23.104
    Stream #0:0: Video: h264 (libx264), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.26.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=   15 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   31 fps= 29 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   37 fps=5.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
frame=   40 fps=5.6 q=27.0 size=      37kB time=00:00:00.00 bitrate=N/A    
frame=   41 fps=4.9 q=27.0 size=      44kB time=00:00:00.04 bitrate=8975.6kbits/s    
frame=   43 fps=4.6 q=27.0 size=      61kB time=00:00:00.12 bitrate=4133.0kbits/s    
frame=   44 fps=4.5 q=27.0 size=      74kB time=00:00:00.16 bitrate=3806.5kbits/s    
frame=   45 fps=4.2 q=27.0 size=      79kB time=00:00:00.20 bitrate=3229.5kbits/s    
frame=   47 fps=4.0 q=27.0 size=      98kB time=00:00:00.28 bitrate=2866.1kbits/s    
frame=   49 fps=3.8 q=27.0 size=     107kB time=00:00:00.36 bitrate=2434.0kbits/s    
frame=   50 fps=3.7 q=27.0 size=     119kB time=00:00:00.40 bitrate=2439.7kbits/s    
frame=   51 fps=3.6 q=27.0 size=     124kB time=00:00:00.44 bitrate=2314.2kbits/s    
frame=   52 fps=3.5 q=27.0 size=     130kB time=00:00:00.48 bitrate=2210.8kbits/s    
frame=   53 fps=3.1 q=27.0 size=     141kB time=00:00:00.52 bitrate=2214.2kbits/s    
frame=   56 fps=3.0 q=27.0 size=     158kB time=00:00:00.64 bitrate=2023.0kbits/s    
frame=   59 fps=3.0 q=27.0 size=     208kB time=00:00:00.76 bitrate=2242.6kbits/s    
frame=   60 fps=3.0 q=27.0 size=     211kB time=00:00:00.80 bitrate=2163.9kbits/s    
frame=   61 fps=3.0 q=27.0 size=     224kB time=00:00:00.84 bitrate=2180.0kbits/s    
frame=   62 fps=2.9 q=27.0 size=     229kB time=00:00:00.88 bitrate=2130.4kbits/s    
frame=   64 fps=2.8 q=27.0 size=     245kB time=00:00:00.96 bitrate=2086.5kbits/s    
frame=   65 fps=2.8 q=27.0 size=     250kB time=00:00:01.00 bitrate=2045.2kbits/s    
frame=   66 fps=2.8 q=27.0 size=     253kB time=00:00:01.04 bitrate=1996.4kbits/s    
frame=   67 fps=2.7 q=27.0 size=     267kB time=00:00:01.08 bitrate=2025.8kbits/s    
frame=   69 fps=2.7 q=27.0 size=     276kB time=00:00:01.16 bitrate=1951.7kbits/s    
frame=   70 fps=2.7 q=27.0 size=     289kB time=00:00:01.20 bitrate=1969.5kbits/s    
frame=   71 fps=2.7 q=27.0 size=     293kB time=00:00:01.24 bitrate=1935.5kbits/s    
frame=   73 fps=2.6 q=27.0 size=     307kB time=00:00:01.32 bitrate=1907.4kbits/s    
frame=   76 fps=2.6 q=27.0 size=     326kB time=00:00:01.44 bitrate=1857.0kbits/s    
frame=   77 fps=2.6 q=27.0 size=     330kB time=00:00:01.48 bitrate=1829.0kbits/s    
frame=   79 fps=2.5 q=27.0 size=     344kB time=00:00:01.56 bitrate=1804.5kbits/s    
frame=   81 fps=2.5 q=27.0 size=     352kB time=00:00:01.64 bitrate=1756.1kbits/s    
frame=   82 fps=2.5 q=27.0 size=     360kB time=00:00:01.68 bitrate=1757.5kbits/s    
frame=   83 fps=2.5 q=27.0 size=     366kB time=00:00:01.72 bitrate=1741.1kbits/s    
frame=   84 fps=2.5 q=25.0 size=     369kB time=00:00:01.76 bitrate=1718.5kbits/s    
frame=   86 fps=2.4 q=27.0 size=     381kB time=00:00:01.84 bitrate=1697.2kbits/s    
frame=   89 fps=2.5 q=27.0 size=     446kB time=00:00:01.96 bitrate=1862.6kbits/s    
frame=   92 fps=2.5 q=27.0 size=     459kB time=00:00:02.08 bitrate=1808.6kbits/s    
frame=   93 fps=2.5 q=27.0 size=     461kB time=00:00:02.12 bitrate=1780.6kbits/s    
frame=   97 fps=2.5 q=27.0 size=     473kB time=00:00:02.28 bitrate=1701.0kbits/s    
frame=  101 fps=2.5 q=27.0 size=     482kB time=00:00:02.44 bitrate=1616.6kbits/s    
frame=  105 fps=2.5 q=27.0 size=     493kB time=00:00:02.60 bitrate=1552.1kbits/s    
frame=  109 fps=2.6 q=27.0 size=     501kB time=00:00:02.76 bitrate=1486.9kbits/s    
frame=  113 fps=2.6 q=27.0 size=     517kB time=00:00:02.92 bitrate=1450.9kbits/s    
frame=  117 fps=2.6 q=27.0 size=     528kB time=00:00:03.08 bitrate=1405.4kbits/s    
frame=  121 fps=2.6 q=27.0 size=     537kB time=00:00:03.24 bitrate=1358.8kbits/s    
frame=  125 fps=2.6 q=27.0 size=     545kB time=00:00:03.40 bitrate=1314.0kbits/s    
frame=  129 fps=2.6 q=27.0 size=     554kB time=00:00:03.56 bitrate=1273.8kbits/s    
frame=  133 fps=2.7 q=27.0 size=     559kB time=00:00:03.72 bitrate=1231.5kbits/s    
frame=  137 fps=2.6 q=27.0 size=     595kB time=00:00:03.88 bitrate=1256.5kbits/s    
frame=  139 fps=2.6 q=27.0 size=     615kB time=00:00:03.96 bitrate=1272.4kbits/s    
frame=  142 fps=2.6 q=27.0 size=     630kB time=00:00:04.08 bitrate=1265.5kbits/s    
frame=  145 fps=2.6 q=27.0 size=     643kB time=00:00:04.20 bitrate=1254.9kbits/s    
frame=  147 fps=2.6 q=27.0 size=     654kB time=00:00:04.28 bitrate=1252.2kbits/s    
frame=  148 fps=2.6 q=27.0 size=     656kB time=00:00:04.32 bitrate=1244.8kbits/s    
frame=  150 fps=2.6 q=27.0 size=     667kB time=00:00:04.40 bitrate=1242.6kbits/s    
frame=  153 fps=2.6 q=27.0 size=     694kB time=00:00:04.52 bitrate=1258.4kbits/s    
frame=  154 fps=2.6 q=27.0 size=     697kB time=00:00:04.56 bitrate=1251.5kbits/s    
frame=  157 fps=2.6 q=27.0 size=     712kB time=00:00:04.68 bitrate=1246.0kbits/s    
frame=  160 fps=2.6 q=27.0 size=     726kB time=00:00:04.80 bitrate=1239.5kbits/s    
frame=  163 fps=2.6 q=27.0 size=     745kB time=00:00:04.92 bitrate=1240.4kbits/s    
frame=  166 fps=2.6 q=27.0 size=     759kB time=00:00:05.04 bitrate=1233.7kbits/s    
frame=  170 fps=2.7 q=27.0 size=     773kB time=00:00:05.20 bitrate=1218.5kbits/s    
frame=  173 fps=2.7 q=27.0 size=     786kB time=00:00:05.32 bitrate=1210.0kbits/s    
frame=  176 fps=2.7 q=27.0 size=     801kB time=00:00:05.44 bitrate=1206.6kbits/s    
frame=  179 fps=2.7 q=27.0 size=     817kB time=00:00:05.56 bitrate=1203.1kbits/s    
frame=  182 fps=2.7 q=27.0 size=     829kB time=00:00:05.68 bitrate=1195.3kbits/s    
frame=  183 fps=2.7 q=27.0 size=     831kB time=00:00:05.72 bitrate=1190.1kbits/s    
frame=  185 fps=2.7 q=27.0 size=     842kB time=00:00:05.80 bitrate=1188.7kbits/s    
frame=  187 fps=2.7 q=27.0 size=     846kB time=00:00:05.88 bitrate=1178.6kbits/s    
frame=  189 fps=2.7 q=27.0 size=     859kB time=00:00:05.96 bitrate=1181.0kbits/s    
frame=  191 fps=2.7 q=27.0 size=     870kB time=00:00:06.04 bitrate=1179.9kbits/s    
frame=  193 fps=2.7 q=27.0 size=     875kB time=00:00:06.12 bitrate=1171.3kbits/s    
frame=  196 fps=2.7 q=27.0 size=     886kB time=00:00:06.24 bitrate=1163.5kbits/s    
frame=  198 fps=2.7 q=27.0 size=     897kB time=00:00:06.32 bitrate=1162.9kbits/s    
frame=  200 fps=2.7 q=27.0 size=     901kB time=00:00:06.40 bitrate=1153.7kbits/s    
frame=  203 fps=2.7 q=27.0 size=     914kB time=00:00:06.52 bitrate=1148.5kbits/s    
frame=  206 fps=2.7 q=27.0 size=     924kB time=00:00:06.64 bitrate=1140.4kbits/s    
frame=  209 fps=2.7 q=27.0 size=     933kB time=00:00:06.76 bitrate=1130.9kbits/s    
frame=  211 fps=2.7 q=27.0 size=     979kB time=00:00:06.84 bitrate=1172.0kbits/s    
frame=  213 fps=2.7 q=27.0 size=     996kB time=00:00:06.92 bitrate=1178.5kbits/s    
frame=  215 fps=2.7 q=27.0 size=    1012kB time=00:00:07.00 bitrate=1184.4kbits/s    
frame=  216 fps=2.6 q=27.0 size=    1016kB time=00:00:07.04 bitrate=1182.8kbits/s    
frame=  217 fps=2.6 q=27.0 size=    1021kB time=00:00:07.08 bitrate=1181.5kbits/s    
frame=  218 fps=2.6 q=27.0 size=    1034kB time=00:00:07.12 bitrate=1189.3kbits/s    
frame=  220 fps=2.6 q=27.0 size=    1041kB time=00:00:07.20 bitrate=1184.9kbits/s    
frame=  221 fps=2.6 q=27.0 size=    1055kB time=00:00:07.24 bitrate=1193.4kbits/s    
frame=  222 fps=2.6 q=27.0 size=    1059kB time=00:00:07.28 bitrate=1191.3kbits/s    
frame=  223 fps=2.6 q=27.0 size=    1063kB time=00:00:07.32 bitrate=1189.6kbits/s    
frame=  224 fps=2.6 q=27.0 size=    1077kB time=00:00:07.36 bitrate=1199.0kbits/s    
frame=  225 fps=2.6 q=27.0 size=    1081kB time=00:00:07.40 bitrate=1197.2kbits/s    
frame=  227 fps=2.6 q=27.0 size=    1100kB time=00:00:07.48 bitrate=1204.4kbits/s    
frame=  228 fps=2.6 q=27.0 size=    1104kB time=00:00:07.52 bitrate=1202.2kbits/s    
frame=  230 fps=2.6 q=27.0 size=    1121kB time=00:00:07.60 bitrate=1208.8kbits/s    
frame=  231 fps=2.6 q=27.0 size=    1125kB time=00:00:07.64 bitrate=1206.6kbits/s    
frame=  233 fps=2.5 q=27.0 size=    1142kB time=00:00:07.72 bitrate=1211.6kbits/s    
frame=  235 fps=2.5 q=27.0 size=    1165kB time=00:00:07.80 bitrate=1223.1kbits/s    
frame=  236 fps=2.5 q=27.0 size=    1169kB time=00:00:07.84 bitrate=1221.2kbits/s    
frame=  237 fps=2.5 q=27.0 size=    1184kB time=00:00:07.88 bitrate=1231.1kbits/s    
frame=  239 fps=2.5 q=27.0 size=    1193kB time=00:00:07.96 bitrate=1227.3kbits/s    
frame=  240 fps=2.5 q=27.0 size=    1208kB time=00:00:08.00 bitrate=1237.5kbits/s    
frame=  241 fps=2.5 q=27.0 size=    1212kB time=00:00:08.04 bitrate=1235.0kbits/s    
frame=  242 fps=2.5 q=27.0 size=    1216kB time=00:00:08.08 bitrate=1232.6kbits/s    
frame=  244 fps=2.5 q=27.0 size=    1233kB time=00:00:08.16 bitrate=1237.6kbits/s    
frame=  246 fps=2.5 q=27.0 size=    1246kB time=00:00:08.24 bitrate=1239.0kbits/s    
frame=  247 fps=2.5 q=27.0 size=    1249kB time=00:00:08.28 bitrate=1235.7kbits/s    
frame=  248 fps=2.5 q=27.0 size=    1265kB time=00:00:08.32 bitrate=1245.3kbits/s    
frame=  250 fps=2.5 q=27.0 size=    1273kB time=00:00:08.40 bitrate=1241.7kbits/s    
frame=  251 fps=2.5 q=27.0 size=    1287kB time=00:00:08.44 bitrate=1249.4kbits/s    
frame=  252 fps=2.5 q=27.0 size=    1291kB time=00:00:08.48 bitrate=1247.1kbits/s    
frame=  254 fps=2.5 q=27.0 size=    1308kB time=00:00:08.56 bitrate=1252.1kbits/s    
frame=  255 fps=2.5 q=27.0 size=    1312kB time=00:00:08.60 bitrate=1249.9kbits/s    
frame=  256 fps=2.4 q=27.0 size=    1317kB time=00:00:08.64 bitrate=1248.6kbits/s    
frame=  258 fps=2.4 q=27.0 size=    1333kB time=00:00:08.72 bitrate=1252.3kbits/s    
frame=  260 fps=2.4 q=27.0 size=    1347kB time=00:00:08.80 bitrate=1253.6kbits/s    
frame=  261 fps=2.4 q=27.0 size=    1350kB time=00:00:08.84 bitrate=1250.9kbits/s    
frame=  264 fps=2.4 q=27.0 size=    1367kB time=00:00:08.96 bitrate=1249.6kbits/s    
frame=  266 fps=2.4 q=27.0 size=    1435kB time=00:00:09.04 bitrate=1300.4kbits/s    
frame=  268 fps=2.4 q=27.0 size=    1449kB time=00:00:09.12 bitrate=1301.7kbits/s    
frame=  270 fps=2.4 q=27.0 size=    1465kB time=00:00:09.20 bitrate=1304.6kbits/s    
frame=  271 fps=2.4 q=27.0 size=    1486kB time=00:00:09.24 bitrate=1317.5kbits/s    
frame=  272 fps=2.4 q=27.0 size=    1489kB time=00:00:09.28 bitrate=1314.4kbits/s    
frame=  273 fps=2.4 q=27.0 size=    1499kB time=00:00:09.32 bitrate=1318.0kbits/s    
frame=  276 fps=2.4 q=27.0 size=    1517kB time=00:00:09.44 bitrate=1316.7kbits/s    
frame=  277 fps=2.4 q=27.0 size=    1536kB time=00:00:09.48 bitrate=1327.2kbits/s    
frame=  279 fps=2.4 q=27.0 size=    1552kB time=00:00:09.56 bitrate=1329.8kbits/s    
frame=  280 fps=2.4 q=27.0 size=    1555kB time=00:00:09.60 bitrate=1326.8kbits/s    
frame=  282 fps=2.4 q=27.0 size=    1574kB time=00:00:09.68 bitrate=1332.3kbits/s    
frame=  284 fps=2.4 q=27.0 size=    1598kB time=00:00:09.76 bitrate=1340.9kbits/s    
frame=  286 fps=2.3 q=27.0 size=    1616kB time=00:00:09.84 bitrate=1345.0kbits/s    
frame=  287 fps=2.3 q=27.0 size=    1631kB time=00:00:09.88 bitrate=1352.1kbits/s    
frame=  289 fps=2.3 q=27.0 size=    1655kB time=00:00:09.96 bitrate=1361.0kbits/s    
frame=  290 fps=2.3 q=27.0 size=    1659kB time=00:00:10.00 bitrate=1359.0kbits/s    
frame=  291 fps=2.3 q=27.0 size=    1673kB time=00:00:10.04 bitrate=1365.1kbits/s    
frame=  293 fps=2.3 q=27.0 size=    1694kB time=00:00:10.12 bitrate=1371.6kbits/s    
frame=  294 fps=2.3 q=27.0 size=    1700kB time=00:00:10.16 bitrate=1370.3kbits/s    
frame=  295 fps=2.3 q=27.0 size=    1722kB time=00:00:10.20 bitrate=1383.3kbits/s    
frame=  296 fps=2.3 q=27.0 size=    1727kB time=00:00:10.24 bitrate=1381.5kbits/s    
frame=  297 fps=2.3 q=27.0 size=    1744kB time=00:00:10.28 bitrate=1389.6kbits/s    
frame=  299 fps=2.3 q=27.0 size=    1767kB time=00:00:10.36 bitrate=1397.6kbits/s    
frame=  300 fps=2.3 q=27.0 size=    1772kB time=00:00:10.40 bitrate=1395.9kbits/s    
frame=  302 fps=2.3 q=27.0 size=    1797kB time=00:00:10.48 bitrate=1404.6kbits/s    
frame=  304 fps=2.3 q=27.0 size=    1819kB time=00:00:10.56 bitrate=1411.2kbits/s    
frame=  306 fps=2.3 q=27.0 size=    1836kB time=00:00:10.64 bitrate=1413.3kbits/s    
frame=  308 fps=2.3 q=27.0 size=    1862kB time=00:00:10.72 bitrate=1422.8kbits/s    
frame=  310 fps=2.3 q=27.0 size=    1879kB time=00:00:10.80 bitrate=1425.6kbits/s    
frame=  312 fps=2.3 q=27.0 size=    1898kB time=00:00:10.88 bitrate=1428.9kbits/s    
frame=  314 fps=2.3 q=27.0 size=    1919kB time=00:00:10.96 bitrate=1434.7kbits/s    
frame=  315 fps=2.3 q=27.0 size=    1934kB time=00:00:11.00 bitrate=1440.4kbits/s    
frame=  316 fps=2.3 q=27.0 size=    1938kB time=00:00:11.04 bitrate=1437.8kbits/s    
frame=  318 fps=2.3 q=27.0 size=    1959kB time=00:00:11.12 bitrate=1443.4kbits/s    
frame=  319 fps=2.3 q=27.0 size=    1978kB time=00:00:11.16 bitrate=1452.2kbits/s    
frame=  320 fps=2.3 q=27.0 size=    1984kB time=00:00:11.20 bitrate=1451.3kbits/s    
frame=  321 fps=2.3 q=27.0 size=    1999kB time=00:00:11.24 bitrate=1457.1kbits/s    
frame=  323 fps=2.3 q=27.0 size=    2018kB time=00:00:11.32 bitrate=1460.4kbits/s    
frame=  324 fps=2.3 q=27.0 size=    2022kB time=00:00:11.36 bitrate=1458.4kbits/s    
frame=  325 fps=2.3 q=27.0 size=    2042kB time=00:00:11.40 bitrate=1467.3kbits/s    
frame=  327 fps=2.3 q=27.0 size=    2062kB time=00:00:11.48 bitrate=1471.3kbits/s    
frame=  329 fps=2.3 q=27.0 size=    2083kB time=00:00:11.56 bitrate=1476.2kbits/s    
frame=  331 fps=2.3 q=27.0 size=    2110kB time=00:00:11.64 bitrate=1484.8kbits/s    
frame=  333 fps=2.2 q=27.0 size=    2132kB time=00:00:11.72 bitrate=1489.9kbits/s    
frame=  335 fps=2.2 q=27.0 size=    2154kB time=00:00:11.80 bitrate=1495.2kbits/s    
frame=  336 fps=2.2 q=27.0 size=    2159kB time=00:00:11.84 bitrate=1493.8kbits/s    
frame=  338 fps=2.2 q=27.0 size=    2182kB time=00:00:11.92 bitrate=1499.7kbits/s    
frame=  340 fps=2.2 q=27.0 size=    2203kB time=00:00:12.00 bitrate=1504.1kbits/s    
frame=  341 fps=2.2 q=27.0 size=    2217kB time=00:00:12.04 bitrate=1508.3kbits/s    
frame=  344 fps=2.2 q=24.0 size=    2243kB time=00:00:12.16 bitrate=1511.0kbits/s    
frame=  347 fps=2.2 q=27.0 size=    2300kB time=00:00:12.28 bitrate=1534.0kbits/s    
frame=  349 fps=2.2 q=27.0 size=    2313kB time=00:00:12.36 bitrate=1532.9kbits/s    
frame=  351 fps=2.2 q=27.0 size=    2318kB time=00:00:12.44 bitrate=1526.3kbits/s    
frame=  353 fps=2.2 q=27.0 size=    2333kB time=00:00:12.52 bitrate=1526.5kbits/s    
frame=  355 fps=2.2 q=27.0 size=    2337kB time=00:00:12.60 bitrate=1519.5kbits/s    
frame=  357 fps=2.2 q=27.0 size=    2353kB time=00:00:12.68 bitrate=1520.1kbits/s    
frame=  359 fps=2.2 q=27.0 size=    2358kB time=00:00:12.76 bitrate=1514.1kbits/s    
frame=  361 fps=2.2 q=27.0 size=    2374kB time=00:00:12.84 bitrate=1514.7kbits/s    
frame=  362 fps=2.2 q=27.0 size=    2376kB time=00:00:12.88 bitrate=1511.5kbits/s    
frame=  363 fps=2.2 q=27.0 size=    2379kB time=00:00:12.92 bitrate=1508.5kbits/s    
frame=  365 fps=2.2 q=27.0 size=    2398kB time=00:00:13.00 bitrate=1511.0kbits/s    
frame=  367 fps=2.2 q=27.0 size=    2404kB time=00:00:13.08 bitrate=1505.4kbits/s    
frame=  369 fps=2.2 q=27.0 size=    2420kB time=00:00:13.16 bitrate=1506.4kbits/s    
frame=  371 fps=2.2 q=27.0 size=    2437kB time=00:00:13.24 bitrate=1507.7kbits/s    
frame=  373 fps=2.2 q=27.0 size=    2445kB time=00:00:13.32 bitrate=1503.5kbits/s    
frame=  374 fps=2.2 q=27.0 size=    2457kB time=00:00:13.36 bitrate=1506.7kbits/s    
frame=  375 fps=2.2 q=27.0 size=    2461kB time=00:00:13.40 bitrate=1504.3kbits/s    
frame=  377 fps=2.2 q=27.0 size=    2477kB time=00:00:13.48 bitrate=1505.1kbits/s    
frame=  378 fps=2.2 q=27.0 size=    2480kB time=00:00:13.52 bitrate=1502.8kbits/s    
frame=  379 fps=2.2 q=27.0 size=    2484kB time=00:00:13.56 bitrate=1500.5kbits/s    
frame=  380 fps=2.2 q=27.0 size=    2496kB time=00:00:13.60 bitrate=1503.6kbits/s    
frame=  381 fps=2.2 q=27.0 size=    2500kB time=00:00:13.64 bitrate=1501.6kbits/s    
frame=  382 fps=2.2 q=27.0 size=    2504kB time=00:00:13.68 bitrate=1499.8kbits/s    
frame=  383 fps=2.2 q=27.0 size=    2516kB time=00:00:13.72 bitrate=1502.1kbits/s    
frame=  385 fps=2.2 q=27.0 size=    2534kB time=00:00:13.80 bitrate=1504.1kbits/s    
frame=  386 fps=2.2 q=27.0 size=    2537kB time=00:00:13.84 bitrate=1501.7kbits/s    
frame=  387 fps=2.1 q=27.0 size=    2552kB time=00:00:13.88 bitrate=1505.9kbits/s    
frame=  389 fps=2.2 q=27.0 size=    2559kB time=00:00:13.96 bitrate=1501.9kbits/s    
frame=  391 fps=2.1 q=27.0 size=    2578kB time=00:00:14.04 bitrate=1504.1kbits/s    
frame=  393 fps=2.1 q=27.0 size=    2598kB time=00:00:14.12 bitrate=1507.5kbits/s    
frame=  394 fps=2.1 q=27.0 size=    2604kB time=00:00:14.16 bitrate=1506.5kbits/s    
frame=  395 fps=2.1 q=27.0 size=    2619kB time=00:00:14.20 bitrate=1511.0kbits/s    
frame=  396 fps=2.1 q=27.0 size=    2623kB time=00:00:14.24 bitrate=1509.2kbits/s    
frame=  397 fps=2.1 q=27.0 size=    2628kB time=00:00:14.28 bitrate=1507.4kbits/s    
frame=  398 fps=2.1 q=27.0 size=    2644kB time=00:00:14.32 bitrate=1512.3kbits/s    
frame=  399 fps=2.1 q=27.0 size=    2647kB time=00:00:14.36 bitrate=1510.2kbits/s    
frame=  401 fps=2.1 q=27.0 size=    2664kB time=00:00:14.44 bitrate=1511.3kbits/s    
frame=  403 fps=2.1 q=27.0 size=    2670kB time=00:00:14.52 bitrate=1506.3kbits/s    
frame=  405 fps=2.1 q=27.0 size=    2683kB time=00:00:14.60 bitrate=1505.5kbits/s    
frame=  406 fps=2.1 q=27.0 size=    2686kB time=00:00:14.64 bitrate=1503.2kbits/s    
frame=  408 fps=2.1 q=24.0 size=    2697kB time=00:00:14.72 bitrate=1500.9kbits/s    
frame=  409 fps=2.1 q=27.0 size=    2700kB time=00:00:14.76 bitrate=1498.7kbits/s    
frame=  410 fps=2.1 q=27.0 size=    2705kB time=00:00:14.80 bitrate=1497.2kbits/s    
frame=  411 fps=2.1 q=27.0 size=    2743kB time=00:00:14.84 bitrate=1514.4kbits/s    
frame=  413 fps=2.1 q=27.0 size=    2759kB time=00:00:14.92 bitrate=1515.0kbits/s    
frame=  414 fps=2.1 q=27.0 size=    2762kB time=00:00:14.96 bitrate=1512.6kbits/s    
frame=  416 fps=2.1 q=27.0 size=    2781kB time=00:00:15.04 bitrate=1514.7kbits/s    
frame=  417 fps=2.1 q=27.0 size=    2784kB time=00:00:15.08 bitrate=1512.4kbits/s    
frame=  418 fps=2.1 q=27.0 size=    2796kB time=00:00:15.12 bitrate=1514.9kbits/s    
frame=  420 fps=2.1 q=27.0 size=    2804kB time=00:00:15.20 bitrate=1511.1kbits/s    
frame=  421 fps=2.1 q=27.0 size=    2816kB time=00:00:15.24 bitrate=1513.7kbits/s    
frame=  422 fps=2.1 q=27.0 size=    2820kB time=00:00:15.28 bitrate=1511.8kbits/s    
frame=  423 fps=2.1 q=27.0 size=    2823kB time=00:00:15.32 bitrate=1509.5kbits/s    
frame=  424 fps=2.1 q=27.0 size=    2834kB time=00:00:15.36 bitrate=1511.5kbits/s    
frame=  425 fps=2.1 q=27.0 size=    2838kB time=00:00:15.40 bitrate=1509.7kbits/s    
frame=  426 fps=2.1 q=27.0 size=    2841kB time=00:00:15.44 bitrate=1507.6kbits/s    
frame=  427 fps=2.1 q=27.0 size=    2855kB time=00:00:15.48 bitrate=1510.8kbits/s    
frame=  429 fps=2.1 q=27.0 size=    2866kB time=00:00:15.56 bitrate=1508.7kbits/s    
frame=  430 fps=2.1 q=27.0 size=    2880kB time=00:00:15.60 bitrate=1512.3kbits/s    
frame=  431 fps=2.1 q=27.0 size=    2884kB time=00:00:15.64 bitrate=1510.5kbits/s    
frame=  432 fps=2.1 q=27.0 size=    2897kB time=00:00:15.68 bitrate=1513.3kbits/s    
frame=  433 fps=2.1 q=27.0 size=    2900kB time=00:00:15.72 bitrate=1511.5kbits/s    
frame=  436 fps=2.1 q=27.0 size=    2913kB time=00:00:15.84 bitrate=1506.6kbits/s    
frame=  438 fps=2.1 q=27.0 size=    2966kB time=00:00:15.92 bitrate=1526.0kbits/s    
frame=  440 fps=2.1 q=27.0 size=    2982kB time=00:00:16.00 bitrate=1526.6kbits/s    
frame=  442 fps=2.1 q=27.0 size=    2998kB time=00:00:16.08 bitrate=1527.3kbits/s    
frame=  443 fps=2.1 q=27.0 size=    3000kB time=00:00:16.12 bitrate=1524.8kbits/s    
frame=  445 fps=2.1 q=27.0 size=    3015kB time=00:00:16.20 bitrate=1524.9kbits/s    
frame=  447 fps=2.1 q=27.0 size=    3020kB time=00:00:16.28 bitrate=1519.8kbits/s    
frame=  449 fps=2.1 q=27.0 size=    3037kB time=00:00:16.36 bitrate=1520.9kbits/s    
frame=  451 fps=2.1 q=27.0 size=    3054kB time=00:00:16.44 bitrate=1521.9kbits/s    
frame=  452 fps=2.1 q=27.0 size=    3060kB time=00:00:16.48 bitrate=1520.9kbits/s    
frame=  453 fps=2.1 q=27.0 size=    3062kB time=00:00:16.52 bitrate=1518.4kbits/s    
frame=  456 fps=2.1 q=27.0 size=    3079kB time=00:00:16.64 bitrate=1515.8kbits/s    
frame=  458 fps=2.1 q=27.0 size=    3093kB time=00:00:16.72 bitrate=1515.5kbits/s    
frame=  460 fps=2.1 q=27.0 size=    3097kB time=00:00:16.80 bitrate=1510.1kbits/s    
frame=  462 fps=2.1 q=27.0 size=    3110kB time=00:00:16.88 bitrate=1509.3kbits/s    
frame=  464 fps=2.1 q=27.0 size=    3124kB time=00:00:16.96 bitrate=1509.2kbits/s    
frame=  466 fps=2.1 q=27.0 size=    3129kB time=00:00:17.04 bitrate=1504.4kbits/s    
frame=  467 fps=2.1 q=27.0 size=    3142kB time=00:00:17.08 bitrate=1506.9kbits/s    
frame=  468 fps=2.1 q=27.0 size=    3144kB time=00:00:17.12 bitrate=1504.4kbits/s    
frame=  470 fps=2.1 q=27.0 size=    3160kB time=00:00:17.20 bitrate=1505.1kbits/s    
frame=  472 fps=2.1 q=27.0 size=    3165kB time=00:00:17.28 bitrate=1500.5kbits/s    
frame=  473 fps=2.1 q=27.0 size=    3178kB time=00:00:17.32 bitrate=1503.3kbits/s    
frame=  474 fps=2.1 q=27.0 size=    3181kB time=00:00:17.36 bitrate=1501.0kbits/s    
frame=  476 fps=2.1 q=27.0 size=    3197kB time=00:00:17.44 bitrate=1501.7kbits/s    
frame=  478 fps=2.1 q=27.0 size=    3203kB time=00:00:17.52 bitrate=1497.5kbits/s    
frame=  479 fps=2.1 q=27.0 size=    3214kB time=00:00:17.56 bitrate=1499.4kbits/s    
frame=  480 fps=2.1 q=27.0 size=    3216kB time=00:00:17.60 bitrate=1497.0kbits/s    
frame=  482 fps=2.1 q=27.0 size=    3231kB time=00:00:17.68 bitrate=1497.0kbits/s    
frame=  484 fps=2.1 q=27.0 size=    3236kB time=00:00:17.76 bitrate=1492.8kbits/s    
frame=  485 fps=2.1 q=27.0 size=    3246kB time=00:00:17.80 bitrate=1494.1kbits/s    
frame=  486 fps=2.1 q=27.0 size=    3248kB time=00:00:17.84 bitrate=1491.7kbits/s    
frame=  488 fps=2.1 q=27.0 size=    3261kB time=00:00:17.92 bitrate=1490.8kbits/s    
frame=  489 fps=2.1 q=27.0 size=    3263kB time=00:00:17.96 bitrate=1488.5kbits/s    
frame=  490 fps=2.1 q=27.0 size=    3266kB time=00:00:18.00 bitrate=1486.3kbits/s    
frame=  492 fps=2.1 q=27.0 size=    3276kB time=00:00:18.08 bitrate=1484.3kbits/s    
frame=  493 fps=2.1 q=24.0 size=    3278kB time=00:00:18.12 bitrate=1482.0kbits/s    
frame=  495 fps=2.1 q=27.0 size=    3283kB time=00:00:18.20 bitrate=1477.5kbits/s    
frame=  498 fps=2.1 q=27.0 size=    3339kB time=00:00:18.32 bitrate=1492.9kbits/s    
frame=  500 fps=2.1 q=27.0 size=    3356kB time=00:00:18.40 bitrate=1494.2kbits/s    
frame=  501 fps=2.1 q=27.0 size=    3359kB time=00:00:18.44 bitrate=1492.4kbits/s    
frame=  502 fps=2.1 q=27.0 size=    3363kB time=00:00:18.48 bitrate=1490.8kbits/s    
frame=  503 fps=2.1 q=27.0 size=    3375kB time=00:00:18.52 bitrate=1493.1kbits/s    
frame=  505 fps=2.1 q=27.0 size=    3381kB time=00:00:18.60 bitrate=1489.3kbits/s    
frame=  507 fps=2.1 q=27.0 size=    3400kB time=00:00:18.68 bitrate=1491.0kbits/s    
frame=  508 fps=2.1 q=27.0 size=    3403kB time=00:00:18.72 bitrate=1489.2kbits/s    
frame=  511 fps=2.1 q=27.0 size=    3423kB time=00:00:18.84 bitrate=1488.4kbits/s    
frame=  513 fps=2.1 q=27.0 size=    3428kB time=00:00:18.92 bitrate=1484.4kbits/s    
frame=  515 fps=2.0 q=27.0 size=    3445kB time=00:00:19.00 bitrate=1485.3kbits/s    
frame=  517 fps=2.1 q=27.0 size=    3449kB time=00:00:19.08 bitrate=1481.0kbits/s    
frame=  519 fps=2.0 q=27.0 size=    3463kB time=00:00:19.16 bitrate=1480.5kbits/s    
frame=  521 fps=2.0 q=27.0 size=    3477kB time=00:00:19.24 bitrate=1480.5kbits/s    
frame=  522 fps=2.0 q=27.0 size=    3480kB time=00:00:19.28 bitrate=1478.6kbits/s    
frame=  524 fps=2.0 q=27.0 size=    3495kB time=00:00:19.36 bitrate=1479.1kbits/s    
frame=  525 fps=2.0 q=27.0 size=    3499kB time=00:00:19.40 bitrate=1477.4kbits/s    
frame=  526 fps=2.0 q=27.0 size=    3503kB time=00:00:19.44 bitrate=1476.1kbits/s    
frame=  527 fps=2.0 q=27.0 size=    3515kB time=00:00:19.48 bitrate=1478.2kbits/s    
frame=  529 fps=2.0 q=27.0 size=    3522kB time=00:00:19.56 bitrate=1475.2kbits/s    
frame=  530 fps=2.0 q=27.0 size=    3534kB time=00:00:19.60 bitrate=1477.2kbits/s    
frame=  532 fps=2.0 q=27.0 size=    3540kB time=00:00:19.68 bitrate=1473.8kbits/s    
frame=  534 fps=2.0 q=27.0 size=    3555kB time=00:00:19.76 bitrate=1474.0kbits/s    
frame=  536 fps=2.0 q=27.0 size=    3572kB time=00:00:19.84 bitrate=1474.8kbits/s    
frame=  538 fps=2.0 q=27.0 size=    3579kB time=00:00:19.92 bitrate=1471.8kbits/s    
frame=  539 fps=2.0 q=27.0 size=    3591kB time=00:00:19.96 bitrate=1474.0kbits/s    
frame=  540 fps=2.0 q=27.0 size=    3595kB time=00:00:20.00 bitrate=1472.3kbits/s    
frame=  541 fps=2.0 q=27.0 size=    3598kB time=00:00:20.04 bitrate=1470.9kbits/s    
frame=  542 fps=2.0 q=27.0 size=    3611kB time=00:00:20.08 bitrate=1473.2kbits/s    
frame=  544 fps=2.0 q=27.0 size=    3619kB time=00:00:20.16 bitrate=1470.4kbits/s    
frame=  545 fps=2.0 q=27.0 size=    3621kB time=00:00:20.20 bitrate=1468.5kbits/s    
frame=  547 fps=2.0 q=27.0 size=    3635kB time=00:00:20.28 bitrate=1468.5kbits/s    
frame=  549 fps=2.0 q=27.0 size=    3641kB time=00:00:20.36 bitrate=1465.0kbits/s    
frame=  551 fps=2.0 q=24.0 size=    3654kB time=00:00:20.44 bitrate=1464.6kbits/s    
frame=  552 fps=2.0 q=27.0 size=    3657kB time=00:00:20.48 bitrate=1462.8kbits/s    
frame=  555 fps=2.0 q=27.0 size=    3721kB time=00:00:20.60 bitrate=1479.6kbits/s    
frame=  556 fps=2.0 q=27.0 size=    3724kB time=00:00:20.64 bitrate=1478.0kbits/s    
frame=  558 fps=2.0 q=27.0 size=    3746kB time=00:00:20.72 bitrate=1481.1kbits/s    
frame=  559 fps=2.0 q=27.0 size=    3749kB time=00:00:20.76 bitrate=1479.2kbits/s    
frame=  560 fps=2.0 q=27.0 size=    3751kB time=00:00:20.80 bitrate=1477.4kbits/s    
frame=  562 fps=2.0 q=27.0 size=    3766kB time=00:00:20.88 bitrate=1477.6kbits/s    
frame=  563 fps=2.0 q=27.0 size=    3768kB time=00:00:20.92 bitrate=1475.5kbits/s    
frame=  566 fps=2.0 q=27.0 size=    3786kB time=00:00:21.04 bitrate=1473.9kbits/s    
frame=  568 fps=2.0 q=27.0 size=    3799kB time=00:00:21.12 bitrate=1473.5kbits/s    
frame=  570 fps=2.0 q=27.0 size=    3806kB time=00:00:21.20 bitrate=1470.6kbits/s    
frame=  571 fps=2.0 q=27.0 size=    3818kB time=00:00:21.24 bitrate=1472.6kbits/s    
frame=  572 fps=2.0 q=27.0 size=    3822kB time=00:00:21.28 bitrate=1471.4kbits/s    
frame=  574 fps=2.0 q=27.0 size=    3838kB time=00:00:21.36 bitrate=1472.1kbits/s    
frame=  576 fps=2.0 q=27.0 size=    3845kB time=00:00:21.44 bitrate=1469.1kbits/s    
frame=  577 fps=2.0 q=27.0 size=    3858kB time=00:00:21.48 bitrate=1471.4kbits/s    
frame=  578 fps=2.0 q=27.0 size=    3862kB time=00:00:21.52 bitrate=1470.1kbits/s    
frame=  580 fps=2.0 q=27.0 size=    3878kB time=00:00:21.60 bitrate=1470.9kbits/s    
frame=  582 fps=2.0 q=27.0 size=    3885kB time=00:00:21.68 bitrate=1468.1kbits/s    
frame=  583 fps=2.0 q=27.0 size=    3900kB time=00:00:21.72 bitrate=1470.9kbits/s    
frame=  584 fps=2.0 q=27.0 size=    3904kB time=00:00:21.76 bitrate=1469.7kbits/s    
frame=  586 fps=2.0 q=27.0 size=    3919kB time=00:00:21.84 bitrate=1470.0kbits/s    
frame=  588 fps=2.0 q=27.0 size=    3926kB time=00:00:21.92 bitrate=1467.1kbits/s    
frame=  590 fps=2.0 q=27.0 size=    3941kB time=00:00:22.00 bitrate=1467.6kbits/s    
frame=  592 fps=2.0 q=27.0 size=    3955kB time=00:00:22.08 bitrate=1467.5kbits/s    
frame=  593 fps=2.0 q=27.0 size=    3959kB time=00:00:22.12 bitrate=1466.1kbits/s    
frame=  595 fps=2.0 q=27.0 size=    3975kB time=00:00:22.20 bitrate=1466.9kbits/s    
frame=  596 fps=2.0 q=27.0 size=    3980kB time=00:00:22.24 bitrate=1466.0kbits/s    
frame=  597 fps=2.0 q=27.0 size=    3983kB time=00:00:22.28 bitrate=1464.5kbits/s    
frame=  599 fps=2.0 q=27.0 size=    3999kB time=00:00:22.36 bitrate=1465.1kbits/s    
frame=  600 fps=2.0 q=27.0 size=    4002kB time=00:00:22.40 bitrate=1463.6kbits/s    
frame=  601 fps=2.0 q=27.0 size=    4015kB time=00:00:22.44 bitrate=1465.8kbits/s    
frame=  602 fps=2.0 q=27.0 size=    4019kB time=00:00:22.48 bitrate=1464.4kbits/s    
frame=  604 fps=2.0 q=27.0 size=    4034kB time=00:00:22.56 bitrate=1465.0kbits/s    
frame=  605 fps=2.0 q=27.0 size=    4038kB time=00:00:22.60 bitrate=1463.6kbits/s    
frame=  606 fps=2.0 q=27.0 size=    4041kB time=00:00:22.64 bitrate=1462.2kbits/s    
frame=  607 fps=2.0 q=27.0 size=    4053kB time=00:00:22.68 bitrate=1464.0kbits/s    
frame=  609 fps=2.0 q=27.0 size=    4064kB time=00:00:22.76 bitrate=1462.7kbits/s    
frame=  611 fps=2.0 q=27.0 size=    4077kB time=00:00:22.84 bitrate=1462.3kbits/s    
frame=  612 fps=2.0 q=27.0 size=    4081kB time=00:00:22.88 bitrate=1461.3kbits/s    
frame=  613 fps=2.0 q=27.0 size=    4085kB time=00:00:22.92 bitrate=1459.9kbits/s    
frame=  614 fps=2.0 q=27.0 size=    4088kB time=00:00:22.96 bitrate=1458.5kbits/s    
frame=  617 fps=2.0 q=27.0 size=    4101kB time=00:00:23.08 bitrate=1455.5kbits/s    
frame=  618 fps=2.0 q=27.0 size=    4139kB time=00:00:23.12 bitrate=1466.7kbits/s    
frame=  621 fps=2.0 q=27.0 size=    4157kB time=00:00:23.24 bitrate=1465.5kbits/s    
frame=  624 fps=2.0 q=27.0 size=    4175kB time=00:00:23.36 bitrate=1464.1kbits/s    
frame=  626 fps=2.0 q=27.0 size=    4190kB time=00:00:23.44 bitrate=1464.4kbits/s    
frame=  628 fps=2.0 q=27.0 size=    4197kB time=00:00:23.52 bitrate=1461.7kbits/s    
frame=  629 fps=2.0 q=27.0 size=    4209kB time=00:00:23.56 bitrate=1463.5kbits/s    
frame=  630 fps=2.0 q=27.0 size=    4212kB time=00:00:23.60 bitrate=1461.9kbits/s    
frame=  632 fps=2.0 q=27.0 size=    4226kB time=00:00:23.68 bitrate=1461.9kbits/s    
frame=  635 fps=2.0 q=27.0 size=    4246kB time=00:00:23.80 bitrate=1461.6kbits/s    
frame=  636 fps=2.0 q=27.0 size=    4250kB time=00:00:23.84 bitrate=1460.3kbits/s    
frame=  637 fps=2.0 q=27.0 size=    4254kB time=00:00:23.88 bitrate=1459.4kbits/s    
frame=  638 fps=2.0 q=27.0 size=    4266kB time=00:00:23.92 bitrate=1461.0kbits/s    
frame=  640 fps=2.0 q=27.0 size=    4274kB time=00:00:24.00 bitrate=1459.0kbits/s    
frame=  642 fps=2.0 q=27.0 size=    4286kB time=00:00:24.08 bitrate=1458.0kbits/s    
frame=  643 fps=2.0 q=27.0 size=    4290kB time=00:00:24.12 bitrate=1457.0kbits/s    
frame=  644 fps=2.0 q=27.0 size=    4292kB time=00:00:24.16 bitrate=1455.3kbits/s    
frame=  647 fps=2.0 q=27.0 size=    4305kB time=00:00:24.28 bitrate=1452.5kbits/s    
frame=  648 fps=2.0 q=27.0 size=    4308kB time=00:00:24.32 bitrate=1451.1kbits/s    
frame=  650 fps=2.0 q=27.0 size=    4364kB time=00:00:24.40 bitrate=1465.3kbits/s    
frame=  651 fps=2.0 q=27.0 size=    4369kB time=00:00:24.44 bitrate=1464.4kbits/s    
frame=  652 fps=2.0 q=27.0 size=    4371kB time=00:00:24.48 bitrate=1462.7kbits/s    
frame=  655 fps=2.0 q=27.0 size=    4395kB time=00:00:24.60 bitrate=1463.7kbits/s    
frame=  657 fps=2.0 q=27.0 size=    4411kB time=00:00:24.68 bitrate=1464.0kbits/s    
frame=  659 fps=2.0 q=27.0 size=    4416kB time=00:00:24.76 bitrate=1461.1kbits/s    
frame=  660 fps=2.0 q=27.0 size=    4419kB time=00:00:24.80 bitrate=1459.5kbits/s    
frame=  662 fps=2.0 q=27.0 size=    4436kB time=00:00:24.88 bitrate=1460.5kbits/s    
frame=  664 fps=2.0 q=27.0 size=    4439kB time=00:00:24.96 bitrate=1456.9kbits/s    
frame=  666 fps=2.0 q=27.0 size=    4450kB time=00:00:25.04 bitrate=1455.9kbits/s    
frame=  668 fps=2.0 q=27.0 size=    4465kB time=00:00:25.12 bitrate=1456.2kbits/s    
frame=  669 fps=2.0 q=27.0 size=    4468kB time=00:00:25.16 bitrate=1454.7kbits/s    
frame=  671 fps=2.0 q=27.0 size=    4482kB time=00:00:25.24 bitrate=1454.6kbits/s    
frame=  673 fps=2.0 q=27.0 size=    4486kB time=00:00:25.32 bitrate=1451.5kbits/s    
frame=  674 fps=2.0 q=27.0 size=    4498kB time=00:00:25.36 bitrate=1453.1kbits/s    
frame=  675 fps=2.0 q=27.0 size=    4501kB time=00:00:25.40 bitrate=1451.6kbits/s    
frame=  677 fps=2.0 q=27.0 size=    4513kB time=00:00:25.48 bitrate=1451.1kbits/s    
frame=  679 fps=2.0 q=27.0 size=    4518kB time=00:00:25.56 bitrate=1448.0kbits/s    
frame=  680 fps=2.0 q=27.0 size=    4531kB time=00:00:25.60 bitrate=1449.9kbits/s    
frame=  681 fps=2.0 q=27.0 size=    4535kB time=00:00:25.64 bitrate=1448.9kbits/s    
frame=  683 fps=2.0 q=27.0 size=    4539kB time=00:00:25.72 bitrate=1445.6kbits/s    
frame=  685 fps=2.0 q=27.0 size=    4551kB time=00:00:25.80 bitrate=1445.1kbits/s    
frame=  686 fps=2.0 q=24.0 size=    4553kB time=00:00:25.84 bitrate=1443.6kbits/s    
frame=  689 fps=2.0 q=27.0 size=    4598kB time=00:00:25.96 bitrate=1450.9kbits/s    
frame=  691 fps=2.0 q=27.0 size=    4614kB time=00:00:26.04 bitrate=1451.4kbits/s    
frame=  693 fps=2.0 q=27.0 size=    4620kB time=00:00:26.12 bitrate=1449.1kbits/s    
frame=  695 fps=2.0 q=27.0 size=    4637kB time=00:00:26.20 bitrate=1449.8kbits/s    
frame=  696 fps=2.0 q=27.0 size=    4639kB time=00:00:26.24 bitrate=1448.3kbits/s    
frame=  699 fps=2.0 q=27.0 size=    4659kB time=00:00:26.36 bitrate=1448.0kbits/s    
frame=  701 fps=2.0 q=27.0 size=    4676kB time=00:00:26.44 bitrate=1448.7kbits/s    
frame=  702 fps=2.0 q=27.0 size=    4679kB time=00:00:26.48 bitrate=1447.6kbits/s    
frame=  703 fps=2.0 q=27.0 size=    4683kB time=00:00:26.52 bitrate=1446.5kbits/s    
frame=  704 fps=2.0 q=27.0 size=    4695kB time=00:00:26.56 bitrate=1448.0kbits/s    
frame=  706 fps=2.0 q=27.0 size=    4704kB time=00:00:26.64 bitrate=1446.4kbits/s    
frame=  708 fps=2.0 q=27.0 size=    4718kB time=00:00:26.72 bitrate=1446.3kbits/s    
frame=  709 fps=2.0 q=27.0 size=    4721kB time=00:00:26.76 bitrate=1445.2kbits/s    
frame=  710 fps=2.0 q=27.0 size=    4724kB time=00:00:26.80 bitrate=1444.0kbits/s    
frame=  711 fps=2.0 q=27.0 size=    4730kB time=00:00:26.84 bitrate=1443.6kbits/s    
frame=  713 fps=2.0 q=27.0 size=    4738kB time=00:00:26.92 bitrate=1441.9kbits/s    
frame=  715 fps=2.0 q=27.0 size=    4777kB time=00:00:27.00 bitrate=1449.5kbits/s    
frame=  717 fps=2.0 q=27.0 size=    4792kB time=00:00:27.08 bitrate=1449.5kbits/s    
frame=  719 fps=2.0 q=27.0 size=    4797kB time=00:00:27.16 bitrate=1446.9kbits/s    
frame=  721 fps=2.0 q=27.0 size=    4810kB time=00:00:27.24 bitrate=1446.6kbits/s    
frame=  722 fps=2.0 q=27.0 size=    4813kB time=00:00:27.28 bitrate=1445.3kbits/s    
frame=  725 fps=2.0 q=27.0 size=    4832kB time=00:00:27.40 bitrate=1444.6kbits/s    
frame=  726 fps=2.0 q=27.0 size=    4835kB time=00:00:27.44 bitrate=1443.3kbits/s    
frame=  727 fps=2.0 q=27.0 size=    4837kB time=00:00:27.48 bitrate=1442.0kbits/s    
frame=  729 fps=2.0 q=27.0 size=    4852kB time=00:00:27.56 bitrate=1442.2kbits/s    
frame=  730 fps=2.0 q=27.0 size=    4855kB time=00:00:27.60 bitrate=1441.1kbits/s    
frame=  733 fps=2.0 q=27.0 size=    4878kB time=00:00:27.72 bitrate=1441.4kbits/s    
frame=  735 fps=2.0 q=27.0 size=    4891kB time=00:00:27.80 bitrate=1441.3kbits/s    
frame=  737 fps=2.0 q=27.0 size=    4898kB time=00:00:27.88 bitrate=1439.3kbits/s    
frame=  739 fps=2.0 q=27.0 size=    4912kB time=00:00:27.96 bitrate=1439.2kbits/s    
frame=  740 fps=2.0 q=27.0 size=    4918kB time=00:00:28.00 bitrate=1438.9kbits/s    
frame=  741 fps=2.0 q=27.0 size=    4921kB time=00:00:28.04 bitrate=1437.6kbits/s    
frame=  744 fps=2.0 q=27.0 size=    4938kB time=00:00:28.16 bitrate=1436.7kbits/s    
frame=  746 fps=2.0 q=27.0 size=    4954kB time=00:00:28.24 bitrate=1437.2kbits/s    
frame=  748 fps=2.0 q=27.0 size=    4961kB time=00:00:28.32 bitrate=1435.0kbits/s    
frame=  749 fps=2.0 q=27.0 size=    4963kB time=00:00:28.36 bitrate=1433.6kbits/s    
frame=  751 fps=2.0 q=27.0 size=    4977kB time=00:00:28.44 bitrate=1433.7kbits/s    
frame=  751 fps=2.0 q=27.0 size=    4977kB time=00:00:28.44 bitrate=1433.7kbits/s    
frame=  751 fps=1.9 q=-1.0 Lsize=    5160kB time=00:00:29.96 bitrate=1410.9kbits/s    
video:5160kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[libx264 @ 0x19faa60] frame I:15    Avg QP:19.66  size: 43386
[libx264 @ 0x19faa60] frame P:247   Avg QP:22.71  size: 12429
[libx264 @ 0x19faa60] frame B:489   Avg QP:25.72  size:  3196
[libx264 @ 0x19faa60] consecutive B-frames:  2.7% 14.4% 51.5% 31.4%
[libx264 @ 0x19faa60] mb I  I16..4:  5.8% 71.2% 23.0%
[libx264 @ 0x19faa60] mb P  I16..4:  1.4%  4.7%  1.8%  P16..4: 49.4% 20.1%  6.9%  0.0%  0.0%    skip:15.7%
[libx264 @ 0x19faa60] mb B  I16..4:  0.6%  3.3%  0.2%  B16..8: 26.3%  6.1%  0.5%  direct:13.2%  skip:49.8%  L0:36.0% L1:50.8% BI:13.2%
[libx264 @ 0x19faa60] field mbs: intra: 0.5% inter:0.4% skip:0.2%
[libx264 @ 0x19faa60] 8x8 transform intra:70.3% inter:62.5%
[libx264 @ 0x19faa60] coded y,uvDC,uvAC intra: 74.3% 83.1% 35.7% inter: 12.3% 32.5% 1.3%
[libx264 @ 0x19faa60] i16 v,h,dc,p: 54% 14% 11% 20%
[libx264 @ 0x19faa60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 15% 26%  3%  4%  6%  3%  6%  5%
[libx264 @ 0x19faa60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 14% 11%  4%  6% 10%  5%  7%  4%
[libx264 @ 0x19faa60] i8c dc,h,v,p: 43% 16% 35%  7%
[libx264 @ 0x19faa60] ref P L0: 63.4% 36.5%  0.1%  0.1%
[libx264 @ 0x19faa60] ref B L0: 77.0% 22.9%  0.0%  0.0%
[libx264 @ 0x19faa60] ref B L1: 92.8%  7.2%  0.0%  0.0%
[libx264 @ 0x19faa60] kb/s:1407.12
real    6m39.285s
user    22m8.460s
sys     0m1.460s
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffmpeg -loglevel info -stats -i test-interlaced.h264 -i test-interlaced.mp3 -threads 4 -c:v copy -c:a copy -movflags +faststart -y test-interlaced.mp4
ffmpeg version N-70147-ge87e206 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armv7-a --target-os=linux --enable-static --disable-shared --disable-asm --disable-yasm --enable-pic --extra-cflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --extra-cxxflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --enable-gpl --enable-nonfree --enable-version3 --disable-w32threads --disable-ffserver --enable-ffplay --extra-libs=-ldl --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-librtmp --enable-libfdk-aac --enable-libxvid --enable-libwebp --enable-libvorbis --enable-libtheora --enable-bzlib --enable-libopenjpeg --enable-libsoxr --enable-libtwolame --enable-libwavpack --enable-lzma --enable-zlib --enable-iconv
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.104 / 56. 23.104
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.101 /  5. 11.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, h264, from 'test-interlaced.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
Input #1, mp3, from 'test-interlaced.mp3':
  Metadata:
    encoder         : Lavf56.23.104
  Duration: 00:00:30.07, start: 0.025057, bitrate: 256 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Output #0, mp4, to 'test-interlaced.mp4':
  Metadata:
    encoder         : Lavf56.23.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
    Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x33d1180] pts has no value
    Last message repeated 750 times
[mp4 @ 0x33d1180] Starting second pass: moving the moov atom to the beginning of the file
frame=  751 fps=0.0 q=-1.0 Lsize=    6123kB time=00:00:30.04 bitrate=1669.7kbits/s    
video:5160kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.386589%
real    0m0.483s
user    0m0.400s
sys     0m0.270s

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Sun Mar 08, 2015 5:58 am

and for the deinterlacing

Code: Select all

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffmpeg -loglevel info -stats -i test.mpg -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y test.mp3
ffmpeg version N-70147-ge87e206 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armv7-a --target-os=linux --enable-static --disable-shared --disable-asm --disable-yasm --enable-pic --extra-cflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --extra-cxxflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --enable-gpl --enable-nonfree --enable-version3 --disable-w32threads --disable-ffserver --enable-ffplay --extra-libs=-ldl --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-librtmp --enable-libfdk-aac --enable-libxvid --enable-libwebp --enable-libvorbis --enable-libtheora --enable-bzlib --enable-libopenjpeg --enable-libsoxr --enable-libtwolame --enable-libwavpack --enable-lzma --enable-zlib --enable-iconv
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.104 / 56. 23.104
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.101 /  5. 11.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
Output #0, mp3, to 'test.mp3':
  Metadata:
    TSSE            : Lavf56.23.104
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26.100 libmp3lame
Stream mapping:
  Stream #0:1 -> #0:0 (mp2 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size=      48kB time=00:00:01.49 bitrate= 265.0kbits/s    
size=     107kB time=00:00:03.37 bitrate= 260.0kbits/s    
size=     165kB time=00:00:05.22 bitrate= 258.6kbits/s    
size=     225kB time=00:00:07.13 bitrate= 257.9kbits/s    
size=     280kB time=00:00:08.90 bitrate= 257.5kbits/s    
size=     335kB time=00:00:10.65 bitrate= 257.3kbits/s    
size=     389kB time=00:00:12.40 bitrate= 257.1kbits/s    
size=     446kB time=00:00:14.21 bitrate= 256.9kbits/s    
size=     501kB time=00:00:15.98 bitrate= 256.8kbits/s    
size=     556kB time=00:00:17.73 bitrate= 256.8kbits/s    
size=     611kB time=00:00:19.48 bitrate= 256.7kbits/s    
size=     665kB time=00:00:21.21 bitrate= 256.6kbits/s    
size=     718kB time=00:00:22.93 bitrate= 256.6kbits/s    
size=     772kB time=00:00:24.66 bitrate= 256.5kbits/s    
size=     827kB time=00:00:26.41 bitrate= 256.5kbits/s    
size=     882kB time=00:00:28.16 bitrate= 256.5kbits/s    
size=     936kB time=00:00:29.91 bitrate= 256.4kbits/s    
size=     940kB time=00:00:30.04 bitrate= 256.4kbits/s    
video:0kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.091463%
real    0m8.831s
user    0m8.590s
sys     0m0.130s
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffmpeg -loglevel info -stats -i test.mpg -threads 4 -an -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 25 -profile:v high -level 4.1 -crf 22 -coder 0 -y test.h264
ffmpeg version N-70147-ge87e206 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armv7-a --target-os=linux --enable-static --disable-shared --disable-asm --disable-yasm --enable-pic --extra-cflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --extra-cxxflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --enable-gpl --enable-nonfree --enable-version3 --disable-w32threads --disable-ffserver --enable-ffplay --extra-libs=-ldl --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-librtmp --enable-libfdk-aac --enable-libxvid --enable-libwebp --enable-libvorbis --enable-libtheora --enable-bzlib --enable-libopenjpeg --enable-libsoxr --enable-libtwolame --enable-libwavpack --enable-lzma --enable-zlib --enable-iconv
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.104 / 56. 23.104
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.101 /  5. 11.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
[Parsed_setdar_1 @ 0x23a8440] num:den syntax is deprecated, please use num/den or named options instead
[libx264 @ 0x23bbab0] using SAR=64/45
[libx264 @ 0x23bbab0] using cpu capabilities: none!
[libx264 @ 0x23bbab0] profile High, level 4.1
Output #0, h264, to 'test.h264':
  Metadata:
    encoder         : Lavf56.23.104
    Stream #0:0: Video: h264 (libx264), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.26.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=    8 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=4    
frame=   15 fps= 15 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=11    
frame=   22 fps= 14 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=18    
frame=   30 fps= 14 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=26    
frame=   35 fps= 14 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=31    
frame=   36 fps=4.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=32    
frame=   39 fps=4.7 q=27.0 size=      24kB time=-00:00:00.04 bitrate=N/A dup=0 drop=35    
frame=   40 fps=4.3 q=27.0 size=      32kB time=00:00:00.00 bitrate=N/A dup=0 drop=36    
frame=   42 fps=4.1 q=27.0 size=      37kB time=00:00:00.08 bitrate=3750.8kbits/s dup=0 drop=38    
frame=   43 fps=3.8 q=27.0 size=      48kB time=00:00:00.12 bitrate=3308.9kbits/s dup=0 drop=39    
frame=   44 fps=3.7 q=27.0 size=      53kB time=00:00:00.16 bitrate=2714.8kbits/s dup=0 drop=40    
frame=   45 fps=3.5 q=27.0 size=      67kB time=00:00:00.20 bitrate=2724.8kbits/s dup=0 drop=41    
frame=   47 fps=3.5 q=27.0 size=      83kB time=00:00:00.28 bitrate=2430.3kbits/s dup=0 drop=43    
frame=   49 fps=3.3 q=27.0 size=      90kB time=00:00:00.36 bitrate=2057.4kbits/s dup=0 drop=45    
frame=   50 fps=3.1 q=27.0 size=     104kB time=00:00:00.40 bitrate=2131.7kbits/s dup=0 drop=46    
frame=   51 fps=3.1 q=27.0 size=     109kB time=00:00:00.44 bitrate=2021.2kbits/s dup=0 drop=47    
frame=   53 fps=3.1 q=27.0 size=     122kB time=00:00:00.52 bitrate=1929.6kbits/s dup=0 drop=49    
frame=   54 fps=2.9 q=27.0 size=     127kB time=00:00:00.56 bitrate=1855.6kbits/s dup=0 drop=50    
frame=   56 fps=3.0 q=25.0 size=     138kB time=00:00:00.64 bitrate=1767.7kbits/s dup=0 drop=52    
frame=   57 fps=2.9 q=27.0 size=     143kB time=00:00:00.68 bitrate=1717.4kbits/s dup=0 drop=53    
frame=   60 fps=2.8 q=27.0 size=     190kB time=00:00:00.80 bitrate=1949.3kbits/s dup=0 drop=56    
frame=   62 fps=2.8 q=27.0 size=     197kB time=00:00:00.88 bitrate=1832.3kbits/s dup=0 drop=58    
frame=   63 fps=2.8 q=27.0 size=     208kB time=00:00:00.92 bitrate=1854.4kbits/s dup=0 drop=59    
frame=   65 fps=2.7 q=27.0 size=     216kB time=00:00:01.00 bitrate=1767.0kbits/s dup=0 drop=61    
frame=   66 fps=2.7 q=27.0 size=     225kB time=00:00:01.04 bitrate=1769.4kbits/s dup=0 drop=62    
frame=   68 fps=2.7 q=27.0 size=     233kB time=00:00:01.12 bitrate=1702.1kbits/s dup=0 drop=64    
frame=   69 fps=2.6 q=27.0 size=     243kB time=00:00:01.16 bitrate=1716.5kbits/s dup=0 drop=65    
frame=   71 fps=2.6 q=27.0 size=     251kB time=00:00:01.24 bitrate=1655.5kbits/s dup=0 drop=67    
frame=   73 fps=2.6 q=27.0 size=     264kB time=00:00:01.32 bitrate=1641.3kbits/s dup=0 drop=69    
frame=   74 fps=2.6 q=27.0 size=     268kB time=00:00:01.36 bitrate=1612.3kbits/s dup=0 drop=70    
frame=   75 fps=2.5 q=27.0 size=     275kB time=00:00:01.40 bitrate=1612.0kbits/s dup=0 drop=71    
frame=   77 fps=2.5 q=27.0 size=     281kB time=00:00:01.48 bitrate=1556.5kbits/s dup=0 drop=73    
frame=   78 fps=2.5 q=27.0 size=     292kB time=00:00:01.52 bitrate=1571.7kbits/s dup=0 drop=74    
frame=   80 fps=2.5 q=27.0 size=     298kB time=00:00:01.60 bitrate=1523.6kbits/s dup=0 drop=76    
frame=   81 fps=2.5 q=27.0 size=     307kB time=00:00:01.64 bitrate=1533.3kbits/s dup=0 drop=77    
frame=   83 fps=2.5 q=27.0 size=     314kB time=00:00:01.72 bitrate=1496.0kbits/s dup=0 drop=79    
frame=   84 fps=2.4 q=27.0 size=     322kB time=00:00:01.76 bitrate=1500.4kbits/s dup=0 drop=80    
frame=   86 fps=2.4 q=25.0 size=     330kB time=00:00:01.84 bitrate=1469.7kbits/s dup=0 drop=82    
frame=   87 fps=2.4 q=27.0 size=     337kB time=00:00:01.88 bitrate=1468.0kbits/s dup=0 drop=83    
frame=   89 fps=2.4 q=27.0 size=     395kB time=00:00:01.96 bitrate=1651.7kbits/s dup=0 drop=85    
frame=   92 fps=2.4 q=27.0 size=     412kB time=00:00:02.08 bitrate=1620.8kbits/s dup=0 drop=88    
frame=   94 fps=2.4 q=27.0 size=     422kB time=00:00:02.16 bitrate=1599.3kbits/s dup=0 drop=90    
frame=   98 fps=2.4 q=27.0 size=     434kB time=00:00:02.32 bitrate=1531.2kbits/s dup=0 drop=94    
frame=  102 fps=2.4 q=27.0 size=     441kB time=00:00:02.48 bitrate=1458.2kbits/s dup=0 drop=98    
frame=  106 fps=2.5 q=27.0 size=     451kB time=00:00:02.64 bitrate=1398.9kbits/s dup=0 drop=102    
frame=  110 fps=2.5 q=27.0 size=     459kB time=00:00:02.80 bitrate=1342.7kbits/s dup=0 drop=106    
frame=  114 fps=2.5 q=27.0 size=     471kB time=00:00:02.96 bitrate=1302.3kbits/s dup=0 drop=110    
frame=  118 fps=2.5 q=27.0 size=     482kB time=00:00:03.12 bitrate=1264.3kbits/s dup=0 drop=114    
frame=  118 fps=2.5 q=27.0 size=     482kB time=00:00:03.12 bitrate=1264.3kbits/s dup=0 drop=114    
frame=  122 fps=2.5 q=27.0 size=     490kB time=00:00:03.28 bitrate=1222.6kbits/s dup=0 drop=118    
frame=  126 fps=2.5 q=27.0 size=     497kB time=00:00:03.44 bitrate=1183.2kbits/s dup=0 drop=122    
frame=  130 fps=2.5 q=27.0 size=     504kB time=00:00:03.60 bitrate=1146.4kbits/s dup=0 drop=126    
frame=  134 fps=2.5 q=27.0 size=     512kB time=00:00:03.76 bitrate=1115.8kbits/s dup=0 drop=130    
frame=  138 fps=2.5 q=27.0 size=     542kB time=00:00:03.92 bitrate=1132.0kbits/s dup=0 drop=134    
frame=  141 fps=2.5 q=27.0 size=     562kB time=00:00:04.04 bitrate=1138.7kbits/s dup=0 drop=137    
frame=  143 fps=2.5 q=27.0 size=     574kB time=00:00:04.12 bitrate=1141.4kbits/s dup=0 drop=139    
frame=  146 fps=2.5 q=27.0 size=     587kB time=00:00:04.24 bitrate=1133.7kbits/s dup=0 drop=142    
frame=  148 fps=2.5 q=27.0 size=     590kB time=00:00:04.32 bitrate=1119.1kbits/s dup=0 drop=144    
frame=  149 fps=2.5 q=27.0 size=     598kB time=00:00:04.36 bitrate=1124.4kbits/s dup=0 drop=145    
frame=  151 fps=2.5 q=27.0 size=     602kB time=00:00:04.44 bitrate=1110.8kbits/s dup=0 drop=147    
frame=  152 fps=2.5 q=27.0 size=     615kB time=00:00:04.48 bitrate=1125.4kbits/s dup=0 drop=148    
frame=  155 fps=2.5 q=27.0 size=     630kB time=00:00:04.60 bitrate=1122.1kbits/s dup=0 drop=151    
frame=  157 fps=2.5 q=27.0 size=     634kB time=00:00:04.68 bitrate=1110.0kbits/s dup=0 drop=153    
frame=  158 fps=2.5 q=27.0 size=     644kB time=00:00:04.72 bitrate=1118.1kbits/s dup=0 drop=154    
frame=  161 fps=2.5 q=27.0 size=     658kB time=00:00:04.84 bitrate=1112.9kbits/s dup=0 drop=157    
frame=  164 fps=2.5 q=27.0 size=     674kB time=00:00:04.96 bitrate=1112.4kbits/s dup=0 drop=160    
frame=  167 fps=2.5 q=27.0 size=     685kB time=00:00:05.08 bitrate=1105.4kbits/s dup=0 drop=163    
frame=  170 fps=2.6 q=27.0 size=     692kB time=00:00:05.20 bitrate=1090.1kbits/s dup=0 drop=166    
frame=  171 fps=2.6 q=27.0 size=     700kB time=00:00:05.24 bitrate=1094.2kbits/s dup=0 drop=167    
frame=  174 fps=2.6 q=27.0 size=     712kB time=00:00:05.36 bitrate=1087.7kbits/s dup=0 drop=170    
frame=  176 fps=2.6 q=27.0 size=     715kB time=00:00:05.44 bitrate=1077.1kbits/s dup=0 drop=172    
frame=  178 fps=2.6 q=27.0 size=     727kB time=00:00:05.52 bitrate=1079.1kbits/s dup=0 drop=174    
frame=  180 fps=2.6 q=27.0 size=     737kB time=00:00:05.60 bitrate=1078.2kbits/s dup=0 drop=176    
frame=  183 fps=2.6 q=27.0 size=     749kB time=00:00:05.72 bitrate=1072.9kbits/s dup=0 drop=179    
frame=  185 fps=2.6 q=27.0 size=     753kB time=00:00:05.80 bitrate=1063.4kbits/s dup=0 drop=181    
frame=  186 fps=2.6 q=27.0 size=     761kB time=00:00:05.84 bitrate=1067.5kbits/s dup=0 drop=182    
frame=  188 fps=2.6 q=27.0 size=     765kB time=00:00:05.92 bitrate=1058.7kbits/s dup=0 drop=184    
frame=  189 fps=2.6 q=27.0 size=     775kB time=00:00:05.96 bitrate=1064.7kbits/s dup=0 drop=185    
frame=  191 fps=2.6 q=27.0 size=     778kB time=00:00:06.04 bitrate=1055.7kbits/s dup=0 drop=187    
frame=  193 fps=2.6 q=27.0 size=     790kB time=00:00:06.12 bitrate=1057.4kbits/s dup=0 drop=189    
frame=  196 fps=2.6 q=27.0 size=     800kB time=00:00:06.24 bitrate=1050.2kbits/s dup=0 drop=192    
frame=  199 fps=2.6 q=27.0 size=     811kB time=00:00:06.36 bitrate=1044.0kbits/s dup=0 drop=195    
frame=  200 fps=2.6 q=27.0 size=     813kB time=00:00:06.40 bitrate=1040.2kbits/s dup=0 drop=196    
frame=  201 fps=2.6 q=27.0 size=     814kB time=00:00:06.44 bitrate=1036.0kbits/s dup=0 drop=197    
frame=  204 fps=2.6 q=27.0 size=     825kB time=00:00:06.56 bitrate=1030.7kbits/s dup=0 drop=200    
frame=  205 fps=2.6 q=27.0 size=     832kB time=00:00:06.60 bitrate=1032.2kbits/s dup=0 drop=201    
frame=  207 fps=2.6 q=27.0 size=     836kB time=00:00:06.68 bitrate=1024.8kbits/s dup=0 drop=203    
frame=  208 fps=2.6 q=27.0 size=     841kB time=00:00:06.72 bitrate=1025.6kbits/s dup=0 drop=204    
frame=  211 fps=2.6 q=27.0 size=     850kB time=00:00:06.84 bitrate=1018.3kbits/s dup=0 drop=207    
frame=  214 fps=2.6 q=27.0 size=     904kB time=00:00:06.96 bitrate=1063.5kbits/s dup=0 drop=210    
frame=  217 fps=2.6 q=27.0 size=     923kB time=00:00:07.08 bitrate=1067.4kbits/s dup=0 drop=213    
frame=  217 fps=2.6 q=27.0 size=     923kB time=00:00:07.08 bitrate=1067.4kbits/s dup=0 drop=213    
frame=  218 fps=2.6 q=27.0 size=     927kB time=00:00:07.12 bitrate=1066.0kbits/s dup=0 drop=214    
frame=  219 fps=2.6 q=27.0 size=     931kB time=00:00:07.16 bitrate=1065.1kbits/s dup=0 drop=215    
frame=  221 fps=2.6 q=27.0 size=     946kB time=00:00:07.24 bitrate=1070.7kbits/s dup=0 drop=217    
frame=  222 fps=2.5 q=27.0 size=     950kB time=00:00:07.28 bitrate=1068.8kbits/s dup=0 drop=218    
frame=  223 fps=2.5 q=27.0 size=     962kB time=00:00:07.32 bitrate=1076.7kbits/s dup=0 drop=219    
frame=  225 fps=2.5 q=27.0 size=     970kB time=00:00:07.40 bitrate=1073.4kbits/s dup=0 drop=221    
frame=  227 fps=2.5 q=27.0 size=     987kB time=00:00:07.48 bitrate=1080.9kbits/s dup=0 drop=223    
frame=  228 fps=2.5 q=27.0 size=     991kB time=00:00:07.52 bitrate=1079.4kbits/s dup=0 drop=224    
frame=  230 fps=2.5 q=27.0 size=    1007kB time=00:00:07.60 bitrate=1085.6kbits/s dup=0 drop=226    
frame=  230 fps=2.5 q=27.0 size=    1007kB time=00:00:07.60 bitrate=1085.6kbits/s dup=0 drop=226    
frame=  232 fps=2.5 q=27.0 size=    1023kB time=00:00:07.68 bitrate=1091.6kbits/s dup=0 drop=228    
frame=  234 fps=2.5 q=27.0 size=    1030kB time=00:00:07.76 bitrate=1087.5kbits/s dup=0 drop=230    
frame=  235 fps=2.5 q=27.0 size=    1042kB time=00:00:07.80 bitrate=1093.9kbits/s dup=0 drop=231    
frame=  237 fps=2.5 q=27.0 size=    1061kB time=00:00:07.88 bitrate=1102.7kbits/s dup=0 drop=233    
frame=  239 fps=2.5 q=27.0 size=    1078kB time=00:00:07.96 bitrate=1109.9kbits/s dup=0 drop=235    
frame=  241 fps=2.5 q=27.0 size=    1086kB time=00:00:08.04 bitrate=1106.4kbits/s dup=0 drop=237    
frame=  242 fps=2.4 q=27.0 size=    1100kB time=00:00:08.08 bitrate=1115.1kbits/s dup=0 drop=238    
frame=  244 fps=2.4 q=27.0 size=    1107kB time=00:00:08.16 bitrate=1110.9kbits/s dup=0 drop=240    
frame=  245 fps=2.4 q=27.0 size=    1119kB time=00:00:08.20 bitrate=1117.4kbits/s dup=0 drop=241    
frame=  247 fps=2.4 q=27.0 size=    1124kB time=00:00:08.28 bitrate=1112.0kbits/s dup=0 drop=243    
frame=  248 fps=2.4 q=27.0 size=    1134kB time=00:00:08.32 bitrate=1116.6kbits/s dup=0 drop=244    
frame=  250 fps=2.4 q=27.0 size=    1150kB time=00:00:08.40 bitrate=1121.4kbits/s dup=0 drop=246    
frame=  252 fps=2.4 q=27.0 size=    1157kB time=00:00:08.48 bitrate=1117.6kbits/s dup=0 drop=248    
frame=  253 fps=2.4 q=27.0 size=    1169kB time=00:00:08.52 bitrate=1124.4kbits/s dup=0 drop=249    
frame=  255 fps=2.4 q=27.0 size=    1176kB time=00:00:08.60 bitrate=1120.1kbits/s dup=0 drop=251    
frame=  256 fps=2.4 q=27.0 size=    1188kB time=00:00:08.64 bitrate=1126.4kbits/s dup=0 drop=252    
frame=  258 fps=2.4 q=27.0 size=    1195kB time=00:00:08.72 bitrate=1122.7kbits/s dup=0 drop=254    
frame=  260 fps=2.4 q=27.0 size=    1210kB time=00:00:08.80 bitrate=1126.3kbits/s dup=0 drop=256    
frame=  261 fps=2.4 q=27.0 size=    1213kB time=00:00:08.84 bitrate=1124.3kbits/s dup=0 drop=257    
frame=  262 fps=2.4 q=27.0 size=    1222kB time=00:00:08.88 bitrate=1127.4kbits/s dup=0 drop=258    
frame=  264 fps=2.4 q=27.0 size=    1228kB time=00:00:08.96 bitrate=1122.5kbits/s dup=0 drop=260    
frame=  265 fps=2.4 q=24.0 size=    1234kB time=00:00:09.00 bitrate=1123.3kbits/s dup=0 drop=261    
frame=  266 fps=2.4 q=27.0 size=    1237kB time=00:00:09.04 bitrate=1121.4kbits/s dup=0 drop=262    
frame=  268 fps=2.4 q=27.0 size=    1304kB time=00:00:09.12 bitrate=1171.5kbits/s dup=0 drop=264    
frame=  270 fps=2.4 q=27.0 size=    1320kB time=00:00:09.20 bitrate=1175.2kbits/s dup=0 drop=266    
frame=  271 fps=2.4 q=27.0 size=    1333kB time=00:00:09.24 bitrate=1181.5kbits/s dup=0 drop=267    
frame=  273 fps=2.4 q=27.0 size=    1355kB time=00:00:09.32 bitrate=1190.6kbits/s dup=0 drop=269    
frame=  275 fps=2.4 q=27.0 size=    1367kB time=00:00:09.40 bitrate=1191.8kbits/s dup=0 drop=271    
frame=  277 fps=2.4 q=27.0 size=    1380kB time=00:00:09.48 bitrate=1192.6kbits/s dup=0 drop=273    
frame=  279 fps=2.4 q=27.0 size=    1398kB time=00:00:09.56 bitrate=1198.3kbits/s dup=0 drop=275    
frame=  281 fps=2.3 q=27.0 size=    1413kB time=00:00:09.64 bitrate=1200.8kbits/s dup=0 drop=277    
frame=  283 fps=2.3 q=27.0 size=    1429kB time=00:00:09.72 bitrate=1204.7kbits/s dup=0 drop=279    
frame=  285 fps=2.3 q=27.0 size=    1449kB time=00:00:09.80 bitrate=1211.4kbits/s dup=0 drop=281    
frame=  287 fps=2.3 q=27.0 size=    1466kB time=00:00:09.88 bitrate=1215.5kbits/s dup=0 drop=283    
frame=  289 fps=2.3 q=27.0 size=    1484kB time=00:00:09.96 bitrate=1220.2kbits/s dup=0 drop=285    
frame=  291 fps=2.3 q=27.0 size=    1504kB time=00:00:10.04 bitrate=1227.3kbits/s dup=0 drop=287    
frame=  293 fps=2.3 q=27.0 size=    1522kB time=00:00:10.12 bitrate=1231.7kbits/s dup=0 drop=289    
frame=  295 fps=2.3 q=27.0 size=    1541kB time=00:00:10.20 bitrate=1237.8kbits/s dup=0 drop=291    
frame=  297 fps=2.3 q=27.0 size=    1564kB time=00:00:10.28 bitrate=1246.4kbits/s dup=0 drop=293    
frame=  299 fps=2.3 q=27.0 size=    1584kB time=00:00:10.36 bitrate=1252.4kbits/s dup=0 drop=295    
frame=  301 fps=2.3 q=27.0 size=    1606kB time=00:00:10.44 bitrate=1260.0kbits/s dup=0 drop=297    
frame=  303 fps=2.3 q=27.0 size=    1628kB time=00:00:10.52 bitrate=1268.0kbits/s dup=0 drop=299    
frame=  305 fps=2.3 q=27.0 size=    1649kB time=00:00:10.60 bitrate=1274.4kbits/s dup=0 drop=301    
frame=  308 fps=2.3 q=27.0 size=    1667kB time=00:00:10.72 bitrate=1273.9kbits/s dup=0 drop=304    
frame=  309 fps=2.3 q=27.0 size=    1686kB time=00:00:10.76 bitrate=1283.5kbits/s dup=0 drop=305    
frame=  312 fps=2.3 q=27.0 size=    1705kB time=00:00:10.88 bitrate=1283.5kbits/s dup=0 drop=308    
frame=  313 fps=2.3 q=27.0 size=    1718kB time=00:00:10.92 bitrate=1288.7kbits/s dup=0 drop=309    
frame=  315 fps=2.3 q=27.0 size=    1736kB time=00:00:11.00 bitrate=1292.9kbits/s dup=0 drop=311    
frame=  317 fps=2.3 q=27.0 size=    1752kB time=00:00:11.08 bitrate=1295.7kbits/s dup=0 drop=313    
frame=  319 fps=2.3 q=27.0 size=    1771kB time=00:00:11.16 bitrate=1300.2kbits/s dup=0 drop=315    
frame=  321 fps=2.3 q=27.0 size=    1791kB time=00:00:11.24 bitrate=1305.4kbits/s dup=0 drop=317    
frame=  323 fps=2.3 q=27.0 size=    1810kB time=00:00:11.32 bitrate=1309.8kbits/s dup=0 drop=319    
frame=  325 fps=2.3 q=27.0 size=    1828kB time=00:00:11.40 bitrate=1313.3kbits/s dup=0 drop=321    
frame=  327 fps=2.2 q=27.0 size=    1849kB time=00:00:11.48 bitrate=1319.5kbits/s dup=0 drop=323    
frame=  329 fps=2.2 q=27.0 size=    1868kB time=00:00:11.56 bitrate=1323.5kbits/s dup=0 drop=325    
frame=  331 fps=2.2 q=27.0 size=    1887kB time=00:00:11.64 bitrate=1328.3kbits/s dup=0 drop=327    
frame=  333 fps=2.2 q=27.0 size=    1910kB time=00:00:11.72 bitrate=1335.4kbits/s dup=0 drop=329    
frame=  335 fps=2.2 q=27.0 size=    1931kB time=00:00:11.80 bitrate=1340.6kbits/s dup=0 drop=331    
frame=  337 fps=2.2 q=27.0 size=    1952kB time=00:00:11.88 bitrate=1346.1kbits/s dup=0 drop=333    
frame=  339 fps=2.2 q=27.0 size=    1973kB time=00:00:11.96 bitrate=1351.7kbits/s dup=0 drop=335    
frame=  341 fps=2.2 q=27.0 size=    1994kB time=00:00:12.04 bitrate=1356.4kbits/s dup=0 drop=337    
frame=  343 fps=2.2 q=27.0 size=    2011kB time=00:00:12.12 bitrate=1359.1kbits/s dup=0 drop=339    
frame=  344 fps=2.2 q=27.0 size=    2015kB time=00:00:12.16 bitrate=1357.7kbits/s dup=0 drop=340    
frame=  346 fps=2.2 q=24.0 size=    2033kB time=00:00:12.24 bitrate=1360.3kbits/s dup=0 drop=342    
frame=  347 fps=2.2 q=27.0 size=    2040kB time=00:00:12.28 bitrate=1361.0kbits/s dup=0 drop=343    
frame=  349 fps=2.2 q=27.0 size=    2086kB time=00:00:12.36 bitrate=1382.9kbits/s dup=0 drop=345    
frame=  351 fps=2.2 q=27.0 size=    2099kB time=00:00:12.44 bitrate=1382.2kbits/s dup=0 drop=347    
frame=  352 fps=2.2 q=27.0 size=    2101kB time=00:00:12.48 bitrate=1378.8kbits/s dup=0 drop=348    
frame=  354 fps=2.2 q=27.0 size=    2113kB time=00:00:12.56 bitrate=1377.9kbits/s dup=0 drop=350    
frame=  356 fps=2.2 q=27.0 size=    2118kB time=00:00:12.64 bitrate=1372.8kbits/s dup=0 drop=352    
frame=  358 fps=2.2 q=27.0 size=    2130kB time=00:00:12.72 bitrate=1372.1kbits/s dup=0 drop=354    
frame=  360 fps=2.2 q=27.0 size=    2136kB time=00:00:12.80 bitrate=1366.7kbits/s dup=0 drop=356    
frame=  362 fps=2.2 q=27.0 size=    2149kB time=00:00:12.88 bitrate=1366.6kbits/s dup=0 drop=358    
frame=  364 fps=2.2 q=27.0 size=    2154kB time=00:00:12.96 bitrate=1361.8kbits/s dup=0 drop=360    
frame=  366 fps=2.2 q=27.0 size=    2168kB time=00:00:13.04 bitrate=1362.3kbits/s dup=0 drop=362    
frame=  368 fps=2.2 q=27.0 size=    2176kB time=00:00:13.12 bitrate=1358.6kbits/s dup=0 drop=364    
frame=  370 fps=2.2 q=27.0 size=    2190kB time=00:00:13.20 bitrate=1359.3kbits/s dup=0 drop=366    
frame=  372 fps=2.2 q=27.0 size=    2196kB time=00:00:13.28 bitrate=1354.8kbits/s dup=0 drop=368    
frame=  373 fps=2.2 q=27.0 size=    2208kB time=00:00:13.32 bitrate=1358.0kbits/s dup=0 drop=369    
frame=  374 fps=2.2 q=27.0 size=    2211kB time=00:00:13.36 bitrate=1356.0kbits/s dup=0 drop=370    
frame=  375 fps=2.2 q=27.0 size=    2215kB time=00:00:13.40 bitrate=1354.2kbits/s dup=0 drop=371    
frame=  377 fps=2.2 q=27.0 size=    2231kB time=00:00:13.48 bitrate=1355.6kbits/s dup=0 drop=373    
frame=  379 fps=2.2 q=27.0 size=    2246kB time=00:00:13.56 bitrate=1356.6kbits/s dup=0 drop=375    
frame=  379 fps=2.2 q=27.0 size=    2246kB time=00:00:13.56 bitrate=1356.6kbits/s dup=0 drop=375    
frame=  381 fps=2.2 q=27.0 size=    2252kB time=00:00:13.64 bitrate=1352.5kbits/s dup=0 drop=377    
frame=  382 fps=2.2 q=27.0 size=    2264kB time=00:00:13.68 bitrate=1355.7kbits/s dup=0 drop=378    
frame=  384 fps=2.2 q=27.0 size=    2271kB time=00:00:13.76 bitrate=1351.8kbits/s dup=0 drop=380    
frame=  385 fps=2.2 q=27.0 size=    2283kB time=00:00:13.80 bitrate=1355.5kbits/s dup=0 drop=381    
frame=  387 fps=2.2 q=27.0 size=    2290kB time=00:00:13.88 bitrate=1351.6kbits/s dup=0 drop=383    
frame=  388 fps=2.1 q=27.0 size=    2303kB time=00:00:13.92 bitrate=1355.5kbits/s dup=0 drop=384    
frame=  390 fps=2.1 q=27.0 size=    2310kB time=00:00:14.00 bitrate=1351.8kbits/s dup=0 drop=386    
frame=  391 fps=2.1 q=27.0 size=    2325kB time=00:00:14.04 bitrate=1356.7kbits/s dup=0 drop=387    
frame=  392 fps=2.1 q=27.0 size=    2330kB time=00:00:14.08 bitrate=1355.5kbits/s dup=0 drop=388    
frame=  394 fps=2.1 q=27.0 size=    2349kB time=00:00:14.16 bitrate=1358.9kbits/s dup=0 drop=390    
frame=  394 fps=2.1 q=27.0 size=    2349kB time=00:00:14.16 bitrate=1358.9kbits/s dup=0 drop=390    
frame=  396 fps=2.1 q=27.0 size=    2358kB time=00:00:14.24 bitrate=1356.3kbits/s dup=0 drop=392    
frame=  397 fps=2.1 q=27.0 size=    2372kB time=00:00:14.28 bitrate=1360.7kbits/s dup=0 drop=393    
frame=  399 fps=2.1 q=27.0 size=    2379kB time=00:00:14.36 bitrate=1357.4kbits/s dup=0 drop=395    
frame=  400 fps=2.1 q=27.0 size=    2394kB time=00:00:14.40 bitrate=1362.1kbits/s dup=0 drop=396    
frame=  402 fps=2.1 q=27.0 size=    2401kB time=00:00:14.48 bitrate=1358.4kbits/s dup=0 drop=398    
frame=  403 fps=2.1 q=27.0 size=    2413kB time=00:00:14.52 bitrate=1361.3kbits/s dup=0 drop=399    
frame=  404 fps=2.1 q=27.0 size=    2415kB time=00:00:14.56 bitrate=1358.9kbits/s dup=0 drop=400    
frame=  406 fps=2.1 q=27.0 size=    2428kB time=00:00:14.64 bitrate=1358.5kbits/s dup=0 drop=402    
frame=  407 fps=2.1 q=27.0 size=    2430kB time=00:00:14.68 bitrate=1356.1kbits/s dup=0 drop=403    
frame=  409 fps=2.1 q=27.0 size=    2439kB time=00:00:14.76 bitrate=1353.7kbits/s dup=0 drop=405    
frame=  410 fps=2.1 q=24.0 size=    2442kB time=00:00:14.80 bitrate=1351.6kbits/s dup=0 drop=406    
frame=  411 fps=2.1 q=27.0 size=    2445kB time=00:00:14.84 bitrate=1349.5kbits/s dup=0 drop=407    
frame=  414 fps=2.1 q=27.0 size=    2496kB time=00:00:14.96 bitrate=1366.9kbits/s dup=0 drop=410    
frame=  416 fps=2.1 q=27.0 size=    2502kB time=00:00:15.04 bitrate=1362.8kbits/s dup=0 drop=412    
frame=  417 fps=2.1 q=27.0 size=    2514kB time=00:00:15.08 bitrate=1365.5kbits/s dup=0 drop=413    
frame=  418 fps=2.1 q=27.0 size=    2517kB time=00:00:15.12 bitrate=1363.8kbits/s dup=0 drop=414    
frame=  419 fps=2.1 q=27.0 size=    2520kB time=00:00:15.16 bitrate=1361.7kbits/s dup=0 drop=415    
frame=  420 fps=2.1 q=27.0 size=    2531kB time=00:00:15.20 bitrate=1364.0kbits/s dup=0 drop=416    
frame=  421 fps=2.1 q=27.0 size=    2534kB time=00:00:15.24 bitrate=1362.1kbits/s dup=0 drop=417    
frame=  423 fps=2.1 q=27.0 size=    2548kB time=00:00:15.32 bitrate=1362.5kbits/s dup=0 drop=419    
frame=  424 fps=2.1 q=27.0 size=    2551kB time=00:00:15.36 bitrate=1360.5kbits/s dup=0 drop=420    
frame=  426 fps=2.1 q=27.0 size=    2564kB time=00:00:15.44 bitrate=1360.3kbits/s dup=0 drop=422    
frame=  426 fps=2.1 q=27.0 size=    2564kB time=00:00:15.44 bitrate=1360.3kbits/s dup=0 drop=422    
frame=  428 fps=2.1 q=27.0 size=    2570kB time=00:00:15.52 bitrate=1356.6kbits/s dup=0 drop=424    
frame=  429 fps=2.1 q=27.0 size=    2582kB time=00:00:15.56 bitrate=1359.6kbits/s dup=0 drop=425    
frame=  431 fps=2.1 q=27.0 size=    2590kB time=00:00:15.64 bitrate=1356.6kbits/s dup=0 drop=427    
frame=  433 fps=2.1 q=27.0 size=    2607kB time=00:00:15.72 bitrate=1358.5kbits/s dup=0 drop=429    
frame=  435 fps=2.1 q=27.0 size=    2620kB time=00:00:15.80 bitrate=1358.3kbits/s dup=0 drop=431    
frame=  436 fps=2.1 q=27.0 size=    2623kB time=00:00:15.84 bitrate=1356.4kbits/s dup=0 drop=432    
frame=  437 fps=2.1 q=24.0 size=    2626kB time=00:00:15.88 bitrate=1354.5kbits/s dup=0 drop=433    
frame=  440 fps=2.1 q=27.0 size=    2680kB time=00:00:16.00 bitrate=1372.3kbits/s dup=0 drop=436    
frame=  441 fps=2.1 q=27.0 size=    2693kB time=00:00:16.04 bitrate=1375.2kbits/s dup=0 drop=437    
frame=  443 fps=2.1 q=27.0 size=    2697kB time=00:00:16.12 bitrate=1370.7kbits/s dup=0 drop=439    
frame=  444 fps=2.1 q=27.0 size=    2710kB time=00:00:16.16 bitrate=1373.8kbits/s dup=0 drop=440    
frame=  446 fps=2.1 q=27.0 size=    2714kB time=00:00:16.24 bitrate=1369.1kbits/s dup=0 drop=442    
frame=  447 fps=2.1 q=27.0 size=    2726kB time=00:00:16.28 bitrate=1371.6kbits/s dup=0 drop=443    
frame=  449 fps=2.1 q=27.0 size=    2730kB time=00:00:16.36 bitrate=1366.9kbits/s dup=0 drop=445    
frame=  451 fps=2.1 q=27.0 size=    2745kB time=00:00:16.44 bitrate=1367.9kbits/s dup=0 drop=447    
frame=  451 fps=2.1 q=27.0 size=    2745kB time=00:00:16.44 bitrate=1367.9kbits/s dup=0 drop=447    
frame=  453 fps=2.1 q=27.0 size=    2761kB time=00:00:16.52 bitrate=1368.9kbits/s dup=0 drop=449    
frame=  454 fps=2.1 q=27.0 size=    2765kB time=00:00:16.56 bitrate=1367.6kbits/s dup=0 drop=450    
frame=  457 fps=2.1 q=27.0 size=    2780kB time=00:00:16.68 bitrate=1365.4kbits/s dup=0 drop=453    
frame=  460 fps=2.1 q=27.0 size=    2795kB time=00:00:16.80 bitrate=1362.7kbits/s dup=0 drop=456    
frame=  461 fps=2.1 q=27.0 size=    2796kB time=00:00:16.84 bitrate=1360.3kbits/s dup=0 drop=457    
frame=  462 fps=2.1 q=27.0 size=    2798kB time=00:00:16.88 bitrate=1357.8kbits/s dup=0 drop=458    
frame=  464 fps=2.1 q=27.0 size=    2810kB time=00:00:16.96 bitrate=1357.0kbits/s dup=0 drop=460    
frame=  466 fps=2.1 q=27.0 size=    2822kB time=00:00:17.04 bitrate=1356.9kbits/s dup=0 drop=462    
frame=  468 fps=2.1 q=27.0 size=    2826kB time=00:00:17.12 bitrate=1352.3kbits/s dup=0 drop=464    
frame=  469 fps=2.1 q=27.0 size=    2838kB time=00:00:17.16 bitrate=1354.6kbits/s dup=0 drop=465    
frame=  471 fps=2.1 q=27.0 size=    2842kB time=00:00:17.24 bitrate=1350.5kbits/s dup=0 drop=467    
frame=  472 fps=2.1 q=27.0 size=    2855kB time=00:00:17.28 bitrate=1353.3kbits/s dup=0 drop=468    
frame=  473 fps=2.1 q=27.0 size=    2856kB time=00:00:17.32 bitrate=1351.1kbits/s dup=0 drop=469    
frame=  475 fps=2.1 q=27.0 size=    2871kB time=00:00:17.40 bitrate=1351.6kbits/s dup=0 drop=471    
frame=  477 fps=2.1 q=27.0 size=    2876kB time=00:00:17.48 bitrate=1347.7kbits/s dup=0 drop=473    
frame=  477 fps=2.1 q=27.0 size=    2876kB time=00:00:17.48 bitrate=1347.7kbits/s dup=0 drop=473    
frame=  478 fps=2.1 q=27.0 size=    2888kB time=00:00:17.52 bitrate=1350.4kbits/s dup=0 drop=474    
frame=  480 fps=2.1 q=27.0 size=    2892kB time=00:00:17.60 bitrate=1346.3kbits/s dup=0 drop=476    
frame=  481 fps=2.1 q=27.0 size=    2904kB time=00:00:17.64 bitrate=1348.8kbits/s dup=0 drop=477    
frame=  482 fps=2.1 q=27.0 size=    2908kB time=00:00:17.68 bitrate=1347.3kbits/s dup=0 drop=478    
frame=  485 fps=2.1 q=27.0 size=    2923kB time=00:00:17.80 bitrate=1345.3kbits/s dup=0 drop=481    
frame=  487 fps=2.1 q=27.0 size=    2927kB time=00:00:17.88 bitrate=1341.1kbits/s dup=0 drop=483    
frame=  488 fps=2.1 q=27.0 size=    2938kB time=00:00:17.92 bitrate=1343.3kbits/s dup=0 drop=484    
frame=  490 fps=2.1 q=27.0 size=    2942kB time=00:00:18.00 bitrate=1339.0kbits/s dup=0 drop=486    
frame=  492 fps=2.0 q=27.0 size=    2953kB time=00:00:18.08 bitrate=1338.0kbits/s dup=0 drop=488    
frame=  495 fps=2.0 q=24.0 size=    2960kB time=00:00:18.20 bitrate=1332.2kbits/s dup=0 drop=491    
frame=  497 fps=2.0 q=27.0 size=    2964kB time=00:00:18.28 bitrate=1328.3kbits/s dup=0 drop=493    
frame=  499 fps=2.0 q=27.0 size=    3014kB time=00:00:18.36 bitrate=1344.8kbits/s dup=0 drop=495    
frame=  501 fps=2.0 q=27.0 size=    3020kB time=00:00:18.44 bitrate=1341.5kbits/s dup=0 drop=497    
frame=  502 fps=2.0 q=27.0 size=    3033kB time=00:00:18.48 bitrate=1344.7kbits/s dup=0 drop=498    
frame=  503 fps=2.0 q=27.0 size=    3036kB time=00:00:18.52 bitrate=1343.0kbits/s dup=0 drop=499    
frame=  505 fps=2.0 q=27.0 size=    3054kB time=00:00:18.60 bitrate=1344.9kbits/s dup=0 drop=501    
frame=  506 fps=2.0 q=27.0 size=    3058kB time=00:00:18.64 bitrate=1343.8kbits/s dup=0 drop=502    
frame=  509 fps=2.0 q=27.0 size=    3075kB time=00:00:18.76 bitrate=1342.9kbits/s dup=0 drop=505    
frame=  510 fps=2.0 q=27.0 size=    3079kB time=00:00:18.80 bitrate=1341.8kbits/s dup=0 drop=506    
frame=  512 fps=2.0 q=27.0 size=    3084kB time=00:00:18.88 bitrate=1338.1kbits/s dup=0 drop=508    
frame=  513 fps=2.0 q=27.0 size=    3096kB time=00:00:18.92 bitrate=1340.4kbits/s dup=0 drop=509    
frame=  515 fps=2.0 q=27.0 size=    3103kB time=00:00:19.00 bitrate=1337.7kbits/s dup=0 drop=511    
frame=  517 fps=2.0 q=27.0 size=    3116kB time=00:00:19.08 bitrate=1337.8kbits/s dup=0 drop=513    
frame=  519 fps=2.0 q=27.0 size=    3123kB time=00:00:19.16 bitrate=1335.1kbits/s dup=0 drop=515    
frame=  521 fps=2.0 q=27.0 size=    3136kB time=00:00:19.24 bitrate=1335.2kbits/s dup=0 drop=517    
frame=  523 fps=2.0 q=27.0 size=    3141kB time=00:00:19.32 bitrate=1331.8kbits/s dup=0 drop=519    
frame=  524 fps=2.0 q=27.0 size=    3154kB time=00:00:19.36 bitrate=1334.5kbits/s dup=0 drop=520    
frame=  525 fps=2.0 q=27.0 size=    3157kB time=00:00:19.40 bitrate=1332.9kbits/s dup=0 drop=521    
frame=  526 fps=2.0 q=27.0 size=    3159kB time=00:00:19.44 bitrate=1331.1kbits/s dup=0 drop=522    
frame=  527 fps=2.0 q=27.0 size=    3171kB time=00:00:19.48 bitrate=1333.5kbits/s dup=0 drop=523    
frame=  529 fps=2.0 q=27.0 size=    3176kB time=00:00:19.56 bitrate=1330.3kbits/s dup=0 drop=525    
frame=  530 fps=2.0 q=27.0 size=    3188kB time=00:00:19.60 bitrate=1332.6kbits/s dup=0 drop=526    
frame=  532 fps=2.0 q=27.0 size=    3194kB time=00:00:19.68 bitrate=1329.3kbits/s dup=0 drop=528    
frame=  533 fps=2.0 q=27.0 size=    3205kB time=00:00:19.72 bitrate=1331.3kbits/s dup=0 drop=529    
frame=  534 fps=2.0 q=27.0 size=    3207kB time=00:00:19.76 bitrate=1329.7kbits/s dup=0 drop=530    
frame=  535 fps=2.0 q=27.0 size=    3210kB time=00:00:19.80 bitrate=1328.1kbits/s dup=0 drop=531    
frame=  537 fps=2.0 q=27.0 size=    3226kB time=00:00:19.88 bitrate=1329.4kbits/s dup=0 drop=533    
frame=  538 fps=2.0 q=27.0 size=    3229kB time=00:00:19.92 bitrate=1327.8kbits/s dup=0 drop=534    
frame=  539 fps=2.0 q=27.0 size=    3241kB time=00:00:19.96 bitrate=1330.1kbits/s dup=0 drop=535    
frame=  541 fps=2.0 q=27.0 size=    3246kB time=00:00:20.04 bitrate=1326.8kbits/s dup=0 drop=537    
frame=  543 fps=2.0 q=27.0 size=    3263kB time=00:00:20.12 bitrate=1328.4kbits/s dup=0 drop=539    
frame=  546 fps=2.0 q=27.0 size=    3278kB time=00:00:20.24 bitrate=1326.6kbits/s dup=0 drop=542    
frame=  547 fps=2.0 q=27.0 size=    3282kB time=00:00:20.28 bitrate=1325.9kbits/s dup=0 drop=543    
frame=  549 fps=2.0 q=27.0 size=    3287kB time=00:00:20.36 bitrate=1322.5kbits/s dup=0 drop=545    
frame=  550 fps=2.0 q=27.0 size=    3295kB time=00:00:20.40 bitrate=1323.3kbits/s dup=0 drop=546    
frame=  551 fps=2.0 q=27.0 size=    3300kB time=00:00:20.44 bitrate=1322.6kbits/s dup=0 drop=547    
frame=  554 fps=2.0 q=27.0 size=    3309kB time=00:00:20.56 bitrate=1318.6kbits/s dup=0 drop=550    
frame=  556 fps=2.0 q=27.0 size=    3356kB time=00:00:20.64 bitrate=1331.9kbits/s dup=0 drop=552    
frame=  558 fps=2.0 q=27.0 size=    3370kB time=00:00:20.72 bitrate=1332.5kbits/s dup=0 drop=554    
frame=  559 fps=2.0 q=27.0 size=    3373kB time=00:00:20.76 bitrate=1331.0kbits/s dup=0 drop=555    
frame=  560 fps=2.0 q=27.0 size=    3389kB time=00:00:20.80 bitrate=1334.6kbits/s dup=0 drop=556    
frame=  562 fps=2.0 q=27.0 size=    3393kB time=00:00:20.88 bitrate=1331.2kbits/s dup=0 drop=558    
frame=  563 fps=2.0 q=27.0 size=    3403kB time=00:00:20.92 bitrate=1332.6kbits/s dup=0 drop=559    
frame=  564 fps=2.0 q=27.0 size=    3407kB time=00:00:20.96 bitrate=1331.4kbits/s dup=0 drop=560    
frame=  567 fps=2.0 q=27.0 size=    3420kB time=00:00:21.08 bitrate=1329.2kbits/s dup=0 drop=563    
frame=  569 fps=2.0 q=27.0 size=    3425kB time=00:00:21.16 bitrate=1326.0kbits/s dup=0 drop=565    
frame=  570 fps=2.0 q=27.0 size=    3435kB time=00:00:21.20 bitrate=1327.4kbits/s dup=0 drop=566    
frame=  572 fps=2.0 q=27.0 size=    3440kB time=00:00:21.28 bitrate=1324.4kbits/s dup=0 drop=568    
frame=  572 fps=2.0 q=27.0 size=    3440kB time=00:00:21.28 bitrate=1324.4kbits/s dup=0 drop=568    
frame=  574 fps=2.0 q=27.0 size=    3454kB time=00:00:21.36 bitrate=1324.7kbits/s dup=0 drop=570    
frame=  575 fps=2.0 q=27.0 size=    3456kB time=00:00:21.40 bitrate=1323.1kbits/s dup=0 drop=571    
frame=  576 fps=2.0 q=27.0 size=    3469kB time=00:00:21.44 bitrate=1325.3kbits/s dup=0 drop=572    
frame=  578 fps=2.0 q=27.0 size=    3474kB time=00:00:21.52 bitrate=1322.4kbits/s dup=0 drop=574    
frame=  579 fps=2.0 q=27.0 size=    3486kB time=00:00:21.56 bitrate=1324.5kbits/s dup=0 drop=575    
frame=  581 fps=2.0 q=27.0 size=    3491kB time=00:00:21.64 bitrate=1321.7kbits/s dup=0 drop=577    
frame=  582 fps=2.0 q=27.0 size=    3504kB time=00:00:21.68 bitrate=1323.9kbits/s dup=0 drop=578    
frame=  583 fps=2.0 q=27.0 size=    3507kB time=00:00:21.72 bitrate=1322.6kbits/s dup=0 drop=579    
frame=  584 fps=2.0 q=27.0 size=    3509kB time=00:00:21.76 bitrate=1321.2kbits/s dup=0 drop=580    
frame=  585 fps=2.0 q=27.0 size=    3522kB time=00:00:21.80 bitrate=1323.6kbits/s dup=0 drop=581    
frame=  587 fps=2.0 q=27.0 size=    3527kB time=00:00:21.88 bitrate=1320.7kbits/s dup=0 drop=583    
frame=  588 fps=2.0 q=27.0 size=    3539kB time=00:00:21.92 bitrate=1322.5kbits/s dup=0 drop=584    
frame=  590 fps=2.0 q=27.0 size=    3544kB time=00:00:22.00 bitrate=1319.7kbits/s dup=0 drop=586    
frame=  591 fps=2.0 q=27.0 size=    3555kB time=00:00:22.04 bitrate=1321.5kbits/s dup=0 drop=587    
frame=  593 fps=2.0 q=27.0 size=    3561kB time=00:00:22.12 bitrate=1318.6kbits/s dup=0 drop=589    
frame=  594 fps=2.0 q=27.0 size=    3571kB time=00:00:22.16 bitrate=1320.0kbits/s dup=0 drop=590    
frame=  595 fps=2.0 q=27.0 size=    3573kB time=00:00:22.20 bitrate=1318.5kbits/s dup=0 drop=591    
frame=  597 fps=2.0 q=27.0 size=    3588kB time=00:00:22.28 bitrate=1319.1kbits/s dup=0 drop=593    
frame=  597 fps=2.0 q=27.0 size=    3588kB time=00:00:22.28 bitrate=1319.1kbits/s dup=0 drop=593    
frame=  599 fps=2.0 q=27.0 size=    3593kB time=00:00:22.36 bitrate=1316.4kbits/s dup=0 drop=595    
frame=  600 fps=2.0 q=27.0 size=    3605kB time=00:00:22.40 bitrate=1318.4kbits/s dup=0 drop=596    
frame=  602 fps=2.0 q=27.0 size=    3610kB time=00:00:22.48 bitrate=1315.6kbits/s dup=0 drop=598    
frame=  603 fps=2.0 q=27.0 size=    3622kB time=00:00:22.52 bitrate=1317.5kbits/s dup=0 drop=599    
frame=  604 fps=2.0 q=27.0 size=    3625kB time=00:00:22.56 bitrate=1316.2kbits/s dup=0 drop=600    
frame=  606 fps=2.0 q=27.0 size=    3639kB time=00:00:22.64 bitrate=1316.8kbits/s dup=0 drop=602    
frame=  608 fps=2.0 q=27.0 size=    3644kB time=00:00:22.72 bitrate=1314.0kbits/s dup=0 drop=604    
frame=  609 fps=2.0 q=27.0 size=    3656kB time=00:00:22.76 bitrate=1315.8kbits/s dup=0 drop=605    
frame=  610 fps=2.0 q=27.0 size=    3661kB time=00:00:22.80 bitrate=1315.4kbits/s dup=0 drop=606    
frame=  613 fps=2.0 q=27.0 size=    3675kB time=00:00:22.92 bitrate=1313.5kbits/s dup=0 drop=609    
frame=  613 fps=2.0 q=27.0 size=    3675kB time=00:00:22.92 bitrate=1313.5kbits/s dup=0 drop=609    
frame=  614 fps=2.0 q=27.0 size=    3679kB time=00:00:22.96 bitrate=1312.5kbits/s dup=0 drop=610    
frame=  617 fps=2.0 q=24.0 size=    3689kB time=00:00:23.08 bitrate=1309.2kbits/s dup=0 drop=613    
frame=  619 fps=2.0 q=27.0 size=    3694kB time=00:00:23.16 bitrate=1306.7kbits/s dup=0 drop=615    
frame=  621 fps=2.0 q=27.0 size=    3741kB time=00:00:23.24 bitrate=1318.9kbits/s dup=0 drop=617    
frame=  623 fps=2.0 q=27.0 size=    3748kB time=00:00:23.32 bitrate=1316.5kbits/s dup=0 drop=619    
frame=  625 fps=2.0 q=27.0 size=    3761kB time=00:00:23.40 bitrate=1316.8kbits/s dup=0 drop=621    
frame=  627 fps=2.0 q=27.0 size=    3767kB time=00:00:23.48 bitrate=1314.3kbits/s dup=0 drop=623    
frame=  628 fps=2.0 q=27.0 size=    3779kB time=00:00:23.52 bitrate=1316.1kbits/s dup=0 drop=624    
frame=  629 fps=2.0 q=27.0 size=    3782kB time=00:00:23.56 bitrate=1314.9kbits/s dup=0 drop=625    
frame=  631 fps=2.0 q=27.0 size=    3797kB time=00:00:23.64 bitrate=1315.9kbits/s dup=0 drop=627    
frame=  631 fps=2.0 q=27.0 size=    3797kB time=00:00:23.64 bitrate=1315.9kbits/s dup=0 drop=627    
frame=  633 fps=2.0 q=27.0 size=    3803kB time=00:00:23.72 bitrate=1313.3kbits/s dup=0 drop=629    
frame=  634 fps=2.0 q=27.0 size=    3816kB time=00:00:23.76 bitrate=1315.6kbits/s dup=0 drop=630    
frame=  635 fps=2.0 q=27.0 size=    3820kB time=00:00:23.80 bitrate=1315.0kbits/s dup=0 drop=631    
frame=  637 fps=2.0 q=27.0 size=    3825kB time=00:00:23.88 bitrate=1312.3kbits/s dup=0 drop=633    
frame=  638 fps=2.0 q=27.0 size=    3839kB time=00:00:23.92 bitrate=1314.8kbits/s dup=0 drop=634    
frame=  639 fps=2.0 q=27.0 size=    3842kB time=00:00:23.96 bitrate=1313.6kbits/s dup=0 drop=635    
frame=  641 fps=2.0 q=27.0 size=    3855kB time=00:00:24.04 bitrate=1313.7kbits/s dup=0 drop=637    
frame=  642 fps=2.0 q=27.0 size=    3859kB time=00:00:24.08 bitrate=1313.0kbits/s dup=0 drop=638    
frame=  645 fps=2.0 q=27.0 size=    3872kB time=00:00:24.20 bitrate=1310.7kbits/s dup=0 drop=641    
frame=  646 fps=2.0 q=27.0 size=    3877kB time=00:00:24.24 bitrate=1310.2kbits/s dup=0 drop=642    
frame=  649 fps=2.0 q=27.0 size=    3885kB time=00:00:24.36 bitrate=1306.6kbits/s dup=0 drop=645    
frame=  652 fps=2.0 q=27.0 size=    3938kB time=00:00:24.48 bitrate=1317.9kbits/s dup=0 drop=648    
frame=  653 fps=2.0 q=27.0 size=    3940kB time=00:00:24.52 bitrate=1316.5kbits/s dup=0 drop=649    
frame=  655 fps=2.0 q=27.0 size=    3955kB time=00:00:24.60 bitrate=1316.9kbits/s dup=0 drop=651    
frame=  657 fps=2.0 q=27.0 size=    3960kB time=00:00:24.68 bitrate=1314.4kbits/s dup=0 drop=653    
frame=  659 fps=2.0 q=27.0 size=    3974kB time=00:00:24.76 bitrate=1314.7kbits/s dup=0 drop=655    
frame=  659 fps=2.0 q=27.0 size=    3974kB time=00:00:24.76 bitrate=1314.7kbits/s dup=0 drop=655    
frame=  661 fps=2.0 q=27.0 size=    3989kB time=00:00:24.84 bitrate=1315.6kbits/s dup=0 drop=657    
frame=  663 fps=2.0 q=27.0 size=    3994kB time=00:00:24.92 bitrate=1313.1kbits/s dup=0 drop=659    
frame=  664 fps=2.0 q=27.0 size=    3996kB time=00:00:24.96 bitrate=1311.4kbits/s dup=0 drop=660    
frame=  665 fps=2.0 q=27.0 size=    4005kB time=00:00:25.00 bitrate=1312.3kbits/s dup=0 drop=661    
frame=  667 fps=2.0 q=27.0 size=    4009kB time=00:00:25.08 bitrate=1309.5kbits/s dup=0 drop=663    
frame=  669 fps=2.0 q=27.0 size=    4023kB time=00:00:25.16 bitrate=1309.8kbits/s dup=0 drop=665    
frame=  671 fps=2.0 q=27.0 size=    4027kB time=00:00:25.24 bitrate=1306.9kbits/s dup=0 drop=667    
frame=  673 fps=2.0 q=27.0 size=    4042kB time=00:00:25.32 bitrate=1307.6kbits/s dup=0 drop=669    
frame=  676 fps=2.0 q=27.0 size=    4056kB time=00:00:25.44 bitrate=1306.0kbits/s dup=0 drop=672    
frame=  677 fps=2.0 q=27.0 size=    4058kB time=00:00:25.48 bitrate=1304.6kbits/s dup=0 drop=673    
frame=  679 fps=2.0 q=27.0 size=    4069kB time=00:00:25.56 bitrate=1304.1kbits/s dup=0 drop=675    
frame=  681 fps=2.0 q=27.0 size=    4073kB time=00:00:25.64 bitrate=1301.2kbits/s dup=0 drop=677    
frame=  682 fps=2.0 q=27.0 size=    4083kB time=00:00:25.68 bitrate=1302.5kbits/s dup=0 drop=678    
frame=  684 fps=2.0 q=27.0 size=    4089kB time=00:00:25.76 bitrate=1300.2kbits/s dup=0 drop=680    
frame=  686 fps=2.0 q=27.0 size=    4098kB time=00:00:25.84 bitrate=1299.1kbits/s dup=0 drop=682    
frame=  688 fps=2.0 q=24.0 size=    4102kB time=00:00:25.92 bitrate=1296.3kbits/s dup=0 drop=684    
frame=  690 fps=2.0 q=27.0 size=    4107kB time=00:00:26.00 bitrate=1294.1kbits/s dup=0 drop=686    
frame=  692 fps=2.0 q=27.0 size=    4154kB time=00:00:26.08 bitrate=1304.8kbits/s dup=0 drop=688    
frame=  694 fps=2.0 q=27.0 size=    4160kB time=00:00:26.16 bitrate=1302.7kbits/s dup=0 drop=690    
frame=  696 fps=2.0 q=27.0 size=    4173kB time=00:00:26.24 bitrate=1302.9kbits/s dup=0 drop=692    
frame=  698 fps=2.0 q=27.0 size=    4180kB time=00:00:26.32 bitrate=1301.1kbits/s dup=0 drop=694    
frame=  700 fps=2.0 q=27.0 size=    4195kB time=00:00:26.40 bitrate=1301.8kbits/s dup=0 drop=696    
frame=  702 fps=2.0 q=27.0 size=    4202kB time=00:00:26.48 bitrate=1300.0kbits/s dup=0 drop=698    
frame=  703 fps=2.0 q=27.0 size=    4216kB time=00:00:26.52 bitrate=1302.2kbits/s dup=0 drop=699    
frame=  704 fps=2.0 q=27.0 size=    4221kB time=00:00:26.56 bitrate=1301.8kbits/s dup=0 drop=700    
frame=  706 fps=2.0 q=27.0 size=    4227kB time=00:00:26.64 bitrate=1299.8kbits/s dup=0 drop=702    
frame=  707 fps=2.0 q=27.0 size=    4236kB time=00:00:26.68 bitrate=1300.8kbits/s dup=0 drop=703    
frame=  709 fps=2.0 q=27.0 size=    4244kB time=00:00:26.76 bitrate=1299.2kbits/s dup=0 drop=705    
frame=  711 fps=2.0 q=27.0 size=    4257kB time=00:00:26.84 bitrate=1299.2kbits/s dup=0 drop=707    
frame=  712 fps=2.0 q=27.0 size=    4263kB time=00:00:26.88 bitrate=1299.1kbits/s dup=0 drop=708    
frame=  715 fps=2.0 q=27.0 size=    4272kB time=00:00:27.00 bitrate=1296.3kbits/s dup=0 drop=711    
frame=  717 fps=2.0 q=27.0 size=    4309kB time=00:00:27.08 bitrate=1303.5kbits/s dup=0 drop=713    
frame=  719 fps=2.0 q=27.0 size=    4321kB time=00:00:27.16 bitrate=1303.4kbits/s dup=0 drop=715    
frame=  721 fps=2.0 q=27.0 size=    4326kB time=00:00:27.24 bitrate=1300.9kbits/s dup=0 drop=717    
frame=  723 fps=2.0 q=27.0 size=    4338kB time=00:00:27.32 bitrate=1300.7kbits/s dup=0 drop=719    
frame=  726 fps=2.0 q=27.0 size=    4352kB time=00:00:27.44 bitrate=1299.3kbits/s dup=0 drop=722    
frame=  728 fps=2.0 q=27.0 size=    4359kB time=00:00:27.52 bitrate=1297.5kbits/s dup=0 drop=724    
frame=  730 fps=2.0 q=27.0 size=    4370kB time=00:00:27.60 bitrate=1297.2kbits/s dup=0 drop=726    
frame=  732 fps=2.0 q=27.0 size=    4377kB time=00:00:27.68 bitrate=1295.3kbits/s dup=0 drop=728    
frame=  734 fps=2.0 q=27.0 size=    4393kB time=00:00:27.76 bitrate=1296.5kbits/s dup=0 drop=730    
frame=  736 fps=2.0 q=27.0 size=    4400kB time=00:00:27.84 bitrate=1294.6kbits/s dup=0 drop=732    
frame=  738 fps=2.0 q=27.0 size=    4413kB time=00:00:27.92 bitrate=1294.9kbits/s dup=0 drop=734    
frame=  740 fps=2.0 q=27.0 size=    4418kB time=00:00:28.00 bitrate=1292.5kbits/s dup=0 drop=736    
frame=  741 fps=2.0 q=27.0 size=    4428kB time=00:00:28.04 bitrate=1293.7kbits/s dup=0 drop=737    
frame=  743 fps=2.0 q=27.0 size=    4435kB time=00:00:28.12 bitrate=1291.9kbits/s dup=0 drop=739    
frame=  744 fps=2.0 q=27.0 size=    4437kB time=00:00:28.16 bitrate=1290.8kbits/s dup=0 drop=740    
frame=  745 fps=2.0 q=27.0 size=    4448kB time=00:00:28.20 bitrate=1292.3kbits/s dup=0 drop=741    
frame=  747 fps=2.0 q=27.0 size=    4454kB time=00:00:28.28 bitrate=1290.1kbits/s dup=0 drop=743    
frame=  749 fps=2.0 q=27.0 size=    4468kB time=00:00:28.36 bitrate=1290.6kbits/s dup=0 drop=745    
frame=  752 fps=2.0 q=27.0 size=    4482kB time=00:00:28.48 bitrate=1289.2kbits/s dup=0 drop=748    
frame=  753 fps=2.0 q=27.0 size=    4485kB time=00:00:28.52 bitrate=1288.3kbits/s dup=0 drop=749    
frame=  753 fps=1.9 q=-1.0 Lsize=    4647kB time=00:00:30.04 bitrate=1267.1kbits/s dup=0 drop=749    
video:4647kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[libx264 @ 0x23bbab0] frame I:15    Avg QP:19.74  size: 41026
[libx264 @ 0x23bbab0] frame P:245   Avg QP:22.94  size: 11380
[libx264 @ 0x23bbab0] frame B:493   Avg QP:25.80  size:  2748
[libx264 @ 0x23bbab0] consecutive B-frames:  2.3% 14.3% 51.0% 32.4%
[libx264 @ 0x23bbab0] mb I  I16..4:  6.0% 61.8% 32.3%
[libx264 @ 0x23bbab0] mb P  I16..4:  1.4%  3.8%  2.1%  P16..4: 49.5% 19.1%  6.4%  0.0%  0.0%    skip:17.7%
[libx264 @ 0x23bbab0] mb B  I16..4:  0.7%  2.0%  0.2%  B16..8: 25.2%  5.8%  0.5%  direct:12.8%  skip:52.8%  L0:35.7% L1:52.6% BI:11.7%
[libx264 @ 0x23bbab0] 8x8 transform intra:60.0% inter:57.1%
[libx264 @ 0x23bbab0] coded y,uvDC,uvAC intra: 72.3% 83.1% 38.6% inter: 11.0% 30.8% 1.1%
[libx264 @ 0x23bbab0] i16 v,h,dc,p: 55% 14% 11% 20%
[libx264 @ 0x23bbab0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 14% 22%  3%  5%  7%  4%  7%  5%
[libx264 @ 0x23bbab0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 13% 10%  5%  7% 10%  6%  8%  4%
[libx264 @ 0x23bbab0] i8c dc,h,v,p: 41% 15% 36%  7%
[libx264 @ 0x23bbab0] Weighted P-Frames: Y:3.3% UV:0.4%
[libx264 @ 0x23bbab0] ref P L0: 64.8% 35.2%
[libx264 @ 0x23bbab0] ref B L0: 77.4% 22.6%
[libx264 @ 0x23bbab0] ref B L1: 93.0%  7.0%
[libx264 @ 0x23bbab0] kb/s:1263.75
real    6m41.589s
user    22m57.760s
sys     0m2.800s
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffmpeg -loglevel info -stats -i test.h264 -i test.mp3 -threads 4 -c:v copy -c:a copy -movflags +faststart -y test.mp4
ffmpeg version N-70147-ge87e206 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armv7-a --target-os=linux --enable-static --disable-shared --disable-asm --disable-yasm --enable-pic --extra-cflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --extra-cxxflags='-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -lm' --enable-gpl --enable-nonfree --enable-version3 --disable-w32threads --disable-ffserver --enable-ffplay --extra-libs=-ldl --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-librtmp --enable-libfdk-aac --enable-libxvid --enable-libwebp --enable-libvorbis --enable-libtheora --enable-bzlib --enable-libopenjpeg --enable-libsoxr --enable-libtwolame --enable-libwavpack --enable-lzma --enable-zlib --enable-iconv
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.104 / 56. 23.104
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.101 /  5. 11.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, h264, from 'test.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
Input #1, mp3, from 'test.mp3':
  Metadata:
    encoder         : Lavf56.23.104
  Duration: 00:00:30.07, start: 0.025057, bitrate: 256 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf56.23.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
    Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x2dd4220] pts has no value
    Last message repeated 752 times
[mp4 @ 0x2dd4220] Starting second pass: moving the moov atom to the beginning of the file
frame=  753 fps=0.0 q=-1.0 Lsize=    5609kB time=00:00:30.04 bitrate=1529.5kbits/s    
video:4647kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.409847%
real    0m0.467s
user    0m0.420s
sys     0m0.220s

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Sun Mar 08, 2015 5:59 am

Forcomparison, on an i3820 the equivalent

Code: Select all

@echo on
REM assumes input is interlaced, output is interlaced !!!

ECHO. >results.txt

REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ECHO %TIME% ---------------------------------------------------------------------------------------------------------------------------------------------------------------------  >>results.txt 
ECHO "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y "test-interlaced.mp3" >>results.txt 2>&1
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y "test-interlaced.mp3" >>results.txt 2>&1

REM "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y "test-interlaced.mp3"

REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ECHO %TIME% ---------------------------------------------------------------------------------------------------------------------------------------------------------------------  >>results.txt 
ECHO "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4  -an -c:v h264 -preset fast -flags +ildct+ilme -loglevel info -stats -ildctcmp satd -top 1 -profile:v high -level 4.1 -crf 22 -coder 0 -y "test-interlaced.h264" >>results.txt 2>&1
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4  -an -c:v h264 -preset fast -flags +ildct+ilme -loglevel info -stats -ildctcmp satd -top 1 -profile:v high -level 4.1 -crf 22 -coder 0 -y "test-interlaced.h264" >>results.txt 2>&1

REM "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -progress -stats -i "test.mpg" -threads 4  -an -c:v h264 -preset fast -flags +ildct+ilme -loglevel info -stats -ildctcmp satd -top 1 -profile:v high -level 4.1 -crf 22 -coder 0 -y "test-interlaced.h264"

REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ECHO %TIME% ---------------------------------------------------------------------------------------------------------------------------------------------------------------------  >>results.txt 
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test-interlaced.h264" -i "test-interlaced.mp3" -threads 4 -c:v copy -c:a copy -movflags +faststart -y "test-interlaced.mp4" >>results.txt 2>&1

REM "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test-interlaced.h264" -i "test-interlaced.mp3" -threads 4 -c:v copy -c:a copy -movflags +faststart -y "test-interlaced.mp4" 

REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------

ECHO %TIME% ---------------------------------------------------------------------------------------------------------------------------------------------------------------------  >>results.txt 
ECHO "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y "test.mp3" >>results.txt 2>&1
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y "test.mp3" >>results.txt 2>&1

REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ECHO %TIME% ---------------------------------------------------------------------------------------------------------------------------------------------------------------------  >>results.txt 
ECHO "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -an -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 25 -profile:v high -level 4.1 -crf 22 -coder 0 -y "test.h264" >>results.txt 2>&1
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -an -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 25 -profile:v high -level 4.1 -crf 22 -coder 0 -y "test.h264" >>results.txt 2>&1

REm ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
ECHO %TIME% ---------------------------------------------------------------------------------------------------------------------------------------------------------------------  >>results.txt 
ECHO "C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.h264" -i "test.mp3" -threads 4 -c:v copy -c:a copy -movflags +faststart -y "test.mp4" >>results.txt 2>&1
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.h264" -i "test.mp3" -threads 4 -c:v copy -c:a copy -movflags +faststart -y "test.mp4" >>results.txt 2>&1

ECHO %TIME% ---------------------------------------------------------------------------------------------------------------------------------------------------------------------  >>results.txt 
pause
exit
produced

Code: Select all

 
15:57:15.39 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------   
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y "test-interlaced.mp3" 
ffmpeg version N-70520-g9d7e42e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
Output #0, mp3, to 'test-interlaced.mp3':
  Metadata:
    TSSE            : Lavf56.25.101
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26.100 libmp3lame
Stream mapping:
  Stream #0:1 -> #0:0 (mp2 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size=     604kB time=00:00:19.27 bitrate= 256.7kbits/s    
size=     940kB time=00:00:30.04 bitrate= 256.4kbits/s    
video:0kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.091463%
15:57:16.21 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------   
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4  -an -c:v h264 -preset fast -flags +ildct+ilme -loglevel info -stats -ildctcmp satd -top 1 -profile:v high -level 4.1 -crf 22 -coder 0 -y "test-interlaced.h264" 
ffmpeg version N-70520-g9d7e42e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
[libx264 @ 04710b60] interlace + weightp is not implemented
[libx264 @ 04710b60] using SAR=64/45
[libx264 @ 04710b60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 04710b60] profile High, level 4.1
Output #0, h264, to 'test-interlaced.h264':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.26.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=   70 fps=0.0 q=27.0 size=     288kB time=00:00:01.20 bitrate=1967.4kbits/s    
frame=  137 fps=135 q=27.0 size=     595kB time=00:00:03.88 bitrate=1255.7kbits/s    
frame=  213 fps=141 q=27.0 size=     996kB time=00:00:06.92 bitrate=1178.8kbits/s    
frame=  261 fps=129 q=27.0 size=    1350kB time=00:00:08.84 bitrate=1250.9kbits/s    
frame=  308 fps=122 q=27.0 size=    1862kB time=00:00:10.72 bitrate=1423.0kbits/s    
frame=  358 fps=118 q=27.0 size=    2356kB time=00:00:12.72 bitrate=1517.3kbits/s    
frame=  406 fps=115 q=27.0 size=    2685kB time=00:00:14.64 bitrate=1502.6kbits/s    
frame=  456 fps=113 q=27.0 size=    3078kB time=00:00:16.64 bitrate=1515.1kbits/s    
frame=  509 fps=112 q=27.0 size=    3404kB time=00:00:18.76 bitrate=1486.5kbits/s    
frame=  564 fps=112 q=27.0 size=    3770kB time=00:00:20.96 bitrate=1473.5kbits/s    
frame=  613 fps=111 q=27.0 size=    4084kB time=00:00:22.92 bitrate=1459.7kbits/s    
frame=  666 fps=110 q=27.0 size=    4450kB time=00:00:25.04 bitrate=1455.9kbits/s    
frame=  718 fps=110 q=27.0 size=    4794kB time=00:00:27.12 bitrate=1448.2kbits/s    
frame=  751 fps=105 q=-1.0 Lsize=    5161kB time=00:00:29.96 bitrate=1411.1kbits/s    
video:5161kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[libx264 @ 04710b60] frame I:15    Avg QP:19.66  size: 43397
[libx264 @ 04710b60] frame P:247   Avg QP:22.70  size: 12433
[libx264 @ 04710b60] frame B:489   Avg QP:25.72  size:  3196
[libx264 @ 04710b60] consecutive B-frames:  2.7% 14.4% 51.5% 31.4%
[libx264 @ 04710b60] mb I  I16..4:  5.8% 71.0% 23.3%
[libx264 @ 04710b60] mb P  I16..4:  1.4%  4.7%  1.8%  P16..4: 49.5% 20.0%  6.9%  0.0%  0.0%    skip:15.7%
[libx264 @ 04710b60] mb B  I16..4:  0.6%  3.3%  0.2%  B16..8: 26.4%  6.1%  0.5%  direct:13.1%  skip:49.8%  L0:36.0% L1:50.8% BI:13.2%
[libx264 @ 04710b60] field mbs: intra: 0.5% inter:0.4% skip:0.2%
[libx264 @ 04710b60] 8x8 transform intra:70.0% inter:62.6%
[libx264 @ 04710b60] coded y,uvDC,uvAC intra: 74.6% 83.0% 35.8% inter: 12.3% 32.5% 1.3%
[libx264 @ 04710b60] i16 v,h,dc,p: 54% 15% 11% 20%
[libx264 @ 04710b60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 15% 26%  3%  4%  6%  3%  6%  5%
[libx264 @ 04710b60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 14% 10%  4%  6% 10%  5%  7%  4%
[libx264 @ 04710b60] i8c dc,h,v,p: 43% 16% 35%  7%
[libx264 @ 04710b60] ref P L0: 63.6% 36.3%  0.1%  0.1%
[libx264 @ 04710b60] ref B L0: 76.8% 23.1%  0.0%  0.0%
[libx264 @ 04710b60] ref B L1: 92.8%  7.1%  0.0%  0.0%
[libx264 @ 04710b60] kb/s:1407.32
15:57:23.43 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------   
ffmpeg version N-70520-g9d7e42e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, h264, from 'test-interlaced.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
Input #1, mp3, from 'test-interlaced.mp3':
  Metadata:
    encoder         : Lavf56.25.101
  Duration: 00:00:30.07, start: 0.025057, bitrate: 256 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Output #0, mp4, to 'test-interlaced.mp4':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
    Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 042c0b20] pts has no value
    Last message repeated 750 times
[mp4 @ 042c0b20] Starting second pass: moving the moov atom to the beginning of the file
frame=  751 fps=0.0 q=-1.0 Lsize=    6124kB time=00:00:30.04 bitrate=1669.9kbits/s    
video:5161kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.386544%
15:57:23.49 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------   
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -vn -c:a libmp3lame -ar 44100 -ab 256k -y "test.mp3" 
ffmpeg version N-70520-g9d7e42e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
Output #0, mp3, to 'test.mp3':
  Metadata:
    TSSE            : Lavf56.25.101
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26.100 libmp3lame
Stream mapping:
  Stream #0:1 -> #0:0 (mp2 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size=     601kB time=00:00:19.17 bitrate= 256.7kbits/s    
size=     940kB time=00:00:30.04 bitrate= 256.4kbits/s    
video:0kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.091463%
15:57:24.32 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------   
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.mpg" -threads 4 -an -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 25 -profile:v high -level 4.1 -crf 22 -coder 0 -y "test.h264" 
ffmpeg version N-70520-g9d7e42e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from 'test.mpg':
  Duration: 00:00:30.05, start: 0.240000, bitrate: 4258 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
[Parsed_setdar_1 @ 04228bc0] num:den syntax is deprecated, please use num/den or named options instead
[libx264 @ 046001c0] using SAR=64/45
[libx264 @ 046001c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 046001c0] profile High, level 4.1
Output #0, h264, to 'test.h264':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.26.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=   73 fps=0.0 q=27.0 size=     264kB time=00:00:01.32 bitrate=1637.1kbits/s dup=0 drop=69    
frame=  143 fps=143 q=27.0 size=     573kB time=00:00:04.12 bitrate=1138.9kbits/s dup=0 drop=139    
frame=  221 fps=147 q=27.0 size=     946kB time=00:00:07.24 bitrate=1070.8kbits/s dup=0 drop=217    
frame=  273 fps=136 q=27.0 size=    1354kB time=00:00:09.32 bitrate=1189.8kbits/s dup=0 drop=269    
frame=  321 fps=128 q=27.0 size=    1789kB time=00:00:11.24 bitrate=1304.2kbits/s dup=0 drop=317    
frame=  370 fps=123 q=27.0 size=    2189kB time=00:00:13.20 bitrate=1358.4kbits/s dup=0 drop=366    
frame=  423 fps=120 q=27.0 size=    2547kB time=00:00:15.32 bitrate=1361.7kbits/s dup=0 drop=419    
frame=  476 fps=118 q=27.0 size=    2872kB time=00:00:17.44 bitrate=1349.2kbits/s dup=0 drop=472    
frame=  524 fps=116 q=27.0 size=    3153kB time=00:00:19.36 bitrate=1334.2kbits/s dup=0 drop=520    
frame=  579 fps=115 q=27.0 size=    3485kB time=00:00:21.56 bitrate=1324.3kbits/s dup=0 drop=575    
frame=  631 fps=114 q=27.0 size=    3796kB time=00:00:23.64 bitrate=1315.6kbits/s dup=0 drop=627    
frame=  686 fps=113 q=27.0 size=    4097kB time=00:00:25.84 bitrate=1298.7kbits/s dup=0 drop=682    
frame=  740 fps=113 q=27.0 size=    4417kB time=00:00:28.00 bitrate=1292.4kbits/s dup=0 drop=736    
frame=  753 fps=108 q=-1.0 Lsize=    4646kB time=00:00:30.04 bitrate=1267.0kbits/s dup=0 drop=749    
video:4646kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[libx264 @ 046001c0] frame I:15    Avg QP:19.74  size: 41018
[libx264 @ 046001c0] frame P:245   Avg QP:22.92  size: 11380
[libx264 @ 046001c0] frame B:493   Avg QP:25.79  size:  2747
[libx264 @ 046001c0] consecutive B-frames:  2.3% 14.3% 51.0% 32.4%
[libx264 @ 046001c0] mb I  I16..4:  6.0% 61.1% 32.8%
[libx264 @ 046001c0] mb P  I16..4:  1.4%  3.7%  2.2%  P16..4: 49.6% 19.1%  6.3%  0.0%  0.0%    skip:17.6%
[libx264 @ 046001c0] mb B  I16..4:  0.7%  2.0%  0.2%  B16..8: 25.2%  5.8%  0.5%  direct:12.8%  skip:52.8%  L0:35.7% L1:52.6% BI:11.7%
[libx264 @ 046001c0] 8x8 transform intra:59.1% inter:57.2%
[libx264 @ 046001c0] coded y,uvDC,uvAC intra: 72.3% 83.3% 38.6% inter: 11.0% 30.8% 1.1%
[libx264 @ 046001c0] i16 v,h,dc,p: 54% 14% 12% 20%
[libx264 @ 046001c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 14% 22%  3%  5%  7%  4%  7%  5%
[libx264 @ 046001c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 13%  9%  5%  7% 10%  6%  8%  4%
[libx264 @ 046001c0] i8c dc,h,v,p: 41% 15% 36%  7%
[libx264 @ 046001c0] Weighted P-Frames: Y:3.3% UV:0.4%
[libx264 @ 046001c0] ref P L0: 64.7% 35.3%
[libx264 @ 046001c0] ref B L0: 77.4% 22.6%
[libx264 @ 046001c0] ref B L1: 92.9%  7.1%
[libx264 @ 046001c0] kb/s:1263.65
15:57:31.35 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------   
"C:\SOFTWARE\ffmpeg\0-latest\bin\ffmpeg.exe" -loglevel info -stats -i "test.h264" -i "test.mp3" -threads 4 -c:v copy -c:a copy -movflags +faststart -y "test.mp4" 
ffmpeg version N-70520-g9d7e42e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, h264, from 'test.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
Input #1, mp3, from 'test.mp3':
  Metadata:
    encoder         : Lavf56.25.101
  Duration: 00:00:30.07, start: 0.025057, bitrate: 256 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
    Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 256 kb/s
    Metadata:
      encoder         : Lavc56.26
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 00348240] pts has no value
    Last message repeated 752 times
[mp4 @ 00348240] Starting second pass: moving the moov atom to the beginning of the file
frame=  753 fps=0.0 q=-1.0 Lsize=    5609kB time=00:00:30.04 bitrate=1529.4kbits/s    
video:4646kB audio:940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.409875%
15:57:31.43 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------   

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Sun Mar 08, 2015 6:04 am

ie
circa 2 fps conversion rate on the Pi2
vs
circa 110 fps conversion rate on an intel i3820
with the same commandline settings.

Pending someone else's findings, for small videos it'd likely be fine ... but ...
For 1/2 to 1 hour TV show conversions or home videos ... unfortunately, it's not even with orders of magnitude conversion rate of a standard intel.

If I've done something wrong, feel free to point it out.

thunderhawk
Posts: 4
Joined: Fri Sep 30, 2016 2:43 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Fri Sep 30, 2016 2:45 pm

hi,

I'm trying you script and noticed this comment at line 223:

# there HAS to be a way to automate this. I don;t know how, yet.
#set +x
#echo "#When you’re in the nano editor, you will need to go to line 126. "
#echo "#Once you’re at that line, make the below code THE SAME as below … COPY THIS TEXT FIRST"
#echo "#Once you’re at that line, make the below code THE SAME as below … COPY THIS TEXT FIRST"
#echo "#Once you’re at that line, make the below code THE SAME as below … COPY THIS TEXT FIRST"
#echo "#ifdef __cplusplus"
#echo "extern \"C\" {"
#echo "#endif"
#echo "#ifndef _STRING_H"
#echo "char *strcasestr(const char *haystack, const char *needle);"
#echo "#endif"
#echo "#ifdef __cplusplus"
#echo "}"
#echo "#endif"
#echo " "
#read -p "Press Enter to EDIT the file using sudo nano common/mp4v2/mpeg4ip.h " xx
#set -x
#sudo nano common/mp4v2/mpeg4ip.h
#read -p "Press Enter to continue AFTER your editing sudo nano common/mp4v2/mpeg4ip.h" xx


the automation is:

sed -i -e '/char *\* *strcasestr *(/d' common/mp4v2/mpeg4ip.h


thunderhawk
Posts: 4
Joined: Fri Sep 30, 2016 2:43 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Fri Oct 07, 2016 9:18 am

hi,

I'm trying to compile libxvid but the configure produce this warning:

WARNING: unrecognized options: --disable-asm, --disable-avs, --disable-cli, --enable-static, --disable-shared

and when I build ffmpeg I see that the bin is not "indipendent" from installed xvid libraries.

anyone have compiled xvid in static mode?

thanks

hydra3333
Posts: 108
Joined: Thu Jan 10, 2013 11:48 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Fri Oct 07, 2016 2:04 pm

?
Please see a post above where ffmpeg says "--enable-static" when it was invoked.
Cheers


thunderhawk
Posts: 4
Joined: Fri Sep 30, 2016 2:43 pm

Re: how to compile ffmpeg for Pi2 (iterating to a working bu

Wed Oct 26, 2016 7:22 am

hydra3333 wrote:?
Please see a post above where ffmpeg says "--enable-static" when it was invoked.
Cheers
wich one? I can't find it...


what I mean is that after xvid compile and ffmpeg including --enable-libxvid then the ffmpeg bin it's not static:

./ffmpeg: error while loading shared libraries: libxvidcore.so.4: cannot open shared object file: No such file or directory

because looks for xvid libraries out of the box...

Did you successfully compile a static xvid version? I used this script keept from your:

Code: Select all

#-----
# build libxvid, google to find out how
dlYN=n
march=armv7-a
themfpu=neon-vfpv4
host=arm-unknown-linux-gnueabi
sudo apt-get remove -y libxvid-dev
sudo apt-get remove -y libxvid 
cd /usr/src
if [[ "$dlYN" =~ ^([yY]) ]] ; then
   sudo rm -rf xvidcore
   sudo mkdir xvidcore
   sudo chmod -R 777 xvidcore
   sudo wget http://downloads.xvid.org/downloads/xvidcore-1.3.4.tar.gz
   sudo tar xzvf xvidcore-1.3.4.tar.gz
else
   sudo chmod -R 777 xvidcore
fi
#cd xvidcore
cd /usr/src/xvidcore/build/generic 
export CFLAGS="-march=$march -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CXXFLAGS="-march=$march -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
export CPPFLAGS="-march=$march -mfpu=$themfpu -mfloat-abi=hard -funsafe-math-optimizations -lm"
sudo ./configure --disable-assembly --host=$host   
sudo make -j$(nproc)
sudo make install
sudo ldconfig
thanks!

Return to “Graphics programming”