Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques MPEG-2 Program Stream Muxing

  • MPEG-2 Program Stream Muxing

    Posted by Jefferson Goven on April 21, 2011 at 3:50 pm

    I had a problem when i am trying to mux 2 sounds:

    I do:

    ffmpeg -i anime.aif -ar 22050 -ab 64k anime.mp2
    ffmpeg -i bertrand.mp3 -ar 22050 -ab 64k bertrand.mp2

    ffmpeg -fflags genpts -i anime.mp2 -ar 22050 -ab 64k -aq 500 -i bertrand.mp2 -ar 22050 -ab 64k -aq 500 -f vob final.mpg -newaudio

    The two files anime.mp2 and bertrand.mp2 mux together in final.mpg but the sound quality is bad.

    What can i do, please help me ???

    Michael Rampe replied 15 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Michael Rampe

    April 27, 2011 at 4:41 am

    [jefferson Goven] “The two files anime.mp2 and bertrand.mp2 mux together in final.mpg but the sound quality is bad.”

    This is really just putting two streams into one file, not mixing the two files together into one stream. AFAIK, FFmpeg will not mix two audio files into one stream. Have a look at SoX for a good solution to mix two together.

    Michael

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy