|
|||||||
![]() |
|
|
LinkBack (417) | Thread Tools |
|
|
#1
|
|
S-3D enthusiast
|
redocneXk released - Realtime 5.1 ac3 Encoder
This is a realtime AC3 encoder that allows you to use spdif passthru with sound from any source.
It encodes to AC3 what you send it by using ASIO. ASIO is used to transfer audio from the sound card to the cpu. The cpu encodes the sound to AC3 and send it out of the computer by using the sound card digital passthru. You can easily do this to every sound played in windows with this program. It works with Creative cards on the kX drivers and the Creative drivers. The latest version is 1.10. Link : here for 1.10 Hosting provided by me Link : here for 1.08 and previous Hosting nicely provided by radiocolonel.it As of 1.05, there are three modes handled by the -m switch that take care of selecting the correct inputs and mixing in software, if necessary, for the card and the audio drivers used. There is an auto-detection and it should work in most cases, so you will only need to use the -m switch if the detection is incorrect. Link : InfoASIOv1.02.zip This is a tool I wrote to see information about ASIO and access the ASIO control panel. Instructions for setting the DSP if using the kX drivers : In the DSP, connect the first 6 pins of Surrounder+ to the pins asio0 to asio5 on epilog and activate passthru in the mixer (check 'Digital Output Only' and select "SPDIF 0" for 'Toggle AC-3 Passthru mode'). Then double-click redocneXk.exe. It's that simple. You can change some options by using switches. Look in the readme for explanations. Below are some pics to help set the Mixer, the DSP, the Surrounder+ and the ASIO Control Panel. This is provided to help the users that never touched ASIO or the DSP. Other settings can be used. Mixer DSP Surrounder+ ASIO Control Panel ************************************************** ****** NOTE on the encoder : The encoding is done by the avcodec library. This library is licensed under the LGPL. A copy of the license is included in the zip file and the location where you can find the source code of ffmpeg is written in the readme. The dll is dynamically loaded at runtime. That means that you can recompile the dll and use it instead of the dll I provided. I haven't changed the code of the library. I used msys and mingw32 to compile the dll. The library avcodec is part of ffmpeg. ************************************************** ****** I also made another version of the tool with a GUI. It contains a mixer and a few more options. Go to the thread here : redocneXk (GUI version) released - Realtime 5.1 ac3 Encoder ************************************************** ****** WARNING: this program usually causes a BSOD with games using OpenAL. The reason is unknown. It's recommended to avoid using it with games using OpenAL. ************************************************** ****** Use this thread for feedback, help and reporting bugs of redocneXk. Last edited by Tril; Nov 23, 2008 at 05:25 PM. Reason: Added a warning |
|
|
|
|
|
#2 |
|
DriverHeaven Newbie
Join Date: Dec 2002
Location: Istanbul
Posts: 8
Rep Power: 0 ![]() |
Voila,
first I must say this was the project I'v been looking for years, it was really lame not being able to experience your sound cards features in music and games, as I don't have more than a 2-stereo and a digital input on my home theater. second, it does the job perfectly, especially when your listening to music, Iv been trying to make a 2-stereo sound to surround using Pro-Logic effects on home theater, but now I see its no match to a real surround done in kX DSP. it doesn't really have a latency issue, and you won't even notice a thing while playing non-fps games, the ac3 encoded sound is there and it matches the game perfectly, but in fps games, especially the multiplayer ones, you cant even withstand a 50ms delay as you have to react as soon as possible, but yet the latency is satisfying to conclude, this project takes you out of a cable chaos while you still enjoy a 5.1 true surround experience on your system, great work
|
|
|
|
|
|
#3 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 36 ![]() ![]() |
I would have named it 'trill-code' or 'Trill X kode' (something more selfish).. lol
Or Ay See 3 4 ME Or AC3PO (PO = Prologic output) Ok not selfish, but sorta funny... or, TRILLS AC3 ENCODER for KX I know - where was I when you were looking for names... lol Under any name - its SWEEET Kudos Trill. |
|
|
|
|
|
#4 |
|
DriverHeaven Maniac
|
Is it really as simple as the 1st post says. Where does the avcodec.dll go? And do we have to place a check mark in any of the SPDIF Options on the kX Mixer?
Can someone explain how to really get this to work?
__________________
![]() May a song always touch you in a positive way. Sonar 8 Producer Edition, Vista Ultimate 64Bit, MOTU UltraLite MK3, 250 GB HDD 7200 rpm, 80 GB HDD 7200 rpm, Lite-On DVDRW LH 18A1P My Music Production: Top 40, Contemporary Christian, Pop/Rock, Decent Rap, Inspirationals, and Children Songs |
|
|
|
|
|
#5 |
|
S-3D enthusiast
|
You can leave the dll in the same folder as the exe. I can't comment on the settings of the mixer because my card does not support passthru and I never tested passthru myself.
I'll add an explanation of how to set-up the mixer in the first post once someone replies with the procedure in this thread. My guess is that you have to choose SPDIF 0, SPDIF 1 or SPDIF 2 instead of Off on the bottom where it's written AC3. I don't know if you have to check "Toggle Digital Output Only Mode" or "Toggle SPDIF Bypass Mode". |
|
|
|
|
|
#6 |
|
DriverHeaven Maniac
|
Thanks for the reply, I'll wait to someone explains it here.
__________________
![]() May a song always touch you in a positive way. Sonar 8 Producer Edition, Vista Ultimate 64Bit, MOTU UltraLite MK3, 250 GB HDD 7200 rpm, 80 GB HDD 7200 rpm, Lite-On DVDRW LH 18A1P My Music Production: Top 40, Contemporary Christian, Pop/Rock, Decent Rap, Inspirationals, and Children Songs |
|
|
|
|
|
#7 |
|
Apple Fanboy?
|
mmm i was planning to hook my pc up to my home theatre eventually, this little program will really help with that
__________________
Chris - The Aussie Super Mod
Driverheaven Rules - Sig Request Thread How you can help DriverHeaven by using Digg! Driverheaven Super-Moderator |
|
|
|
|
|
#8 | |
|
DriverHeaven Newbie
Join Date: Dec 2002
Location: Istanbul
Posts: 8
Rep Power: 0 ![]() |
Quote:
The rest is done with kX DSP, and is written clearly in readme file.. (aLL outputs from Surrounder+ to ASIO1 through ASIO6, you only need to connect a pin, program does the others automatically)
|
|
|
|
|
|
|
#9 |
|
DriverHeaven Newbie
Join Date: Sep 2004
Location: Germany
Posts: 6
Rep Power: 0 ![]() |
hi
here this program works perfectly! really nice one!! I've tested F.E.A.R, a first person shooter and it was great. bullets from all directions ![]() also latency looks quite alright because voices and shots were synchronously, imo but maybe you can compile the program with sse and sse2 flags, so the latency is getting less? (dont know if this works because im not a programmer )
|
|
|
|
|
|
#10 |
|
DriverHeaven Maniac
|
Say does one need digital speakers for this to work? Can anybody say how the kX Mixer is suppose to be set up for this to work. I think I'm doing something wrong. When I double click on the redocneXk.exe one of the lines in the window that pops up says:
Error Message: No ASIO Driver error But then at the bottom it says: Status ASIO driver started successfully. I never tried using any SPDIF setting before. Sorry for my ignorance, but what am I doing wrong?
__________________
![]() May a song always touch you in a positive way. Sonar 8 Producer Edition, Vista Ultimate 64Bit, MOTU UltraLite MK3, 250 GB HDD 7200 rpm, 80 GB HDD 7200 rpm, Lite-On DVDRW LH 18A1P My Music Production: Top 40, Contemporary Christian, Pop/Rock, Decent Rap, Inspirationals, and Children Songs Last edited by thomasabarnes; Nov 17, 2005 at 03:04 PM. |
|
|
|
|
|
#11 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 36 ![]() ![]() |
Thomas:
Yes - you need either 5.1 digital speakers OR an external decoder, like a home theater receiver. If you use only analog outs, this encoder will be of little use to you. |
|
|
|
|
|
#12 |
|
DriverHeaven Maniac
|
LOL OK I C, thx!
__________________
![]() May a song always touch you in a positive way. Sonar 8 Producer Edition, Vista Ultimate 64Bit, MOTU UltraLite MK3, 250 GB HDD 7200 rpm, 80 GB HDD 7200 rpm, Lite-On DVDRW LH 18A1P My Music Production: Top 40, Contemporary Christian, Pop/Rock, Decent Rap, Inspirationals, and Children Songs |
|
|
|
|
|
#13 | |
|
DriverHeaven Extreme Member
Join Date: Jan 2005
Posts: 4,826
Rep Power: 41 ![]() ![]() ![]() |
Quote:
i.e. ErrorMessage: "[color=Blue]No[/color] ASIO Driver [color=Blue]Error[/color]" as opposed to: ErrorMessage: "No ASIO Driver" |
|
|
|
|
|
|
#14 | |
|
S-3D enthusiast
|
I've changed the zip file. The first 8 lines about indexes are not supposed to appear. They were only for testings purposes. You can redownload the zip if you want.
Quote:
If passthru is not activated, you will hear the sound you send to the asio pins0 to asio5 decoded by kX after the AC3 icon pops up. There's something everyone should know. The plugin works with a buffer of 1536 samples. It needs to full that buffer before encoding. 1536/1=1536 1536/2=768 1536/3=512 1536/4=384 1536/5=307.2 NOT USABLE 1536/6=256 1536/7=219.4 NOT USABLE 1536/8=192 1536/9=170.7 NOT USABLE 1536/10=153.6 NOT USABLE 1536/11=139.6 NOT USABLE 1536/12=128 1536/13=118.2 NOT USABLE 1536/14=109.7 NOT USABLE 1536/15=102.4 NOT USABLE 1536/16=96 1536/24=64 1536/32=48 1536/48=32 From that you see that you get the numbers 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1536. You will get the lowest latency with redocneXk if you use one of those numbers as the number of samples for the ASIO buffer. You will get the same latency if you chose any of those numbers because it takes the same time to fill the buffer of 1536 samples. What this means is don't choose 1024 or any number higher than 1536 for the ASIO latency in the ASIO Control Panel if you want the lowest latency. |
|
|
|
|
|
|
#15 |
|
DriverHeaven Maniac
|
OK Tril, roger. Thanks for clearing that up for me/us.
__________________
![]() May a song always touch you in a positive way. Sonar 8 Producer Edition, Vista Ultimate 64Bit, MOTU UltraLite MK3, 250 GB HDD 7200 rpm, 80 GB HDD 7200 rpm, Lite-On DVDRW LH 18A1P My Music Production: Top 40, Contemporary Christian, Pop/Rock, Decent Rap, Inspirationals, and Children Songs |
|
|
|
|
|
#16 |
|
S-3D enthusiast
|
BTW, redocneXk comes from kXencoder reversed.
Calling it kXencoder would have been too boring.
|
|
|
|
|
|
#17 |
|
DriverHeaven Maniac
|
LOL That's cool man. I just noticed that!
__________________
![]() May a song always touch you in a positive way. Sonar 8 Producer Edition, Vista Ultimate 64Bit, MOTU UltraLite MK3, 250 GB HDD 7200 rpm, 80 GB HDD 7200 rpm, Lite-On DVDRW LH 18A1P My Music Production: Top 40, Contemporary Christian, Pop/Rock, Decent Rap, Inspirationals, and Children Songs |
|
|
|
|
|
#18 |
|
Apple Fanboy?
|
took me a little while to notice as well, i was confused by the name before that lol
__________________
Chris - The Aussie Super Mod
Driverheaven Rules - Sig Request Thread How you can help DriverHeaven by using Digg! Driverheaven Super-Moderator |
|
|
|
|
|
#19 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 36 ![]() ![]() |
I thought it was Klingon or something..lol
|
|
|
|
|
|
#20 |
|
DriverHeaven Newbie
Join Date: Nov 2005
Posts: 6
Rep Power: 0 ![]() |
Hi, I have a few questions about this program. I'm in the process of upgrading from an Athlon XP and nForce2 motherboard with SoundStorm, to a newer dual-core Opteron system with an Audigy 2. So, I have been in search of a way to encode 5.1 game audio to Dolby Digital in real-time in software for the times when I hook my computer up to a receiver (since my old motherboard could do it) - and it looks like I may have just found my answer.
I apologize in advance if these questions are a bit stupid, but I want to make sure that I understand correctly how to use this program. Am I to install the Audigy 2 drivers from Creative's website as I normally would? Or the kX drivers that I'm starting to read about here? Then, how exactly would I go about setting up this program to encode all my audio into AC3/DD and send it out over the card's digital output? I didn't quite understand the references to ASIO and Surrounder+ in the readme file. Any help will be much appreciated.
Last edited by SynthDude2001; Nov 21, 2005 at 06:14 AM. |
|
|
|
|
|
#21 |
|
Kx User
Join Date: Sep 2003
Location: Finland
Posts: 31
Rep Power: 0 ![]() |
Hi.
I was wondering too if this works also with the Creative drivers. I know the routings cannot be configured like with kX, but are the wave outs routed to some asio ins by default with the Creative drivers. Probably not, but if they would be, this would work, right? Anyways I'll try redocneXk out soon (with kX). I have to say in forehand, this is absolutely GREAT. I've been looking for this kind of a thing for years (really). Thank you Tril!
__________________
Oswald |
|
|
|
|
|
#22 |
|
Kx User
Join Date: Sep 2003
Location: Finland
Posts: 31
Rep Power: 0 ![]() |
Sweet! Works like a dream so far. No configuration required (exept of course the asio routing). Good job. The only downside is it's cpu usage. It eats 6-10 percent of my Athlon 64 3000 (according to taskmanager). This was expected though, so not a problem really. Thanks again.
Edit: Tried with a 3D-shooter as well, and it works fine. This really is something special. I don't think this has been possible earlier with any sw based system. Truly a display of the power of kX and it's proficient users.
__________________
Oswald Last edited by ojlehtin; Nov 21, 2005 at 07:20 AM. |
|
|
|
|
|
#23 |
|
Apple Fanboy?
|
the Surrounder plus is a component of kX, which is a required install for this
__________________
Chris - The Aussie Super Mod
Driverheaven Rules - Sig Request Thread How you can help DriverHeaven by using Digg! Driverheaven Super-Moderator |
|
|
|
|
|
#24 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 36 ![]() ![]() |
KX is to be used instead of the CL drivers - btw.
|
|
|
|
|
|
#25 |
|
DriverHeaven Newbie
Join Date: Dec 2002
Location: Istanbul
Posts: 8
Rep Power: 0 ![]() |
I think this topic(program) deserves to be STICKY at least for some weeks,
since nobody made it this far for realtime ac3 encoding, true 5.1 experience with home theater systems..
|
|
|
|
|
|
#26 |
|
DriverHeaven Newbie
Join Date: Nov 2005
Posts: 6
Rep Power: 0 ![]() |
I'm hearing several echoes for every playing sound. I've set up the routing and run the encoder program, it appears to work but as I said, I hear lots of delayed (and somewhat distorted) echoes on my analog speakers. Doesn't seem to go away when I play with the SPDIF options. Can't test the digital yet since I won't have access to a receiver until later tonight.
Any ideas as to what could cause this echoing problem? (I'm sure I'm probably overlooking something really simple...) |
|
|
|
|
|
#27 |
|
Kx User
Join Date: Sep 2003
Location: Finland
Posts: 31
Rep Power: 0 ![]() |
Why are you using this with analog speakers? RedocneXk is meant really for transmitting any kind of signals to digital receivers only.
If I'm not completely wrong, here's what's happening: Your audio is routed normally to your wave out. Plus. Your audio is routed to asio and from there to redocneXk and after that decoded and routed to wave out. I'm just shooting air here, but wouldn't this cause some kind of echos? Don't really know where decoded ac3 goes to...
__________________
Oswald |
|
|
|
|
|
#28 |
|
S-3D enthusiast
|
New version released. Link in first post. I have not noted any significant increase of performance compared to the last version. It should be at least equal to version 1.00. I changed the version of ffmpeg. This version of the AC3 encoder contains one more line of code in the bit allocation function so it's probably better.
I compiled a normal version, an SSE version and an SSE2 version. I don't know if the SSE and SSE2 versions work because I haven't tested them. I don't know if it will improve something. It's not the AC3 encoder code that has SIMD optimizations, it's the rest of the code. Please report back on the SSE, SSE2 versions to tell me if they work and to tell me if they improve the performance (reduce latency, but I doubt it) or if they reduce the CPU usage. There is not much more I can do to improve performance. It's close to the most optimized it can get. Changelog --------- version 1.01 - Modified the ringbuffer algorithm and the buffer size and removed one buffer copy action. - Moved from ffmpeg formal release 20041113 to the cvs release of 20051121. This requires a recompile because the include files changed. - Removed a conditional test in the playback function. - Moved from Microsoft Visual Studio 6.0 to Microsoft Visual Studio .NET 2003. - Compiled for SSE and SSE2. Not tested because my cpu does not support them. |
|
|
|
|
|
#29 |
|
DriverHeaven Newbie
Join Date: Dec 2002
Location: Istanbul
Posts: 8
Rep Power: 0 ![]() |
Tril,
can you make it a windows program running in system tray silently, cause you cant minimize to tray or hide a dos-prompt program.. ![]() ..appreciate your work Last edited by Wejgomi; Nov 26, 2005 at 05:05 AM. |
|
|
|
|
|
#30 | |
|
S-3D enthusiast
|
Quote:
Since you asked, I'm putting it on my list of stuff to do. Please be patient in the meantime. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|