From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3561 216.34.176.0/20 X-Spam-Status: No, score=-2.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, FAKE_REPLY_C,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B60EA20281 for ; Sat, 23 Sep 2017 12:33:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1dvjcx-00067R-0j; Sat, 23 Sep 2017 12:33:47 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1dvjcv-00067L-Va for sox-users@lists.sourceforge.net; Sat, 23 Sep 2017 12:33:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=Ih+Caj7dYCmhqcHHjZRnuyA0lFsEptc9LEA0wK55VQ4=; b=MDmzLGZxmZOpjCFF7uPacGpQ3LSfzZc8NNT6HzQTCiQaI6etGGUCfmPciiCh4SkOyCAGt2u78WFsOjQRG3BYWkb+ADd04KDJe0ijRxNsvS0JyPfOtcCbOkuJ3FMCAykwH78Er9kHJAHtdXbO3gOECbUaSWq67u+26u75CVJJ6+4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=Ih+Caj7dYCmhqcHHjZRnuyA0lFsEptc9LEA0wK55VQ4=; b=SLNmQkabIBsiRifgXPXxttFUTeYjOnsQFlYIOFV1wVXQyzO5vp9Cd684bBTXrNtvXTJ5o7GD1zGJ7L2phjI0d2Z7qSYwBUEcg4cZJo+rbV3YXy2oh6q0H9/TMkffLVpuNdPh5KIo1uDuE4EaQBOChelQ0+AhHeEfmJcn+ITu0yc=; X-ACL-Warn: Received: from ns.stare.cz ([79.98.77.229] helo=mx.stare.cz) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1dvjct-00014g-Un for sox-users@lists.sourceforge.net; Sat, 23 Sep 2017 12:33:45 +0000 Received: from www.stare.cz (localhost [127.0.0.1]) by www.stare.cz (OpenSMTPD) with ESMTP id 812d6825 for ; Sat, 23 Sep 2017 14:33:36 +0200 (CEST) Date: Sat, 23 Sep 2017 14:33:36 +0200 From: Jan Stary To: sox-users@lists.sourceforge.net Message-ID: <20170923123336.GA23221@www.stare.cz> Mail-Followup-To: sox-users@lists.sourceforge.net MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170922173416.GA32079@starla> User-Agent: Mutt/1.7.1 (2016-10-04) X-Headers-End: 1dvjct-00014g-Un Subject: Re: concat problem X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-users-bounces@lists.sourceforge.net On Sep 22 16:36:39, ghe2001@gmail.com wrote: > Debian Jessie, Supermicro box, SoX 14.4.1, SoX noob. The current version is 14.4.2 > I ask SoX to concatenate AIFFs, and Mac Air stops at the end of first file. > I've written a Python script (first use of SoX) If you are new to SoX, learn it by running SoX, not by writing Python scripts. > to concat a lot of translated MP3s into a big AIFF file. > The translation goes fine, and > SoX creates a huge AIFF, but there seems to be an EOF in there at the > end of the first file. Actually a little before the end of the first > file. The Air has been playing files (VLC) for several years with no > problems. What happens if you play the file with SoX's own play(1)? What does 'play --ignore-length output.aiff' do? What does soxi(1) say about the file? > I give SoX a long list of AIFF source files and a destination file > name at the end. Concatenating AIFF files as follows works as expected for me. Exactly what problem do you experience when you run this? (That't an hour of concatenated aiff audio.) $ for i in 1 2 3 4 ; do sox -n file$i.aiff synth 900 sin $(($i * 200)) ; done $ sox file*aiff out.aiff $ play out.aiff > The MP3s have been successfully translated to AIFFs > earlier with a format conversion pass through SoX. How exactly did you make the conversion? How do you know it's successfull? $ sox file.mp3 file.aiff $ soxi file.mp3 file.aiff $ play file.mp3 file.aiff Also, you can contatenate the original mp3's just as easily, so why are you converting them to aiff first? > > 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. We don't know what 'big' computer is that and what a 'sneaker net' is and how it relates to your aiff problem. It would also be easier to do audio work on a comupter wich has sound. Duh. > I do know how long that first file is, > about 7 seconds. I see what I can do to time it. $ soxi file.aiff > > 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 Why are you converting the mp3s to aiff, then concating the aiffs to aiff, and then reconvert to mp3? Why don't you just concat the mp3 files as they are if that's what you eventually want to have? > > 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. In that case, the aiff outout you are creating is probably too big. What exactly was the command line and what exactly was the error message? Hint: script(1). > 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 316M of flac is a lot. What exactly are you doing here and why? Are you _concatenating_ hornet parts to create a rendition of a song? How long is that song that it takes 316M of flac? $ soxi 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 Show us the actual sox command you have a mp3/aiff problem with, not a Python version of something else. > -- that's what the 'subprocess' method wants to see. What "subprocess"? > There are no commas in the real thing. I think -- I'm a mild Python > noob too, but nothing like I am with SoX. Run the actual SoX command on a command line, don't complicate matters by bringing Python into it. > > Can you reproduce the problem with smaller initial AIFF source > > files? > > Like I said, I've tried that. And? > > 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) What does "B (file processing done)" mean? > > FLAC works. Meaning what? You can create a flac output that long, as opposed to an aiff output that long? If that's the case, I would suspect some length limit of the aiff format - the more so if SoX complained about the aiff output being too long. > On the first 2 files, anyway. Both uncompressed and as an MP3. Meaning what? Show us the command line and the complete output, using sox -V2 > I guess the SoX developers were just kidding > about the program working with AIFF. Coming to a mailing list for the first time with an elementary problem and insulting the devs that they are "just kidding" about their software (which keeps "whining" about length limits) - that's just plain rude. ------------------------------------------------------------------------------ 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