IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
TTA Lossless Audio Compressor v3.4 released
ald
post Jul 24 2007, 15:06
Post #1


TTA lossless compressor developer


Group: Developer
Posts: 119
Joined: 16-December 03
Member No.: 10478



New version of the TTA free lossless audio compressor has been released. New in this release are speed optimization; code changes necessary to support 64bit architectures, e.t.c.. Windows executables compiled with MinGW gcc-3.4.2.

TTA compressor for Windows: ttaenc-3.4.zip
TTA compressor for Linux: ttaenc-3.4.tgz

For more info please visit the project homepage
Go to the top of the page
+Quote Post
xmixahlx
post Jul 24 2007, 19:42
Post #2





Group: Members
Posts: 1394
Joined: 20-December 01
From: seattle
Member No.: 693



QUOTE (ald @ Jul 24 2007, 07:06) *
New version of the TTA free lossless audio compressor has been released...

thanks for the update -

does this version incorporate the shntool patch?

found here:
http://etree.org/shnutils/shntool/
http://etree.org/shnutils/shntool/support/...3-shntool.patch

...essentially providing piped input/output and moving stdout to stderr.


later


--------------------
RareWares/Debian :: http://www.rarewares.org/debian.html
Go to the top of the page
+Quote Post
ald
post Jul 25 2007, 02:00
Post #3


TTA lossless compressor developer


Group: Developer
Posts: 119
Joined: 16-December 03
Member No.: 10478



QUOTE (xmixahlx @ Jul 24 2007, 10:42) *
does this version incorporate the shntool patch?


Thanks for your comment. This patch not yet incorporated, because I did not know about it. I will test this patch. I think it can be incorporated in the code at soon.

Aleksander
Go to the top of the page
+Quote Post
shnutils
post Jul 25 2007, 05:38
Post #4





Group: Members
Posts: 50
Joined: 5-May 04
From: VA
Member No.: 13908



FYI, I have a newer patch up for ttaenc 3.4. It requires even fewer changes (just stdout -> stderr, and writing WAVE data to stdout when the output filename is "-").

This post has been edited by shnutils: Jul 25 2007, 05:43
Go to the top of the page
+Quote Post
askoff
post Jul 25 2007, 06:26
Post #5





Group: Members
Posts: 445
Joined: 23-December 02
Member No.: 4214



QUOTE (shnutils @ Jul 25 2007, 06:38) *
FYI, I have a newer patch up for ttaenc 3.4. It requires even fewer changes (just stdout -> stderr, and writing WAVE data to stdout when the output filename is "-").

I'm curious about this stdout -> stderr thing. I'm learning programming and was wondering why sderr should be used? I've seen it used in Lame also, but what is gained by using it?

Sorry for the off topic post.

This post has been edited by askoff: Jul 25 2007, 06:28
Go to the top of the page
+Quote Post
Antonski
post Jul 25 2007, 08:55
Post #6





Group: Members
Posts: 204
Joined: 8-October 01
Member No.: 250



QUOTE (askoff @ Jul 25 2007, 08:26) *
I'm curious about this stdout -> stderr thing. I'm learning programming and was wondering why sderr should be used?


Read some unix basics, you will figure it out.

This post has been edited by Antonski: Jul 25 2007, 13:59
Go to the top of the page
+Quote Post
xmixahlx
post Jul 25 2007, 09:26
Post #7





Group: Members
Posts: 1394
Joined: 20-December 01
From: seattle
Member No.: 693



QUOTE (shnutils @ Jul 24 2007, 21:38) *
FYI, I have a newer patch up for ttaenc 3.4. It requires even fewer changes (just stdout -> stderr, and writing WAVE data to stdout when the output filename is "-").

wow that was fast smile.gif - thanks, jason

and thanks, ald, imho you should incorporate jason's patch for sure. (3.4.1?)


later


--------------------
RareWares/Debian :: http://www.rarewares.org/debian.html
Go to the top of the page
+Quote Post
Bruno Monteiro
post Jul 25 2007, 11:24
Post #8





Group: Members
Posts: 18
Joined: 12-December 06
Member No.: 38618



I tried this encoder with only an album (~47 min) and it turned out pretty well, with the encoded file getting 51,5% of the original. The speed was pretty good, about 70 sec, what accounts for 40x encoding.
Wish it had more options, though... rolleyes.gif

TTA: 70 sec (40x), 51,5%.
Wavpack normal: 57 sec (49x), 52,1%.
Wavpack high: 98 sec (29x) , 51,5%.
Wavpack highest x6 (1x), 51%.

I haven't tried decoding, but at least encoding seems twice Wavpack's speed, for the same final size.
Since I mainly use Wavpack, I can see none of these encoders can fully use a dual-core processor, which is too bad... sad.gif
Go to the top of the page
+Quote Post
sn0wman
post Jul 25 2007, 17:20
Post #9





Group: Members
Posts: 82
Joined: 3-February 05
Member No.: 19557



