author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 22 Feb 2016 12:41:52 +0200 | |
changeset 1903 | 901e7394849f |
parent 1635 | b2a2555a4368 |
child 1905 | fba288d59662 |
permissions | -rw-r--r-- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
916
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
916
diff
changeset
|
2 |
.. include:: HEADER.rst |
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
3 |
|
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
4 |
============ |
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
5 |
Screncast. |
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
6 |
============ |
912
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
7 |
.. contents:: |
377 | 8 |
|
914 | 9 |
VLC. |
10 |
==== |
|
11 |
:: |
|
12 |
||
13 |
$ cvlc screen:// --screen-mouse-image cursor.png --screen-fps=12 \ |
|
916 | 14 |
--screen-width=1680 --screen-height=1050 --no-sout-audio --sout \ |
15 |
"#transcode{venc=theora,quality:10,scale=0.75,fps=12}:duplicate{dst=std{access=file,mux=ogg,dst=desktop.ogg}}}" |
|
914 | 16 |
|
916 | 17 |
$ cvlc screen:// --screen-fps=12 --screen-mouse-image=e:/home/.icon/cursor.png --no-sout-audio --sout \ |
18 |
"#transcode{venc=x264,quality:100,scale=1,fps=12}:duplicate{dst=std{access=file,mux=mp4,dst=desktop.ogg}}}" |
|
915 | 19 |
|
914 | 20 |
Available options: |
21 |
||
22 |
screen-caching <integer> |
|
23 |
Time in milliseconds. |
|
24 |
screen-fps <integer> |
|
25 |
Capture frames per second (0 default). |
|
26 |
screen-top <integer> |
|
27 |
The top edge coordinate of the subscreen. |
|
28 |
screen-left <integer> |
|
29 |
The left edge coordinate of the subscreen. |
|
30 |
screen-width <integer> |
|
31 |
The width of the subscreen. |
|
32 |
screen-height <integer> |
|
33 |
The height of the subscreen. |
|
34 |
screen-mouse-image <filename> |
|
35 |
Mouse pointer image to use. |
|
36 |
||
912
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
37 |
vnc2flv. |
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
38 |
======== |
378
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
39 |
|
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
40 |
In order to rrecord require VNC server running on host. |
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
41 |
|
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
42 |
http://www.unixuser.org/~euske/python/vnc2flv/index.html |
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
43 |
home page |
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
44 |
|
1519 | 45 |
libav. |
46 |
====== |
|
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
47 |
:: |
378
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
48 |
|
1519 | 49 |
$ sudo apt-get install libav-tools |
50 |
||
51 |
$ avconv -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg |
|
52 |
$ avconv -f x11grab -s cif -r 25 -i :0.0+10,20 /tmp/out.mpg |
|
53 |
||
54 |
||
55 |
ffmpeg. |
|
56 |
======= |
|
57 |
||
58 |
Only video:: |
|
59 |
||
60 |
$ ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpg |
|
61 |
$ ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0 out.mpg |
|
378
1aeb77e1b4be
Added vnc2flv and ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
377
diff
changeset
|
62 |
|
1519 | 63 |
Video with audio:: |
64 |
||
65 |
$ ffmpeg -f oss -i /dev/audio -f x11grab -s cif -r 3 -ab 11 -i :0.0 out.mp4 |
|
66 |
||
67 |
Oprsions description: |
|
68 |
||
69 |
* ``-r`` frames per second |
|
70 |
* ``-s`` resolution |
|
71 |
||
72 |
recordMyDesktop. |
|
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
73 |
================ |
1519 | 74 |
:: |
75 |
||
1635 | 76 |
$ recordmydesktop --no-sound --windowid $(xwininfo | awk '/Window id:/ {print $4}') |
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
77 |
|
912
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
78 |
Screenshort movies. |
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
79 |
=================== |
377 | 80 |
|
1356
6760780a620b
Screenshort movie by mencoder.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
81 |
Screenshort movie by mencoder. |
6760780a620b
Screenshort movie by mencoder.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
82 |
------------------------------ |
6760780a620b
Screenshort movie by mencoder.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
83 |
:: |
6760780a620b
Screenshort movie by mencoder.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
84 |
|
6760780a620b
Screenshort movie by mencoder.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
85 |
$ mencoder "mf://*.jpg" -mf fps=30 -o output.avi |
6760780a620b
Screenshort movie by mencoder.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
86 |
|
1520
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
87 |
Screenshort movie by ffmpeg. |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
88 |
---------------------------- |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
89 |
:: |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
90 |
|
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
91 |
mplayer -ao null -ss 0:0:33 -endpos 2 eagles.avi -vo jpeg:outdir=~/dir |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
92 |
mplayer -ao null -ss 0:0:33 -endpos 2 eagles.avi -vo png:z=9:outdir=~/dir |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
93 |
|
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
94 |
Here: |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
95 |
|
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
96 |
* ``-ss`` tells mplayer where you begin |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
97 |
* ``-endpos`` tells mplayer where to stop (minutes) |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
98 |
* ``z=9`` sets compression level |
c029267830ff
Screenshort movie by ffmpeg.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1519
diff
changeset
|
99 |
|
912
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
100 |
ImageMagic and shell script. |
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
101 |
---------------------------- |
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
102 |
:: |
377 | 103 |
|
104 |
#!/bin/bash |
|
105 |
let iter=1 |
|
106 |
while [ "$iter" -le "$stop" ]; do |
|
107 |
import $iter.png |
|
108 |
sleep 1 |
|
109 |
let x+=1 |
|
110 |
done |
|
111 |
||
112 |
If you interesting in capturing specific window - by 'xwininfo' find, |
|
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
113 |
intereesting your window id (hex value) and use command:: |
377 | 114 |
|
115 |
import -window $windowid $iter.png |
|
116 |
||
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
117 |
To quick view result run:: |
377 | 118 |
|
119 |
$ cd $img_dir |
|
120 |
$ animate -delay 20 *.png |
|
121 |
^C |
|
122 |
||
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
123 |
To compound image together:: |
377 | 124 |
|
125 |
$ convert -delay 20 *.png capture.mng # license free, multi-image file format |
|
126 |
$ convert -delay 20 *.png capture.gif |
|
127 |
||
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
128 |
You can add text to pictures before compound theirs:: |
377 | 129 |
|
130 |
$ mogrify -fill yellow -draw 'Rectangle 10,10 150,30' -fill black -pointsize 14 \ |
|
131 |
-draw 'text 15,25 "by http://example.com"' $iter.png |
|
132 |
||
133 |
If screen capturing slow for you use MIFF file format. |
|
134 |
||
913
f7cb11596372
Fix reStructedText error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
912
diff
changeset
|
135 |
Use root flag to capture all screen:: |
377 | 136 |
|
137 |
$ import -window root $iter.png |
|
379 | 138 |
|
139 |
http://linuxdevcenter.com/pub/a/linux/2004/03/04/screen_capture_movies.html |
|
140 |
Making Screen-Capture Movies by Robert Bernier |
|
912
b9eab34a4ce1
Take proper file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
597
diff
changeset
|
141 |