Advertisement
Guest User

Untitled

a guest
Jul 14th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. https://trac.ffmpeg.org/wiki/CompilationGuide/RaspberryPi
  2.  
  3. CROSSTOOL:
  4. ct-ng menuconfig
  5. Paths and misc options
  6. [x] Try features marked as EXPERIMENTAL
  7. [${HOME}/x-tools/${CT_TARGET}] Prefix directory
  8.  
  9. Target options
  10. [hardware (FPU)] Floating point
  11. [x] append 'hf' to the tuple (EXPERIMENTAL)
  12.  
  13. Operating system
  14. [linux] Target OS
  15. [4.3 mainline] Linux kernel version
  16.  
  17. Binary utilities
  18. [2.25.1] binutils version
  19.  
  20. C compiler
  21. [x] Show Linaro versions
  22. [Linaro 2.20-2014.11] glibc version
  23.  
  24.  
  25. ct-ng build
  26.  
  27. export PATH=$PATH:/home/user/x-tools/arm-unknown-linux-gnueabihf/bin
  28. export CCPREFIX="/home/user/x-tools/arm-unknown-linux-gnueabihf/bin/arm-unknown-linux-gnueabihf-"
  29.  
  30.  
  31.  
  32. FDK-AAC:
  33.  
  34. ALSA:
  35.  
  36. ## ON DEV ENV ##
  37. cd /home/user/
  38. git clone git://git.alsa-project.org/alsa-lib.git
  39.  
  40. cd /home/user/alsa-lib/
  41. libtoolize --force --copy --automake
  42. aclocal
  43. autoheader
  44. automake --foreign --copy --add-missing
  45. autoconf
  46. ./configure --prefix=/home/user/alsa-lib-bin --host=arm-unknown-linux-gnueabihf --enable-static=no --enable-shared=yes
  47. make
  48. cd ..
  49. scp -r alsa-lib pi@raspberrypi:/home/pi/src/alsa-lib
  50. ## PASSWORD
  51.  
  52. ## ON RASPBERRY PI ##
  53. cd /home/pi/src/alsa-lib/
  54. ./configure --host=arm-unknown-linux-gnueabihf --enable-static=no --enable-shared=yes
  55. sudo make install
  56.  
  57. FFMPEG:
  58.  
  59. cd /home/user/
  60. git clone git://source.ffmpeg.org/ffmpeg.git
  61.  
  62. cd /home/user/ffmpeg
  63. ./configure --enable-cross-compile --cross-prefix=${CCPREFIX} --arch=armel --target-os=linux --prefix=/home/user/ffmpeg-bin --enable-gpl --enable-nonfree --enable-libfdk-aac --extra-cflags="-I/home/user/fdk-aac-bin/include" --extra-ldflags="-L/home/user/fdk-aac-bin/lib" --extra-cfags="-I/home/user/alsa-lib-bin/include" --extra-ldflags="-L/home/user/alsa-lib-bin/lib" --extra-libs=-ldl
  64. make
  65. make install
  66. cd ..
  67. scp -r ffmpeg-bin pi@raspberrypi:/home/pi/ffmpeg-bin
  68.  
  69.  
  70. RECORDING:
  71.  
  72. ./ffmpeg-bin/bin/ffmpeg -f alsa -i hw:CARD=CODEC -t 30 out.wav
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement