IPB

Welcome Guest ( Log In | Register )

8 Pages V  < 1 2 3 4 > »   
Reply to this topicStart new topic
Ogg Vorbis acceleration project, Is it dead?
john33
post Dec 11 2009, 13:05
Post #26


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3765
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



QUOTE (forart.eu @ Dec 10 2009, 10:48) *
QUOTE (john33 @ Sep 15 2009, 17:02) *
Here is an x64 compile of oggenc2.85 with FLAC support. Currently this is based on the standard 1.2.3 libs, but if some kind people would like to test this and confirm whether it's OK, or not, I'll go ahead and build an aoTuV version.

http://www.rarewares.org/files/ogg/oggenc2.85-1.2.3-x64.zip

Any chance to have an x64 compile of this Lancer mod too ?

I'm afraid not as it would require heavy modification of the Lancer code which is something I have neither the time, nor the skills to do! crying.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
lvqcl
post Dec 11 2009, 18:01
Post #27





Group: Developer
Posts: 3469
Joined: 2-December 07
Member No.: 49183



I don't have x64 OS yet... so I cannot even test my x64 compile, but here it is (MSVS9 compile, SSE3): [obsolete; removed]

Maybe it even works. wink.gif It lacks FLAC and SRC support, though.


This post has been edited by lvqcl: Feb 20 2012, 17:20
Go to the top of the page
+Quote Post
forart.eu
post Dec 12 2009, 12:00
Post #28





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



QUOTE (lvqcl @ Dec 11 2009, 18:01) *
I don't have x64 OS yet... so I cannot even test my x64 compile, but here it is (MSVS9 compile, SSE3): [attachment=5536:oggenc2_x64_test.7z]

Maybe it even works. wink.gif It lacks FLAC and SRC support, though.

Cool, it encodes correctly (on WinXP64 SP2 - E2200 @ 2,35 GHz - 1 Gb).

Now testing speeds...
Go to the top of the page
+Quote Post
forart.eu
post Dec 12 2009, 13:29
Post #29





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



