View Full Version : Audio Encoding with MeGui
ChrisBensch
28th December 2006, 02:02
I'm taking as input an AC3 file and using the NeroDigital profiles to output an AAC file, and here's the error that I get:
Error:
MeGUI.AviSynthException: Script error: NicAc3Source does not have a named argument "DRC"
at MeGUI.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
at MeGUI.AviSynthAudioEncoder.encode()
Any ideas?
ChrisBensch
28th December 2006, 02:21
I must have had an old NicAudio.dll version, I went to the BeHappy site and downloaded the most current version I could find and then I didn't get that error any longer
tebasuna51
28th December 2006, 13:27
The last NicAudio.dll (http://nic.dnsalias.com/NicAudio_alpha3.zip) made by Nic over the last version of Dimzon (BeHappy) correct two problems:
- Now work with ac3 44100 Hz
- Don't crash when a different parameter in frame than the first (i.e. a frame 2.0 and the next 5.1) is found. Now the frame in the new format is replaced by a silence frame in previous format.
See:
http://forum.doom9.org/showthread.php?t=114968&highlight=NicAudio.dll
http://forum.doom9.org/showthread.php?p=907817#post907817
Sharktooth
28th December 2006, 14:32
but it's not compatible with MeGUI coz it doesnt support DRC...
tebasuna51
28th December 2006, 15:41
but it's not compatible with MeGUI coz it doesnt support DRC...
Why not?
Nic uses the last Dimzon's sources with support for DRC to improve this last version.
Tested NicAc3Source("D:\...\Sample.ac3", DRC=1) with Bepipe and BeHappy without problems.
Sharktooth
30th December 2006, 14:37
ah.. didnt know it.
ill test it with megui and if it works correctly ill put it in the autoupdate servers ;)
Sharktooth
31st December 2006, 04:53
Tested NicAc3Source("D:\...\Sample.ac3", DRC=1) with Bepipe and BeHappy without problems.
Did you test it with megui too? I ask coz i have really no time to do it...
tebasuna51
31st December 2006, 14:05
Did you test it with megui too? I ask coz i have really no time to do it...
Sorry I don't want install this kind of conversor (I use ARCalculator) and a old version without installation don't work for me, I check 'encode via AviSynth' but send a error with a command line in BeSweet style.
Altaria
6th January 2007, 15:08
hi
i also have a question:
I demultiplex my films (source, nova-s plus, TV central core, ts stream) with Project X to m2v and ac3, but i've problems with 5.1.
when I use "OggVorbis":
Channels=6, BitsPerSample=16, SampleRate=48000Hz
G:\Software\MeGui\tools\oggenc2\oggenc2.exe -Q --raw --raw-bits=16 --raw-chan=6 --raw-rate=48000 --quality 1.0 -o "K:\TV aufnahmen\ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006.ogg" -Error:
MeGUI.AviSynthException: m2AudioAC3Source: error in file "K:\TV aufnahmen\ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006.ac3"
at MeGUI.AviSynthAudioEncoder.encode()
and also when i use ND AAC:
Channels=2, BitsPerSample=16, SampleRate=48000Hz
G:\Software\MeGui\neroAacEnc.exe -ignorelength -he -br 64000 -if - -of "K:\TV aufnahmen\ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006.mp4"Error:
MeGUI.AviSynthException: m2AudioAC3Source: error in file "K:\TV aufnahmen\ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006.ac3"
at MeGUI.AviSynthAudioEncoder.encode(
with 2.0 I have no problems
tebasuna51
6th January 2007, 16:18
If you have a:
error in file "K:\TV aufnahmen\ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006.ac3"
maybe you have a error in the file.
First check the file with DelayCut (http://jsoto.posunplugged.com/audiotools.htm) and post the log file.
Altaria
6th January 2007, 16:41
hm it's an very short log:
PROCESSING LOG ======================
Time 00:00:00.000; Frame#= 1. Some basic parameters changed between Frame #47 and this frame
Time 00:00:01.472; Frame#= 47. Some basic parameters changed between Frame #1 and this frame
Number of written frames = 227236
Number of Errors= 2
tebasuna51
7th January 2007, 01:23
Your audio seems a TV capture, is a typical problem mix ac3 audio 2.0 with 5.1.
There are two errors in first 1.5 sec, you can cut this with DelayCut Cutting:
-Check Cut file
Start: 1504
End: 7271552
And process; after you can add silence (Delay) with:
(In Delay section) Start: 1504
Now we have (I hope) a correct ac3 file with same length than original.
Altaria
7th January 2007, 16:26
hm
is it normal that, when i look with "mediainfo", the fixed ac3 stream is a bit longer than the original?
tebasuna51
7th January 2007, 17:01
Longer in time or size?
The "Some basic parameters changed" can be anything.
If you experiment any desync problem you can try with other delay or you can send me the first 2 sec of the stream (Cut 0 to 2000) to analyze the problem.
Altaria
7th January 2007, 19:32
it's longer in time and size, but i think i have set the settings right
well, i have made a screenshot of my settings, and 4 sec
http://home.arcor.de/altaria/audio.rar
tebasuna51
7th January 2007, 23:44
The first 46 frames are 5.1 448 Kb/s, after is also 5.1 but 384 Kb/s.
We need cut these 46 frames then the best way, don't need calculate the end, is use a negative Delay then (in Delay section) put Star = - 46 x 32 = -1472 ms (and not 47 x 32 = 1504 ms like I say before). Click at PROCESS to obtain a first _fixed.ac3.
Open the _fixed.ac3 and now put Delay Start = 1472 instead -1472. Click at PROCESS to obtain the _fixed_fixed.ac3. Now is OK.
The two pass is replace 1.472 sec. of ac3 silence at 448 Kb/s for 1.472 sec. of ac3 silence at 384 Kb/s.
Because this bitrate change the duration is not calculed properly.
About your image. The two pass can be do at same time because to create the delay take the first frame parameters and obtain the same output than original (and the delay is at the Start not at End)
Altaria
8th January 2007, 19:52
sry
but it still didn't work, or i've made a mistake
http://home.arcor.de/altaria/zdf%20-%20james%20bond%20goldeneye%20-%20kinomagie%20-%2027_12_2006_fixed_fixed_fixed.rar
tebasuna51
8th January 2007, 21:36
I can't test MEGUI but BeHappy works without errors with your samples:
Channels=6, BitsPerSample=16, SampleRate=48000Hz
oggenc2.exe -Q --raw --raw-bits=16 --raw-chan=6 --raw-rate=48000 --quality 1 -o "D:\Internet\audio\Z....ogg" -
Writing PCM data to encoder's StdIn
Finalizing encoder
Complete
The difference between first sample and the fixed sample is:
1) the output is 4 sec of silence. NicAudio decoder replace with silence all the frames after 46 because parameters dont match with first frame.
2) The output with the sample fixed works fine and I can hear the MGM lion.
Really there are a difference between frame 46 and 47:
46: Version (bsid) 8 : Standard. (put by DelayCut)
47: Version (bsid) 6 : Alternate sintax. (original)
But my copy of NicAudio decode the ac3 without problems.
Really do you have the last NicAudio.dll (http://nic.dnsalias.com/NicAudio_alpha3.zip)?
Altaria
9th January 2007, 19:30
hm yes, I have the last one, but it can be that i have it in the wrong directory, because I also have tried it with Besweet, and there the log is:
ogg:
Starting job ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006_fixed_fixed.ac3->ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006_fixed_fixed.ogg
Found Audio Stream
Channels=6, BitsPerSample=16, SampleRate=48000Hz
oggenc2.exe -Q --raw --raw-bits=16 --raw-chan=6 --raw-rate=48000 --quality 1 -o "K:\TV aufnahmen\ZDF - James Bond GoldenEye - KinoMagie - 27_12_2006_fixed_fixed.ogg" -
Error: System.ApplicationException: Can't start encoder: Das System kann die angegebene Datei nicht finden ---> System.ComponentModel.Win32Exception: Das System kann die angegebene Datei nicht finden
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at BeHappy.Encoder.createEncoderProcess(AviSynthClip x)
--- End of inner exception stack trace ---
at BeHappy.Encoder.createEncoderProcess(AviSynthClip x)
at BeHappy.Encoder.encode()
well i think that's the reason, but in which directory must i copy the nicaudio.dll
and of course I have often the same problem, so how du you exactly know, where i must delay the ac3 stream
furthermore can you tell me what SRB is log: ERROR: no valid SBR configuration found
it is strange, with video ripping i have no problems at all, x264 and it's profiles always work fine,
tebasuna51
10th January 2007, 04:15
well i think that's the reason, but in which directory must i copy the nicaudio.dll
The NicAudio.dll is an AviSynth plugin then must be only at:
C:\Program files\AviSynth 2.5\plugins\
and of course I have often the same problem, so how du you exactly know, where i must delay the ac3 stream
Use DelayCut error log: if frame 47 is not equal than first you need replace the first 46 frames (46 x 32 ms = 1472 ms) with silence with the same format than frame 47 (first delay -1472, after delay 1472).
furthermore can you tell me what SRB is log: ERROR: no valid SBR configuration found
I don't know what is SBR in this (ac3 -> ogg) context.
Altaria
10th January 2007, 18:45
thanks, now it works fine
SBR, this must be something in the Nero Digital, because when i use HE AAC+PS that error appeared
tebasuna51
10th January 2007, 19:41
Related to aac SBR is Spectral band replication:
http://en.wikipedia.org/wiki/Spectral_Band_Replication
and PS is Parametric Stereo:
http://en.wikipedia.org/wiki/Parametric_Stereo
shon3i
10th January 2007, 19:51
thanks, now it works fine
SBR, this must be something in the Nero Digital, because when i use HE AAC+PS that error appeared
HE-AAC+PS is only for low bitrates <=48kbps in nero and <=64 in CT encoder. So if you use some higher bitrate than 48kbps, you should get error. Aslo better keep Automatic profile if you don't know what is best for you
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.