<?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>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>Thu, 15 Jul 2010 10:34:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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>Sajith M.R</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 lang="html">

<object>
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0"
width="450" height="375" id="/YouTube_video/youtube" align="middle"><param name="movie" value="youtube.swf?xml=config.xml&#038;video=121264118224947.flv"></param><param name="quality" value="high"></param><param name="bgcolor" value="#ffffff"></param>
<embed src="youtube.swf?xml=config.xml&#038;video=121264118224947.flv"></embed>bgcolor="#ffffff" width="450" height="375" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />;
</object>
</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>10</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>Sajith M.R</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 "getDuration: " . $ffmpegInstance-&#62;getDuration() . "getFrameCount: " . $ffmpegInstance-&#62;getFrameCount() . "getFrameRate: " . $ffmpegInstance-&#62;getFrameRate() . [...]]]></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 lang="php">extension_loaded('ffmpeg') or die('Error in loading ffmpeg');

$ffmpegInstance = new ffmpeg_movie('clock.avi');
echo "getDuration: " . $ffmpegInstance-&gt;getDuration() .
"getFrameCount: " . $ffmpegInstance-&gt;getFrameCount() .
"getFrameRate: " . $ffmpegInstance-&gt;getFrameRate() .
"getFilename: " . $ffmpegInstance-&gt;getFilename() .
"getComment: " . $ffmpegInstance-&gt;getComment() .
"getTitle: " . $ffmpegInstance-&gt;getTitle() .
"getAuthor: " . $ffmpegInstance-&gt;getAuthor() .
"getCopyright: " . $ffmpegInstance-&gt;getCopyright() .
"getArtist: " . $ffmpegInstance-&gt;getArtist() .
"getGenre: " . $ffmpegInstance-&gt;getGenre() .
"getTrackNumber: " . $ffmpegInstance-&gt;getTrackNumber() .
"getYear: " . $ffmpegInstance-&gt;getYear() .
"getFrameHeight: " . $ffmpegInstance-&gt;getFrameHeight() .
"getFrameWidth: " . $ffmpegInstance-&gt;getFrameWidth() .
"getPixelFormat: " . $ffmpegInstance-&gt;getPixelFormat() .
"getBitRate: " . $ffmpegInstance-&gt;getBitRate() .
"getVideoBitRate: " . $ffmpegInstance-&gt;getVideoBitRate() .
"getAudioBitRate: " . $ffmpegInstance-&gt;getAudioBitRate() .
"getAudioSampleRate: " . $ffmpegInstance-&gt;getAudioSampleRate() .
"getVideoCodec: " . $ffmpegInstance-&gt;getVideoCodec() .
"getAudioCodec: " . $ffmpegInstance-&gt;getAudioCodec() .
"getAudioChannels: " . $ffmpegInstance-&gt;getAudioChannels() .
"hasAudio: " . $ffmpegInstance-&gt;hasAudio();</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>77</slash:comments>
		</item>
	</channel>
</rss>