Very fast graphic reply of tests (i'll explain better tomorrow):



This post has been edited by forart.eu: Dec 12 2009, 13:29
Go to the top of the page
+Quote Post
forart.eu
post Dec 13 2009, 21:25
Post #30





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



OK, here's the encoders explaination:

  • All vencs are - of course - the latest build from aoTuV test page by Aoyumi;
  • All oggenc2SSE* are from the top of this 3ad by lvqcl;
  • oggenc2LM is the patched john33's encoder in this 3ad too;
  • oggenc64 is the cited john33's unofficial build;
  • oggenc264 is the last build posted here by lvqcl;


Hope that inspires...
Go to the top of the page
+Quote Post
lvqcl
post Dec 14 2009, 18:03
Post #31





Group: Developer
Posts: 3469
Joined: 2-December 07
Member No.: 49183



john33, I tested your Lancer compile with the following input:
8...48kHz/16 bit/mono or stereo, -q2, -q1, ... -q10;
44.1kHz/16bit/stereo, -q2, -q1.9, -q1.8, ...-q9.9, -q10.

Everything is fine biggrin.gif but its ENCODE_VENDOR_STRING ends with "\n" again unsure.gif
Go to the top of the page
+Quote Post
john33
post Dec 14 2009, 18:18
Post #32


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3765
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



QUOTE (lvqcl @ Dec 14 2009, 17:03) *
john33, I tested your Lancer compile with the following input:
8...48kHz/16 bit/mono or stereo, -q2, -q1, ... -q10;
44.1kHz/16bit/stereo, -q2, -q1.9, -q1.8, ...-q9.9, -q10.

Everything is fine biggrin.gif but its ENCODE_VENDOR_STRING ends with "\n" again unsure.gif

Amended, recompiled and uploaded on same link. Hopefully all is now well!! laugh.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
forart.eu
post Dec 15 2009, 08:55
Post #33





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



More details about my above encoding tests:
  • Original file: CDImage.wav, 44100 Hz/16 bit, 606MB (636 223 100 bytes) - 1:00:06.707 (159055764 samples), 1411 kbps
  • Encoding options: -q0 (~64Kbps)
  • Coded files:
    28,3 MB (29.710.652 byte) - oggenc264
    28,3 MB (29.710.723 byte) - oggenc2LM, oggenc264, oggenc2SSE*
    29,1 MB (30.571.832 byte) - all vencs


Ask me for any other doubt/question.

This post has been edited by forart.eu: Dec 15 2009, 09:00
Go to the top of the page
+Quote Post
Compact Dick
post Dec 19 2009, 09:55
Post #34





Group: Members
Posts: 164
Joined: 6-April 02
Member No.: 1707



QUOTE (john33 @ Dec 1 2009, 13:43) *
I'll leave you to do the maths, but the speed gain is somewhat alarming!! blink.gif

Alarming in the most pleasing manner possible wink.gif

QUOTE
If this appears stable, and I'd like feedback regarding this, then I'll make it generally available on Rarewares. smile.gif

I've been using your builds for a few weeks now, everything's performing as expected. Thanks, john33 [and lvqcl] for doing the hard work. I'm loving it wink.gif
Go to the top of the page
+Quote Post
AshenTech
post Jan 4 2010, 08:02
Post #35





Group: Members
Posts: 79
Joined: 11-November 08
Member No.: 62144



cant wait to see somebody do an assimbly enhanced version for x64 cpu's, my athlon II 435@phenom II b35 3.5gz loves 64bit smile.gif
Go to the top of the page
+Quote Post
Dukers
post Feb 3 2010, 02:35
Post #36





Group: Members
Posts: 22
Joined: 29-July 07
Member No.: 45724



I completely forgot about this topic....

Fantastic job lvqcl and john33! smile.gif
Go to the top of the page
+Quote Post
AshenTech
post Jun 12 2010, 08:10
Post #37





Group: Members
Posts: 79
Joined: 11-November 08
Member No.: 62144



lvqcl if you still need an x64 os get ahold of me, I may be able to help you out there, I would really like to see a nice well tested/tweaked x64 version of vorbis(not that i dont like the x64 one that we already have, but the more the better)
Go to the top of the page
+Quote Post
lvqcl
post Jun 12 2010, 12:40
Post #38





Group: Developer
Posts: 3469
Joined: 2-December 07
Member No.: 49183



As you can see from the picture in post #29, Lancer doesn't benefit from 64-bitness.
Go to the top of the page
+Quote Post
forart.eu
post Jun 15 2010, 09:03
Post #39





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



No Lancer x64 in the above tests !!!

BTW, according to my tests, x64 build can achieve a similar performances compared to Lancer.
So it would be really interesting to encode with an x64 + Lancer optimizations Vorbis build...

It would also be very interesting to compare compilers' performances, IMHO.

This post has been edited by forart.eu: Jun 15 2010, 09:06
Go to the top of the page
+Quote Post
ilikedirtthe2nd
post Jun 15 2010, 15:04
Post #40





Group: Members
Posts: 470
Joined: 26-October 01
From: Germany
Member No.: 352



nice improvements, but i had a slightly hard time figuring this thead out... could you put the stuff that works up on rarewares.org? maybe with a litte explanation of the different versions.

thanks
Go to the top of the page
+Quote Post
lvqcl
post Jun 15 2010, 15:30
Post #41





Group: Developer
Posts: 3469
Joined: 2-December 07
Member No.: 49183



QUOTE (forart.eu @ Jun 15 2010, 12:03) *
No Lancer x64 in the above tests !!!

blink.gif Buuuuut... you said
QUOTE (forart.eu @ Dec 14 2009, 00:25) *
oggenc264 is the last build posted here by lvqcl;

I think you mean the attachment in the post #27. And this is -- Lancer x64 build. cool.gif
Go to the top of the page
+Quote Post
forart.eu
post Jun 16 2010, 11:22
Post #42





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



QUOTE (lvqcl @ Jun 15 2010, 16:30) *
I think you mean the attachment in the post #27. And this is -- Lancer x64 build. cool.gif

I haven't noticed that it was Lancer build !!!
BTW, if so, it's not a good build 'cause it MUST achieve at least the same performances of x86 build (Lancer has ASM optimizations...).

A question: it's builded from the same oggenc2LM patched sources ?

This post has been edited by forart.eu: Jun 16 2010, 11:22
Go to the top of the page
+Quote Post
lvqcl
post Jun 16 2010, 15:06
Post #43





Group: Developer
Posts: 3469
Joined: 2-December 07
Member No.: 49183



john33's oggenc2LM was compiled with Intel (optimizing) compiler, and mine - with MSVS compiler. That's the only difference.

Also, x64 MSVS compile (aka oggenc264) is slightly faster than x86 MSVS compile (oggenc2SSE2/oggenc2SSE3).
Go to the top of the page
+Quote Post
forart.eu
post Jul 3 2010, 22:45
Post #44





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



@john33: Lame x64 officially available @ RareWares, what about Vorbis ???
Go to the top of the page
+Quote Post
john33
post Jul 4 2010, 08:34
Post #45


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3765
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



QUOTE (forart.eu @ Jul 3 2010, 22:45) *
@john33: Lame x64 officially available @ RareWares, what about Vorbis ???

Essentially because the compiles that I've produced work fine on XP x64, but instantly crash on Windows 7 x64 and I haven't yet managed to figure out why!! If anyone has any ideas, please fire away. wink.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
lvqcl
post Jul 4 2010, 09:00
Post #46





Group: Developer
Posts: 3469
Joined: 2-December 07
Member No.: 49183



Once I encountered a problem (with debug compile) with the following code in encode.c:

CODE
        /* Next 3 lines added to add padding bytes into comment header for tagging space.
         */
        header_comments.packet = realloc(header_comments.packet, header_comments.bytes + opt->padding);
        memset(header_comments.packet + header_comments.bytes, 0, opt->padding);
        header_comments.bytes += opt->padding;


And oggenc2 stopped crashing in debug mode after removing this code.
Go to the top of the page
+Quote Post
john33
post Jul 4 2010, 15:02
Post #47


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3765
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



QUOTE (lvqcl @ Jul 4 2010, 09:00) *
Once I encountered a problem (with debug compile) with the following code in encode.c:

CODE
        /* Next 3 lines added to add padding bytes into comment header for tagging space.
         */
        header_comments.packet = realloc(header_comments.packet, header_comments.bytes + opt->padding);
        memset(header_comments.packet + header_comments.bytes, 0, opt->padding);
        header_comments.bytes += opt->padding;


And oggenc2 stopped crashing in debug mode after removing this code.

You're absolutely right! smile.gif Although, why this should be OK in XP x64 and not Windows 7 x64 beats me. wink.gif

Anyway, the following download is a standard 1.3.1 lib compile for x64 and does work on XP x64 and Win 7 x64:

http://www.rarewares.org/files/oggenc2.87-1.3.1-x64.zip

Regarding the above, I have obviously removed the 'Comment Padding' option. Unless there are any tagging programs out there that will add/amend vorbis comments via update-in-place, and I don't believe there are, then this was always of little value anyway. wink.gif

Edit: If there are no reports of any issues with this, then I'll add it to the normal Rarewares ogg page.

This post has been edited by john33: Jul 4 2010, 15:03


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
lvqcl
post Jul 4 2010, 15:28
Post #48





Group: Developer
Posts: 3469
Joined: 2-December 07
Member No.: 49183



IIRC... the address that stored in header_comments.packet is also stored in some other variable. So if realloc doesn't change this address then oggenc works but if it returns different address -- oggenc crashes.

This post has been edited by lvqcl: Jul 4 2010, 16:13
Go to the top of the page
+Quote Post
john33
post Jul 4 2010, 15:48
Post #49


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3765
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



QUOTE (lvqcl @ Jul 4 2010, 15:28) *
IIRC... the address that stored in header_comments.packet is also stored in some other variable. So if realloc doesn't change the address oggenc works but if it returns different address -- oggenc crashes.

Makes sense. Thanks very much for the assist. smile.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
forart.eu
post Jul 8 2010, 13:27
Post #50





Group: Members
Posts: 74
Joined: 10-December 09
From: italy
Member No.: 75798



QUOTE (john33 @ Jul 4 2010, 16:02) *
If there are no reports of any issues with this, then I'll add it to the normal Rarewares ogg page.


Just tested under both x64 Windows (7 and XP), it works.

Another question: what about merging lancer optimizations ?
Go to the top of the page
+Quote Post

8 Pages V  < 1 2 3 4 > » 
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: 29th December 2014 - 12:12