{"id":9059,"date":"2022-11-17T22:34:42","date_gmt":"2022-11-17T21:34:42","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=9059"},"modified":"2024-07-23T23:05:06","modified_gmt":"2024-07-23T21:05:06","slug":"windows-capture-main-screen-and-audio-with-free-software","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-capture-main-screen-and-audio-with-free-software\/","title":{"rendered":"Windows: Capture (Main) Screen and Audio with free software"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_9059 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_9059')){$('.twoclick_social_bookmarks_post_9059').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Capture%20%28Main%29%20Screen%20and%20Audio%20with%20free%20software\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athere%20are%20a%20lot%20of%20tools%20which%20does%20this%20task.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-capture-main-screen-and-audio-with-free-software\\\/\",\"post_id\":9059,\"post_title_referrer_track\":\"Windows%3A+Capture+%28Main%29+Screen+and+Audio+with+free+software\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>there are a lot of tools which does this task.<br \/>\n<!--more--><br \/>\nBut at the end of the day I used <a href=\"https:\/\/github.com\/rdp\/screen-capture-recorder-to-video-windows-free\" rel=\"noopener\" target=\"_blank\">screen-capture-recorder<\/a>.<\/p>\n<p>Screen Capturer Recorder has an screen and audio grapper which can be used by ffmpeg, gstreamer and compatible tools. screen-capture-recorder has not a GUI interface but configured once it does its jobs.<\/p>\n<p><strong>Installation<\/strong><\/p>\n<p>Download the latest version from the <strong><a href=\"https:\/\/github.com\/rdp\/screen-capture-recorder-to-video-windows-free\/releases\" rel=\"noopener\" target=\"_blank\">release page<\/a><\/strong> and install it. In this example to the default directory <strong>C:\\Program Files (x86)\\Screen Capturer Recorder<\/strong>.<\/p>\n<p>The package has ffmpeg &#8220;on board&#8221; so you can start immediately. A first simple example:<\/p>\n<p>This command line records the main screen and all audio with a framerate of 10 fps<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:&gt; &quot;C:\\Program Files (x86)\\Screen Capturer Recorder\\configuration_setup_utility\\vendor\\ffmpeg\\bin\\ffmpeg.exe&quot; -f dshow -i audio=&quot;virtual-audio-capturer&quot;:video=&quot;screen-capture-recorder&quot; -r 10 D:\\temp\\test_screen_capture.mp4 -r 10 \r\n<\/pre>\n<p>But it is recommended to get hte <a href=\"https:\/\/ffmpeg.org\/download.html\" rel=\"noopener\" target=\"_blank\">latest version for Windows<\/a>.<\/p>\n<p>Screen Capturer Recorder is also configurable by some registry keys. The registry key is <strong>HKEY_CURRENT_USER\\Software\\screen-capture-recorder<\/strong>. Possible values:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nWindows Registry Editor Version 5.00\r\n\r\n&#x5B;HKEY_CURRENT_USER\\Software\\screen-capture-recorder]\r\n&quot;capture_height=&quot;=dword:000001E0\r\n&quot;capture_width=dword:00000280\r\n&quot;start_x=dword:00000000\r\n&quot;start_y=dword:00000000\r\n&quot;default_max_fps=dword:0000000A\r\n&quot;stretch_to_width=dword:000001E0\r\n&quot;stretch_to_height=dword:00000280\r\n&quot;stretch_mode_high_quality_if_1=dword:00000000\r\n&quot;hwnd_to_track=dword:0000000A\r\n&quot;disable_aero_for_vista_plus_if_1=dword:00000001\r\n&quot;track_new_x_y_coords_each_frame_if_1=dword:00000000\r\n&quot;capture_mouse_default_1=dword:00000001\r\n&quot;capture_foreground_window_if_1=dword:00000000\r\n&quot;dedup_if_1=dword:00000000\r\n&quot;millis_to_sleep_between_poll_for_dedupe_changes=dword:0000000A\r\n&quot;capture_transparent_windows_including_mouse_in_non_aero_if_1_causes_annoying_mouse_flicker=dword:00000000\r\n&quot;hwnd_to_track_with_window_decoration=dword:0000000A\r\n<\/pre>\n<p>These are only example values. Adjust to your need or delete the one you not need.<\/p>\n<p><!-- An example. To capture the whole screen not just the main screen set\n[shell]\nC:\\&gt; reg add HKEY_CURRENT_USER\\Software\\screen-capture-recorder \/v \n[\/shell]\n --><\/p>\n<p>Note: Screengrapping is also possible with the ffmpeg builtin input device <a href=\"https:\/\/trac.ffmpeg.org\/wiki\/Capture\/Desktop\" rel=\"noopener\" target=\"_blank\">gdigrab <\/a>.<\/p>\n<p>gdigrab can capture all screens.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:&gt; ffmpeg.exe -f gdigrab -framerate 10 -i desktop D:\\temp\\test_screen_capture.mp4 \r\n<\/pre>\n<p>and with audio<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:&gt; ffmpeg.exe -f gdigrab -framerate 10 -i desktop -f dshow -i audio=&quot;virtual-audio-capturer&quot;  D:\\temp\\test_screen_capture.mp4\r\n<\/pre>\n<p>Or as XVID<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:&gt; ffmpeg.exe -f gdigrab -framerate 10 -i desktop -f dshow -i audio=&quot;virtual-audio-capturer&quot; -c:v libxvid  D:\\temp\\test_screen_capture.avi\r\n<\/pre>\n<p>and split output file into 15 min chunks<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:&gt; ffmpeg.exe -f gdigrab -framerate 10 -i desktop -f dshow -i audio=&quot;virtual-audio-capturer&quot; -segment_time 00:15:00 -f segment -c:v libxvid -reset_timestamps 1 D:\\temp\\test_screen_capture%03d.avi  \r\n<\/pre>\n<p>of<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:&gt; ffmpeg.exe -f gdigrab -framerate 10 -i desktop -f dshow -i audio=&quot;virtual-audio-capturer&quot; -f segment -segment_time 900 -c:v libxvid -reset_timestamps 1 D:\\temp\\test_screen_capture%03d.avi  \r\n<\/pre>\n<p>gdigrap can either grap the whole desktop or a single window specified by the windows title. Take a look at the <a href=\"https:\/\/ffmpeg.org\/ffmpeg-devices.html#toc-gdigrab\" rel=\"noopener\" target=\"_blank\">documentation <\/a>for all options.<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, there are a lot of tools which does this task.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[747,1929,1928,1927,1930,1926,699,1931,20],"class_list":["post-9059","post","type-post","status-publish","format-standard","hentry","category-windows","category-windowsknowhow","tag-audio","tag-free","tag-gpl","tag-grapper","tag-opensource","tag-recorder","tag-screen","tag-whole-desktop","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=9059"}],"version-history":[{"count":16,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9059\/revisions"}],"predecessor-version":[{"id":9399,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9059\/revisions\/9399"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=9059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=9059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=9059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}