screencast.rst
changeset 913 f7cb11596372
parent 912 b9eab34a4ce1
child 914 e6f53a520f24
equal deleted inserted replaced
912:b9eab34a4ce1 913:f7cb11596372
     1 .. -*- coding: utf-8 -*-
     1 .. -*- coding: utf-8 -*-
       
     2 
       
     3 ============
       
     4  Screncast.
       
     5 ============
     2 .. contents::
     6 .. contents::
     3 
     7 
     4 Wink.
     8 Wink.
     5 =====
     9 =====
     6 
    10 
    18   http://www.unixuser.org/~euske/python/vnc2flv/index.html
    22   http://www.unixuser.org/~euske/python/vnc2flv/index.html
    19                 home page
    23                 home page
    20 
    24 
    21 ffmpeg.
    25 ffmpeg.
    22 =======
    26 =======
       
    27 ::
    23 
    28 
    24   $ ffmpeg -f x11grab -s cif -i :0.0 capture.mpg
    29   $ ffmpeg -f x11grab -s cif -i :0.0 capture.mpg
       
    30 
       
    31 Recordmydesktop.
       
    32 ================
    25 
    33 
    26 Screenshort movies.
    34 Screenshort movies.
    27 ===================
    35 ===================
    28 
    36 
    29 ImageMagic and shell script.
    37 ImageMagic and shell script.
    30 ----------------------------
    38 ----------------------------
       
    39 ::
    31 
    40 
    32   #!/bin/bash
    41   #!/bin/bash
    33   let iter=1
    42   let iter=1
    34   while [ "$iter" -le "$stop" ]; do
    43   while [ "$iter" -le "$stop" ]; do
    35     import $iter.png
    44     import $iter.png
    36     sleep 1
    45     sleep 1
    37     let x+=1
    46     let x+=1
    38   done
    47   done
    39 
    48 
    40 If you interesting in capturing specific window - by 'xwininfo' find,
    49 If you interesting in capturing specific window - by 'xwininfo' find,
    41 intereesting your window id (hex value) and use command:
    50 intereesting your window id (hex value) and use command::
    42 
    51 
    43   import -window $windowid $iter.png
    52   import -window $windowid $iter.png
    44 
    53 
    45 To quick view result run:
    54 To quick view result run::
    46 
    55 
    47   $ cd $img_dir
    56   $ cd $img_dir
    48   $ animate -delay 20 *.png
    57   $ animate -delay 20 *.png
    49   ^C
    58   ^C
    50 
    59 
    51 To compound image together:
    60 To compound image together::
    52 
    61 
    53   $ convert -delay 20 *.png capture.mng  # license free, multi-image file format
    62   $ convert -delay 20 *.png capture.mng  # license free, multi-image file format
    54   $ convert -delay 20 *.png capture.gif
    63   $ convert -delay 20 *.png capture.gif
    55 
    64 
    56 You can add text to pictures before compound theirs:
    65 You can add text to pictures before compound theirs::
    57 
    66 
    58   $ mogrify -fill yellow -draw 'Rectangle 10,10 150,30' -fill black -pointsize 14 \
    67   $ mogrify -fill yellow -draw 'Rectangle 10,10 150,30' -fill black -pointsize 14 \
    59      -draw 'text 15,25 "by http://example.com"' $iter.png
    68      -draw 'text 15,25 "by http://example.com"' $iter.png
    60 
    69 
    61 If screen capturing slow for you use MIFF file format.
    70 If screen capturing slow for you use MIFF file format.
    62 
    71 
    63 Use root flag to capture all screen:
    72 Use root flag to capture all screen::
    64 
    73 
    65   $ import -window root $iter.png
    74   $ import -window root $iter.png
    66 
    75 
    67   http://linuxdevcenter.com/pub/a/linux/2004/03/04/screen_capture_movies.html
    76   http://linuxdevcenter.com/pub/a/linux/2004/03/04/screen_capture_movies.html
    68                 Making Screen-Capture Movies by Robert Bernier
    77                 Making Screen-Capture Movies by Robert Bernier
    69 
    78 
    70 Recordmydesktop.
       
    71 ================
       
    72