[{"data":1,"prerenderedAt":160},["ShallowReactive",2],{"blog-post-ffmpeg-capture-audio-with-mic":3,"recent-posts":96},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":16},"auJV5REAACwAw-df","ffmpeg-capture-audio-with-mic",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avzZABIAACgAeKzX&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22auJV5REAACwAw-df%22%29+%5D%5D",[],"2026-10-28T20:13:20+0000",[12],"ffmpeg-how-to-capture-audio-with-mic",[],"en-us",[],{"title":17,"date":23,"description":24,"image":29,"content":39},[18],{"type":19,"text":20,"spans":21,"direction":22},"heading1","FFmpeg: How to Capture Audio With Mic",[],"ltr","2026-10-25",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Capture audio directly from your microphone using FFmpeg on macOS",[],{"dimensions":30,"alt":6,"copyright":6,"url":33,"id":34,"edit":35},{"width":31,"height":32},1376,768,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F_RNu6A36amVN1G8D_FFmpegHowtocaptureaudiowithmic.jpeg?auto=format,compress","_RNu6A36amVN1G8D",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,51,55,62,65,71,74,77,93],{"type":41,"text":42,"spans":43,"direction":22},"paragraph","Before we get started, make sure you have FFmpeg installed on your computer and open up your Terminal application.",[],{"type":45,"text":46,"spans":47,"direction":22},"heading3","1. Find Microphone Device Index",[],{"type":41,"text":49,"spans":50,"direction":22},"First, we need to locate the device index for your microphone. Run this command in your terminal:",[],{"type":52,"text":53,"spans":54,"direction":22},"preformatted","ffmpeg -f avfoundation -list_devices true -i \"\"",[],{"type":41,"text":56,"spans":57,"direction":22},"Look through the terminal output under the AVFoundation audio devices list to find your microphone and note its corresponding number, which is often 0. You might see an error message at the bottom of the output, but you can safely ignore it because that is expected when listing devices.",[58],{"start":59,"end":60,"type":61},149,150,"strong",{"type":45,"text":63,"spans":64,"direction":22},"2. Record the Audio",[],{"type":41,"text":66,"spans":67,"direction":22},"Next, you can start recording audio from your microphone. Enter this command, replacing :0 with your microphone's index number if yours was different:",[68],{"start":69,"end":70,"type":61},88,90,{"type":52,"text":72,"spans":73,"direction":22},"ffmpeg -f avfoundation -i \":0\" output.wav",[],{"type":41,"text":75,"spans":76,"direction":22},"FFmpeg will begin recording right away and save the audio to \u003Ccode>output.wav\u003C\u002Fcode>. Speak into your microphone for a few seconds, then press \u003Ccode>q\u003C\u002Fcode> or \u003Ccode>ctrl + c\u003C\u002Fcode> on your keyboard to stop recording.",[],{"type":78,"oembed":79},"embed",{"embed_url":80,"type":81,"version":82,"title":20,"author_name":83,"author_url":84,"provider_name":85,"provider_url":86,"thumbnail_url":87,"thumbnail_width":88,"thumbnail_height":89,"html":90,"height":91,"width":92},"https:\u002F\u002Fyoutu.be\u002FGd4w_RJWhEY","video","1.0","markster","https:\u002F\u002Fwww.youtube.com\u002F@markster1904","YouTube","https:\u002F\u002Fwww.youtube.com\u002F","https:\u002F\u002Fi.ytimg.com\u002Fvi\u002FGd4w_RJWhEY\u002Fhqdefault.jpg",480,360,"\u003Ciframe width=\"200\" height=\"113\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FGd4w_RJWhEY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen title=\"FFmpeg: How to Capture Audio With Mic\">\u003C\u002Fiframe>",113,200,{"type":41,"text":94,"spans":95,"direction":22},"To quickly test that your audio recorded properly, play the file back by running \u003Ccode>afplay output.wav\u003C\u002Fcode> in your terminal or double-clicking the file in Finder.",[],{"results":97,"page":37,"results_per_page":158,"results_size":158,"total_results_size":159,"total_pages":37},[98,120,139],{"id":99,"uid":100,"url":6,"type":7,"href":101,"tags":102,"first_publication_date":103,"last_publication_date":103,"slugs":104,"linked_documents":106,"lang":14,"alternate_languages":107,"data":108},"avg1XREAACsAj4eS","sox-change-bit-depth","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avzZABIAACgAeKzX&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avg1XREAACsAj4eS%22%29+%5D%5D",[],"2026-11-17T22:45:19+0000",[105],"sox-how-to-change-bit-depth",[],[],{"image":109,"title":117},{"dimensions":110,"alt":113,"copyright":6,"url":114,"id":115,"edit":116},{"width":111,"height":112},1280,720,"SoX: How to Change Bit Depth","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FGm9ND5avh6VMrQoP_sox-change-bit-depth.png?auto=format,compress","Gm9ND5avh6VMrQoP",{"x":36,"y":36,"zoom":37,"background":38},[118],{"type":19,"text":113,"spans":119,"direction":22},[],{"id":121,"uid":122,"url":6,"type":7,"href":123,"tags":124,"first_publication_date":103,"last_publication_date":103,"slugs":125,"linked_documents":127,"lang":14,"alternate_languages":128,"data":129},"avg1XxEAACcAj4eg","sox-reverse-audio","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avzZABIAACgAeKzX&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avg1XxEAACcAj4eg%22%29+%5D%5D",[],[126],"sox-how-to-reverse-audio",[],[],{"image":130,"title":136},{"dimensions":131,"alt":132,"copyright":6,"url":133,"id":134,"edit":135},{"width":111,"height":112},"SoX: How to Reverse Audio","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F6yWWTbolMOE4a3JL_sox-reverse-audio.png?auto=format,compress","6yWWTbolMOE4a3JL",{"x":36,"y":36,"zoom":37,"background":38},[137],{"type":19,"text":132,"spans":138,"direction":22},[],{"id":140,"uid":141,"url":6,"type":7,"href":142,"tags":143,"first_publication_date":103,"last_publication_date":103,"slugs":144,"linked_documents":146,"lang":14,"alternate_languages":147,"data":148},"avg1XBEAACwAj4eL","sox-convert-stereo-to-mono","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avzZABIAACgAeKzX&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avg1XBEAACwAj4eL%22%29+%5D%5D",[],[145],"sox-how-to-convert-stereo-to-mono",[],[],{"image":149,"title":155},{"dimensions":150,"alt":151,"copyright":6,"url":152,"id":153,"edit":154},{"width":111,"height":112},"SoX: How to Convert Stereo to Mono","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FPgqFJaqMdDkYQkE6_sox-convert-stereo-to-mono.png?auto=format,compress","PgqFJaqMdDkYQkE6",{"x":36,"y":36,"zoom":37,"background":38},[156],{"type":19,"text":151,"spans":157,"direction":22},[],3,64,1794955544656]