Linux Video: dvd::rip, mencoder, mp4
Long command lines or GUI tool to rip and transcode? Transcode vs mencoder? mpeg4ip vs GPAC?
ubuntu
fedora
install some standard packages Note some package versions referred to here are old e.g. like SDL (Ubuntu gave me 1.2.7 instead of the latest SDL tarball 1.2.9 but I'm going with the package version for now, same for e.g. xvid). More tools and info http://docs.indymedia.org/view/Sysadmin/WebTVPt
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpac co -P gpac
Dont forget to make install-lib to get the static lib too. You end up with libgpac and libgpac_static into /usr/local/lib and MP4Box and MP4Client in /usr/local/bin/.
wget http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
sudo cp essential-20050412/* /usr/local/lib/codecs/
Package installs
First save time by installing common players/codecs/libs. debianubuntu
fedora
install some standard packages Note some package versions referred to here are old e.g. like SDL (Ubuntu gave me 1.2.7 instead of the latest SDL tarball 1.2.9 but I'm going with the package version for now, same for e.g. xvid). More tools and info http://docs.indymedia.org/view/Sysadmin/WebTVPt
faac
faac 1.24; ./bootstrap; ./configure --with-mp4v2=noffmpeg
There is of course a ffmpeg package, but mpeg4ip bootstrap did not find it so I decided to download and build faac, ffmpeg and mpeg4ip from source. apt-get remove ffmpeg get ffmpeg from cvs; ./configure; make; make install; make installlibGPAC (MP4 tools)
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpac logincvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpac co -P gpac
Dont forget to make install-lib to get the static lib too. You end up with libgpac and libgpac_static into /usr/local/lib and MP4Box and MP4Client in /usr/local/bin/.
x264
Either from snapshot x264-snapshot-20051214-2245 or better from svn (mplayer might refuse to build with even slightly old versions) svn co svn://svn.videolan.org/x264/trunk x264 Make sure mp4 support is enabled in the configure output.mpeg4ip
Built from src - be careful to check configure output. bq. For version 0.4.9, we recommend that you install the ffmpeg libraries and include files. When installing ffmpeg, use the additional make installlib command. mpeg4ip should then automatically detect that the ffmpeg library exists. If you wish AMR decoding, you will want to build ffmpeg with AMR support - see their documentation for that. (Basically, use their enable-amr_wb and enable-amr_nb code, get the code and unzip it in the correct sub-directory - for the amr_float directory, you'll have to move the code from c-code to amr_float). mpeg4ip 1.4.1 cd mpeg4ip-1.4.1 && ./bootstrap (do not use any args)Mp4live encoder report: ffmpeg encoder is installed xvid encoder is installed x264 encoder is installed lame encoder is installed faac encoder is installedmake; make install
mplayer
wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20050412.tar.bz2wget http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
sudo cp essential-20050412/* /usr/local/lib/codecs/
Enabled optional drivers:
Input: ftp network tv-v4l2 tv-v4l edl tv matroska mpdvdkit2 vcd dvb
Codecs: qtx x264 xvid libavcodec real dshow/dmo win32 faad2(internal) faac libmpeg2 liba52 mp3lib tremor(internal)
Audio output: alsa esd arts oss nas sdl mpegpes(dvb)
Video output: xvidix cvidix sdl md5sum pnm jpeg png mpegpes(dvb) fbdev aa opengl x11 xover tga
Audio filters:
Disabled optional drivers:
Input: vstream tv-bsdbt848 live555 cdda dvdread smb
Codecs: opendivx libdv amr_wb amr_nb xanim musepack libdts libtheora speex twolame toolame libmad liblzo gif
Audio output: sgi sun jack polyp dxr2 dsound win32
Video output: winvidix bl zr zr2 dxr3 dxr2 directx vesa gif89a svga caca ggi xmga mga dga xvmc xv directfb tdfx_vid tdfxfb 3dfx
Audio filters: ladspa
'config.h' and 'config.mak' contain your configuration options.
set dvd::rip. to show a reasonable font size
font size was massive so I chose a font using xfontsel and then had to edit .gtkrc-1.2-gnome2:
style "default-text" {
fontset = "-*-courier-medium-r-*-*-12-*-*-*-*-*-*-*"
}
class "GtkWidget" style "default-text"