'''Note:''' You can download the nightly [http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 FFmpeg source snapshot] as an alternative to using `git`.

124

125

== Finish ==

126

Installation is now complete and FFmpeg is now ready for use. You can keep the x264, libvpx, and ffmpeg directories in your home directory if you plan on updating later. See [#update Updating FFmpeg] below for more details. Some optional steps are next followed by instructions on updating FFmpeg and finally instructions on reverting all changes made by this guide.

127

128

----

129

130

== Optional Installation ==

131

=== qt-faststart ===

132

This is a useful tool if you're showing your H.264 in 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`. When converting files with ffmpeg you can add `-movflags faststart` to have the same effect.

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 [http://ubuntuforums.org/showpost.php?p=11243462&postcount=1839 more detailed explanation] of what this means.

143

{{{

144

cd ~/x264

145

make distclean

146

./configure --enable-static

147

make

148

sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \

149

awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \

150

--fstrans=no --default

151

}}}

152

153

----

154

155

== Updating FFmpeg ==#update

156

Development of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. First, remove some packages and then update the dependencies: