<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenKB::Server Technical Papers &#187; Audio/video</title>
	<atom:link href="http://www.openkb.org/category/audiovideo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openkb.org</link>
	<description>Computer , server issues and solutions</description>
	<lastBuildDate>Sat, 17 Jul 2010 21:16:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ffmpeg install</title>
		<link>http://www.openkb.org/ffmpeg-install/</link>
		<comments>http://www.openkb.org/ffmpeg-install/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 01:16:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Audio/video]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=186</guid>
		<description><![CDATA[Lame mp3 Library download: http://sourceforge.net/projects/lame then compile and install: $ ./configure $ make $ make install Place program in a folder in the classpath, or create symbolic link in usr/bin (or else in classpath) to point to the installation of lame. You can type the following to test install was succesful: $ lame &#8211;help [edit]Ffmpeg [...]]]></description>
			<content:encoded><![CDATA[<p>Lame mp3 Library<br />
download: http://sourceforge.net/projects/lame</p>
<p>then compile and install: </p>
<p>$ ./configure<br />
$ make<br />
$ make install<br />
Place program in a folder in the classpath, or create symbolic link in usr/bin (or else in classpath) to point to the installation of lame. You can type the following to test install was succesful: </p>
<p>$ lame &#8211;help<br />
[edit]Ffmpeg</p>
<p>[edit]Install<br />
website: http://ffmpeg.sourceforge.net/ </p>
<p>1) The CVS server has been retired, ffmpeg now require you to install subversion (&#8220;apt-get install subversion&#8221; on debian) and use that: </p>
<p>$ svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
2) configure, compile and install: </p>
<p>$ ./configure &#8211;enable-libmp3lame &#8211;enable-gpl  &#8211;enable-shared &#8211;enable-libfaad<br />
$ make<br />
$ make install<br />
The &#8211;enable-libfaad option requires that libfaad has already been installed. This is a library for decoding mpeg4 audio (mp4a). If you don&#8217;t mind not having the ability to upload mpeg 4 audio then you won&#8217;t need it, but if you do want to be able to upload videos with mp4a encoding you&#8217;ll have to struggle to get the faad libraries installed. </p>
<p>NB: Some (older?) versions of ffmpeg used &#8220;&#8211;enable-faad&#8221; rather than &#8220;&#8211;enable-libfaad&#8221;, so if it doesn&#8217;t work, try the other option. </p>
<p>At the time of writing, I still can&#8217;t figure how how to do that on either Debian or OS X. </p>
<p>[edit]Pitfalls<br />
Options with configure should work fine. You won&#8217;t need ffserver, so can add &#8211;disable-ffserver. </p>
<p>if you have problems and need to install again, try </p>
<p>$ make clean<br />
then repeat step (2) </p>
<p>[edit]ffmpeg: error while loading shared libraries: libavformat.so: cannot open shared object file: No such file or directory<br />
If the libavformat.so is installed in /usr/local/lib you may need to update /etc/ld.so.conf: add the line /usr/local/lib then type </p>
<p>$ ldconfig<br />
You can also try a complete rebuild with: </p>
<p>$ ./configure options &#8211;prefix=/usr<br />
This should place the ffmpeg executable where it can find the .so file, which is in /usr/local/lib </p>
<p>The second technique may be less invasive. </p>
<p>Note: also the lame library might give the same problem, but the &#8216;&#8211;prefix&#8217; method might not fix, so update that ld.so.conf file. </p>
<p>[edit]Running ffmpeg<br />
Gemin-i Plus uses the following script to convert to .FLV flash video format. Try from the command line to see if it works. inputfile.mov is a .mov file on your server, outputfile.flv is the name you&#8217;re giving to the converted file. </p>
<p>$ ffmpeg -i inputfile.mov -f flv -r 30 -y outputfile.flv<br />
The above command produced slow movies on two installs. Try: </p>
<p>$ ffmpeg -i source.mov -ar 22050  -b 200 -r 12 -f flv -s 640&#215;480 destination.flv<br />
This will resize to 640&#215;480. </p>
<p>For thumbnails, try: </p>
<p>$ ffmpeg -i source.avi -an -ss 00:00:03 -an -r 1 -s 300&#215;200 -vframes 1 -y -pix_fmt rgb24 destination%d.jpg<br />
You will get a file called destination1.jpg, which will show a scene three seconds into the movie you have to remove the 1 yourself, or write a script. There&#8217;s a theoretical possibility of getting more than one destination file, numbered 2 upwards. </p>
<p>The output filename MUST include %d or you will get the error below. The %d will turn into a number 1 once processed. unable for find a suitable output format for destination1.jpg </p>
<p>=================<br />
Error<br />
/usr/include/linux/videodev.h:56: error: syntax error before &#8220;ulong&#8221;<br />
 /usr/include/linux/videodev.h:72: error: syntax error before &#8216;}&#8217; token<br />
libavdevice/v4l.c: In function `grab_read_header&#8217;:</p>
<p>you will need to update the linux-headers or disable the demuxer &#8211;disable-demuxer=v4l during the ./configure process<br />
===============<br />
error<br />
unable to install ffplay </p>
<p>make ffplay fails due to missing xorg-x11 headers andf libs and SDL</p>
<p>yum install SDL  or *http://www.libsdl.org/index.php</p>
<p>Yum install xorg-x11</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/ffmpeg-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
