Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. Install the Dependencies
  2. 1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following (you can usually paste into a terminal with shift+ctrl+v). Copy and paste the whole code box for each step.
  3. Code:
  4.  
  5. sudo apt-get remove ffmpeg x264 libx264-dev
  6.  
  7. 2. Get all of the packages you will need to install FFmpeg and x264 (you may need to enable the Universe and Multiverse repositories):
  8. Code:
  9.  
  10. sudo apt-get update
  11. sudo apt-get install build-essential checkinstall git libfaac-dev libjack-jackd2-dev \
  12. libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev \
  13. libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev texi2html yasm zlib1g-dev
  14.  
  15.  
  16. Install x264
  17. 3. Get the current source files, compile, and install x264.
  18. Code:
  19.  
  20. cd
  21. git clone git://git.videolan.org/x264
  22. cd x264
  23. ./configure --enable-static
  24. make
  25. sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
  26. awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
  27. --fstrans=no --default
  28.  
  29.  
  30. Install libvpx (optional)
  31. 4. This is used to encode VP8 video. If you follow this step, add --enable-libvpx to the FFmpeg ./configure line in step 5.
  32. Code:
  33.  
  34. sudo apt-get remove libvpx-dev
  35. cd
  36. git clone http://git.chromium.org/webm/libvpx.git
  37. cd libvpx
  38. ./configure
  39. make
  40. sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no \
  41. --deldoc=yes --fstrans=no --default
  42.  
  43.  
  44. Install FFmpeg
  45. 5. Get the most current source files, compile, and install FFmpeg.
  46. Code:
  47.  
  48. cd
  49. git clone --depth 1 git://git.videolan.org/ffmpeg
  50. cd ffmpeg
  51. ./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
  52. --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 \
  53. --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
  54. make
  55. sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \
  56. --deldoc=yes --fstrans=no --default
  57. hash x264 ffmpeg ffplay ffprobe
  58.  
  59.  
  60. Install qt-faststart (optional)
  61. 6. This is a useful tool if you're showing your H.264 MP4 videos on the web. It relocates some data in the video to allow playback to begin before the file is completely downloaded. Usage: qt-faststart input.mp4 output.mp4.
  62. Code:
  63.  
  64. cd ~/ffmpeg
  65. make tools/qt-faststart
  66. sudo checkinstall --pkgname=qt-faststart --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \
  67. --deldoc=yes --fstrans=no --default install -Dm755 tools/qt-faststart \
  68. /usr/local/bin/qt-faststart
  69.  
  70.  
  71. Adding lavf support to x264 (optional)
  72. 7. This allows x264 to accept just about any input that FFmpeg can handle and is useful if you want to use x264 directly. See a more detailed explanation by forum member qyot27.
  73. Code:
  74.  
  75. cd ~/x264
  76. make distclean
  77. ./configure --enable-static
  78. make
  79. sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
  80. awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
  81. --fstrans=no --default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement