<?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>J-Doc &#187; ffmpeg</title>
	<atom:link href="http://jsilva.komodoopenlab.com/blog/archives/tag/ffmpeg/feed" rel="self" type="application/rss+xml" />
	<link>http://jsilva.komodoopenlab.com/blog</link>
	<description>inclusion, equity, open source</description>
	<lastBuildDate>Tue, 17 Aug 2010 20:06:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Video editing with Linux</title>
		<link>http://jsilva.komodoopenlab.com/blog/archives/245</link>
		<comments>http://jsilva.komodoopenlab.com/blog/archives/245#comments</comments>
		<pubDate>Sun, 22 Feb 2009 23:17:16 +0000</pubDate>
		<dc:creator>Jorge</dc:creator>
				<category><![CDATA[GNU | Linux]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[Ubuntu 8.04]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://jsilva.komodoopenlab.com/blog/?p=245</guid>
		<description><![CDATA[Convert to FLV:
$ ffmpeg -i original_video.avi -qscale [quality] -s [WxH] -ar 22050 converted_video.flv
Join multiple videos:
$ mencoder -oac copy -ovc copy -o joined.avi clip1.avi clip2.avi [...]
Extract a clip from a video:
$ ffmpeg -qscale 1 -acodec mp3 -ab 256k -ss [start time in hh:mm:ss] \
   -t [length in hh:mm:ss] -i video.avi clip.avi 
Dump the audio:
$ [...]]]></description>
			<content:encoded><![CDATA[<p>Convert to FLV:</p>
<pre>$ ffmpeg -i original_video.avi -qscale [quality] -s [WxH] -ar 22050 converted_video.flv</pre>
<p>Join multiple videos:</p>
<pre>$ mencoder -oac copy -ovc copy -o joined.avi clip1.avi clip2.avi [...]</pre>
<p>Extract a clip from a video:</p>
<pre>$ ffmpeg -qscale 1 -acodec mp3 -ab 256k -ss [start time in hh:mm:ss] \
   -t [length in hh:mm:ss] -i video.avi clip.avi </pre>
<p>Dump the audio:</p>
<pre>$ mplayer -vc null -vo null -ao pcm -benchmark test.avi </pre>
<p>Grab an image from a video:</p>
<pre>$ ffmpeg -i movie.avi -ss [time-in-seconds] -vframes 1 -f image2 frame.jpg</pre>
<p>Overlay an image on a video:</p>
<pre>$ ffmpeg -i input.avi -vhook '/usr/lib/vhook/imlib2.so -x 0 -y 0 -i overlay.png' output.avi</pre>
<p>Encode a Windows-compatible video:</p>
<pre>$ mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=msmpeg4v2:vhq:vbitrate=1600
  -o videoout.avi videoin.xxx</pre>
<p>with a separate audio file:</p>
<pre>$ mencoder -audiofile audiofile.wav -oac mp3lame -ovc lavc
-lavcopts codec=msmpeg4v2:vhq:vbitrate=1600 -o videoout.avi videoin.xxx</pre>
<p>There is also a good guide on how use <code>ffmpeg</code> to create FLV videos for posting online here:<br />
<a href="http://scott.yang.id.au/2006/07/flash-video-ffmpeg-flowplayer/">http://scott.yang.id.au/2006/07/flash-video-ffmpeg-flowplayer/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jsilva.komodoopenlab.com/blog/archives/245/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
