Re: concat problem

Glenn English <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <CAKS_MTuWS29EE1TmWGLAfBTfZfhN8tPkVgtYGcXwmhxR7rrWzw@mail.gmail.com>
On Fri, Sep 22, 2017 at 5:34 PM, Eric Wong <[email protected]> wrote:

> Can you play the file back with the "play(1)" command in sox on
> Jessie?

Don't know. The 'big' computer doesn't do sound (yet), so I move the
files around on sneaker net. I do know how long that first file is,
about 7 seconds. I see what I can do to time it.

> Or try converting from AIFF back to mp3, flac, or whatever else
> and see if the Mac can play that...

I already do that (the big uncompressed file is converted to MP3 as
the last step), and the MP3 does the same thing: stops after 7 seconds

> Any other players you can try?  I don't have much experience
> with VLC and have never used a Mac.

I could try iTunes...

> Any chance you're hitting a file size limit somewhere?  I'm not
> familiar with AIFF, but FLAC supports large files and is lossless, too;
> perhaps try that...

Don't think so. I'm working on "The Girl Who Kicked the Hornet's Nest'
to be sure I process a lot of MP3s. Yesterday, SoX kept saying it
couldn't create a complete AIFF header because the file was too big.
So I cut things down until it quit whining.

It's still small, and SoX just printed out:

-rw-r--r--  1 ghe ghe 316M Sep 22 13:03 big_file.flac

> What's the exact command?

['sox', '--multi-threaded', '--combine', 'concatenate',
'flacs/1-01HornetIntro.flac', 'flacs/1-02Hornet01a.flac',
'flacs/1-03Hornet01b.flac', 'flacs/1-04Hornet01c.flac',
'flacs/1-05Hornet01d.flac', 'flacs/1-06Hornet01e.flac',
'flacs/1-07Hornet02a.flac', 'flacs/1-08Hornet02b.flac',
'flacs/1-09Hornet02c.flac', 'flacs/1-10Hornet02d.flac',
'flacs/1-11Hornet02e.flac', 'flacs/2-01Hornet02f.flac',
'flacs/2-02Hornet03a.flac', 'flacs/2-03Hornet03b.flac',
'flacs/2-04Hornet03c.flac', 'flacs/2-05Hornet03d.flac',
'flacs/2-06Hornet03e.flac', 'flacs/2-07Hornet04a.flac',
'flacs/2-08Hornet04b.flac', 'flacs/2-09Hornet04c.flac',
'flacs/2-10Hornet04d.flac', 'flacs/2-11Hornet04e.flac',
'flacs/2-12Hornet04f.flac', 'big_file.flac']

That's a Python list printed by Python from after I changed to FLAC a
few minutes ago -- that's what the 'subprocess' method wants to see.
There are no commas in the real thing. I think -- I'm a mild Python
noob too, but nothing like I am with SoX.

> Can you reproduce the problem with smaller initial AIFF source
> files?

Like I said, I've tried that.

> Instead of using the entire long list of AIFF source files, can
> you try only concatenating two of them and see if that's
> successful.  (And then move onto 3 files, and 4 files, and so
> on...)

I haven't tried that -- doing it by hand. B (file processing done)

...

FLAC works. On the first 2 files, anyway. Both uncompressed and as an
MP3. I guess the SoX developers were just kidding about the program
working with AIFF.

Thanks very much, Eric. You saved me many hours of frustration.

--
Glenn English

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.