<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pzwiki.wdka.nl/mw-mediadesign/index.php?action=history&amp;feed=atom&amp;title=Syllabus_20091013</id>
	<title>Syllabus 20091013 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?action=history&amp;feed=atom&amp;title=Syllabus_20091013"/>
	<link rel="alternate" type="text/html" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=Syllabus_20091013&amp;action=history"/>
	<updated>2026-08-04T14:45:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=Syllabus_20091013&amp;diff=3820&amp;oldid=prev</id>
		<title>Migratebot: Created page with &quot;= Flexible Loops: Variables =  Some examples of other forms of &quot;cultural loops&quot;, the role for instance of repetition in the lyrics of songs. Examples of work songs, like the [h...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=Syllabus_20091013&amp;diff=3820&amp;oldid=prev"/>
		<updated>2010-09-23T19:32:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Flexible Loops: Variables =  Some examples of other forms of &amp;quot;cultural loops&amp;quot;, the role for instance of repetition in the lyrics of songs. Examples of work songs, like the [h...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Flexible Loops: Variables =&lt;br /&gt;
&lt;br /&gt;
Some examples of other forms of &amp;quot;cultural loops&amp;quot;, the role for instance of repetition in the lyrics of songs. Examples of work songs, like the [http://en.wikipedia.org/wiki/Waulking_song waulking songs] of Scotland, and the [http://en.wikipedia.org/wiki/Cumulative_song cumulative song] form, popular for teaching children language, or for [http://www.youtube.com/watch?v=DhWkRvCuzmE cross-cultural] purposes. We will look at some excerpts from [http://www.lomaxthesonghunter.com/ Lomax: the songhunter]. Example exercise: song construction: Recreate the lyrics of a simple song with (nested) loops.&lt;br /&gt;
&lt;br /&gt;
== Assembling a movie from images / sound ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
ffmpeg -y -r 3 -b 1800 -sameq -i frames/%06d.png foo.mp4&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://electron.mit.edu/~gsteele/ffmpeg/&lt;br /&gt;
&lt;br /&gt;
== Lab ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Command-line after effects&amp;quot;: Using command-line media tools to &amp;quot;filter&amp;quot; a movie&lt;br /&gt;
&lt;br /&gt;
=== Extracting frames from a movie ===&lt;br /&gt;
&lt;br /&gt;
Example 1 : Blurring every frame&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
ffmpeg -i ~/Videos/LomaxTheSongHunter.avi -an -y -ss 0:07:30 -t 00:00:01 -f image2 frame%04d.png&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we use mogrify to apply a blur (the *same* blur) to *every frame*.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mogrify -blur 5x5 *.png&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
ffmpeg -y -r 25 -b 1800 -sameq -i frame%04d.png test.mpeg&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
or to make an OGG-Theora format video:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
ffmpeg -y -r 25 -b 1800 -sameq -i frame%04d.png test.ogv&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
for i in range(25):&lt;br /&gt;
    print &amp;quot;mogrify -blur &amp;quot; + str(i) + &amp;quot;x&amp;quot; + str(i),&lt;br /&gt;
    print &amp;quot;frame%04d.png&amp;quot; % (i+1)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
To be completed after the break: Create a &amp;quot;command-line movie&amp;quot; using ImageMagick, sox, and ffmpeg.&lt;br /&gt;
&lt;br /&gt;
Reading: [http://www.greenteapress.com/thinkpython/html/book002.html Chapter 1] of ThinkPython.&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* http://automatist.net/techdaze/MediaBashing (to be moved into the [[CookBook]])&lt;/div&gt;</summary>
		<author><name>Migratebot</name></author>
	</entry>
</feed>