Re: How to reduce the size after combine a few wav files
Tielin Xu <TIELXU01 <at> noa.nintendo.com>
2009-06-04 15:35:04 GMT
My problem is resolved.
Thanks Philip's soxi information.
I read the sox document, add -g option into command line as:
sox t1.wav t2.wav -g t3.wav
The size of new generated file is 451K, it is exactly the sum
of two original files.
I really appreciate the help.
James
-----Original Message-----
From: Tielin Xu
Sent: Thursday, June 04, 2009 8:09 AM
To: sox-users <at> lists.sourceforge.net
Subject: Re: [SoX-users] How to reduce the size after combine a few wav files
The generate file information:
Input File : 't3.wav'
Channels : 1
Sample Rate : 8000
Precision : 16-bit
Duration : 00:04:43.72 = 2269760 samples ~ 21279 CDDA sectors
Sample Encoding : 16-bit Signed Integer PCM
-----Original Message-----
From: Tielin Xu
Sent: Thursday, June 04, 2009 8:03 AM
To: sox-users <at> lists.sourceforge.net
Subject: Re: [SoX-users] How to reduce the size after combine a few wav files
Philip:
I just want to do the simple concatenation, 2-4 files to one.
The big file generated sounds OK, a little off from two originals,
acceptable sound, but too lager the size.
I tried your new command soxi as following:
soxi t1.wav t2.wav t3.wav
The command displays following:
Input File : 't1.wav'
Channels : 1
Sample Rate : 8000
Precision : 16-bit
Duration : 00:02:35.52 = 1244160 samples ~ 11664 CDDA sectors
Sample Encoding : GSM
Input File : 't2.wav'
Channels : 1
Sample Rate : 8000
Precision : 16-bit
Duration : 00:02:08.20 = 1025600 samples ~ 9615 CDDA sectors
Sample Encoding : GSM
soxi formats: can't open input file 't3.wav': No such file or directory
Thanks,
James
-----Original Message-----
From: Fmiser [mailto:fmiser <at> gmail.com]
Sent: Wednesday, June 03, 2009 4:42 PM
To: sox-users <at> lists.sourceforge.net
Subject: Re: [SoX-users] How to reduce the size after combine a few wav files
> Tielin Xu wrote:
> I am new on SOX.
> I tried to use sox under Windows today, but with some this
> problem need help. I tested two wav files, one size at: 247K,
> another one is 204K. Sox generated third file without problem,
> but the size is 4434K, those two files come from the same
> source, so the same format, etc.
Wow! That's a pretty neat trick! *smile*
What command did you use?
Are you wanting to mix the two originals to create the third?
Or are you wanting to concatenate them (connect them end to end)?
You could run "soxi first.wav second.wav third.wav" and let us
know the length, channel count, bit depth, and sample rate
of each of them.
If you are wanting first.wav and second.wav to be connected end
to end in the file third.wav the size is pretty close to just
adding the two sizes together.
Oh, also, what does the third one sound like? Is it functionally
and sonically correct, just too large?
-- Philip
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get