<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; ffmpeg</title>
	<atom:link href="http://www.sajithmr.me/tag/ffmpeg/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 16:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Install FFMPEG in MAC</title>
		<link>http://www.sajithmr.me/install-ffmpeg-in-mac</link>
		<comments>http://www.sajithmr.me/install-ffmpeg-in-mac#comments</comments>
		<pubDate>Fri, 29 Apr 2011 15:34:41 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/install-ffmpeg-in-mac/</guid>
		<description><![CDATA[Install port first Run: sudo port -fvds selfupdate (to get the recent list) port search ffmpeg port variants ffmpeg sudo port install ffmpeg +gpl +lame +x264 +xvid Install java before these steps]]></description>
			<content:encoded><![CDATA[<p style="clear: both">Install port first </p>
<p style="clear: both">Run: sudo port -fvds selfupdate (to get the recent list)</p>
<p style="clear: both">port search ffmpeg</p>
<p style="clear: both">port variants ffmpeg</p>
<p style="clear: both">sudo port install ffmpeg +gpl +lame +x264 +xvid</p>
<p style="clear: both">Install java before these steps</p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/install-ffmpeg-in-mac/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>getId3 &#8211; PHP library for audio contents</title>
		<link>http://www.sajithmr.me/getid3-php-library-for-audio-contents</link>
		<comments>http://www.sajithmr.me/getid3-php-library-for-audio-contents#comments</comments>
		<pubDate>Thu, 06 Jan 2011 15:03:40 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[duration]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[getid3]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[wav]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/getid3-php-library-for-audio-contents/</guid>
		<description><![CDATA[I recently use getId3 library to manipulate audio files from PHP. It is very accurate than FFMPEG. For example, FFMPEG is not helpful for audio files having VBR (Various Bit Rate). It returns error max_analyze_duration reached OR &#8220;Estimating duration from bitrate, this may be inaccurate&#8221; But by using getId3, we can retrieve detailed information about [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both">I recently use getId3 library to manipulate audio files from PHP. It is very accurate than FFMPEG. For example, FFMPEG is not helpful for audio files having VBR (Various Bit Rate).</p>
<p style="clear: both">It returns error </p>
<p style="clear: both">max_analyze_duration reached</p>
<p style="clear: both">OR</p>
<p style="clear: both">&#8220;Estimating duration from bitrate, this may be inaccurate&#8221;</p>
<p style="clear: both">But by using getId3, we can retrieve detailed information about a particular audio file (WAV, MP3 or any)</p>
<p style="clear: both">This library can be used for any kind of medias.<br />You can download it from <a href="http://getid3.sourceforge.net/" target="_blank">http://getid3.sourceforge.net/</a></p>
<p style="clear: both">&#8211; Sajith</p>
<p style="clear: both">
<p style="clear: both">
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/getid3-php-library-for-audio-contents/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Requirements for a Video Website</title>
		<link>http://www.sajithmr.me/requirements-for-a-video-website</link>
		<comments>http://www.sajithmr.me/requirements-for-a-video-website#comments</comments>
		<pubDate>Mon, 23 Jun 2008 07:52:57 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[webworld]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[cdn]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[s3]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/requirements-for-a-video-website/</guid>
		<description><![CDATA[If you are planing to start a video website like youtube, here is some things to keep in mind. FLV PLAYER ======== You know in now a days most of the video streaming websites use flash player for video streaming. The video file is in flv format. So you need a flash video player for [...]]]></description>
			<content:encoded><![CDATA[<p>If you are planing to start a video website like youtube, here is some things to keep in mind.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/06/usher_love480.jpg" /></p>
<p>FLV PLAYER<br />
========</p>
<p>You know in now a days most of  the video streaming websites use flash player for video streaming. The video file is in flv format. So you need a flash video player for this purpose.<br />
You can download a free flash / flv player from : <a href="http://www.jeroenwijering.com/?item=JW_FLV_Player" target="_blank">http://www.jeroenwijering.com/?item=JW_FLV_Player</a><br />
or <a href="http://flowplayer.org/" target="_blank">http://flowplayer.org/</a></p>
<p>FORMAT CONVERSION<br />
===============</p>
<p>Now you need videos in flv file format. In normal cases, most of the videos uploaded by an user will be in avi, dat ,mpg,mp4 or 3gp. So you need a flv converter. You can use either <a href="http://www.sajithmr.com/ffmpeg-sample-code/" target="_blank">ffmpeg</a> library or <a href="http://www.sajithmr.com/mencoder-video-convertion-tool/" target="_blank">mencoder</a> for this purpose</p>
<p>Here is a sample video emmbedding method.</p>
<pre class="crayon-plain-tag"><code>&lt;object&gt;
codebase=&quot;http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0&quot;
width=&quot;450&quot; height=&quot;375&quot; id=&quot;/YouTube_video/youtube&quot; align=&quot;middle&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;youtube.swf?xml=config.xml&amp;video=121264118224947.flv&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot;&gt;&lt;/param&gt;
&lt;embed src=&quot;youtube.swf?xml=config.xml&amp;video=121264118224947.flv&quot;&gt;&lt;/embed&gt;
bgcolor=&quot;#ffffff&quot; width=&quot;450&quot; height=&quot;375&quot; type=&quot;application/x-shockwave-flash&quot;
pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; /&gt;;
&lt;/object&gt;</code></pre><p>
Here src parameter points the swf file, the flash palyer and video parameter points the flv file. This is the format of player i used in <a href="http://www.amvizone.com" title="The Amateur Video Zone" target="_blank">http://www.amvizone.com</a></p>
<p>ffmpeg also can be used for making thumbnails and video watermarking</p>
<p>STORAGE and BANDWIDTH<br />
=====================</p>
<p>Where would you save flv files. In yourown server ? If there is a minimum number of videos, your server might handle it. But consider the case having a large number of videos, your server bandwidth will  get used  soon. So we have to switch into a CDN (Content Data Network) like <a href="http://www.sajithmr.com/amazon-s3-example/" target="_blank">amazone S3.</a> What you have to do is just register with any CDN website and use their webservices for uploading and manipulating your video files. These CDN have very reasonable cost for the bandwidth usage and storage space.</p>
<p>Comment here if any queries<br />
Regards</p>
<p>Sajith M.R</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/requirements-for-a-video-website/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>ffmpeg sample code</title>
		<link>http://www.sajithmr.me/ffmpeg-sample-code</link>
		<comments>http://www.sajithmr.me/ffmpeg-sample-code#comments</comments>
		<pubDate>Tue, 12 Jun 2007 15:12:02 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=10</guid>
		<description><![CDATA[Install ffmpeg library in your server first. Place a video file of any type on current directory (or anywhere), here it is clock.avi . Click more for source code:extension_loaded('ffmpeg') or die('Error in loading ffmpeg'); $ffmpegInstance = new ffmpeg_movie('clock.avi'); echo &#34;getDuration: &#34; . $ffmpegInstance-&#38;gt;getDuration() . &#34;getFrameCount: &#34; . $ffmpegInstance-&#38;gt;getFrameCount() . &#34;getFrameRate: &#34; . $ffmpegInstance-&#38;gt;getFrameRate() . &#34;getFilename: [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-753" title="ffmpeg" src="http://www.sajithmr.me/wp-content/uploads/2007/06/ffmpeg.jpg" alt="ffmpeg" width="128" height="32" /></p>
<p>Install ffmpeg library in your server first.</p>
<p>Place a video file of any type on current directory (or anywhere), here it is clock.avi .</p>
<p>Click more for source code:</p><pre class="crayon-plain-tag"><code>extension_loaded('ffmpeg') or die('Error in loading ffmpeg');

$ffmpegInstance = new ffmpeg_movie('clock.avi');
echo &quot;getDuration: &quot; . $ffmpegInstance-&amp;gt;getDuration() .
&quot;getFrameCount: &quot; . $ffmpegInstance-&amp;gt;getFrameCount() .
&quot;getFrameRate: &quot; . $ffmpegInstance-&amp;gt;getFrameRate() .
&quot;getFilename: &quot; . $ffmpegInstance-&amp;gt;getFilename() .
&quot;getComment: &quot; . $ffmpegInstance-&amp;gt;getComment() .
&quot;getTitle: &quot; . $ffmpegInstance-&amp;gt;getTitle() .
&quot;getAuthor: &quot; . $ffmpegInstance-&amp;gt;getAuthor() .
&quot;getCopyright: &quot; . $ffmpegInstance-&amp;gt;getCopyright() .
&quot;getArtist: &quot; . $ffmpegInstance-&amp;gt;getArtist() .
&quot;getGenre: &quot; . $ffmpegInstance-&amp;gt;getGenre() .
&quot;getTrackNumber: &quot; . $ffmpegInstance-&amp;gt;getTrackNumber() .
&quot;getYear: &quot; . $ffmpegInstance-&amp;gt;getYear() .
&quot;getFrameHeight: &quot; . $ffmpegInstance-&amp;gt;getFrameHeight() .
&quot;getFrameWidth: &quot; . $ffmpegInstance-&amp;gt;getFrameWidth() .
&quot;getPixelFormat: &quot; . $ffmpegInstance-&amp;gt;getPixelFormat() .
&quot;getBitRate: &quot; . $ffmpegInstance-&amp;gt;getBitRate() .
&quot;getVideoBitRate: &quot; . $ffmpegInstance-&amp;gt;getVideoBitRate() .
&quot;getAudioBitRate: &quot; . $ffmpegInstance-&amp;gt;getAudioBitRate() .
&quot;getAudioSampleRate: &quot; . $ffmpegInstance-&amp;gt;getAudioSampleRate() .
&quot;getVideoCodec: &quot; . $ffmpegInstance-&amp;gt;getVideoCodec() .
&quot;getAudioCodec: &quot; . $ffmpegInstance-&amp;gt;getAudioCodec() .
&quot;getAudioChannels: &quot; . $ffmpegInstance-&amp;gt;getAudioChannels() .
&quot;hasAudio: &quot; . $ffmpegInstance-&amp;gt;hasAudio();</code></pre><p>
//___________________________________Code end here_____________________________________</p>
<p>I also can be used for file format conversion</p>
<p>Eg: exec(&#8216;ffmpeg -i &#8216;.$SourcePath.&#8217; &#8216;.$Destination);</p>
<p>Here $SourcePath any file of any format , and destionation also another format.</p>
<p>eg: exec(&#8216;ffmpeg -i saji.3gp saji.flv&#8217;);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/ffmpeg-sample-code/feed</wfw:commentRss>
		<slash:comments>96</slash:comments>
		</item>
	</channel>
</rss>

