Results 1 to 2 of 2

Thread: Changing the Audio Sample Rate on an MPG file (for Merging MPG files)

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    3

    Default Changing the Audio Sample Rate on an MPG file (for Merging MPG files)

    Hi. I have five MPG files that I wish to merge into one file.
    Let's call these five files the following: file_1, file_2, file_3, file_4, and file_5.



    file_2, file_3, file_4, and file_5 each have the following characteristics:

    frame width = 720, frame height = 480, frame rate = 29 frames/second, audio sample rate = 48kHz



    file_1 has the same frame width, height, and rate as the other four files, but file_1's audio sample rate = 44kHz.



    Within each file, the video and the audio are in sync.

    I tried using the "Append" feature in Avidemux to merge these five MPG files into one MPG file. The operation was as follows: file_1 "Append" file_2 "Append" file_3 "Append" file_4 "Append" file_5, with MPEG-PS (A+V) in the Format select list on the left-hand side of the Avidemux screen. However, Avidemux gave me the following error
    message: "For DVD, audio must be 48 kHZ MP2 (stereo), AC3, DTS, or LCPM (stereo)."

    So, I guess I have to somehow change file_1's audio sample rate to 48 kHz while maintaining the same frame width, height, and rate. Also, after the audio sample rate is changed to 48 kHz, the video must still be in sync with the audio. So, does anyone know of any freeware or shareware software that can do this for me?

    I should mention that I used Media Cope software to merge the five MPG files into one MPG file, but the resulting MPG file contained no sound. I then used Media Cope software to merge the five MPG files into an AVI file, but there were parts of the AVI file where the video and the audio were not in sync.

    So, any help on this issue would be appreciated.

  2. #2
    Legend racer-x's Avatar
    Join Date
    Feb 2008
    Location
    3rd rock from the Sun
    Posts
    1,165

    Default

    1) Demux file1.mpg into elemental streams.

    2) Resample file1 audio stream to 48 kz.

    3) Multiplex file 1 video + audio stream back into new file 1.mpg.

    4) Append as needed.
    There is no such thing as "Idiot-Proof".........a good Idiot will get around that every time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •