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

  • Home
  • SEARCH
  • 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 3756584
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:52:28+00:00 2026-05-19T09:52:28+00:00

I have FFmpeg installed on my linux web server. When I execute the following

  • 0

I have FFmpeg installed on my linux web server. When I execute the following code, I have intermittent results.

I think I have figured out that the MP3s do not compile when they have different bitrates.

exec ('cat '. $pair['source_file'] . ' ' . $pair['translated_word_file'] . '>' . $temp_mp3);

I might have found some articles online that reference taking them apart and then bundling them back together at a consistent bitrates.

I have confirmed that this won’t really work with basic “cat” function and that “sox” can be used IF they have the same sample rate.

The issue now becomes “What is the best way to get them to the same sample rate?”

  • 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-19T09:52:28+00:00Added an answer on May 19, 2026 at 9:52 am

    You will need to find a way to strip out all of the ID3 tags and other crap, and break it down to just the MP3 stream. Then, cut and splice on the MP3 frames. You shouldn’t leave a frame incomplete!

    If you have a proper stream of frames and don’t have any random data (tags) in the middle of the stream, then you should have no problems splicing files together, even if their bitrate changes!

    However! You should probably stick to the same bitdepth (16-bit for example) and sample rate (44.1kHz for example). You have confused these two parameters with the output bitrate in your question.

    See this: http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html

    And this: http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm

    Edit: A big caveat to this is the bit reservoir. While you can create a stream and split on frames, some data may be corrupt if the bit reservoir is in use. I previously based this answer on my experience with a few streams. A couple years later, I now know that you cannot reliably splice on frames for all streams.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have lots of videos in my server and i use the following code
Have a n-tire web application and search often times out after 30 secs. How
so I have VideoEncoder.h with such code /* FFmpeg simple Encoder */ #ifndef __VIDEO_ENCODER_H__
I have a new web app that is packaged as a WAR as part
I have quicktime movies uploaded to my server that I need to combine together
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have you guys had any experiences (positive or negative) by placing your source code/solution
Have you managed to get Aptana Studio debugging to work? I tried following this,
What do people think are the most important issues when developing an application that
I installed ffmpeg on my windows machine with no error message using gem install

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.