从视频中提取音频

此处整理,从视频文件中提取音频相关内容。

从mp4中提取音频mp3

提取整个音频

  1. ffmpeg -i show_14322648_video.mp4 -b:a 128k show_14322648_audio.mp3

提取音频片段

  1. ffmpeg -i show_157712932_video.mp4 -ss 00:00:11.270 -to 00:00:14.550 -b:a 128k show_157712932_audio_000011270_000014550.mp3
  • 参数解释

    1. usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
    2. -ss time_off set the start time offset
    3. -to time_stop record or transcode stop time
    4. -ab bitrate audio bitrate (please use -b:a)