Fastest way to concatenate list of audio files of different format?












0















ffmpeg -i a.mp3 -i b.wav -i c.mp3 -i d.aac -i e.mp3 -i f.mp3 -filter_complex concat=n=4:v=0:a=1[a] -map [a] -codec:a libmp3lame -b:a 256k vout.mp3


This is the command I'm using currently to concatenate a list of audio files. Is there any faster way to merge songs using ffmpeg ?










share|improve this question



























    0















    ffmpeg -i a.mp3 -i b.wav -i c.mp3 -i d.aac -i e.mp3 -i f.mp3 -filter_complex concat=n=4:v=0:a=1[a] -map [a] -codec:a libmp3lame -b:a 256k vout.mp3


    This is the command I'm using currently to concatenate a list of audio files. Is there any faster way to merge songs using ffmpeg ?










    share|improve this question

























      0












      0








      0








      ffmpeg -i a.mp3 -i b.wav -i c.mp3 -i d.aac -i e.mp3 -i f.mp3 -filter_complex concat=n=4:v=0:a=1[a] -map [a] -codec:a libmp3lame -b:a 256k vout.mp3


      This is the command I'm using currently to concatenate a list of audio files. Is there any faster way to merge songs using ffmpeg ?










      share|improve this question














      ffmpeg -i a.mp3 -i b.wav -i c.mp3 -i d.aac -i e.mp3 -i f.mp3 -filter_complex concat=n=4:v=0:a=1[a] -map [a] -codec:a libmp3lame -b:a 256k vout.mp3


      This is the command I'm using currently to concatenate a list of audio files. Is there any faster way to merge songs using ffmpeg ?







      ffmpeg






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 11 at 7:02









      Lins LouisLins Louis

      1012




      1012






















          2 Answers
          2






          active

          oldest

          votes


















          1














          No, there is no faster way.



          Since you are concatenating files with different codecs and containers, you have to pass the audio through a concat filter, which requires re-encoding.






          share|improve this answer
























          • Thanks for your reply. I'm currently developing an android app with FFmpeg integrated. for concatenating 2 audio file my phone taking about 5 minutes with this command. But another app already in the play store doing the same in a minute with FFmpeg. So, I think I have to improve my coding side to improve encoding speed.

            – Lins Louis
            Jan 11 at 9:04



















          1














          Try a different encoder. If you prefer MP3 try shine. From the shine website:




          shine is a blazing fast mp3 encoding library implemented in
          fixed-point arithmetic. The library can thus be used to performe super
          fast mp3 encoding on architectures without a FPU, such as armel, etc..
          It is also, however, also super fast on architectures with a FPU!




          You can see some benchmarks on the same site.



          You'll need to install shine, configure ffmpeg with --enable-libshine, and use it with -c:a libshine.



          Quality per bitrate may not be as good as LAME, but mobile users won't care or notice.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1393050%2ffastest-way-to-concatenate-list-of-audio-files-of-different-format%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            No, there is no faster way.



            Since you are concatenating files with different codecs and containers, you have to pass the audio through a concat filter, which requires re-encoding.






            share|improve this answer
























            • Thanks for your reply. I'm currently developing an android app with FFmpeg integrated. for concatenating 2 audio file my phone taking about 5 minutes with this command. But another app already in the play store doing the same in a minute with FFmpeg. So, I think I have to improve my coding side to improve encoding speed.

              – Lins Louis
              Jan 11 at 9:04
















            1














            No, there is no faster way.



            Since you are concatenating files with different codecs and containers, you have to pass the audio through a concat filter, which requires re-encoding.






            share|improve this answer
























            • Thanks for your reply. I'm currently developing an android app with FFmpeg integrated. for concatenating 2 audio file my phone taking about 5 minutes with this command. But another app already in the play store doing the same in a minute with FFmpeg. So, I think I have to improve my coding side to improve encoding speed.

              – Lins Louis
              Jan 11 at 9:04














            1












            1








            1







            No, there is no faster way.



            Since you are concatenating files with different codecs and containers, you have to pass the audio through a concat filter, which requires re-encoding.






            share|improve this answer













            No, there is no faster way.



            Since you are concatenating files with different codecs and containers, you have to pass the audio through a concat filter, which requires re-encoding.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 11 at 7:45









            slhckslhck

            160k47445467




            160k47445467













            • Thanks for your reply. I'm currently developing an android app with FFmpeg integrated. for concatenating 2 audio file my phone taking about 5 minutes with this command. But another app already in the play store doing the same in a minute with FFmpeg. So, I think I have to improve my coding side to improve encoding speed.

              – Lins Louis
              Jan 11 at 9:04



















            • Thanks for your reply. I'm currently developing an android app with FFmpeg integrated. for concatenating 2 audio file my phone taking about 5 minutes with this command. But another app already in the play store doing the same in a minute with FFmpeg. So, I think I have to improve my coding side to improve encoding speed.

              – Lins Louis
              Jan 11 at 9:04

















            Thanks for your reply. I'm currently developing an android app with FFmpeg integrated. for concatenating 2 audio file my phone taking about 5 minutes with this command. But another app already in the play store doing the same in a minute with FFmpeg. So, I think I have to improve my coding side to improve encoding speed.

            – Lins Louis
            Jan 11 at 9:04





            Thanks for your reply. I'm currently developing an android app with FFmpeg integrated. for concatenating 2 audio file my phone taking about 5 minutes with this command. But another app already in the play store doing the same in a minute with FFmpeg. So, I think I have to improve my coding side to improve encoding speed.

            – Lins Louis
            Jan 11 at 9:04













            1














            Try a different encoder. If you prefer MP3 try shine. From the shine website:




            shine is a blazing fast mp3 encoding library implemented in
            fixed-point arithmetic. The library can thus be used to performe super
            fast mp3 encoding on architectures without a FPU, such as armel, etc..
            It is also, however, also super fast on architectures with a FPU!




            You can see some benchmarks on the same site.



            You'll need to install shine, configure ffmpeg with --enable-libshine, and use it with -c:a libshine.



            Quality per bitrate may not be as good as LAME, but mobile users won't care or notice.






            share|improve this answer




























              1














              Try a different encoder. If you prefer MP3 try shine. From the shine website:




              shine is a blazing fast mp3 encoding library implemented in
              fixed-point arithmetic. The library can thus be used to performe super
              fast mp3 encoding on architectures without a FPU, such as armel, etc..
              It is also, however, also super fast on architectures with a FPU!




              You can see some benchmarks on the same site.



              You'll need to install shine, configure ffmpeg with --enable-libshine, and use it with -c:a libshine.



              Quality per bitrate may not be as good as LAME, but mobile users won't care or notice.






              share|improve this answer


























                1












                1








                1







                Try a different encoder. If you prefer MP3 try shine. From the shine website:




                shine is a blazing fast mp3 encoding library implemented in
                fixed-point arithmetic. The library can thus be used to performe super
                fast mp3 encoding on architectures without a FPU, such as armel, etc..
                It is also, however, also super fast on architectures with a FPU!




                You can see some benchmarks on the same site.



                You'll need to install shine, configure ffmpeg with --enable-libshine, and use it with -c:a libshine.



                Quality per bitrate may not be as good as LAME, but mobile users won't care or notice.






                share|improve this answer













                Try a different encoder. If you prefer MP3 try shine. From the shine website:




                shine is a blazing fast mp3 encoding library implemented in
                fixed-point arithmetic. The library can thus be used to performe super
                fast mp3 encoding on architectures without a FPU, such as armel, etc..
                It is also, however, also super fast on architectures with a FPU!




                You can see some benchmarks on the same site.



                You'll need to install shine, configure ffmpeg with --enable-libshine, and use it with -c:a libshine.



                Quality per bitrate may not be as good as LAME, but mobile users won't care or notice.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 11 at 18:27









                lloganllogan

                25.4k54679




                25.4k54679






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1393050%2ffastest-way-to-concatenate-list-of-audio-files-of-different-format%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

                    Mouse cursor on multiple screens with different PPI

                    Agildo Ribeiro

                    Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”