I realize the video capturing the area of the applet with XVidCap Screen Capture (software for Ubuntu) and I add the soundtrack using mencoder.
To install it, I run the following line(2) in the console:
sudo apt-get install mencoderAnd now I run this line(2) in order to add Clouds over us to the video generated by XVidCap:
mencoder test.mpeg -o video01.avi -ovc copy -oac mp3lame -audiofile music.mp3I also realize a video without sound (see on YouTube). In this case first of all I install mplayer(3)
apt-get install scrot mplayerand after I start the screen capture procedure(3):
while [ 1 ]; do scrot -q 100 $(date +%Y%m%d%H%M%S).jpg; sleep 1; doneIn this case I capture the entire screen, so before the realization of the video, I must extract from about 100 images the portion of the sky. In order to complete this operation without mistakes I install the David's Batch Processor(4), a GIMP's plugin. After the resize, I list all files in a txt(3)
ls -1tr *.jpg > files.txtand produce the video(3)
mencoder -ovc x264 -mf w=900:h=600:fps=8:type=bmp 'mf://@files.txt' -o video02.aviRemember: all lines must run in the fold of the images. In alternative you must write the complete path of files.
(1) The song is included in Darkshine, the first album of Seeking for a name, a metalcore/deathcore spanish band. You can download Darkshine, released in creative commons, from Musica or Jamendo
(2) How to put music to a video in Linux
(3) HOWTO: Time-lapse capture your Linux desktop
(4) Batch Resize Images with Gimp
No comments:
Post a Comment
Markup Key:
- <b>bold</b> = bold
- <i>italic</i> = italic
- <a href="http://www.fieldofscience.com/">FoS</a> = FoS