forked from devthenet/voyeur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
69 lines (57 loc) · 2.7 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Sources
=======
How to install latest ffmpeg on Ubuntu
-------------------------------
Links
-----
* http://ubuntuforums.org/showthread.php?t=786095 (we have changed step 5)
* STEP 1
------------------------------------------------------------------------------------------
* sudo apt-get remove ffmpeg x264 libx264-dev
* STEP 2
------------------------------------------------------------------------------------------
sudo apt-get update
sudo apt-get install build-essential checkinstall git libfaac-dev libjack-jackd2-dev \
libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev \
libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev texi2html yasm zlib1g-dev
* STEP 3
------------------------------------------------------------------------------------------
git clone git://git.videolan.org/x264
cd x264
./configure --enable-static
make
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
--fstrans=no --defaultit clone git://git.videolan.org/x264
* STEP 4
------------------------------------------------------------------------------------------
sudo apt-get remove libvpx-devcd libvpx
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure
make
sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no \
--deldoc=yes --fstrans=no --default
* STEP 5
------------------------------------------------------------------------------------------
cd
git clone --depth 1 git://git.videolan.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
--enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 \
--enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \
--deldoc=yes --fstrans=no --default
hash x264 ffmpeg ffplay ffprobe
------------------------------------------------------------------------------------------
Conversion settings
-------------------
http://stackoverflow.com/questions/5487085/ffmpeg-covert-html-5-video-not-working
http://johndyer.name/ffmpeg-settings-for-html5-codecs-h264mp4-theoraogg-vp8webm/
ffmpeg -i test.mpeg -b 1500k -vcodec libx264 -vpre slow -vpre baseline -g 30 test.mp4
ffmpeg -i test.mpeg -b 1500k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 30 test.webm
ffmpeg -i test.mpeg -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 test.ogv
Conversion cheat sheet
----------------------
http://rodrigopolo.com/ffmpeg/cheats.html