QUOTE (askoff @ Jul 25 2007, 07:26) *
QUOTE (shnutils @ Jul 25 2007, 06:38) *

FYI, I have a newer patch up for ttaenc 3.4. It requires even fewer changes (just stdout -> stderr, and writing WAVE data to stdout when the output filename is "-").

I'm curious about this stdout -> stderr thing. I'm learning programming and was wondering why sderr should be used? I've seen it used in Lame also, but what is gained by using it?

Sorry for the off topic post.


i'm not sure what author meant for stdout->stderr, however, stderr output is used for sending informations about the process: errors, warnings. so for example when decoding some damaged file you will get the output file from stdout, and messages from stderr about missing samples, incorrect CRC's, broken frames, etc. u should always check stderr pipe.
Go to the top of the page
+Quote Post
ald
post Jul 26 2007, 08:29
Post #10


TTA lossless compressor developer


Group: Developer
Posts: 119
Joined: 16-December 03
Member No.: 10478



TTA compressor v.3.4.1 released (I hope..)

Shntool patch is not included.. but some things from this path have been incorporated.
Thanks to author of this patch! I think it should work )

ChangeLog:

* added support for standard input/output interface
* minor changes in command line options and error messages

TTA compressor v.3.4.1 for Windows: ttaenc-3.4.1.zip
TTA compressor v.3.4.1 for Linux: ttaenc-3.4.1.tgz
TTA compressor v.3.4.1 (Source code): ttaenc-3.4.1-src.tgz

Some of usage examples:

ttaenc *.wav
ttaenc file.tta /audio
ttaenc file.tta -do file.wav
ttaenc -e - < file.wav > file.tta
ttaenc - < file.tta -do file.wav
ttaenc file.tta -do - > file.wav
ttaenc -e *.wav; ttaenc -d *.tta /audio

Aleksander
Go to the top of the page
+Quote Post
shnutils
post Jul 26 2007, 19:48
Post #11





Group: Members
Posts: 50
Joined: 5-May 04
From: VA
Member No.: 13908



Thank you for incorporating the changes! I have a request:

QUOTE (ald @ Jul 26 2007, 03:29) *
Some of usage examples:

...

ttaenc -e - < file.wav > file.tta


In order to support TTA output in shntool, I need a way to specify a) the output filename, and b) stdin input.

For decoding to stdout, the following works:

CODE
ttaenc -d -o - file.tta


But I can't make this work for encoding from stdin. I've tried:

CODE
ttaenc -e -o file.tta -
ttaenc -e -o file.tta
ttaenc -o file.tta -
ttaenc -o file.tta


I don't know if it's possible, but if you could add this functionality (preferably the first form above), I would be happy to announce support for TTA output in shntool!

Thanks,
Jason
Go to the top of the page
+Quote Post
ald
post Jul 27 2007, 03:22
Post #12


TTA lossless compressor developer


Group: Developer
Posts: 119
Joined: 16-December 03
Member No.: 10478



QUOTE (shnutils @ Jul 26 2007, 10:48) *
I can't make this work for encoding from stdin. I've tried:

CODE
ttaenc -e -o file.tta -
ttaenc -e -o file.tta
ttaenc -o file.tta -
ttaenc -o file.tta


Thank you for testing! You can make this work by changing the arguments order in following manner:
CODE
ttaenc -e - -o file.tta
or
CODE
ttaenc - -eo file.tta


I have fixed this small bug without changing the version number. With a new build 20070727 you can place these arguments in any order (I hope )).

TTA compressor v3.4.1 for Windows: ttaenc-3.4.1.zip
TTA compressor v3.4.1 for Linux: ttaenc-3.4.1.tgz

Best wishes!

Aleksander
Go to the top of the page
+Quote Post
shnutils
post Jul 27 2007, 07:33
Post #13





Group: Members
Posts: 50
Joined: 5-May 04
From: VA
Member No.: 13908



Aleksander,

Thanks for the quick reply! I can get your command lines to work, but only with redirected input (as opposed to piped input). The problem is that you can't fseek() backwards on a piped input stream, which your compress() routine relies upon.

For example, the following command works:

CODE
ttaenc -e -o file.tta - < file.wav


while this command fails:

CODE
cat file.wav | ttaenc -e -o file.tta -


The second form is what needs to work before ttaenc can be used by shntool (or other programs) to create TTA files. Anyway, this is not a big deal... you can file this request under the "it would be nice if..." heading. :-)

Thanks,
Jason
Go to the top of the page
+Quote Post
yoshikaku
post Jul 27 2007, 08:01
Post #14





Group: Members
Posts: 12
Joined: 27-July 07
Member No.: 45666



When an apology appoints an option and carried it out, a prompt is not displayed.

D:\ttaenc>ttaenc - d:\aaa.tta -do d:\arg.wav
TTA1 lossless audio encoder/decoder, release 3.4.1
Copyright © 2007 Aleksander Djuric. All rights reserved.
For more information see http://tta.sourceforge.net
------------------------------------------------------------
File: [-]
Decode: ..

