Sunday 3 May 2009

.flv playback, ubuntu

First, try gxine. If that fails.....

From http://ubuntuforums.org/showthread.php?t=484750

How to enable lame for FFMPEG (needed to encode FLV with sound)

KINO FLVs silent? You need to recompile FFMPEG with LAME enabled. FFMPEG can be installed via apt-get as a package, but is not able encode MP3, which is the audio stream in FLV video (like Google & YouTube).

* Ensure Ubuntu Universe repository is selected #How to add extra repositories
* Download and install lame liblame-dev and gcc packages (mp3 encoder + GNU compiler collection)

sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 \
liba52-0.7.4-dev libx264-dev libdts-dev libgsm1-dev libvorbis-dev libdc1394-13-dev \
checkinstall build-essential gcc

libfaac didnt work for me.

* Download and extract FFMPEG source to current working directory

cd /usr/local/src
sudo apt-get source ffmpeg

* Compile FFMPEG from source

cd ffmpeg-*
NOT THIS ONE:
sudo ./configure --enable-gpl --enable-pp --enable-vorbis --enable-libogg \
--enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-pthreads \
--enable-x264

THIS ONE, without faad
maybe try instead =
sudo ./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libogg \
--enable-liba52 --enable-libdts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-pthreads \
--enable-x264


sudo make
sudo checkinstall [accept defaults, set version to 3:0.cvs20060823-3.1ubuntu2]

If during the make it dies at 'x264.c:147: error: `struct ` has no member name `i_rf_constant` you need to do the following. Open libavcodec/x264.c and goto line 147. Change 'i_rf_constant' to 'f_rf_constant' and retry.

If an application you are using employs FFMPEG to encode FLV, it should now work properly. You can also call FFMPEG directly from the command line. The extension/suffix of the outfile tells FFMPEG which audio or video format to encode to.

ffmpeg [-i infile] [outfile]



Then, i removed xine-ui, downloaded the xine core stuff, ./configured, added an LD_LIBRARY_PATH
to .bashrc (as suggested at the end of the ./configure)

Added include /usr/local/lib to ld.so.conf


sudo make install

sudo ldconfig

wget http://prdownloads.sourceforge.net/xine/xine-ui-0.99.5.tar.gz
tar xzf xine-ui
cd xine-ui
./configure
sudo make install

then i couldnt run it, so bottled the process with:

sudo apt-get install xine-ui

and still, no .flv playback, ffs


and then, somehow, gxine worked! Odd.

No comments:

Post a Comment