The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Extract Audio From A Video With ffmpeg

TODO: Pull subtitle into page object
Code
ffmpeg -i input.mp4 -q:a 0 -map a output.mp3

Notes

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Extract Audio From A Video With ffmpeg

The creates an mp3 file with a variable bit rate:

-- code

ffmpeg -i input.mp4 -q:a 0 -map a output.mp3

-- notes

- A starting point can be set with: `-ss 31.3`` 

- The length can be set with: `-t 10.0``

- The `-q:a 0`` can be dropped and the extension 
changed from `.mp3`` to `.wav`` to make
a WAV file

- Making a specific frequency wav file is done 
with something like this `-map a -ar 16000 output.wav``
for a 16,000 Hz file

-- categories
-- ffmpeg 

-- metadata
-- date: 2021-05-09 14:12:06
-- id: 01f5958j
-- status: published
-- type: post
-- site: aws