How to extract the audio from an mp4 video to a mp3 file?












16














I'd like to extract the audio from an mp4 video. Is there a software for Ubuntu, which does the job?










share|improve this question




















  • 4




    possible duplicate of How can I extract audio from MP4 or FLV video files?
    – Takkat
    Oct 21 '14 at 21:27
















16














I'd like to extract the audio from an mp4 video. Is there a software for Ubuntu, which does the job?










share|improve this question




















  • 4




    possible duplicate of How can I extract audio from MP4 or FLV video files?
    – Takkat
    Oct 21 '14 at 21:27














16












16








16


5





I'd like to extract the audio from an mp4 video. Is there a software for Ubuntu, which does the job?










share|improve this question















I'd like to extract the audio from an mp4 video. Is there a software for Ubuntu, which does the job?







sound mp3 mp4






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 21 '14 at 19:34









Sylvain Pineau

48.4k16104149




48.4k16104149










asked Oct 21 '14 at 18:11









empedokles

1,526113355




1,526113355








  • 4




    possible duplicate of How can I extract audio from MP4 or FLV video files?
    – Takkat
    Oct 21 '14 at 21:27














  • 4




    possible duplicate of How can I extract audio from MP4 or FLV video files?
    – Takkat
    Oct 21 '14 at 21:27








4




4




possible duplicate of How can I extract audio from MP4 or FLV video files?
– Takkat
Oct 21 '14 at 21:27




possible duplicate of How can I extract audio from MP4 or FLV video files?
– Takkat
Oct 21 '14 at 21:27










3 Answers
3






active

oldest

votes


















9














I think that the most detailed answer with several options can be found here:



How can I convert audio from MP4 or FLV video files to mp3?






