greatseth / rvideo forked from zencoder/rvideo

RVideo, a Ruby gem for video and audio transcoding. Others are doing more work. I am pondering a full rewrite in a new project..

This URL has Read+Write access

greatseth (author)
Mon Apr 13 14:18:29 -0700 2009
commit  edc97bac589f31ed4502b0ff9852df242b7543f2
tree    cf27e83f3e8ca6c0a7b7e5da41be49b20b1db1b2
parent  7ef699e0d58cae99c2e8f4c1519574d24f911c85
rvideo / ENV2
100644 129 lines (105 sloc) 3.972 kb
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
adduser rvideo
(add rvideo to sudoers)
su - rvideo
mkdir src
cd src
 
sudo apt-get update (necessary?)
sudo apt-get install automake
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install m4
sudo apt-get install g++ (gcc-c++ in fedora?) # not in OS X - xcode instead?
sudo apt-get install yasm
 
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
wget http://downloads.sourceforge.net/faac/faac-1.25.tar.gz
wget http://downloads.sourceforge.net/faac/faad2-2.5.tar.gz
wget http://downloads.xiph.org/releases/theora/libtheora-1.0alpha7.tar.bz2
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.0.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.2.tar.bz2
 
sudo gem install flvtool2
 
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn co svn://svn.videolan.org/x264/trunk x264
 
tar xzvf a52dec-0.7.4.tar.gz
tar xzvf faac-1.25.tar.gz
tar xzvf faad2-2.5.tar.gz
tar xzvf lame-3.97.tar.gz
tar xzvf xvidcore-1.1.3.tar.gz
tar xzvf libogg-1.1.3.tar.gz
tar xjvf all-20061022.tar.bz2
tar xjvf libtheora-1.0alpha7.tar.bz2
tar xjvf amrnb-7.0.0.0.tar.bz2
tar xjvf amrwb-7.0.0.2.tar.bz2
 
sudo mkdir /usr/local/lib/codecs
sudo mv all-20061022/* /usr/local/lib/codecs
sudo chmod -R 755 /usr/local/lib/codecs/
 
echo /usr/local/lib >>/etc/ld.so.conf # not OS X
sudo ldconfig -v # not OS X
 
cd libogg-1.1.3
./configure --enable-shared && make && sudo make install
cd ..
 
cd libvorbis-1.2.0
./configure --enable-shared && make && sudo make install
cd ..
:3
cd libtheora-1.0alpha7
./configure --enable-shared && make && sudo make install
cd ..
 
cd faac
# PATCH as described at http://research.m1stereo.tv/wiki/index.php/Build_video_enc_env#faac
autoreconf -vif
./configure --with-mp4v2 && make && sudo make install
cd ..
 
cd faad2
 
# OS X -
# Patch as per darwinports version
# Comment out #define HAS_LRINTF block in common.h (including lrintf method definition)
 
# PATCH as described at (Linux) http://research.m1stereo.tv/wiki/index.php/Build_video_enc_env#faad2
autoreconf -vif
./configure && make && sudo make install
cd ..
 
cd xvidcore/build/generic
# OS X (see http://rob.opendot.cl/index.php/useful-stuff/xvid-with-asm-on-os-x/)
./configure --enable-macosx_module
Edit build/generic/platform.inc and ADD the flags shown below:
"-undefined suppress" to SPECIFIC_CFLAGS
"-f macho -DPREFIX" to AFLAGS (so it reads AFLAGS="AFLAGS=-I$(<D)/ -f macho -DPREFIX")
"-read_only_relocs suppress" to SPECIFIC_LDFLAGS
 
# Linux
./configure && make && sudo make install
cd ../../..
 
cd a52dec-0.7.4
./configure --enable-shared=yes && make && sudo make install
cd ..
 
cd lame-3.97
./configure && make && sudo make install
cd ..
 
cd x264
./configure --enable-pthread && make && sudo make install
cd ..
 
cd amrnb-7.0.0.0/
./configure && make && sudo make install
cd ..
 
cd amrwb-7.0.0.0/
./configure && make && sudo make install
cd ..
 
cd ffmpeg
# apply patch from http://research.m1stereo.tv/wiki/index.php/Build_video_enc_env - though use libfaad.c, not faad.c
./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-liba52 --enable-libxvid --enable-libfaac --enable-libfaad --enable-libx264 --enable-libxvid --enable-pp --enable-shared --enable-gpl --enable-libtheora --enable-libfaadbin --enable-liba52bin --enable-libamr_nb --enable-libamr_wb
make && sudo make install
cd ..
 
 
NOT EXECUTED
apt-get install libncurses-devel (names of yum packages)
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
twolame
flac
speex
libdv
libmad
libmpeg2
mpeg4ip
 
http://graphics.cs.uni-sb.de/NMM/Download/external/nmm-1.0.0/external-libraries-optional/mpeg2dec-0.4.0b.tar.gz