{
  "id": 20978273,
  "title": "Extract the audio from a video with ffmpeg from command line",
  "url": "https://urgent.news/2026/11/21/extract-the-audio-from-a-video-with-ffmpeg-from-command-line",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-21T01:30:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/yingtse/extract-the-audio-from-a-video-with-ffmpeg-from-command-line-31ba"
  },
  "original_language": "en",
  "account": "The source material provides instructions on how to extract audio from an MP4 video file using ffmpeg, a command-line tool. The process involves using a script that asks ffprobe for the audio stream inside the video, and then chooses the appropriate output format (mp3, m4a, wav) based on user input. The script handles errors, such as missing audio streams or codec issues, and outputs the extracted audio file with the same name as the input video, but with a different file extension. The script is designed to be reusable, with a GUI implemented using cmdbook for easier command-line usage.",
  "summary": "You have a recording of a call or a talk, and you only want the audio. How do you do it? You ask an AI, and it gives you the classic line: ffmpeg -i \"Team call.mp4\" -vn -acodec copy out.mp3 It fails: Invalid audio stream. Exactly one MP3 audio stream is required. Could not write header (incorrect codec parameters ?): Invalid argument and leaves an empty out.mp3 behind. The audio inside an .mp4 is…",
  "key_points": [
    "Use ffmpeg command-line tool to extract audio from video",
    "Script queries ffprobe for audio stream, selects output format",
    "Handles errors, outputs audio file with same name, different extension"
  ],
  "editors_take": "Automating the extraction process through a reusable script transforms a technical command-line task into a streamlined workflow that simplifies media management for users of various audio formats.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}