[gnome-getting-started-docs] rework all layer keyframes. more gstreamer transcoding @ 24 fps.



commit 41a243c1c8ccf7cd369773562ca00e50117652d8
Author: Jakub Steiner <jimmac gmail com>
Date:   Mon Jan 7 17:49:26 2013 +0100

    rework all layer keyframes. more gstreamer transcoding @ 24 fps.
    
    - this is a pretty big refactoring. expect some glitches.

 .gitignore                                         |    1 +
 animation/gnome-change-wallpaper.blend             |  Bin 1485776 -> 1442736 bytes
 animation/gnome-change-wallpaper.py                |    4 +-
 animation/gnome-launching-applications.blend       |  Bin 1699716 -> 1643628 bytes
 animation/gnome-launching-applications.py          |   26 ++++++----
 animation/gnome-responding-to-messages.blend       |  Bin 2667816 -> 2662796 bytes
 animation/gnome-responding-to-messages.py          |   36 +++++++++----
 animation/gnome-task-switching.blend               |  Bin 2574156 -> 2361060 bytes
 animation/gnome-task-switching.py                  |   47 +++++++++--------
 animation/gnome-windows-and-workspaces.blend       |  Bin 2821052 -> 2691832 bytes
 animation/gnome-windows-and-workspaces.py          |   37 ++++++++++----
 animation/gnome-yelp-intro.blend                   |  Bin 1622332 -> 1667564 bytes
 animation/gnome-yelp-intro.py                      |   52 ++++++++++---------
 getting-started/C/figures/changing-wallpaper.png   |  Bin 0 -> 69554 bytes
 .../C/figures/gnome-change-wallpaper.webm          |  Bin 0 -> 1316150 bytes
 .../C/figures/gnome-launching-applications.webm    |  Bin 0 -> 2852772 bytes
 .../C/figures/gnome-responding-to-messages.webm    |  Bin 0 -> 3028890 bytes
 .../C/figures/gnome-task-switching.webm            |  Bin 0 -> 3923753 bytes
 .../C/figures/gnome-windows-and-workspaces.webm    |  Bin 0 -> 4681501 bytes
 getting-started/C/figures/gnome-yelp-intro.webm    |  Bin 0 -> 2448151 bytes
 getting-started/C/figures/launching-apps.png       |  Bin 0 -> 154347 bytes
 .../C/figures/responding-to-messages.webm          |  Bin 6373451 -> 0 bytes
 getting-started/C/figures/task-switching.webm      |  Bin 8288790 -> 0 bytes
 .../C/figures/windows-and-workspaces.webm          |  Bin 10240498 -> 0 bytes
 getting-started/C/figures/yelp-intro.webm          |  Bin 4984011 -> 0 bytes
 getting-started/C/index.page                       |    4 +-
 getting-started/C/move-windows.page                |    2 +-
 getting-started/Makefile.am                        |    8 ++--
 .../cs/figures/gnome-change-wallpaper.webm         |  Bin 0 -> 1303048 bytes
 .../cs/figures/gnome-launching-applications.webm   |  Bin 0 -> 2837933 bytes
 .../cs/figures/gnome-responding-to-messages.webm   |  Bin 0 -> 3028890 bytes
 .../cs/figures/gnome-task-switching.webm           |  Bin 0 -> 3923753 bytes
 .../cs/figures/gnome-windows-and-workspaces.webm   |  Bin 0 -> 4681501 bytes
 getting-started/cs/figures/gnome-yelp-intro.webm   |  Bin 0 -> 2461601 bytes
 .../cs/figures/responding-to-messages.webm         |  Bin 6421680 -> 0 bytes
 getting-started/cs/figures/task-switching.webm     |  Bin 8295119 -> 0 bytes
 .../cs/figures/windows-and-workspaces.webm         |  Bin 10317268 -> 0 bytes
 getting-started/cs/figures/yelp-intro.webm         |  Bin 4979849 -> 0 bytes
 38 files changed, 130 insertions(+), 87 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7205597..59eb837 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,7 @@ Makefile.in
 /missing
 /gnome-doc-utils.make
 /getting-started/??/*.page
+/getting-started/??/*.svg
 /getting-started/??/legal.xml
 /getting-started/??/animation.xml
 /player/player
diff --git a/animation/gnome-change-wallpaper.blend b/animation/gnome-change-wallpaper.blend
index 5d6f54b..dab008b 100644
Binary files a/animation/gnome-change-wallpaper.blend and b/animation/gnome-change-wallpaper.blend differ
diff --git a/animation/gnome-change-wallpaper.py b/animation/gnome-change-wallpaper.py
index 46f021c..cad4b0e 100644
--- a/animation/gnome-change-wallpaper.py
+++ b/animation/gnome-change-wallpaper.py
@@ -25,14 +25,14 @@ def render(lang):
 
 def transcode(lang):
   global renderpath,renderpathabs,sndfile
-  #theora gst-launch-1.0 oggmux name=mux ! filesink location="../video.webm"    file:///home/jimmac/src/git/gnome/gnome-getting-started-docs/animation/sequence/C/changing-wallpaper/snd/test.flac ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location="/home/jimmac/src/git/gnome/gnome-getting-started-docs/animation/sequence/C/changing-wallpaper/%04d.png" index=1 caps="image/png,framerate=\(fraction\)25/1" ! pngdec ! videoconvert ! videorate ! theoraenc ! mux.
+
   regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
   framepath = renderpathabs
   webmfile = "%s.webm" % (regexobj.group(2))
   transcodepath = "../getting-started/%s/figures/" % (lang)
   
   #print(transcodepath,webmfile,sndfile,framepath)
-  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)25/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:
diff --git a/animation/gnome-launching-applications.blend b/animation/gnome-launching-applications.blend
index 8552067..bbc1cad 100644
Binary files a/animation/gnome-launching-applications.blend and b/animation/gnome-launching-applications.blend differ
diff --git a/animation/gnome-launching-applications.py b/animation/gnome-launching-applications.py
index 63f6a88..65cf763 100644
--- a/animation/gnome-launching-applications.py
+++ b/animation/gnome-launching-applications.py
@@ -2,34 +2,40 @@ import bpy,os,re
 from xml.etree import ElementTree as ET
 
 def render(lang):
-  global renderpath
+  global renderpath,renderpathabs,sndfile
+  
   #bpy.context.scene.render.resolution_percentage =
   #bpy.context.scene.render.use_compositing = 0
   bpy.context.scene.render.use_sequencer = 1
   renderpath = '//sequence/'+lang
-  sndfile = renderpath+'/snd/snd.flac'
+  
   regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
   bpy.context.scene.render.filepath = "%s/%s/" % (renderpath,regexobj.group(2))
-  bpy.context.scene.render.filepath = "//" + renderpath + '/launching-apps-'
-  if (not os.path.isfile(bpy.context.scene.render.frame_path())):
+  renderpathabs = "%ssequence/%s/%s" % (regexobj.group(1),lang,regexobj.group(2))
+  sndpath = "%s/snd" % (renderpathabs)
+  sndfile = "%s/snd.flac" % (sndpath)
+  if (not os.path.isdir(renderpathabs)):
     bpy.ops.render.render(animation=True)
+  if (not os.path.isdir(sndpath)):
+    os.mkdir(sndpath)
     bpy.ops.sound.mixdown(filepath=sndfile)
   else:
-    print('already rendered')  
+    print('already rendered',bpy.context.scene.render.frame_path())
 
 def transcode(lang):
-  global renderpath
+  global renderpath,renderpathabs,sndfile
+
   regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
-  framepath = "%ssequence/%s/%s" % (regexobj.group(1),lang,regexobj.group(2))
+  framepath = renderpathabs
   webmfile = "%s.webm" % (regexobj.group(2))
-  sndfile = "%ssequence/%s/%s/snd/snd.flac" % (regexobj.group(1),lang,regexobj.group(2))
   transcodepath = "../getting-started/%s/figures/" % (lang)
   
-  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)25/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
+  #print(transcodepath,webmfile,sndfile,framepath)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:
-    print('already transcoded',transcodepath + webmfile)  
+    print('already transcoded',transcodepath + webmfile)
 
   
 #translates strings and calls render
diff --git a/animation/gnome-responding-to-messages.blend b/animation/gnome-responding-to-messages.blend
index 8cb8744..b25d86d 100644
Binary files a/animation/gnome-responding-to-messages.blend and b/animation/gnome-responding-to-messages.blend differ
diff --git a/animation/gnome-responding-to-messages.py b/animation/gnome-responding-to-messages.py
index 32e3738..263661e 100644
--- a/animation/gnome-responding-to-messages.py
+++ b/animation/gnome-responding-to-messages.py
@@ -1,24 +1,37 @@
 import bpy,os,re
 from xml.etree import ElementTree as ET
 
-
-
 def render(lang):
+  global renderpath,renderpathabs,sndfile
+  
   #bpy.context.scene.render.resolution_percentage =
   #bpy.context.scene.render.use_compositing = 0
   bpy.context.scene.render.use_sequencer = 1
   renderpath = '//sequence/'+lang
-  if (not renderpath):
-    os.mkdir(renderpath)
-  bpy.context.scene.render.filepath = "//" + renderpath + '/responding-to-messages-'
-  if (not os.path.isfile(bpy.context.scene.render.frame_path())):
+  
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  bpy.context.scene.render.filepath = "%s/%s/" % (renderpath,regexobj.group(2))
+  renderpathabs = "%ssequence/%s/%s" % (regexobj.group(1),lang,regexobj.group(2))
+  sndpath = "%s/snd" % (renderpathabs)
+  sndfile = "%s/snd.flac" % (sndpath)
+  if (not os.path.isdir(renderpathabs)):
     bpy.ops.render.render(animation=True)
+  if (not os.path.isdir(sndpath)):
+    os.mkdir(sndpath)
+    bpy.ops.sound.mixdown(filepath=sndfile)
   else:
-    print('already rendered')
-  transcodepath = "../getting-started/" + lang + "/figures/"
-  regexobj = re.search(r"^(.*\/)(.*)-(\d*)-(\d*)(\.avi)$", bpy.context.scene.render.frame_path())
-  webmfile = regexobj.group(2) + ".webm"
-  transcodecmd = "ffmpeg -y -i " + bpy.context.scene.render.frame_path() + " -b:v 8000k " + transcodepath + webmfile
+    print('already rendered',bpy.context.scene.render.frame_path())
+
+def transcode(lang):
+  global renderpath,renderpathabs,sndfile
+
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  framepath = renderpathabs
+  webmfile = "%s.webm" % (regexobj.group(2))
+  transcodepath = "../getting-started/%s/figures/" % (lang)
+  
+  #print(transcodepath,webmfile,sndfile,framepath)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:
@@ -43,6 +56,7 @@ def main():
     bpy.data.objects['typewriter3'].data.body = t[lang].find('t[ id="bubble.response3"]').text
     bpy.data.objects['user.mt.bubble'].data.body = bpy.data.objects['user'].data.body #needs to be left aligned :/
     render(lang)
+    transcode(lang)
     
 if __name__ == '__main__':
     main()
diff --git a/animation/gnome-task-switching.blend b/animation/gnome-task-switching.blend
index 0dc275c..fd93ed2 100644
Binary files a/animation/gnome-task-switching.blend and b/animation/gnome-task-switching.blend differ
diff --git a/animation/gnome-task-switching.py b/animation/gnome-task-switching.py
index f622c1e..d0d0587 100644
--- a/animation/gnome-task-switching.py
+++ b/animation/gnome-task-switching.py
@@ -1,32 +1,37 @@
 import bpy,os,re
 from xml.etree import ElementTree as ET
 
-def typewriteit(scene):
-  typewrite = bpy.data.objects['typewriter'].data.body
-  #psani zacina v sekvenci na 151
-  if bpy.context.scene.frame_current >= 915:
-    i = int((bpy.context.scene.frame_current-915)/3)
-  else:
-    i = 0
-  #print(typewrite, i, typewrite[:i])
-  bpy.data.objects['search2'].data.body = typewrite[:i]
-
 def render(lang):
+  global renderpath,renderpathabs,sndfile
+  
   #bpy.context.scene.render.resolution_percentage =
   #bpy.context.scene.render.use_compositing = 0
   bpy.context.scene.render.use_sequencer = 1
   renderpath = '//sequence/'+lang
-  if (not renderpath):
-    os.mkdir(renderpath)
-  bpy.context.scene.render.filepath = "//" + renderpath + '/task-switching-'
-  if (not os.path.isfile(bpy.context.scene.render.frame_path())):
+  
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  bpy.context.scene.render.filepath = "%s/%s/" % (renderpath,regexobj.group(2))
+  renderpathabs = "%ssequence/%s/%s" % (regexobj.group(1),lang,regexobj.group(2))
+  sndpath = "%s/snd" % (renderpathabs)
+  sndfile = "%s/snd.flac" % (sndpath)
+  if (not os.path.isdir(renderpathabs)):
     bpy.ops.render.render(animation=True)
+  if (not os.path.isdir(sndpath)):
+    os.mkdir(sndpath)
+    bpy.ops.sound.mixdown(filepath=sndfile)
   else:
-    print('already rendered')
-  transcodepath = "../getting-started/" + lang + "/figures/"
-  regexobj = re.search(r"^(.*\/)(.*)-(\d*)-(\d*)(\.avi)$", bpy.context.scene.render.frame_path())
-  webmfile = regexobj.group(2) + ".webm"
-  transcodecmd = "ffmpeg -y -i " + bpy.context.scene.render.frame_path() + " -b:v 8000k " + transcodepath + webmfile
+    print('already rendered',bpy.context.scene.render.frame_path())
+
+def transcode(lang):
+  global renderpath,renderpathabs,sndfile
+
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  framepath = renderpathabs
+  webmfile = "%s.webm" % (regexobj.group(2))
+  transcodepath = "../getting-started/%s/figures/" % (lang)
+  
+  #print(transcodepath,webmfile,sndfile,framepath)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:
@@ -35,7 +40,6 @@ def render(lang):
 
 #translates strings and calls render
 def main():
-  global typewrite
   
   t = {}
   #unfortunately no decent fonts have â
@@ -49,8 +53,7 @@ def main():
         bpy.data.objects[textobj.get('id')].data.body = textobj.text
     bpy.data.objects['typewriter'].data.body = t[lang].find('t[ id="search2"]').text
     render(lang)
+    transcode(lang)
     
 if __name__ == '__main__':
-    bpy.app.handlers.frame_change_pre.append(typewriteit)
     main()
-    bpy.app.handlers.frame_change_pre.pop(0)
diff --git a/animation/gnome-windows-and-workspaces.blend b/animation/gnome-windows-and-workspaces.blend
index d5a28c0..787822a 100644
Binary files a/animation/gnome-windows-and-workspaces.blend and b/animation/gnome-windows-and-workspaces.blend differ
diff --git a/animation/gnome-windows-and-workspaces.py b/animation/gnome-windows-and-workspaces.py
index 15c95ac..05e16b2 100644
--- a/animation/gnome-windows-and-workspaces.py
+++ b/animation/gnome-windows-and-workspaces.py
@@ -2,25 +2,41 @@ import bpy,os,re
 from xml.etree import ElementTree as ET
 
 def render(lang):
+  global renderpath,renderpathabs,sndfile
+  
   #bpy.context.scene.render.resolution_percentage =
   #bpy.context.scene.render.use_compositing = 0
   bpy.context.scene.render.use_sequencer = 1
   renderpath = '//sequence/'+lang
-  if (not renderpath):
-    os.mkdir(renderpath)
-  bpy.context.scene.render.filepath = "//" + renderpath + '/windows-and-workspaces-'
-  if (not os.path.isfile(bpy.context.scene.render.frame_path())):
+  
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  bpy.context.scene.render.filepath = "%s/%s/" % (renderpath,regexobj.group(2))
+  renderpathabs = "%ssequence/%s/%s" % (regexobj.group(1),lang,regexobj.group(2))
+  sndpath = "%s/snd" % (renderpathabs)
+  sndfile = "%s/snd.flac" % (sndpath)
+  #bpy.ops.render.render(animation=True)
+  if (not os.path.isdir(renderpathabs)):
     bpy.ops.render.render(animation=True)
+  if (not os.path.isdir(sndpath)):
+    os.mkdir(sndpath)
+    bpy.ops.sound.mixdown(filepath=sndfile)
   else:
-    print('already rendered')
-  transcodepath = "../getting-started/" + lang + "/figures/"
-  regexobj = re.search(r"^(.*\/)(.*)-(\d*)-(\d*)(\.avi)$", bpy.context.scene.render.frame_path())
-  webmfile = regexobj.group(2) + ".webm"
-  transcodecmd = "ffmpeg -y -i " + bpy.context.scene.render.frame_path() + " -b:v 8000k " + transcodepath + webmfile
+    print('already rendered',renderpathabs)
+
+def transcode(lang):
+  global renderpath,renderpathabs,sndfile
+
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  framepath = renderpathabs
+  webmfile = "%s.webm" % (regexobj.group(2))
+  transcodepath = "../getting-started/%s/figures/" % (lang)
+  
+  #print(transcodepath,webmfile,sndfile,framepath)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:
-    print('already transcoded',transcodepath + webmfile)
+    print('already transcoded',transcodepath + webmfile)  
 
 
 #translates strings and calls render
@@ -38,6 +54,7 @@ def main():
       if textobj.get('id') in bpy.data.objects: #prelozit jestli existuje jako index
         bpy.data.objects[textobj.get('id')].data.body = textobj.text
     render(lang)
+    transcode(lang)
     
 if __name__ == '__main__':
     main()
diff --git a/animation/gnome-yelp-intro.blend b/animation/gnome-yelp-intro.blend
index 7f13cc6..dcd7197 100644
Binary files a/animation/gnome-yelp-intro.blend and b/animation/gnome-yelp-intro.blend differ
diff --git a/animation/gnome-yelp-intro.py b/animation/gnome-yelp-intro.py
index 0756b93..dfc2ae4 100644
--- a/animation/gnome-yelp-intro.py
+++ b/animation/gnome-yelp-intro.py
@@ -2,40 +2,43 @@ import bpy,os,re
 from xml.etree import ElementTree as ET
 
 def render(lang):
+  global renderpath,renderpathabs,sndfile
+  
   #bpy.context.scene.render.resolution_percentage =
   #bpy.context.scene.render.use_compositing = 0
   bpy.context.scene.render.use_sequencer = 1
   renderpath = '//sequence/'+lang
-  if (not renderpath):
-    os.mkdir(renderpath)
-  bpy.context.scene.render.filepath = "//" + renderpath + '/yelp-intro-'
-  if (not os.path.isfile(bpy.context.scene.render.frame_path())):
+  
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  bpy.context.scene.render.filepath = "%s/%s/" % (renderpath,regexobj.group(2))
+  renderpathabs = "%ssequence/%s/%s" % (regexobj.group(1),lang,regexobj.group(2))
+  sndpath = "%s/snd" % (renderpathabs)
+  sndfile = "%s/snd.flac" % (sndpath)
+  if (not os.path.isdir(renderpathabs)):
     bpy.ops.render.render(animation=True)
+  if (not os.path.isdir(sndpath)):
+    os.mkdir(sndpath)
+    bpy.ops.sound.mixdown(filepath=sndfile)
   else:
-    print('already rendered')
-  transcodepath = "../getting-started/" + lang + "/figures/"
-  regexobj = re.search(r"^(.*\/)(.*)-(\d*)-(\d*)(\.avi)$", bpy.context.scene.render.frame_path())
-  webmfile = regexobj.group(2) + ".webm"
-  transcodecmd = "ffmpeg -y -i " + bpy.context.scene.render.frame_path() + " -b:v 8000k " + transcodepath + webmfile
+    print('already rendered',bpy.context.scene.render.frame_path())
+
+def transcode(lang):
+  global renderpath,renderpathabs,sndfile
+
+  regexobj = re.search(r"^(.*\/)*(.*)(\.blend)$", bpy.data.filepath)
+  framepath = renderpathabs
+  webmfile = "%s.webm" % (regexobj.group(2))
+  transcodepath = "../getting-started/%s/figures/" % (lang)
+  
+  #print(transcodepath,webmfile,sndfile,framepath)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! audioconvert ! vorbisenc ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! videorate ! vp8enc threads=4 ! mux." % (transcodepath,webmfile,sndfile,framepath)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:
-    print('already transcoded',transcodepath + webmfile)
-        
-def typewriteit(scene):
-  #FIXME make this happen only in scene "launching apps - keyboard"
-  typewrite = bpy.data.objects['typewriter'].data.body
-  #psani zacina v sekvenci na 610
-  if bpy.context.scene.frame_current >= 610:
-    i = int((bpy.context.scene.frame_current-610)/3)
-  else:
-    i = 0
-  #print(typewrite, i, typewrite[:i])
-  bpy.data.objects['search'].data.body = typewrite[:i]
+    print('already transcoded',transcodepath + webmfile)          
 
 #translates strings and calls render
 def main():
-  global typewrite
   
   t = {}
   #unfortunately no decent fonts have â
@@ -49,8 +52,7 @@ def main():
         bpy.data.objects[textobj.get('id')].data.body = textobj.text
     bpy.data.objects['typewriter'].data.body = t[lang].find('t[ id="search"]').text
     render(lang)
-    
+    transcode(lang)
+
 if __name__ == '__main__':
-    bpy.app.handlers.frame_change_pre.append(typewriteit)
     main()
-    bpy.app.handlers.frame_change_pre.pop(0)
diff --git a/getting-started/C/figures/changing-wallpaper.png b/getting-started/C/figures/changing-wallpaper.png
new file mode 100644
index 0000000..0360aaa
Binary files /dev/null and b/getting-started/C/figures/changing-wallpaper.png differ
diff --git a/getting-started/C/figures/gnome-change-wallpaper.webm b/getting-started/C/figures/gnome-change-wallpaper.webm
new file mode 100644
index 0000000..cb317d4
Binary files /dev/null and b/getting-started/C/figures/gnome-change-wallpaper.webm differ
diff --git a/getting-started/C/figures/gnome-launching-applications.webm b/getting-started/C/figures/gnome-launching-applications.webm
new file mode 100644
index 0000000..2f9b642
Binary files /dev/null and b/getting-started/C/figures/gnome-launching-applications.webm differ
diff --git a/getting-started/C/figures/gnome-responding-to-messages.webm b/getting-started/C/figures/gnome-responding-to-messages.webm
new file mode 100644
index 0000000..570fa9d
Binary files /dev/null and b/getting-started/C/figures/gnome-responding-to-messages.webm differ
diff --git a/getting-started/C/figures/gnome-task-switching.webm b/getting-started/C/figures/gnome-task-switching.webm
new file mode 100644
index 0000000..c25bf80
Binary files /dev/null and b/getting-started/C/figures/gnome-task-switching.webm differ
diff --git a/getting-started/C/figures/gnome-windows-and-workspaces.webm b/getting-started/C/figures/gnome-windows-and-workspaces.webm
new file mode 100644
index 0000000..7b91d75
Binary files /dev/null and b/getting-started/C/figures/gnome-windows-and-workspaces.webm differ
diff --git a/getting-started/C/figures/gnome-yelp-intro.webm b/getting-started/C/figures/gnome-yelp-intro.webm
new file mode 100644
index 0000000..00207d8
Binary files /dev/null and b/getting-started/C/figures/gnome-yelp-intro.webm differ
diff --git a/getting-started/C/figures/launching-apps.png b/getting-started/C/figures/launching-apps.png
new file mode 100644
index 0000000..3405b12
Binary files /dev/null and b/getting-started/C/figures/launching-apps.png differ
diff --git a/getting-started/C/index.page b/getting-started/C/index.page
index 299028c..272b19d 100644
--- a/getting-started/C/index.page
+++ b/getting-started/C/index.page
@@ -20,13 +20,13 @@
   </ui:overlay>
 
   <ui:overlay width="235" height="145">
-  <media type="video" src="figures/task-switching.webm" width="700" height="394">
+  <media type="video" src="figures/gnome-task-switching.webm" width="700" height="394">
     <ui:thumb src="figures/task-switching.png"/>
   </media>
   </ui:overlay>
 
   <ui:overlay width="235" height="145">
-  <media type="video" src="figures/responding-to-messages.webm" width="700" height="394">
+  <media type="video" src="figures/gnome-responding-to-messages.webm" width="700" height="394">
     <ui:thumb src="figures/responding-to-messages.png"/>
   </media>
   </ui:overlay>
diff --git a/getting-started/C/move-windows.page b/getting-started/C/move-windows.page
index 5b35e97..15bdfee 100644
--- a/getting-started/C/move-windows.page
+++ b/getting-started/C/move-windows.page
@@ -11,7 +11,7 @@
 
   <title>Use workspaces and windows</title>
 
-  <media type="video" src="figures/windows-and-workspaces.webm" width="840" height="468">
+  <media type="video" src="figures/gnome-windows-and-workspaces.webm" width="840" height="468">
     <media type="image" style="poster" src="figures/windows-and-workspaces.png"/>
   </media>
 </page>
diff --git a/getting-started/Makefile.am b/getting-started/Makefile.am
index c7c7c58..e7c6163 100644
--- a/getting-started/Makefile.am
+++ b/getting-started/Makefile.am
@@ -10,12 +10,12 @@ HELP_MEDIA = \
 	figures/launching-apps.png \
 	figures/gnome-launching-applications.webm \
 	figures/responding-to-messages.png \
-	figures/responding-to-messages.webm \
+	figures/gnome-responding-to-messages.webm \
 	figures/task-switching.png \
-	figures/task-switching.webm \
+	figures/gnome-task-switching.webm \
 	figures/windows-and-workspaces.png \
-	figures/windows-and-workspaces.webm \
-	figures/yelp-intro.webm
+	figures/gnome-windows-and-workspaces.webm \
+	figures/gnome-yelp-intro.webm
 
 HELP_FILES = \
 	animation.xml \
diff --git a/getting-started/cs/figures/gnome-change-wallpaper.webm b/getting-started/cs/figures/gnome-change-wallpaper.webm
new file mode 100644
index 0000000..bec426d
Binary files /dev/null and b/getting-started/cs/figures/gnome-change-wallpaper.webm differ
diff --git a/getting-started/cs/figures/gnome-launching-applications.webm b/getting-started/cs/figures/gnome-launching-applications.webm
new file mode 100644
index 0000000..3a18383
Binary files /dev/null and b/getting-started/cs/figures/gnome-launching-applications.webm differ
diff --git a/getting-started/cs/figures/gnome-responding-to-messages.webm b/getting-started/cs/figures/gnome-responding-to-messages.webm
new file mode 100644
index 0000000..570fa9d
Binary files /dev/null and b/getting-started/cs/figures/gnome-responding-to-messages.webm differ
diff --git a/getting-started/cs/figures/gnome-task-switching.webm b/getting-started/cs/figures/gnome-task-switching.webm
new file mode 100644
index 0000000..c25bf80
Binary files /dev/null and b/getting-started/cs/figures/gnome-task-switching.webm differ
diff --git a/getting-started/cs/figures/gnome-windows-and-workspaces.webm b/getting-started/cs/figures/gnome-windows-and-workspaces.webm
new file mode 100644
index 0000000..7b91d75
Binary files /dev/null and b/getting-started/cs/figures/gnome-windows-and-workspaces.webm differ
diff --git a/getting-started/cs/figures/gnome-yelp-intro.webm b/getting-started/cs/figures/gnome-yelp-intro.webm
new file mode 100644
index 0000000..b82bcaa
Binary files /dev/null and b/getting-started/cs/figures/gnome-yelp-intro.webm differ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]