#34 mp3 output format

closed-fixed
nobody
None
5
2014-02-02
2012-09-17
No

Hi;

mpg123 is a solid, reliable program that can play almost any mp3 file. I wish other programs could say the same!

Would it be possible to have an output mode that would copy the input to a new mp3 file?

The idea is that the mpg123 program would do all of the heavy parsing, error-checking, etc, and just before converting the mp3 frames to audio, write the frames to a file, such that simple-minded mp3 programs could read it?

Right now I have at least one mp3 file that plays fine with mpg123, but when I try to use a program like mpgcat (from mpgtx-1.3.1) to cut off the last few seconds of audio, it dies with an error about the mp3 file being corrupted. While I could use mpg123 to convert to WAV and then re-encode the file with something else, that's going to hurt the quality.

Thanks!

Discussion

  • Thomas Orgis

    Thomas Orgis - 2012-09-17

    I wrote such a program for testing purposes a while back (ships with mpg123 1.14 sources):

    doc/examples/extract_frames

    (after having mpg123 with library/headers installed, build it in doc/examples using 'make')

    This program simply reads data from standard input, parses and writes recognized MPEG frames to standard output. It strips off anything that does not qualify as a valid frame. There could still be errors in the decoder via invalid data in those frames, but the structure is cleaned up.

    I wondered if folks would fancy such a tool ... we might polish it a bit and include it in the normal build.

     
  • Thomas Orgis

    Thomas Orgis - 2014-02-02
    • status: open --> closed-fixed
    • Group: --> Next_Release_(example)
     
  • Thomas Orgis

    Thomas Orgis - 2014-02-02

    There's mpg123-strip in the distribution now. That should do the trick.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks