{"id":210,"date":"2023-01-18T12:44:00","date_gmt":"2023-01-18T11:44:00","guid":{"rendered":"http:\/\/www.ncodenicer.com\/?p=210"},"modified":"2026-05-14T07:30:52","modified_gmt":"2026-05-14T05:30:52","slug":"record-screen-capture-with-audio-in-freebsd-with-ffmpeg","status":"publish","type":"post","link":"https:\/\/www.codenicer.com\/?p=210","title":{"rendered":"Record screen capture with audio in FreeBSD with ffmpeg"},"content":{"rendered":"\n<p>This command can be used:<\/p>\n\n\n\n<p><code>ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0+0,0 -f oss -i \/dev\/dsp5.0 -filter:a \"asetpts=N\/SR\/TB\" output.mp4<\/code><\/p>\n\n\n\n<p>Command above assumes that microphone is at \/dev\/dsp5.0 (you can check that with <code>cat \/dev\/sndstat<\/code>), and you can adjust microphone volume with <code>mixer -f \/dev\/mixer5 mic 100<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This command can be used: ffmpeg -video_size 1920&#215;1080 -framerate 25 -f x11grab -i :0.0+0,0 -f oss -i \/dev\/dsp5.0 -filter:a &#8220;asetpts=N\/SR\/TB&#8221; output.mp4 Command above assumes that microphone is at \/dev\/dsp5.0 (you can check that with cat \/dev\/sndstat), and you can adjust microphone volume with mixer -f \/dev\/mixer5 mic 100.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[138,6,139,140],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ffmpeg","tag-freebsd","tag-screen-capture","tag-screen-grab"],"_links":{"self":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":1,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}