Page 1 of 1

Compiling/running help with 1.1.5 and 64 bit Debian Lenny

Posted: 23 Dec 2010 19:13
by Jason_25
EDIT: I removed the old post entirely to remove misleading information. The new, hopefully complete post follows.

Well I finally built something acceptable.

I DID end up using Debian Multimedia in the end. I am not sure that it matters though but I will put the exact steps I took anyway.

Add to /etc/apt/sources.list:
deb http://www.debian-multimedia.org/ lenny main

Update sources.
sudo apt-get update

Remove any installed vlc and ffmpeg.
sudo apt-get autoremove vlc
sudo apt-get autoremove ffmpeg

Download VLC 1.1.5 Source tarball.
www.videolan.org/vlc/

VLC Configure Line.
./configure --prefix=/usr --disable-nls --disable-mozilla --disable-live555 --disable-qt4 --disable-skins2 --disable-a52 --enable-x11 --disable-gtk --with-ffmpeg-mp3lame

Compile vlc. I did not install. I just run it straight from the folder it compiles in.
make
or
make -j4
for more speed with dual core

Check to make sure vlc actually compiled without errors. It probably will not without some libraries. Use google or 'apt-file update' then 'apt-file search nameoffile' to find the library. Apt-get the library and then 'make clean' and 'make' again.

get ffpmpeg
cd ~
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg

change directory to ffmpeg folder
cd ffmpeg

ffmpeg configure line
./configure --prefix=/usr --enable-gpl --enable-pthreads
--enable-libmp3lame --enable-libfaac --enable-nonfree --enable-shared
--enable-pic

Compile and ffmpeg
make
or make -j4 for more speed with dual core

Check to make sure ffmpeg actually compiled without errors. It probably will not without some libraries. Use google or 'apt-file update' then 'apt-file search nameoffile' to find the library. Apt-get the library and then 'make clean' and 'make' again.

Install ffmpeg
sudo make install
You probably will not want to be apt-getting anything more related to ffmpeg at this point because the libraries were not installed within the actual packaging system.

Run VLC
./vlc --intf dummy v4l2:///dev/video0 :input-slave=alsa:// :v4l2-standard=0 :file-caching=300 --sout-http-user=jason --sout-http-pwd=test --sout='#transcode{vcodec=mp4v,vb=800,width=320,height=240,acodec=none}:duplicate{dst=file{mux=ts,dst=stream},dst=http{mux=ts,dst=:8080/}}' :no-sout-rtp-sap :no-sout-standard-sap :sout-keep

Scripts:
Recording loop bash script to deal with file archiving and disk space management.
Monitoring script to watch multiple streams at once with mplayer.

So simple right? Wrong. Maybe I will save someone else days of time wasted.