sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: "Måns Rullgård" <mans@mansr.com>
To: Jeremy Nicoll - ml sox users <jn.ml.sxu.88@wingsandbeaks.org.uk>
Cc: sox-users@lists.sourceforge.net
Subject: Re: Using sox as an alternative to mp3wrap to losslessly concat a dir full of mp3s?
Date: Wed, 19 Jul 2017 13:27:31 +0100	[thread overview]
Message-ID: <yw1x4lu8sjbg.fsf@mansr.com> (raw)
In-Reply-To: <16ee393f55a55bcb52d284c726d191e3@wingsandbeaks.org.uk> (Jeremy Nicoll's message of "Wed, 19 Jul 2017 12:48:10 +0100")

Jeremy Nicoll - ml sox users <jn.ml.sxu.88@wingsandbeaks.org.uk> writes:

> On 2017-07-18 21:52, Jonathan H wrote:
>> I wanted to combine all mp3 files into one in each directory using
>> Ubuntu command line.
>>
>> I started using a thing called MP3Wrap
>> (https://sourceforge.net/projects/mp3wrap/)
>>
>> It was as simple as
>>
>> mp3wrap -v "wrapped.mp3" ./*.mp3
>>
>> except it turns out to horribly break id3 tags, doesn't recognise vbr
>> properly etc.
>>
>> Is there are way of losslessly concatenating mp3 files with sox, or is
>> it a job for another tool?
>>
>> I know about "--combine concatenate", but that seems to re-compress
>> the files.
>>
>> (The ability to unwrap the combined mp3 into individual files isn't a
>> requirement, but it would be a nice thing if possible!)
>
> This last bit worries me.  I don't see how that would be possible
> unless some sort of marker was placed between the n'th and (n+1)'th
> file.  But then, it'd cause some sort of horrible sound when you
> played the file... if indeed you ever intend to play such a file...

It could be done by wrapping all the files in an MP4 container with a
suitable edit list.

> If you just want the binary content merged into one long file, surely
> a normal file copy/append would do?  Or you could zip the set of files
> into one file.

MP3 streams can be simply concatenated, but first you must remove any
ID3 tags and VBR indexes (Xing header).  I suppose that's what mp3wrap
does.

-- 
Måns Rullgård

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply	other threads:[~2017-07-19 12:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18 20:52 Using sox as an alternative to mp3wrap to losslessly concat a dir full of mp3s? Jonathan H
2017-07-19 11:48 ` Jeremy Nicoll - ml sox users
2017-07-19 12:27   ` Måns Rullgård [this message]
2017-07-19 21:54 ` fmiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw1x4lu8sjbg.fsf@mansr.com \
    --to=sox-users@lists.sourceforge.net \
    --cc=jn.ml.sxu.88@wingsandbeaks.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).