How to Make FFmpeg Extract Audio from MP4


Q: “How can I extract audio from video with FFmpeg?” - From Stack Overflow

FFmpeg is a free and open-source command-line toolbox that is able to handle a large number of videos, audios, and other multimedia files. It is able to stream, manipulate and convert video and audio content. To make FFmpeg extract audio from MP4 so that you can save your desirable music file independently, you may need a series of commands, which may have confused many beginners several times. But no worries, this article is going to explain how to do that easily. Moreover, in order to help you extract audio track from MP4 and save it in various formats in a more efficient manner, we humbly recommend another easy-to-use audio extractor to you as an alternative to FFmpeg.

  • Part 1. FFmpeg
  • Part 2. Alternative: Joyoshare VidiKit

Part 1. FFmpeg - Extract Audio from MP4 Video

FFmpeg is a command-based video editor as well as a free open-source tool. You need to input command lines to extract audio track from mp4. Apart from that, FFmpeg can record, convert, combine video, and audio files. Besides, it can also crop and trim videos. It is a cross-platform solution, which supports Windows, macOS, and Linux.

ffmpeg

Steps to extract audio from MP4 video via FFmpeg:

Step 1: Download FFmpeg;

Step 2: Open a Command Prompt (Click Start > Run > input CMD) on a Windows/Linux/Mac to open a Terminal;

Step 3: Install FFmpeg (Type "sudo apt install FFmpeg") ;

install ffmpeg

Step 4: Input the following command line to extract audio track from MP4 video. Here we take extract MP3 from MP4 as an example;

ffmpeg extract audio from mp4

Note that if you want to export audios with other formats, like extracting WAV from MP4 via FFmpeg, just type WAV to replace MP3.

Step 5: Running the command line and wait patiently to finish the conversion.

Note: Except for those who have much knowledge about commands, FFmpeg is so difficult for newbies. If you want to achieve a function, like extracting tracks from videos, you need to search for the specific command lines. That will consume a lot of energy. Therefore, if your computer is in Windows or Mac version, try FFmpeg's alternative - Joyoshare VidiKit.

Part 2. Joyoshare VidiKit - Extract Audio Track from MP4 Files

Joyoshare VidiKit is a professional video editing tool to extract audio from MP4, which won't damage any track quality loss. Joyoshare supports extracting various audios (like MP3, WAV, OGG, etc.) from any videos.

Except for that, Joyoshare integrates multiple functions, like cutting, editing, converting and merging videos and audios. Let's talk about the details of these functions. You can remove some unwanted parts of MP4, like ads and repeated parts. Besides, you can merge a great variety of videos or audios without quality loss. Also, you can convert media files to any other media format or device, like iPhone, iPad, and so on. As for joining, it only supports combining media files from the same source into a large one.

Key Features of Joyoshare Media Cutter:

Extract audio from MP4 easily and fast

Export media files at 60X faster speed

Offer 5 opportunities before registering

Provide multifunctional options (cutting, editing, etc.)

Adjust audios' codec, resolution, frame rate, bit rate

  • Step 1 Import MP4 videos into Joyoshare

    Download and install Joyoshare Media Cutter in Windows or Mac version, and then launch it. Next, add MP4 files to Joyoshare. You can drag and drop them to the screen or click the Open Files button to select the MP4 you need.

    add mp4 to joyoshare program
  • Step 2 Select one mode and the output format

    Joyoshare provides two modes: High-Speed mode and Encoding mode. The first can cut and merge media files without quality loss and export videos at 60X faster speed. The second offers more options to customize file format, quality, resolution, and codec, etc. Here we choose WAV as the output format.

    select mode to extract
  • Step 3 Cut MP4 files (Optional)

    After selecting the output format, click the OK button to return to the main interface. Play the MP4 and then you can move the yellow sliders to trim MP4 files. Another way to cut MP4 off we talk in Step 3.

    trim mp4 video
  • Step 4 Add sound effect (Optional)

    On the left screen, there are two buttons (Rename and Edit). Click the Edit button to open its inbuilt editor. Here you can also remove unwanted parts more accurately. Because you want to extract sound from MP4, you can skip some functions to edit videos. But you still can add some audio effects (Click the Audio button to handle it).

    add sound effect
  • Step 5 Start to extract audio from MP4 files

    In this step, you just need to click the Start button. And then the audio extracted from MP4 will export at your local folder.

    extract audio from mp4
  • For more information, please visit the source page: https://www.joyoshare.com/video-cutting/ffmpeg-extract-audio-from-mp4.html

Comments

Popular posts from this blog

[9 YouTube Cutter] Trim/Cut YouTube Video in Seconds

Quide Guide to Unlock iPhone without Passcode Efficiently [5 Ways]

7 Tips to Fix iPhone Stuck on Verifying Update