[gnome-getting-started-docs] animation "build" fixes



commit 9e67c852a94905a5ab69b1000cf9ab5defa6fd79
Author: Jakub Steiner <jimmac gmail com>
Date:   Fri Sep 5 12:20:21 2014 +0200

    animation "build" fixes
    
    - make sure to enclose gst path in quotes to allow special
      characters in the path name (as used in Jenkins build system)
    - fix relative paths to textures

 animation/gnome-change-wallpaper.blend |  Bin 1974252 -> 1975564 bytes
 animation/gnomerender.py               |    2 +-
 animation/render-localized.sh          |    2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/animation/gnome-change-wallpaper.blend b/animation/gnome-change-wallpaper.blend
index 2f21654..c6bf172 100644
Binary files a/animation/gnome-change-wallpaper.blend and b/animation/gnome-change-wallpaper.blend differ
diff --git a/animation/gnomerender.py b/animation/gnomerender.py
index 632465a..e5f48bb 100644
--- a/animation/gnomerender.py
+++ b/animation/gnomerender.py
@@ -36,7 +36,7 @@ def transcode(lang,x=854,bitrate="300k"):
   
   #print(transcodepath,webmfile,sndfile,framepath)
   #transcodecmd = "ffmpeg -r 24 -f image2 -i %s/%%04d.png -i %s -vf scale=%s:%s -b %s %s/%s" % 
(framepath,sndfile,x,y,bitrate,transcodepath,webmfile)
-  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! 
audioconvert ! vorbisenc bitrate=96000 ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 
caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! video/x-raw, 
width=%s,height=%s ! videorate ! vp8enc threads=12 target-bitrate=300000 ! mux." % 
(transcodepath,webmfile,sndfile,framepath,x,y)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    \"file://%s\" ! decodebin 
! audioconvert ! vorbisenc bitrate=96000 ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 
caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! video/x-raw, 
width=%s,height=%s ! videorate ! vp8enc threads=12 target-bitrate=300000 ! mux." % 
(transcodepath,webmfile,sndfile,framepath,x,y)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:
diff --git a/animation/render-localized.sh b/animation/render-localized.sh
index 0e67c93..8903eec 100755
--- a/animation/render-localized.sh
+++ b/animation/render-localized.sh
@@ -9,5 +9,5 @@ esac
 
 for script in gnome*py
   do blend=`basename $script py`blend
-  $blender -b $blend -P $script
+  $blender -b $blend -P $script # > /dev/null
 done


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