diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-07-20 18:48:18 +0159 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-07-20 18:48:18 +0159 |
commit | 8ae8547b17c46af5564d2946c4e079eefe6f6ebe (patch) | |
tree | 9f8421d090693c62e2bf8d85fe3025559b8549e6 | |
parent | 795afde1af04a9460027e59c448ce085a644c6ee (diff) | |
download | mmtest-8ae8547b17c46af5564d2946c4e079eefe6f6ebe.tar.gz |
Move mmtest app to top level directory, remove creator (-> separate repository)
-rw-r--r-- | AndroidManifest.xml (renamed from mmtest/AndroidManifest.xml) | 0 | ||||
-rwxr-xr-x | creator/build-ffmpeg | 86 | ||||
-rwxr-xr-x | creator/create-testfiles | 106 | ||||
-rw-r--r-- | creator/patches/faac/faac-1.28-compile.patch | 17 | ||||
-rw-r--r-- | creator/patches/flac/flac-1.2.1-gcc-4.3.patch | 10 | ||||
-rw-r--r-- | src/org/linaro/mmtest/MultimediaTest.java (renamed from mmtest/src/org/linaro/mmtest/MultimediaTest.java) | 0 |
6 files changed, 0 insertions, 219 deletions
diff --git a/mmtest/AndroidManifest.xml b/AndroidManifest.xml index 36bca75..36bca75 100644 --- a/mmtest/AndroidManifest.xml +++ b/AndroidManifest.xml diff --git a/creator/build-ffmpeg b/creator/build-ffmpeg deleted file mode 100755 index cf4a07e..0000000 --- a/creator/build-ffmpeg +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/bash -e -# This script builds a version of ffmpeg that is compatible with -# create-testfiles (support for all relevant codecs, current -# version). - -FFMPEGDIR="`mktemp -d /tmp/ffmpegbuildXXXXXX`" -if [ -z "$FFMPEGDIR" ]; then - echo "If you care about predictable symlink attacks, you should really install mktemp" 1>&2 - FFMPEGDIR="/tmp/ffmpegbuild.$$" - mkdir -p "$FFMPEGDIR" -fi - -SRCDIR="`dirname $0`" -[ "$SRCDIR" = "." ] && SRCDIR="`pwd`" - -cd "$FFMPEGDIR" -git clone git://review.webmproject.org/libvpx.git -git clone git://git.videolan.org/x264.git -wget http://downloads.xiph.org/releases/ogg/libogg-1.2.2.tar.gz -wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.gz -wget http://downloads.xiph.org/releases/theora/libtheora-1.2.0alpha1.tar.xz -wget http://switch.dl.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz -wget http://ignum.dl.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.bz2 -wget http://garr.dl.sourceforge.net/project/flac/flac-src/flac-1.2.1-src/flac-1.2.1.tar.gz -wget http://ffmpeg.org/releases/ffmpeg-0.8.tar.bz2 -tar xf libogg-1.2.2.tar.gz -tar xf libvorbis-1.3.2.tar.gz -tar xf libtheora-1.2.0alpha1.tar.xz -tar xf lame-3.98.4.tar.gz -tar xf faac-1.28.tar.bz2 -tar xf flac-1.2.1.tar.gz -tar xf ffmpeg-0.8.tar.bz2 - -CPUS=`getconf _NPROCESSORS_ONLN` -[ -z "$CPUS" ] && CPUS=`cat /proc/cpuinfo |grep processor |wc -l` -[ -z "$CPUS" ] && CPUS=2 - -export CFLAGS="-O2 -fomit-frame-pointer -fweb -frename-registers -ffast-math -Wl,-O2 -I\"$FFMPEGDIR\"/include -L\"$FFMPEGDIR\"/lib" -export CXXFLAGS="$CFLAGS" -export LDFLAGS="$CFLAGS" -export PKG_CONFIG_PATH="$FFMPEGDIR"/lib/pkgconfig:"$PKG_CONFIG_PATH" - -for i in libvpx x264 libvorbis libogg libtheora lame faac flac; do - echo $i - cd $i* - if [ -d "$SRCDIR"/patches/$i ]; then - for j in "$SRCDIR"/patches/$i/*; do - patch -p1 <$j - done - fi - if [ "$i" = "libvpx" ]; then - FLAGS="--disable-shared" - elif [ "$i" = "libtheora" ]; then - FLAGS="--enable-static --disable-shared --disable-spec" - else - FLAGS="--enable-static --disable-shared" - fi - ./configure --prefix="$FFMPEGDIR" $FLAGS - make -j$CPUS - make install - cd .. -done - -cd ffmpeg-* -./configure \ - --prefix="$FFMPEGDIR" \ - --enable-static \ - --enable-pthreads \ - --enable-gpl \ - --enable-nonfree \ - --enable-avfilter \ - --enable-libtheora \ - --enable-libvpx \ - --enable-libx264 \ - --enable-libvorbis \ - --enable-libfaac \ - --enable-libmp3lame \ - --extra-cflags="$CFLAGS" \ - --extra-ldflags="$CFLAGS" -make -j$CPUS -make install -cd .. - -echo -echo Use -echo FFMPEG=\""$FFMPEGDIR"/bin/ffmpeg\" \""$SRCDIR/create-testfiles"\" YourContent.mp4 diff --git a/creator/create-testfiles b/creator/create-testfiles deleted file mode 100755 index 51867ae..0000000 --- a/creator/create-testfiles +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/sh -# This script takes any video file as input, and produces output files -# containing transcodes of the file to any codec Android is supposed -# to support. -# -# List of supported codecs: -# http://developer.android.com/guide/appendix/media-formats.html - -[ -z "$FFMPEG" ] && FFMPEG=`which ffmpeg` - -if [ "$#" -lt 1 ]; then - echo "Usage: $0 InputFile" - exit 1 -fi -if ! [ -x "$FFMPEG" ]; then - echo "Install ffmpeg >= 0.8 and put it in your PATH (or set FFMPEG)" - exit 2 -fi -if ! which mplayer &>/dev/null; then - echo "Install mplayer" - exit 3 -fi -if ! which sox &>/dev/null; then - echo "Install sox" - exit 4 -fi - -IN="$1" - -# ================ -# == Audio-only == -# ================ -# AAC audio -# Maximum supported - 160k, 48k sample rate -"$FFMPEG" -y -i "$IN" -vn -acodec libfaac -ab 160k -ar 48000 -ac 2 test-AAC-Stereo-96k.m4a -# Minimum supported - 8k sample rate, low bitrate -"$FFMPEG" -y -i "$IN" -vn -acodec libfaac -strict experimental -ab 32k -ar 8000 -ac 1 test-AAC-Mono-8k.m4a -# FIXME we probably want to add an He-AACv2 sample when a free encoder -# becomes available -# Non-free encoder for testing could be built with -# http://tipok.org.ua/ru/node/17 - -# AMR -# Done after WAV because ffmpeg doesn't support AMR directly - -# FLAC (Android 3.1+) -"$FFMPEG" -y -i "$IN" -vn -acodec flac -ac 2 -ar 44100 test-flac.flac - -# MP3 -"$FFMPEG" -y -i "$IN" -vn -acodec libmp3lame -ab 64k test-MP3.mp3 - -# We can't create a Midi file from a recording, so we're skipping this - -# Ogg Vorbis -"$FFMPEG" -y -i "$IN" -vn -acodec libvorbis -f ogg -ab 64k test-Vorbis.ogg - -# PCM/WAVE -mplayer "$IN" -benchmark -vc null -vo null -ao pcm:fast:waveheader:file=test-PCM.wav -# 8bit -sox -S test-PCM.wav -b 8 test-PCM8.wav -# 16bit -sox -S test-PCM.wav -b 16 test-PCM16.wav -# The original format is undefined -- could be either 8 or 16 bit depending on the input. -# Let's dispose of it... -rm -f test-PCM.wav - -# AMR -sox -S test-PCM16.wav -c 1 -r 8000 -t amr-nb test-AMR-NB.3gp -# FIXME we probably want to add an AMR-WB sample when a free encoder -# becomes available -# Non-free encoder for testing could be built with -# http://www.penguin.cz/~utx/amr - -# ================ -# == Video-only == -# ================ -# H.263 -"$FFMPEG" -y -i "$IN" -vcodec h263 -s cif -r 25 -vb 768000 -an -f 3gp test-H.263.3gp - -# H.264 AVC Baseline Profile -"$FFMPEG" -y -i "$IN" -vcodec libx264 -vb 1024000 -vpre libx264-baseline -an -f mp4 test-H.264.m4v - - -# MPEG-4 SP -"$FFMPEG" -y -i "$IN" -vcodec mpeg4 -vb 768000 -an -f mp4 test-MPEG4_SP.mp4 - -# VP8 -"$FFMPEG" -y -i "$IN" -vcodec libvpx -vb 768000 -an -f webm test-VP8.webm - - -# ========================== -# == Combined Audio/Video == -# ========================== -# H.263 + AAC in a 3gp container -"$FFMPEG" -y -i "$IN" -vcodec h263 -s cif -r 25 -vb 768000 -acodec libfaac -ac 1 -ar 8000 -ab 32000 -f 3gp test-H.263-AAC.3gp - -# H.264 AVC Baseline + AAC in an mp4 container -"$FFMPEG" -y -i "$IN" -vcodec libx264 -vb 1024000 -vpre libx264-baseline -acodec aac -strict experimental -ab 96000 -f mp4 test-H.264-AAC.mp4 -# Same thing at a much higher resolution and bitrate -"$FFMPEG" -y -i "$IN" -s hd1080 -vcodec libx264 -vb 2048000 -vpre libx264-baseline -acodec aac -strict experimental -ab 96000 -f mp4 test-H.264-AAC-HD.mp4 - -# MPEG-4 SP + MP3 in an mp4 container -"$FFMPEG" -y -i "$IN" -vcodec mpeg4 -vb 768000 -acodec libmp3lame -ab 64000 -f mp4 test-MPEG4-MP3.mp4 - -# VP8 + Vorbis in a WebM container (Android 2.3.3+) -"$FFMPEG" -y -i "$IN" -vcodec libvpx -vb 1024000 -vpre libvpx-360p -f webm -acodec libvorbis -ab 48000 test-VP8-Vorbis.webm diff --git a/creator/patches/faac/faac-1.28-compile.patch b/creator/patches/faac/faac-1.28-compile.patch deleted file mode 100644 index cc715ab..0000000 --- a/creator/patches/faac/faac-1.28-compile.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- faac-1.28/common/mp4v2/mpeg4ip.h.ark 2011-06-07 19:26:04.680615623 +0200 -+++ faac-1.28/common/mp4v2/mpeg4ip.h 2011-06-07 19:26:12.087281975 +0200 -@@ -120,14 +120,6 @@ - #endif - #include <sys/param.h> - --#ifdef __cplusplus --extern "C" { --#endif --char *strcasestr(const char *haystack, const char *needle); --#ifdef __cplusplus --} --#endif -- - #define OPEN_RDWR O_RDWR - #define OPEN_CREAT O_CREAT - #define OPEN_RDONLY O_RDONLY diff --git a/creator/patches/flac/flac-1.2.1-gcc-4.3.patch b/creator/patches/flac/flac-1.2.1-gcc-4.3.patch deleted file mode 100644 index e7aad37..0000000 --- a/creator/patches/flac/flac-1.2.1-gcc-4.3.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- flac-1.2.1/examples/cpp/encode/file/main.cpp.ark 2008-03-26 17:28:17.000000000 +0100 -+++ flac-1.2.1/examples/cpp/encode/file/main.cpp 2008-03-26 17:28:26.000000000 +0100 -@@ -30,6 +30,7 @@ - - #include <stdio.h> - #include <stdlib.h> -+#include <string.h> - #include "FLAC++/metadata.h" - #include "FLAC++/encoder.h" - diff --git a/mmtest/src/org/linaro/mmtest/MultimediaTest.java b/src/org/linaro/mmtest/MultimediaTest.java index 3dcb750..3dcb750 100644 --- a/mmtest/src/org/linaro/mmtest/MultimediaTest.java +++ b/src/org/linaro/mmtest/MultimediaTest.java |