WAV of 0byte is made, but ttaenc just hopes because processing is stopping so that I display an error and do it, and it is recurred by a prompt.
Go to the top of the page
+Quote Post
Synthetic Soul
post Jul 28 2007, 10:54
Post #15





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



My tests show a 20% increase in encoding speed, and a 30% increase in decoding speed (3.3 vs 3.4.1).


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
xmixahlx
post Jul 28 2007, 21:38
Post #16





Group: Members
Posts: 1394
Joined: 20-December 01
From: seattle
Member No.: 693



QUOTE (shnutils @ Jul 26 2007, 23:33) *
...you can file this request under the "it would be nice if..." heading. :-)

imho, piped input/output is a *nix "requirement".


later


--------------------
RareWares/Debian :: http://www.rarewares.org/debian.html
Go to the top of the page
+Quote Post
shnutils
post Jul 29 2007, 07:34
Post #17





Group: Members
Posts: 50
Joined: 5-May 04
From: VA
Member No.: 13908



QUOTE (xmixahlx @ Jul 28 2007, 16:38) *
imho, piped input/output is a *nix "requirement".


I agree... so I went ahead and patched ttaenc to support piped input of WAVE data. tongue.gif This allows full read/write support under shntool (I will need to make a new release for this). The patch is here: http://www.etree.org/shnutils/shntool/supp...c-shntool.patch

Aleksandar: This patch was tested for proper encoding/decoding of both regular files, as well as files with an ID3v2 tag. Feel free to apply it if you like!

Thanks,
Jason
Go to the top of the page
+Quote Post
ald
post Jul 29 2007, 15:34
Post #18


TTA lossless compressor developer


Group: Developer
Posts: 119
Joined: 16-December 03
Member No.: 10478



QUOTE (yoshikaku @ Jul 26 2007, 23:01) *
D:\ttaenc>ttaenc - d:\aaa.tta -do d:\arg.wav

WAV of 0byte is made...


I think it's not required to fix, because it's not a correct test. I can to show the usage information in this case.. Is it will be correct?

QUOTE (Synthetic Soul @ Jul 28 2007, 01:54) *
My tests show a 20% increase in encoding speed, and a 30% increase in decoding speed (3.3 vs 3.4.1).


Thank you for your tests. It's interesting.. It will be nice to find a chance to compile it on MSVC and Intel compilers... I think it will be interesting to compare with GCC results.
Go to the top of the page
+Quote Post
ald
post Jul 29 2007, 15:48
Post #19


TTA lossless compressor developer


Group: Developer
Posts: 119
Joined: 16-December 03
Member No.: 10478



QUOTE (shnutils @ Jul 28 2007, 22:34) *
This allows full read/write support under shntool (I will need to make a new release for this). The patch is here: http://www.etree.org/shnutils/shntool/supp...c-shntool.patch

Aleksandar: This patch was tested for proper encoding/decoding of both regular files, as well as files with an ID3v2 tag. Feel free to apply it if you like!

Thanks,
Jason


Thank you for made this patch, Jason. Once, I has used such technique.. I will think about that. Fseek() backwards is not required really, but it's required to rewrite some parts of the compressor code. Anyway, I think that the patch can be incorporated partially.
Go to the top of the page
+Quote Post
yoshikaku
post Jul 29 2007, 20:22
Post #20





Group: Members
Posts: 12
Joined: 27-July 07
Member No.: 45666



QUOTE (ald @ Jul 29 2007, 23:34) *
QUOTE (yoshikaku @ Jul 26 2007, 23:01) *

D:\ttaenc>ttaenc - d:\aaa.tta -do d:\arg.wav

WAV of 0byte is made...


I think it's not required to fix, because it's not a correct test. I can to show the usage information in this case.. Is it will be correct?

I'm sorry not to be able to explain successfully.

When such command is input, and it's carried out, ttaenc hangs and doesn't react any more.


Every time it doesn't react any more, it's troublesome to make them abort it in CTRL + C, so when the designation is wrong, an error message is indicated, and, in a prompt, they seem able to return, won't it be?
Go to the top of the page
+Quote Post
ald
post Jul 30 2007, 02:52
Post #21


TTA lossless compressor developer


Group: Developer
Posts: 119
Joined: 16-December 03
Member No.: 10478



QUOTE (yoshikaku @ Jul 29 2007, 11:22) *
D:\ttaenc>ttaenc - d:\aaa.tta -do d:\arg.wav

WAV of 0byte is made...

Every time it doesn't react any more, it's troublesome to make them abort it in CTRL + C, so when the designation is wrong, an error message is indicated, and, in a prompt, they seem able to return, won't it be?


I'm sorry, I think that I don't understand what you want to do again..

You have specified decoding mode; 2 input files: standard input and d:\aaa.tta and one output file d:\arg.wav for both of the input files. Compressor will wait data on standard input in this case.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd December 2014 - 13:49