View Full Version : Aften 0.0.8 is out
wisodev
2nd November 2007, 16:37
New version (1.0, using Aften SVN R606) of WAV to AC3 Encoder (https://sourceforge.net/project/showfiles.php?group_id=158644&package_id=219726&release_id=551344) is available for download and also updated Aften binaries (https://sourceforge.net/project/showfiles.php?group_id=183195&package_id=212610&release_id=551340) (SVN R606) are available for download.
wisodev
madshi
2nd November 2007, 20:21
Good news!! :)
I wasn't able to produce any problems (hangs, crashes or strange command line outputs) with wisodev's latest R606 build, anymore! Cleaned up my source, much nicer looking now!
Thanks to DarkAvenger (and wisodev).
:thanks:
raquete
3rd November 2007, 14:41
great news wisodev,thank you and the whole team!
:thanks:
Chumbo
4th November 2007, 01:56
New version (1.0, using Aften SVN R606) of WAV to AC3 Encoder (https://sourceforge.net/project/showfiles.php?group_id=158644&package_id=219726&release_id=551344) is available for download and also updated Aften binaries (https://sourceforge.net/project/showfiles.php?group_id=183195&package_id=212610&release_id=551340) (SVN R606) are available for download.
wisodev
Very much appreciated wisodev and DarkAvenger. :thanks:
honai
7th November 2007, 22:26
Newbie question:
I have six WAV files (FL, FR, C, SL, SR, LFE) which I intend to feed into aften or WAV to AC3 Encoder. Am I correct to assume that these two programs don't support 6 mono WAVs input?
What would the sox commandline be to remux the mono file into a single 6-channel WAV with the correct channel order so that it can be encoded by WAV to AC3 Encoder? Or if sox can't do it, what would you suggest to use for muxing the mono files?
tebasuna51
8th November 2007, 02:14
What would the sox commandline be to remux the mono file into a single 6-channel WAV with the correct channel order so that it can be encoded by WAV to AC3 Encoder? Or if sox can't do it, what would you suggest to use for muxing the mono files?
You can encode to ac3 directly with:
sox -M 1_FL.wav 2_FR.wav 3_C.wav 4_LFE.wav 5_SL.wav 6_SR.wav -t wav - | Aften - out6.ac3
You can use also WaveWizard (with the same order), to obtain 6-channel WAV greater than 4 GB (remember -readtoeof 1 parameter with Aften for >4 GB)
honai
8th November 2007, 14:58
Thanks!
Chainmax
8th November 2007, 22:32
Is channel coupling planned to be added in the future?
jruggle
9th November 2007, 04:05
Is channel coupling planned to be added in the future?
Yes. I got it working once. Now I have to get it working again after all the threading changes. And I have to find the time. But yes, eventually.
zambelli
9th November 2007, 10:21
New version (1.0, using Aften SVN R606) of WAV to AC3 Encoder (https://sourceforge.net/project/showfiles.php?group_id=158644&package_id=219726&release_id=551344) is available for download and also updated Aften binaries (https://sourceforge.net/project/showfiles.php?group_id=183195&package_id=212610&release_id=551340) (SVN R606) are available for download.
I just ran into this program today after googling "WAV AC3". :) Nice work!
jruggle
10th November 2007, 02:39
Here is a patch for multiple mono input support in Aften. Testing and comments are welcome. It still needs a good bit of testing and cleanup before making it into SVN.
http://sourceforge.net/mailarchive/message.php?msg_name=473505AF.40105%40gmail.com
Kurtnoise
10th November 2007, 09:55
Thanks Justin...:)
For those who want to test it, here is a build (http://kurtnoise.free.fr/index.php?dir=Aften/&file=aften_multi-mono_build1.zip).
feedbacks welcome.
wisodev
10th November 2007, 10:49
Here is a patch for multiple mono input support in Aften. Testing and comments are welcome. It still needs a good bit of testing and cleanup before making it into SVN.
http://sourceforge.net/mailarchive/message.php?msg_name=473505AF.40105%40gmail.com
Hi,
Test machine: AMD Athlon 64 X2 Dual Core Processor 3600+ 2.4Ghz, 3GB RAM, Microsoft Windows XP SP2
Used input files:
File:
Name: C.wav
File Size: 514866
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 44100 Hz
Avg bytes/sec: 88200
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 514822
Samples: 257411
Playing Time: 5.84 sec
File:
Name: FL.wav
File Size: 514866
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 44100 Hz
Avg bytes/sec: 88200
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 514822
Samples: 257411
Playing Time: 5.84 sec
File:
Name: FR.wav
File Size: 514866
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 44100 Hz
Avg bytes/sec: 88200
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 514822
Samples: 257411
Playing Time: 5.84 sec
File:
Name: LFE.wav
File Size: 514866
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 44100 Hz
Avg bytes/sec: 88200
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 514822
Samples: 257411
Playing Time: 5.84 sec
File:
Name: S.wav
File Size: 514866
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 44100 Hz
Avg bytes/sec: 88200
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 514822
Samples: 257411
Playing Time: 5.84 sec
File:
Name: SL.wav
File Size: 514866
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 44100 Hz
Avg bytes/sec: 88200
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 514822
Samples: 257411
Playing Time: 5.84 sec
File:
Name: SR.wav
File Size: 514866
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 44100 Hz
Avg bytes/sec: 88200
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 514822
Samples: 257411
Playing Time: 5.84 sec
Used batch script (test-mono.cmd):
@echo on
rem TEST 3/2
aften FL.wav FR.wav C.wav LFE.wav SL.wav SR.wav -o t_32+LFE.ac3
aften -acmod 7 FL.wav FR.wav C.wav LFE.wav SL.wav SR.wav -o t_acmod7_32+LFE.ac3
aften -acmod 7 -lfe 0 FL.wav FR.wav C.wav SL.wav SR.wav -o t_acmod7_32.ac3
rem TEST 2/2
aften FL.wav FR.wav SL.wav SR.wav -o t_22.ac3
aften -acmod 6 FL.wav FR.wav SL.wav SR.wav -o t_acmod6_22.ac3
rem TEST 3/1
aften -acmod 5 -lfe 1 FL.wav FR.wav C.wav LFE.wav S.wav -o t_acmod5_31+LFE.ac3
aften -acmod 5 -lfe 0 FL.wav FR.wav C.wav S.wav -o t_acmod5_31.ac3
rem TEST 2/1
aften -acmod 4 -lfe 1 FL.wav FR.wav C.wav LFE.wav -o t_acmod4_21+LFE.ac3
aften -acmod 4 -lfe 0 FL.wav FR.wav C.wav -o t_acmod4_21.ac3
rem TEST 3/0
aften FL.wav FR.wav C.wav -o t_30.ac3
aften -acmod 3 FL.wav FR.wav C.wav -o t_acmod3_30.ac3
rem TEST 2/0
aften FL.wav FR.wav -o t_20.ac3
aften -acmod 2 FL.wav FR.wav -o t_acmod2_20.ac3
rem TEST 1/0
aften C.wav -o t_10.ac3
aften -acmod 1 C.wav -o t_acmod1_10.ac3
rem TEST 1+1
aften -acmod 0 FL.wav FR.wav -o t_acmod0_1+1.ac3
Test results:
$ test-mono.cmd
$ rem TEST 3/2
$ aften FL.wav FR.wav C.wav LFE.wav SL.wav SR.wav -o t_32+LFE.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (6 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 3/2 + LFE
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 477.8 | bw: 38.8 | bitrate: 448.0 kbps
$ aften -acmod 7 FL.wav FR.wav C.wav LFE.wav SL.wav SR.wav -o t_acmod7_32+LFE.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (6 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 3/2 + LFE
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 477.8 | bw: 38.8 | bitrate: 448.0 kbps
$ aften -acmod 7 -lfe 0 FL.wav FR.wav C.wav SL.wav SR.wav -o t_acmod7_32.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (5 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 3/2
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 480.2 | bw: 38.8 | bitrate: 448.0 kbps
$ rem TEST 2/2
$ aften FL.wav FR.wav SL.wav SR.wav -o t_22.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (4 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 2/2
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 478.8 | bw: 43.7 | bitrate: 384.0 kbps
$ aften -acmod 6 FL.wav FR.wav SL.wav SR.wav -o t_acmod6_22.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (4 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 2/2
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 478.8 | bw: 43.7 | bitrate: 384.0 kbps
$ rem TEST 3/1
$ aften -acmod 5 -lfe 1 FL.wav FR.wav C.wav LFE.wav S.wav -o t_acmod5_31+LFE.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (5 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 3/1 + LFE
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 484.3 | bw: 43.7 | bitrate: 384.0 kbps
$ aften -acmod 5 -lfe 0 FL.wav FR.wav C.wav S.wav -o t_acmod5_31.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (4 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 3/1
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 479.1 | bw: 43.7 | bitrate: 384.0 kbps
$ rem TEST 2/1
$ aften -acmod 4 -lfe 1 FL.wav FR.wav C.wav LFE.wav -o t_acmod4_21+LFE.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (4 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 2/1 + LFE
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 457.9 | bw: 35.8 | bitrate: 256.0 kbps
$ aften -acmod 4 -lfe 0 FL.wav FR.wav C.wav -o t_acmod4_21.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (3 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 2/1
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 461.0 | bw: 35.8 | bitrate: 256.0 kbps
$ rem TEST 3/0
$ aften FL.wav FR.wav C.wav -o t_30.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (3 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 3/0
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 461.0 | bw: 35.8 | bitrate: 256.0 kbps
$ aften -acmod 3 FL.wav FR.wav C.wav -o t_acmod3_30.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (3 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz 3/0
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 461.0 | bw: 35.8 | bitrate: 256.0 kbps
$ rem TEST 2/0
$ aften FL.wav FR.wav -o t_20.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (2 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz stereo (2/0)
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 447.7 | bw: 43.7 | bitrate: 192.0 kbps
$ aften -acmod 2 FL.wav FR.wav -o t_acmod2_20.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (2 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz stereo (2/0)
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 447.7 | bw: 43.7 | bitrate: 192.0 kbps
$ rem TEST 1/0
$ aften C.wav -o t_10.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format: WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz mono (1/0)
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 495.1 | bw: 43.7 | bitrate: 96.0 kbps
$ aften -acmod 1 C.wav -o t_acmod1_10.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format: WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz mono (1/0)
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 495.1 | bw: 43.7 | bitrate: 96.0 kbps
$ rem TEST 1+1
$ aften -acmod 0 FL.wav FR.wav -o t_acmod0_1+1.ac3
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
input format (2 files):
WAVE Signed 16-bit little-endian 44100 Hz mono
WAVE Signed 16-bit little-endian 44100 Hz mono
output format: 44100 Hz dual mono (1+1)
SIMD usage: MMX SSE SSE2 SSE3
Threads: 2
progress: 100% | q: 466.2 | bw: 43.7 | bitrate: 192.0 kbps
$
Download used binaries (http://downloads.sourceforge.net/win32builds/aften-svn-r606-multi-mono-icl10-win32-bin.7z?use_mirror=osdn)/sources (http://downloads.sourceforge.net/win32builds/aften-svn-r606-multi-mono-icl10-src.7z?use_mirror=osdn) with multi-mono support.
Download my test results. (http://downloads.sourceforge.net/win32builds/aften-svn-r606-multi-mono-icl10-test.7z?use_mirror=osdn)
It looks like Aften with multi-mono input works without any problems on my machine.
Thanks,
wisodev
honai
10th November 2007, 15:12
Great, thanks!
jruggle
10th November 2007, 18:39
I added a new convenience parameter to the Aften commandline. You now have the option to use text to describe the channel configuration instead of -acmod and -lfe. The new parameter is -chconfig. Here is the help text for this option:
[-chconfig X] Specify channel configuration (overrides wav header)
1+1 = (Ch1,Ch2)
1/0 = (C)
2/0 = (L,R)
3/0 = (L,R,C)
2/1 = (L,R,S)
3/1 = (L,R,C,S)
2/2 = (L,R,SL,SR)
3/2 = (L,R,C,SL,SR)
adding "+LFE" indicates use of the LFE channel
example:
aften -chconfig 3/2+LFE fivepointone.wav fivepointone.ac3
jruggle
11th November 2007, 02:18
Here is an updated multi-mono input patch against SVN-r614.
http://sourceforge.net/mailarchive/message.php?msg_name=47365788.6010901%40gmail.com
Yong
11th November 2007, 09:47
hmm aften crash for me :(
i try to encode some mp3 with aften -q 240 -s 1 -w -2 %s %d(in foobar2k)
it crashed in the middle of encoding, tried wisodev and my own compile also same.
removing variable adaptive bandwidnth option avoided the crash, am i doing something stupid? :D
DarkAvenger
11th November 2007, 12:52
Thx for the report. This is fixed now in svn, ie. won't crash, but it is nevertheless a not supported config. Specifying -q implies vbr, and vbr and var. adap. bandw. is not supported.
totya
13th November 2007, 16:54
Hi all!
SVN REVISION r618 http://kurtnoise.free.fr/index.php?dir=Aften/ not working with AftenGUI on my system.
If I click encode button, immediately i get this message: "encoding finished succesfully!"
Input file is 48Khz waw file.
SVN REVISION 606 is OK (aften-svn-r606-icl10-win32-bin\aften_x86_SSE3)
Latest WAV to AC3 Encoder too not working - EncWAVtoAC3-1.0-Win32U-bin.zip
ex. I copy to dir libaftendll_x86_SSE3\libaften.dll, but application is say : "failed to load libaften".
wisodev
13th November 2007, 17:23
Hi all!
SVN REVISION r618 http://kurtnoise.free.fr/index.php?dir=Aften/ not working with AftenGUI on my system.
If I click encode button, immediately i get this message: "encoding finished succesfully!"
Input file is 48Khz waw file.
SVN REVISION 606 is OK (aften-svn-r606-icl10-win32-bin\aften_x86_SSE3)
Latest WAV to AC3 Encoder too not working - EncWAVtoAC3-1.0-Win32U-bin.zip
ex. I copy to dir libaftendll_x86_SSE3\libaften.dll, but application is say : "failed to load libaften".
WAV to AC3 Encoder version 1.0 uses by default aften-svn-r606-icl10-win32[win64]-bin binaries so it's strange that R606 binaries are working for you with Encoder.
The EncWAVtoAC3.win32 config file contains paths to used libaften.dll dll's. You need to edit this file if you use different libaften.dll or use it from different path.
tebasuna51
13th November 2007, 17:55
SVN REVISION r618 http://kurtnoise.free.fr/index.php?dir=Aften/ not working with AftenGUI on my system.
If I click encode button, immediately i get this message: "encoding finished succesfully!"
Aften r618 have a different command line syntax (to include monowav's encode):
usage: aften [options] <input.wav> [<input.wav> ...] -o <output.ac3>
Then the GUI's need be modified, be patient.
Edit: also r618 can't work with BeHappy, BeLight and syntax with Foobar need to be modified.
totya
13th November 2007, 17:58
Aften r618 have a different command line syntax (to include monowav's encode):
usage: aften [options] <input.wav> [<input.wav> ...] -o <output.ac3>
Then the GUI's need be modified, be patient.
Edit: also r618 can't work with BeHappy and syntax with Foobar need to be modified.
Thank you your answer!
totya
13th November 2007, 18:07
WAV to AC3 Encoder version 1.0 uses by default aften-svn-r606-icl10-win32[win64]-bin binaries so it's strange that R606 binaries are working for you with Encoder.
The EncWAVtoAC3.win32 config file contains paths to used libaften.dll dll's. You need to edit this file if you use different libaften.dll or use it from different path.
Sorry, this is my error, I unpack "EncWAVtoAC3-1.0-Win32U-bin.zip" without directories, and I copy dll to program dir... Sorry!
Remark: I last use 0.7version, and this version uses libaften.dll in the root program dir without directories.
DarkAvenger
13th November 2007, 18:15
Aften r618 have a different command line syntax (to include monowav's encode):
usage: aften [options] <input.wav> [<input.wav> ...] -o <output.ac3>
Note: It is not aften r618 we are talking about, but an experimental patched version... And the code going to be commited will probably we different and leading to a different und downward compatible syntex. So no need to "fix" the GUIs, just be a little bit patient.
tebasuna51
13th November 2007, 20:03
Note: It is not aften r618 we are talking about, but an experimental patched version... And the code going to be commited will probably we different and leading to a different und downward compatible syntex. So no need to "fix" the GUIs, just be a little bit patient.
Thanks DarkAvenger, I'm reading the Aften-devel mailing list and know this.
Maybe BeHappy, BeLight and Foobar don't need changes but AftenGUI and EncWavtoAc3, sure must be updated to support monowav's input long time requested by the users.
wisodev
13th November 2007, 21:19
Thanks DarkAvenger, I'm reading the Aften-devel mailing list and know this.
Maybe BeHappy, BeLight and Foobar don't need changes but AftenGUI and EncWavtoAc3, sure must be updated to support monowav's input long time requested by the users.
Quick update on WAV to AC3 Encoder development: the multiple mono input file support will be added as fast as the code from Justin patches gets too SVN. I have already working version of WAV to AC3 Encoder with mono input support.
Some sreenshots of the upcoming version:
http://i228.photobucket.com/albums/ee163/wisodev/1.jpg
http://i228.photobucket.com/albums/ee163/wisodev/2.jpg
http://i228.photobucket.com/albums/ee163/wisodev/3.jpg
http://i228.photobucket.com/albums/ee163/wisodev/4.jpg
http://i228.photobucket.com/albums/ee163/wisodev/5.jpg
http://i228.photobucket.com/albums/ee163/wisodev/6.jpg
http://i228.photobucket.com/albums/ee163/wisodev/7.jpg
http://i228.photobucket.com/albums/ee163/wisodev/8.jpg
Edit: Aften SVN R618 with multi mono input patch is now available for download (https://sourceforge.net/project/showfiles.php?group_id=183195&package_id=232924&release_id=553973).
jruggle
14th November 2007, 02:14
I just fixed a critical bug caused by my typo. Please update anything based on revisions 609-619 to revision 620.
In short, the right surround channel was cut out completely.
Kurtnoise
16th November 2007, 15:20
revisions > 630 break encodings, right ?
A simple command like this:
aften input.wav -o output.ac3
returns "error opening input file: É♫>"
My input is a stereo wav - 44100Hz
jruggle
17th November 2007, 00:34
revisions > 630 break encodings, right ?
A simple command like this:
aften input.wav -o output.ac3
returns "error opening input file: É♫>"
My input is a stereo wav - 44100Hz
I'm not sure why you're having issues. Encoding works for me.
I do think you may have uncovered a bug though. "-o" is not an option in Aften unless you use one of the patches I posted for multi-mono input. I'm pretty sure current SVN is incompatible with those patches. So using "-o" should give an error. Well it seems to be doing other weird stuff for me instead of giving an error, so that's something I'll look into.
Edit: fixed in r640 to reject invalid options
wisodev
21st November 2007, 23:46
I've created simple MUX Wizard for WAV to AC3 Encoder incoming release with multiple mono input support. I would like to get some feedback on this option. Below is link to specially compiled executable witch is striped down version of WAV to AC3 Encoder.
Download:
http://www.sendspace.com/file/8rp7k7
Screenshot:
http://img218.imageshack.us/img218/3459/encwavtoac3muxwizard11bnz0.jpg (http://imageshack.us)
LigH
22nd November 2007, 07:45
Nice. Looks quite close to mine I created before Kurtnoise implemented this idea into BeLight... ;)
xbox360
22nd November 2007, 08:36
Alas after so long, I can do 6 mono wav's to AC3, yahoo ! now when will the GUI be released ? estimated time ?
Wait where is the support for 6.1 ??
LigH
22nd November 2007, 08:57
MUX files could be generated with the MUX wizard inside BeLight for months already. It even exports with different channel orders (to make a 6-ch WAV as input for Aften, select the "WAV" order preset, not "AC3"!).
It is still some "pointless effort". Implementing MUX file support into Aften would avoid Gigabytes of temporarily used harddisk space (and minutes of transmuxing), and a risk of incomplete support of WAV files larger than 4 GB (calculate for yourself how many hours this requires, and compare to Richard Wagner operas).
wisodev
22nd November 2007, 10:00
Nice. Looks quite close to mine I created before Kurtnoise implemented this idea into BeLight... ;)
Thnaks. Well to be true it's based on it, but I tweaked a little bit my version and this is still early preview ;)
Alas after so long, I can do 6 mono wav's to AC3, yahoo ! now when will the GUI be released ? estimated time ?
Wait where is the support for 6.1 ??
Well I have used patched Aften sources with mono input support and the WAV to AC3 Encoder is prepared to use this functionality. I'm not releasing it because mono input support in Aften is still in development and not committed into SVN.
MUX files could be generated with the MUX wizard inside BeLight for months already. It even exports with different channel orders (to make a 6-ch WAV as input for Aften, select the "WAV" order preset, not "AC3"!).
It is still some "pointless effort". Implementing MUX file support into Aften would avoid Gigabytes of temporarily used harddisk space (and minutes of transmuxing), and a risk of incomplete support of WAV files larger than 4 GB (calculate for yourself how many hours this requires, and compare to Richard Wagner operas).
Well it's not a pointless effort by any means. MUX file support is fully integrated in WAV to AC3 Encoder and no temporary WAV files are created at all!. By the way this is only preview of what will be fully integrated into WAV to AC3 Encoder. You even do not need to create MUX files. Just select proper channel config and setup mono input streams in MUX Wizard, click OK and WAV to AC3 Encoder will set automatically all options in main window. Then click Encode and mono input streams will be directly encoded into multichannel AC3 file (no temp WAV files are generated).
Thanks,
wisodev
tebasuna51
22nd November 2007, 10:43
MUX files could be generated with the MUX wizard inside BeLight for months already. It even exports with different channel orders (to make a 6-ch WAV as input for Aften, select the "WAV" order preset, not "AC3"!).
Warning the .mux format from BeLight needed by BeSweet is plain text with quotes:
"E:\Test\FL.wav"
"E:\Test\FR.wav"
"E:\Test\C.wav"
"E:\Test\LFE.wav"
"E:\Test\SL.wav"
"E:\Test\SR.wav"
The mux file (.mux or .files) generated by EncWAVtoAC3_MUX_Wizard is in Unicode format and not compatible with BeSweet.
Also the 'Import MUX' button from EncWAVtoAC3_MUX_Wizard don't accept the .mux files generated by BeLight (with or without quotes).
@Wisodev
I think we can preserve the .mux extension for plain text BeSweet compatible format, and use .files for Unicode format.
Maybe your GUI can accept and convert the two formats.
wisodev
22nd November 2007, 11:10
Warning the .mux format from BeLight needed by BeSweet is plain text with quotes:
"E:\Test\FL.wav"
"E:\Test\FR.wav"
"E:\Test\C.wav"
"E:\Test\LFE.wav"
"E:\Test\SL.wav"
"E:\Test\SR.wav"
The mux file (.mux or .files) generated by EncWAVtoAC3_MUX_Wizard is in Unicode format and notcompatible with BeSweet.
Also the 'Import MUX' button from EncWAVtoAC3_MUX_Wizard don't accept the .mux files generated by BeLight (with or without quotes).
@Wisodev
I think we can preserve the .mux extension for plain text BeSweet compatible format, and use .files for Unicode format.
Maybe your GUI can accept and convert the two formats.
Thanks, this are good points about .mux files. I will stick to BeSweet format for *.mux files:
1) export: ansi with quotes
2) import: with quotes and without quotes, ansi and unicode
and for *.files files:
1) export: ansi or unicode (it will depend on EncWAVtoAC3 build), without quotes
2) import: with quotes and without quotes, ansi and unicode
Note: EncWAVtoAC3_MUX_Wizard is Unicode build so obviously it supports only Unicode files.
Anyway, what should be the default format for WAV to AC3 Encoder: *.files files or *.mux files?
xbox360
22nd November 2007, 11:53
How about .fmt ? for format.
Also can you, ahem PM me the full gui ahem ahem cough, please thank you.
wisodev
22nd November 2007, 12:19
How about .fmt ? for format.
Also can you, ahem PM me the full gui ahem ahem cough, please thank you.
I think I will release public BETA version of WAV to AC3 Encoder with multi mono input support.
xbox360
22nd November 2007, 12:21
Yahoo ! Im waiting...
tebasuna51
22nd November 2007, 12:35
Anyway, what should be the default format for WAV to AC3 Encoder: *.files files or *.mux files?
I don't know if Aften go to support mux files, if so then the default format must be compatible with Aften adding only support to import ansi-BeSweet format.
If Aften don't support mux files, only sintax based in monowav's, I think we don't need another format.
BTW the conversion betwen ansi and Unicode formats are easy with Notepad.
wisodev
22nd November 2007, 13:03
I don't know if Aften go to support mux files, if so then the default format must be compatible with Aften adding only support to import ansi-BeSweet format.
If Aften don't support mux files, only sintax based in monowav's, I think we don't need another format.
BTW the conversion betwen ansi and Unicode formats are easy with Notepad.
If Aften will support mux files than WAV to AC3 Encoder will support this format as its default.
The *.files format is simply plain list of files (including paths) so there is no need for new format :) I used the *.files files for loading and saving contents of files list.
I have no problem with conversion, it is very easy to convert text files between ansi/unicode and unicode/ansi using windows API.
xbox360
23rd November 2007, 04:18
Aften r618 have a different command line syntax (to include monowav's encode):
usage: aften [options] <input.wav> [<input.wav> ...] -o <output.ac3>
Then the GUI's need be modified, be patient.
Edit: also r618 can't work with BeHappy, BeLight and syntax with Foobar need to be modified.
Can you provide a full working syntax sample for 6 mono wav's to 5.1 ac3 with EX mode enabled please, thank you.
tebasuna51
23rd November 2007, 09:50
Can you provide a full working syntax sample for 6 mono wav's to 5.1 ac3 with EX mode enabled please, thank you.
- Warning 1: aften r618 from Kurtnoise was a test, the definitive syntax for multimono input isn't implemented yet in official svn releases (at least until r641 from wisodev).
- Warning 2: Dolby Surround EX encoded (-xbsi2 1 -dsurexmod 2) have sense if you have previously encoded the Back Center channel inside the Back Left, Back Right wav files.
Then, if you have the Kurtnoise r618, this work for me:
aftenK618 -xbsi2 1 -dsurexmod 2 e:\FL.wav e:\FR.wav e:\C.wav e:\LFE.wav e:\BL.wav e:\BR.wav -o e:\outEX.ac3
DarkAvenger
28th November 2007, 20:31
I added C# binding for Aften and would like to get some feedback. Here is a short working example, which I described in the "API C#.txt". Beware that Mono crashes, I hope 1.2.6 gets a fix, but till now I got now reaction on my report. :(
using System;
using System.IO;
using Aften;
namespace AftenTest
{
public class Test
{
public static int Main( string[] args )
{
Console.WriteLine( "Aften AC3 Encoding Demo" );
if ( args.Length != 2 ) {
Console.WriteLine(
"Usage: " + Path.GetFileNameWithoutExtension( Environment.CommandLine )
+ " <input.wav> <output.ac3>" );
return -1;
}
EncodingContext context = FrameEncoder.GetDefaultsContext();
context.Channels = 2;
context.SampleRate = 44100;
context.AudioCodingMode = AudioCodingMode.Stereo;
context.HasLfe = false;
using ( FrameEncoder encoder = new FrameEncoderInt16( ref context ) ) {
encoder.FrameEncoded += new EventHandler<FrameEventArgs>( encoder_FrameEncoded );
using ( FileStream inputStream = new FileStream( args[0], FileMode.Open ) )
using ( FileStream outputStream = new FileStream( args[1], FileMode.Create ) ) {
inputStream.Seek( 44, SeekOrigin.Begin ); // Skip WAVE header...
encoder.EncodeAndFlush( inputStream, outputStream );
}
}
Console.WriteLine( "Done" );
Console.ReadLine();
return 0;
}
private static void encoder_FrameEncoded( object sender, FrameEventArgs e )
{
if ( e.FrameNumber % 100 == 1 )
Console.WriteLine(
"Frame: " + e.FrameNumber + " Size: " + e.Size + " Quality: " + e.Status.Quality );
}
}
}
Kurtnoise
28th November 2007, 20:51
you want some feedback with Mono, .Net or both ?
DarkAvenger
28th November 2007, 21:45
Well, Mono won't work currently. I am more interested about what people think should be added to the Aften C# API or changed or whatever.
Kurtnoise
29th November 2007, 09:54
I'll look more carefully at the API this weekend but my first attempt with .Net doesn't seem to work either.
D:\Users\lionel\Documents\Visual Studio 2008\Projects\AftenSharp\AftenTest\bin\R
elease>AftenTest.exe "D:\Music\Rock el Casbah.wav" "D:\Music\Aften_csharp_t1
.ac3"
Aften AC3 Encoding Demo
Unhandled Exception: System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at Aften.FrameEncoder.aften_encode_init(EncodingContext& context)
at Aften.FrameEncoder`1..ctor(EncodingContext& context, EncodeFrameDelegate e
ncodeFrame, ToTSampleDelegate toTSample, A52SampleFormat sampleFormat) in D:\Use
rs\lionel\Documents\Visual Studio 2008\Projects\AftenSharp\AftenSharp\FrameEncod
er.cs:line 533
at Aften.FrameEncoderInt16..ctor(EncodingContext& context) in D:\Users\lionel
\Documents\Visual Studio 2008\Projects\AftenSharp\AftenSharp\FrameEncoder.cs:lin
e 696
at AftenTest.Program.Main(String[] args) in D:\Users\lionel\Documents\Visual
Studio 2008\Projects\AftenSharp\AftenTest\Program.cs:line 30
D:\Users\lionel\Documents\Visual Studio 2008\Projects\AftenSharp\AftenTest\bin\R
elease>
compilation is fine though...
DarkAvenger
29th November 2007, 18:10
Hmm, which aften.dll (C library) do you have? You need a new enough svn snapshot.
[Edit] Please try to use cmake 2.5 nightly build in conjunction with Visual Studio 2008 generator (as I see you are using VS2k8) or use stable cmake with nmake generator. The generated AftenSharp.dll + aften.dll worked for me.
[Edit2] I commited a work-around for Mono. I succesfully tested the C# bindings in Linux x86_64 with Mono 1.2.6pre2.
jruggle
30th November 2007, 02:57
Multiple input file support is now part of Aften SVN. Below is a snippet from the commandline help that shows how to use the new options.
[-ch_X file] Add a mono file to the input list as the channel specified
These parameters are used to specify multiple mono
source files instead of a single multi-channel source
file. Only valid AC-3 combinations are allow. The
acmod, lfe, chconfig, and chmap parameters are all
ignored if multi-mono inputs are used.
ch_fl = Front Left
ch_fc = Front Center
ch_fr = Front Right
ch_sl = Surround Left
ch_s = Surround
ch_sr = Surround Right
ch_m1 = Dual Mono Channel 1
ch_m2 = Dual Mono Channel 2
ch_lfe = LFE
tebasuna51
30th November 2007, 03:35
Thanks Justin, is a good solution.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.