Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
22nd November 2007, 13:03 | #841 | Link | |
Registered User
Join Date: Nov 2006
Posts: 161
|
Quote:
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. |
|
23rd November 2007, 04:18 | #842 | Link | |
Registered User
Join Date: Aug 2006
Location: Region 3 with NDS Encryption
Posts: 355
|
Quote:
Last edited by xbox360; 23rd November 2007 at 04:25. |
|
23rd November 2007, 09:50 | #843 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Quote:
- 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: Code:
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 |
|
28th November 2007, 20:31 | #844 | Link |
HeadAC3he coder
Join Date: Oct 2001
Posts: 413
|
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.
Code:
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 ); } } } Last edited by DarkAvenger; 28th November 2007 at 20:35. |
29th November 2007, 09:54 | #847 | Link | |
Swallowed in the Sea
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
|
I'll look more carefully at the API this weekend but my first attempt with .Net doesn't seem to work either.
Quote:
|
|
29th November 2007, 18:10 | #848 | Link |
HeadAC3he coder
Join Date: Oct 2001
Posts: 413
|
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. Last edited by DarkAvenger; 30th November 2007 at 18:46. |
30th November 2007, 02:57 | #849 | Link |
Registered User
Join Date: Jul 2006
Posts: 276
|
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.
Code:
[-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 |
30th November 2007, 16:44 | #851 | Link | |
Registered User
Join Date: Nov 2006
Posts: 161
|
Quote:
|
|
1st December 2007, 19:48 | #853 | Link |
XviD User
Join Date: Oct 2004
Location: Ky
Posts: 190
|
Outstanding job on Aften and the GUI guys. Many thanks to all of you. It's amazing how fast it is on my Opteron using 2 threads!
__________________
DFI NF4 SLI Expert | Opteron 165 CCBBE 0616 XPMW (9x325HTT=2.9Ghz) | 2x1GB G.Skill HZ (3-4-4-8-12-16-2T) | LG 62L DVD/CD | Geforce 7300GT | All SATA | Antec 650 Trio PSU | XP SP2 |
3rd December 2007, 00:45 | #855 | Link | |
Registered User
Join Date: Nov 2006
Posts: 161
|
Quote:
Thanks, wisodev |
|
3rd December 2007, 03:52 | #856 | Link |
Registered User
Join Date: Jul 2006
Posts: 276
|
I need someone with better ears than me to test Aften r699 to hear for any quality changes. The audio should theoretically sound better now for the same bitrate, but my ears can't tell the difference. By the same token, VBR should theoretically give a lower bitrate and have the same quality when using the same "-q" value as compared with previous versions.
Edit: I found a sample where I can tell a slight difference. I still want lots of feedback though. Last edited by jruggle; 3rd December 2007 at 04:27. |
3rd December 2007, 10:59 | #857 | Link |
Registered User
Join Date: Feb 2006
Posts: 1,076
|
Im a bit confused;
When encoding DVD for DVD's, and keeping to the "official" standards; 448kbps should be max as i remember. But what bitdepth was that again ? Atm i use these settings as my rule-of-thumb; 192: 2-channel, 16 bits / 48 khz 224: 2-channel, 20 bits /48 khz 384: 5.1-channels, 16 bits / 48 khz 448: 5.1 channels, 20 bits / 48 khz 640 is also possible, although my version of DVD-lab pro doesnt seem to "work with it". I would encode that as 24 bits / 48 khz. Are there "standards" somewhat ok ? |
3rd December 2007, 11:19 | #858 | Link |
Registered User
Join Date: Jan 2006
Location: Athens, Greece
Posts: 1,518
|
AC-3 doesn't understand bitdepth. These values you 're talking about don't have any meaning for it. Only bitrate and i think sample rate have a meaning.
Last edited by nautilus7; 3rd December 2007 at 11:22. |
3rd December 2007, 12:55 | #860 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
Extremely simplified:
The AC-3 encoder converts the incoming samples (similar to MP3) into a frequency spectrum, and stores the (according to the psychoacustic model) most important frequency factors as floating-point values. The less bitrate you allow, the less frequency factors can be kept as "important". A too low bitrate results in an incompletely restored frequency spectrum while decoding - so the result is rather a less accurate sound/tone (spectrum related) than a less accurate sample value (volume related). If you allow enough bitrate, AC-3 has the potential to store even a higher resolution and dynamic than dts (in some more or less academic cases); do not expect to exhaust the AC-3 technology with integer PCM audio sources, professional audio studios are able to feed floating-point sample data. __ The AC-3 (A/52) standard allows 640 kbps AC3. But the DVD-Video standard limits it to 448 kbps for DVD audio streams. Therefore, even some AC-3 decoders in cheap DVD players or homecinema sets are not able to decode AC-3 audio beyond 448 kbps. Last edited by LigH; 3rd December 2007 at 12:59. |
|
|