Advertisement
Guest User

configure_ffmpeg.sh

a guest
Dec 5th, 2012
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | None | 0 0
  1. #!/bin/bash
  2. pushd `dirname $0`
  3. . settings.sh
  4.  
  5. if [[ $DEBUG == 1 ]]; then
  6.   echo "DEBUG = 1"
  7.   DEBUG_FLAG="--disable-stripping"
  8. fi
  9.  
  10. # I haven't found a reliable way to install/uninstall a patch from a Makefile,
  11. # so just always try to apply it, and ignore it if it fails. Works fine unless
  12. # the files being patched have changed, in which cause a partial application
  13. # could happen unnoticed.
  14. patch -N -p1 --reject-file=- < redact-plugins.patch
  15. patch -N -p1 --reject-file=- < arm-asm-fix.patch
  16. patch -d ffmpeg -N -p1 --reject-file=- < \
  17.     ARM_generate_position_independent_code_to_access_data_symbols.patch
  18. patch -d ffmpeg -N -p1 --reject-file=- < \
  19.     ARM_intmath_use_native-size_return_types_for_clipping_functions.patch
  20. patch -d ffmpeg -N -p1 --reject-file=- < \
  21.     enable-fake-pkg-config.patch
  22.  
  23. pushd ffmpeg
  24.  
  25. ./configure \
  26. $DEBUG_FLAG \
  27. --arch=arm \
  28. --cpu=cortex-a8 \
  29. --target-os=linux \
  30. --enable-runtime-cpudetect \
  31. --prefix=$prefix \
  32. --enable-pic \
  33. --disable-shared \
  34. --enable-static \
  35. --cross-prefix=$NDK_TOOLCHAIN_BASE/bin/$NDK_ABI-linux-androideabi- \
  36. --sysroot="$NDK_SYSROOT" \
  37. --extra-cflags="-I../x264 -mfloat-abi=softfp -mfpu=neon" \
  38. --extra-ldflags="-L../x264" \
  39. \
  40. --enable-version3 \
  41. --enable-gpl \
  42. \
  43. --disable-doc \
  44. --enable-yasm \
  45. \
  46. --enable-decoders \
  47. --enable-encoders \
  48. --enable-muxers \
  49. --enable-demuxers \
  50. --enable-parsers \
  51. --enable-protocols \
  52. --enable-filters \
  53. --enable-avresample \
  54. --enable-libfreetype \
  55. \
  56. --disable-indevs \
  57. --enable-indev=lavfi \
  58. --disable-outdevs \
  59. \
  60. --enable-hwaccels \
  61. \
  62. --enable-ffmpeg \
  63. --disable-ffplay \
  64. --disable-ffprobe \
  65. --disable-ffserver \
  66. --disable-network \
  67. \
  68. --enable-libx264 \
  69. --enable-zlib
  70.  
  71. popd; popd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement