Ogg Vorbis acceleration project, Is it dead? |
![]() ![]() |
Ogg Vorbis acceleration project, Is it dead? |
Dec 11 2009, 13:05
Post
#26
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
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! -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Dec 11 2009, 18:01
Post
#27
|
|
![]() Group: Developer Posts: 2980 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. This post has been edited by lvqcl: Feb 20 2012, 17:20 |
|
|
|
Dec 12 2009, 12:00
Post
#28
|
|
![]() Group: Members Posts: 74 Joined: 10-December 09 From: italy Member No.: 75798 |
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. Cool, it encodes correctly (on WinXP64 SP2 - E2200 @ 2,35 GHz - 1 Gb). Now testing speeds... |
|
|
|
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 |
|
|
|
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:
Hope that inspires... |
|
|
|
Dec 14 2009, 18:03
Post
#31
|
|
![]() Group: Developer Posts: 2980 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 |
|
|
|
Dec 14 2009, 18:18
Post
#32
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
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 Amended, recompiled and uploaded on same link. Hopefully all is now well!! -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
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:
Ask me for any other doubt/question. This post has been edited by forart.eu: Dec 15 2009, 09:00 |
|
|
|
Dec 19 2009, 09:55
Post
#34
|
|
|
Group: Members Posts: 153 Joined: 6-April 02 Member No.: 1707 |
I'll leave you to do the maths, but the speed gain is somewhat alarming!! Alarming in the most pleasing manner possible QUOTE If this appears stable, and I'd like feedback regarding this, then I'll make it generally available on Rarewares. 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 |
|
|
|
Jan 4 2010, 08:02
Post
#35
|
|
|
Group: Members Posts: 75 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
|
|
|
|
Feb 3 2010, 02:35
Post
#36
|
|
![]() Group: Members Posts: 21 Joined: 29-July 07 Member No.: 45724 |
I completely forgot about this topic....
Fantastic job lvqcl and john33! |
|
|
|
Jun 12 2010, 08:10
Post
#37
|
|
|
Group: Members Posts: 75 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)
|
|
|
|
Jun 12 2010, 12:40
Post
#38
|
|
![]() Group: Developer Posts: 2980 Joined: 2-December 07 Member No.: 49183 |
As you can see from the picture in post #29, Lancer doesn't benefit from 64-bitness.
|
|
|
|
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 |
|
|
|
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 |
|
|
|
Jun 15 2010, 15:30
Post
#41
|
|
![]() Group: Developer Posts: 2980 Joined: 2-December 07 Member No.: 49183 |
|
|
|
|
Jun 16 2010, 11:22
Post
#42
|
|
![]() Group: Members Posts: 74 Joined: 10-December 09 From: italy Member No.: 75798 |
I think you mean the attachment in the post #27. And this is -- Lancer x64 build. 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 |
|
|
|
Jun 16 2010, 15:06
Post
#43
|
|
![]() Group: Developer Posts: 2980 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). |
|
|
|
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 ???
|
|
|
|
Jul 4 2010, 08:34
Post
#45
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
@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. -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Jul 4 2010, 09:00
Post
#46
|
|
![]() Group: Developer Posts: 2980 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. |
|
|
|
Jul 4 2010, 15:02
Post
#47
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
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! 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. 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/ |
|
|
|
Jul 4 2010, 15:28
Post
#48
|
|
![]() Group: Developer Posts: 2980 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 |
|
|
|
Jul 4 2010, 15:48
Post
#49
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
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. -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Jul 8 2010, 13:27
Post
#50
|
|
![]() Group: Members Posts: 74 Joined: 10-December 09 From: italy Member No.: 75798 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 04:05 |