share|improve this answer































    26














    You can use ffmpeg:



    ffmpeg -i /PATH/TO/INPUT.mp4 /PATH/TO/OUTPUT.mp3


    If it is not installed, you can install it with:



    sudo apt-get install ffmpeg


    You can find a help page on using ffmpeg here, or by running ffmpeg --help or man ffmpeg. On some versions of ubuntu it is sometimes called avconv, which is largely similar in functionality.



    For the above commands, you use the Terminal, which can be accessed by opening it from the dash/launcher, or by pressing Ctrl+Alt+T.






    share|improve this answer



















    • 2




      At present ffmpeg can not be installed easily on Ubuntu >= 14.04. Use avconv with same terminology instead.
      – Takkat
      Oct 21 '14 at 21:30










    • How can I keep the original audio data without re-compressing it? I have an mp4 file with aac audio.
      – ygoe
      Aug 6 '15 at 17:22






    • 2




      At a guess ffmpeg -i in.mp4 -vn -c:a copy out.m4a - vn removes the video and c:a copy copies the audio track over. mp3 is a different format so it would need to be re-compressed (with e.g. ffmpeg -i in.mp4 -vn -ab 250k out.mp3).
      – Wilf
      Aug 6 '15 at 18:01



















    7














    If you don't want to use the terminal and you don't have any real demands to do the job, you can always use VLC player to do this, which is probably installed in your distribution.




    1. Open VLC player.

    2. From the menu bar, please select "Media" and then "Convert/Save".

    3. Click "Add" and select your file.

    4. Click "Convert/Save".

    5. You should then select "Audio - MP3", enter a name in the "Destination File" and then click "Start".


    Your file should converted to MP3 format in no time.






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f539878%2fhow-to-extract-the-audio-from-an-mp4-video-to-a-mp3-file%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      9














      I think that the most detailed answer with several options can be found here:



      How can I convert audio from MP4 or FLV video files to mp3?






      share|improve this answer




























        9














        I think that the most detailed answer with several options can be found here:



        How can I convert audio from MP4 or FLV video files to mp3?






        share|improve this answer


























          9












          9








          9






          I think that the most detailed answer with several options can be found here:



          How can I convert audio from MP4 or FLV video files to mp3?






          share|improve this answer














          I think that the most detailed answer with several options can be found here:



          How can I convert audio from MP4 or FLV video files to mp3?







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 13 '17 at 12:24









          Community

          1




          1










          answered Oct 21 '14 at 20:22









          sboda

          43028




          43028

























              26














              You can use ffmpeg:



              ffmpeg -i /PATH/TO/INPUT.mp4 /PATH/TO/OUTPUT.mp3


              If it is not installed, you can install it with:



              sudo apt-get install ffmpeg


              You can find a help page on using ffmpeg here, or by running ffmpeg --help or man ffmpeg. On some versions of ubuntu it is sometimes called avconv, which is largely similar in functionality.



              For the above commands, you use the Terminal, which can be accessed by opening it from the dash/launcher, or by pressing Ctrl+Alt+T.






              share|improve this answer



















              • 2




                At present ffmpeg can not be installed easily on Ubuntu >= 14.04. Use avconv with same terminology instead.
                – Takkat
                Oct 21 '14 at 21:30










              • How can I keep the original audio data without re-compressing it? I have an mp4 file with aac audio.
                – ygoe
                Aug 6 '15 at 17:22






              • 2




                At a guess ffmpeg -i in.mp4 -vn -c:a copy out.m4a - vn removes the video and c:a copy copies the audio track over. mp3 is a different format so it would need to be re-compressed (with e.g. ffmpeg -i in.mp4 -vn -ab 250k out.mp3).
                – Wilf
                Aug 6 '15 at 18:01
















              26














              You can use ffmpeg:



              ffmpeg -i /PATH/TO/INPUT.mp4 /PATH/TO/OUTPUT.mp3


              If it is not installed, you can install it with:



              sudo apt-get install ffmpeg


              You can find a help page on using ffmpeg here, or by running ffmpeg --help or man ffmpeg. On some versions of ubuntu it is sometimes called avconv, which is largely similar in functionality.



              For the above commands, you use the Terminal, which can be accessed by opening it from the dash/launcher, or by pressing Ctrl+Alt+T.






              share|improve this answer



















              • 2




                At present ffmpeg can not be installed easily on Ubuntu >= 14.04. Use avconv with same terminology instead.
                – Takkat
                Oct 21 '14 at 21:30










              • How can I keep the original audio data without re-compressing it? I have an mp4 file with aac audio.
                – ygoe
                Aug 6 '15 at 17:22






              • 2




                At a guess ffmpeg -i in.mp4 -vn -c:a copy out.m4a - vn removes the video and c:a copy copies the audio track over. mp3 is a different format so it would need to be re-compressed (with e.g. ffmpeg -i in.mp4 -vn -ab 250k out.mp3).
                – Wilf
                Aug 6 '15 at 18:01














              26












              26








              26






              You can use ffmpeg:



              ffmpeg -i /PATH/TO/INPUT.mp4 /PATH/TO/OUTPUT.mp3


              If it is not installed, you can install it with:



              sudo apt-get install ffmpeg


              You can find a help page on using ffmpeg here, or by running ffmpeg --help or man ffmpeg. On some versions of ubuntu it is sometimes called avconv, which is largely similar in functionality.



              For the above commands, you use the Terminal, which can be accessed by opening it from the dash/launcher, or by pressing Ctrl+Alt+T.






              share|improve this answer














              You can use ffmpeg:



              ffmpeg -i /PATH/TO/INPUT.mp4 /PATH/TO/OUTPUT.mp3


              If it is not installed, you can install it with:



              sudo apt-get install ffmpeg


              You can find a help page on using ffmpeg here, or by running ffmpeg --help or man ffmpeg. On some versions of ubuntu it is sometimes called avconv, which is largely similar in functionality.



              For the above commands, you use the Terminal, which can be accessed by opening it from the dash/launcher, or by pressing Ctrl+Alt+T.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jul 2 '18 at 11:46

























              answered Oct 21 '14 at 18:31









              Wilf

              21.2k1066128




              21.2k1066128








              • 2




                At present ffmpeg can not be installed easily on Ubuntu >= 14.04. Use avconv with same terminology instead.
                – Takkat
                Oct 21 '14 at 21:30










              • How can I keep the original audio data without re-compressing it? I have an mp4 file with aac audio.
                – ygoe
                Aug 6 '15 at 17:22






              • 2




                At a guess ffmpeg -i in.mp4 -vn -c:a copy out.m4a - vn removes the video and c:a copy copies the audio track over. mp3 is a different format so it would need to be re-compressed (with e.g. ffmpeg -i in.mp4 -vn -ab 250k out.mp3).
                – Wilf
                Aug 6 '15 at 18:01














              • 2




                At present ffmpeg can not be installed easily on Ubuntu >= 14.04. Use avconv with same terminology instead.
                – Takkat
                Oct 21 '14 at 21:30










              • How can I keep the original audio data without re-compressing it? I have an mp4 file with aac audio.
                – ygoe
                Aug 6 '15 at 17:22






              • 2




                At a guess ffmpeg -i in.mp4 -vn -c:a copy out.m4a - vn removes the video and c:a copy copies the audio track over. mp3 is a different format so it would need to be re-compressed (with e.g. ffmpeg -i in.mp4 -vn -ab 250k out.mp3).
                – Wilf
                Aug 6 '15 at 18:01








              2




              2




              At present ffmpeg can not be installed easily on Ubuntu >= 14.04. Use avconv with same terminology instead.
              – Takkat
              Oct 21 '14 at 21:30




              At present ffmpeg can not be installed easily on Ubuntu >= 14.04. Use avconv with same terminology instead.
              – Takkat
              Oct 21 '14 at 21:30












              How can I keep the original audio data without re-compressing it? I have an mp4 file with aac audio.
              – ygoe
              Aug 6 '15 at 17:22




              How can I keep the original audio data without re-compressing it? I have an mp4 file with aac audio.
              – ygoe
              Aug 6 '15 at 17:22




              2




              2




              At a guess ffmpeg -i in.mp4 -vn -c:a copy out.m4a - vn removes the video and c:a copy copies the audio track over. mp3 is a different format so it would need to be re-compressed (with e.g. ffmpeg -i in.mp4 -vn -ab 250k out.mp3).
              – Wilf
              Aug 6 '15 at 18:01




              At a guess ffmpeg -i in.mp4 -vn -c:a copy out.m4a - vn removes the video and c:a copy copies the audio track over. mp3 is a different format so it would need to be re-compressed (with e.g. ffmpeg -i in.mp4 -vn -ab 250k out.mp3).
              – Wilf
              Aug 6 '15 at 18:01











              7














              If you don't want to use the terminal and you don't have any real demands to do the job, you can always use VLC player to do this, which is probably installed in your distribution.




              1. Open VLC player.

              2. From the menu bar, please select "Media" and then "Convert/Save".

              3. Click "Add" and select your file.

              4. Click "Convert/Save".

              5. You should then select "Audio - MP3", enter a name in the "Destination File" and then click "Start".


              Your file should converted to MP3 format in no time.






              share|improve this answer


























                7














                If you don't want to use the terminal and you don't have any real demands to do the job, you can always use VLC player to do this, which is probably installed in your distribution.




                1. Open VLC player.

                2. From the menu bar, please select "Media" and then "Convert/Save".

                3. Click "Add" and select your file.

                4. Click "Convert/Save".

                5. You should then select "Audio - MP3", enter a name in the "Destination File" and then click "Start".


                Your file should converted to MP3 format in no time.






                share|improve this answer
























                  7












                  7








                  7






                  If you don't want to use the terminal and you don't have any real demands to do the job, you can always use VLC player to do this, which is probably installed in your distribution.




                  1. Open VLC player.

                  2. From the menu bar, please select "Media" and then "Convert/Save".

                  3. Click "Add" and select your file.

                  4. Click "Convert/Save".

                  5. You should then select "Audio - MP3", enter a name in the "Destination File" and then click "Start".


                  Your file should converted to MP3 format in no time.






                  share|improve this answer












                  If you don't want to use the terminal and you don't have any real demands to do the job, you can always use VLC player to do this, which is probably installed in your distribution.




                  1. Open VLC player.

                  2. From the menu bar, please select "Media" and then "Convert/Save".

                  3. Click "Add" and select your file.

                  4. Click "Convert/Save".

                  5. You should then select "Audio - MP3", enter a name in the "Destination File" and then click "Start".


                  Your file should converted to MP3 format in no time.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 21 '14 at 19:09









                  nikaltipar

                  594413




                  594413






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f539878%2fhow-to-extract-the-audio-from-an-mp4-video-to-a-mp3-file%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Human spaceflight

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                      File:DeusFollowingSea.jpg