View Full Version : Mencoder help
runae
10th October 2008, 03:56
First off I am new here I hope I post this in the right place...
I recently formatted my system (debian) and I went and did a fresh install of x264 and mplayer (x264 first of course)
(mplayer config command)
/configure --enable-crash-debug --libdir=/usr/local/lib
however
ldd /usr/local/bin/mencoder | grep x264
libx264.so.65 => not found
not sure what I did wrong because libx264.so.65 is in the /usr/local/lib directory...
if someone can help me fix this that would be great :D
~Runae
talen9
10th October 2008, 11:01
Try running "ldconfig" as root (or via "sudo"), which is something you should do every time after installing a new lib :)
Henrikx
10th October 2008, 13:49
@runae
Debian Lenny (testing)
Step 1 (Example)
Edit /etc/apt sources.list
deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free
deb http://ftp.de.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
deb http://www.debian-multimedia.org/ testing main
deb-src http://www.debian-multimedia.org/ testing main
su (root)
aptitude full-upgrade
Step 2
Install (aptitude, oder synaptic)
yasm,
git, git core, git gui, gitk
gcc, gcc 4.3 - base, locales, multilib, source
checkinstall
fakeroot
build-essential
subversion
libx264-60
libx264.dev
gpac
libgpac0.4.5
libgpac-dev
ffmpeg
Step 3
git clone git://git.videolan.org/x264.git
cd /x264
./configure --enable-shared --enable-mp4-output --enable-pthread --enable-visualize
make
su (root)
checkinstall
Change Nr.3 checkinstall to 1:0.svn20081011
Step 4 ffmpeg
su (root)
apt-get build-dep ffmpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk
cd /ffmpeg
(Example)
/configure --enable-gpl --prefix=/usr --libdir=/usr/lib --enable-shared --enable-liba52 --enable-x11grab --enable-pthreads --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libxvid --enable-libx264 --enable-nonfree --enable-muxer=matroska --enable-muxer=mp4
make
make install
Step 5 mplayer
su (root)
apt-get build-dep mplayer
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /mplayer
Edit in /mplayer/trunk/debian
Changelog - first Line to
mplayer (1:1.0.rc2svn20081011) unstable; urgency=low
save
Edit rules to
(Example)
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
$(checkdir)
# If you plan to install the target .deb on a wide variety of machines,
# you may want to add the "--enable-runtime-cpudetection" option to
# the line below, but beware: the resulting binary will run slower
./configure --prefix=/usr --confdir=/etc/mplayer --enable-dvb --win32codecsdir=/usr/lib/win32 --enable-largefiles --enable-xshape --enable-sdl --disable-liblzo --language=de $(DEB_BUILD_OPTIONS)
touch configure-stamp
save
cd /mplayer
fakeroot debian/rules binary
After a while you found mplayer_1.0.rc2svn20081011_i386.deb
Install (as root) mplayer_1.0.rc2svn20081011_i386.deb
(after an error start again, but first.. fakeroot debian/rules clean)
Step 6 (This Step you need only one time)
svn mplayer and mencoder are installed. mencoder is not registered.
Install equivs
create a directory dummy
cd /dummy
equivs-control mencoder
edit (Text File) mencoder
### Commented entries have reasonable defaults.
### Uncomment to edit them.
Section: misc
Priority: optional
Standards-Version: 3.6.2
Package: mencoder
Version: 1:1.0.rc2svn20081011
Maintainer: Your Name <runae>
# Pre-Depends: <comma-separated list of packages>
Depends: mplayer
Recommends: mplayer
# Suggests: <comma-separated list of packages>
# Provides: <comma-separated list of packages>
# Replaces: <comma-separated list of packages>
# Architecture: all
# Copyright: <copyright file; defaults to GPL2>
# Changelog: <changelog file; defaults to a generic changelog>
# Readme: <README.Debian file; defaults to a generic one>
# Extra-Files: <comma-separated list of additional files for the doc directory>
Description: Dummy-mencoder
long description and info
.
second paragraph
save
equivs-build mencoder
You found a dummy 1:1.0.rc2svn20081011_all.deb
Install (root) 1:1.0.rc2svn20081011_all.deb
Now all ist fine and you are up to date...
If you want to update X264, ffmpeg, mplayer from time to time...
cd /your work directory
For subversion Update = svn update
For git Update = git pull
Have Fun....
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.