Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4238462
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:54:29+00:00 2026-05-21T02:54:29+00:00

I am trying to join several mp3 files and output it as .mov file

  • 0

I am trying to join several mp3 files and output it as .mov file with ffmpeg.

Anyone knows about the command line to do that ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:54:29+00:00Added an answer on May 21, 2026 at 2:54 am

    This is how I did it with the help of http://www.sourcerally.net/Scripts/20-PHP-MP3-Class

    <?php
    // This is the class to generate mp3 files based on the anti-spam words
    // Based on the PHP mp3 class at http://www.sourcerally.net/Scripts/20-PHP-MP3-Class
    // Output code based on the FPDF class at http://www.fpdf.org
    class Mp3Helper
    {
        function convert($fromFile, $toFile)
        {
            exec("ffmpeg -i $fromFile -ab 128k $toFile");
            unlink($fromFile);
        }
    
        function concatenate($tempFile, $phrases)
        {
            exec("mp3wrap " . $tempFile . " " . $phrases);
        }
    
        function fix($tempFile, $toFile)
        {
            exec("ffmpeg -y -i " . $tempFile . " -acodec copy " .$toFile);
            unlink($tempFile);
        }   
    }
    ?>
    
    
    <?php
    // This is the class to generate mp3 files based on the anti-spam words
    // Based on the PHP mp3 class at http://www.sourcerally.net/Scripts/20-PHP-MP3-Class
    // Output code based on the FPDF class at http://www.fpdf.org
    class Mp3
    {
        var $str;
        var $time;
        var $frames;
    
        // Create a new mp3
        function mp3($path="")
        {
            if($path!="")
            {
                $this->str = file_get_contents($path);
            }
        }
    
        // Put an mp3 behind the first mp3
        function mergeBehind($mp3)
        {
            $this->str .= $mp3->str;
        }
    
        // Calculate where's the end of the sound file
        function getIdvEnd()
        {
            $strlen = strlen($this->str);
            $str = substr($this->str,($strlen-128));
            $str1 = substr($str,0,3);
            if(strtolower($str1) == strtolower('TAG'))
            {
                return $str;
            }
            else
            {
                return false;
            }
        }
    
        // Calculate where's the beginning of the sound file
        function getStart()
        {
            $strlen = strlen($this->str);
            for($i=0;$i<$strlen;$i++)
            {
                $v = substr($this->str,$i,1);
                $value = ord($v);
                if($value == 255)
                {
                    return $i;
                }
            }
        }
    
        // Remove the ID3 tags
        function striptags()
        {
            //Remove start stuff...
            $newStr = '';
            $s = $start = $this->getStart();
            if($s===false)
            {
                return false;
            }
            else
            {
                $this->str = substr($this->str,$start);
            }
            //Remove end tag stuff
            $end = $this->getIdvEnd();
            if($end!==false)
            {
                $this->str = substr($this->str,0,(strlen($this->str)-129));
            }
        }
    
        // Display an error
        function error($msg)
        {
            //Fatal error
            die('<strong>audio file error: </strong>'.$msg);
        }
    
        // Send the new mp3 to the browser
        function output($path)
        {
            //Output mp3
            //Send to standard output
            if(ob_get_contents())
            $this->error('Some data has already been output, can\'t send mp3 file');
            if(php_sapi_name()!='cli')
            {
                //We send to a browser
                header('Content-Type: audio/mpeg3');
                if(headers_sent())
                $this->error('Some data has already been output to browser, can\'t send mp3 file');
                header('Content-Length: '.strlen($this->str));
                header('Content-Disposition: attachment; filename="'.$path.'"');
            }
            echo $this->str;
            return '';
        }
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to join together several audio files into one mp4/m4a file containing
I'm trying to read a text file (using perl) where each line has several
I am trying to join several variables to create a file path. The file
I'm trying to sort the contents of several files (sometimes moving a line from
I know that there are several posts about how BAD it is to try
I'm trying to join a bunch of pages that are in different languages to
I'm trying to join some data together from 2 tables, but on several columns.
I'm trying to make a mysql query to select several tables and LEFT join
I'm trying to run this SQL command but it's giving me an error that
I have several tables that I am trying to get some data out of,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.