Skip to content

Instantly share code, notes, and snippets.

@candyan
Last active December 16, 2016 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save candyan/bfd537fa549510ab411ed08c28192fc8 to your computer and use it in GitHub Desktop.
Save candyan/bfd537fa549510ab411ed08c28192fc8 to your computer and use it in GitHub Desktop.
ffmpeg
ffmpeg -i $video_file -vn -ar 16000 -ac 1 -acodec pcm_s16le -ss 00:01:00 -t 00:00:30 $audio.wav
-vn 排除视频 (-an 排除音频 / -sn 排除字幕)
-ar 采样率
-ac 声道数量
-acodec 编码 ( flac / pcm_s16le(16bit 线性PCM) )
-ss 开始时间点
-t 时长
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment