{"id":196,"date":"2006-07-09T11:19:34","date_gmt":"2006-07-09T09:19:34","guid":{"rendered":"http:\/\/www.lucas-nussbaum.net\/blog\/?p=196"},"modified":"2006-07-09T11:19:34","modified_gmt":"2006-07-09T09:19:34","slug":"video-recording-your-desktop","status":"publish","type":"post","link":"https:\/\/www.lucas-nussbaum.net\/blog\/?p=196","title":{"rendered":"Video recording your desktop"},"content":{"rendered":"<p>While preparing one of my two RMLL talks, I wanted to create a video demo of something happening on my screen, to avoid the evil demo effect.<\/p>\n<p>I first tried using <a href=\"http:\/\/www.sodan.org\/~penny\/vncrec\/\">vncrec<\/a>, and then transcode to convert to a video. But the video conversion phase took A LOT of time, because it seems that it starts an external program to write each frame.<\/p>\n<p>I then switched to <a href=\"http:\/\/www.unixuser.org\/~euske\/vnc2swf\/\">pyvnc2swf<\/a>. Besides outputting swf files, it can also output video files (you need <a href=\"http:\/\/pymedia.org\/\">pymedia<\/a> for this, which is packaged in neither Debian nor Ubuntu, but there&#8217;s a deb package available from their website). But the .vnc -> .avi conversion was crashing. The solution I found to work was to output .bmp files, to convert them to .png, and then, to create the video with mencoder. It worked without problem for a 8 minutes video, even if it requires quite a lot of disk space for storing all the .bmp and .png files.<\/p>\n<p>Here is what my notes say I typed :<\/p>\n<blockquote><p># record to a .vnc file using pyvnc2swf.<br \/>\n# convert to bmp (-r 5 specifies the framerate)<br \/>\n.\/edit.py -t bmp -o test.bmp -r 5 test.vnc<br \/>\n# convert *.bmp to *.png<br \/>\nfor i in *.bmp; do echo $i; convert $i ${i%bmp}png; done<br \/>\n# encode the video<br \/>\nmencoder mf:\/\/test-*.png -mf fps=5 -mf type=png -o output.avi -ovc lavc -lavcopts vcodec=mpeg4 -ofps 5<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>While preparing one of my two RMLL talks, I wanted to create a video demo of something happening on my screen, to avoid the evil demo effect. I first tried using vncrec, and then transcode to convert to a video. But the video conversion phase took A LOT of time, because it seems that it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"0","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12,7],"tags":[],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-planetdebian","category-planetubuntu","category-technology"],"_links":{"self":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=196"}],"version-history":[{"count":0,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}