View Full Version : BeHappy - AviSynth based audio transcoding tool (UPD 19-07-2006)
tebasuna51
5th May 2008, 09:41
BeHappy v0.1.9.59201 is reporting the following error when trying to do AC3 > mp3 transcode:
Maybe BeHappy v0.1.9.50201?
I have the latest NicAudio.dll in both BeHappy\Plugins dir and AviSynth\Plugins dir. What could be causing this?
Check your registry. A correct AviSynth install make the keys (translate to your language):
[HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth]
@="C:\\Archivos de programa\\AviSynth 2.5"
"plugindir2_5"="C:\\Archivos de programa\\AviSynth 2.5\\plugins"
NicAudio.dll must be at "plugindir2_5" folder
EpheMeroN
5th May 2008, 10:00
@tebasuna51: You were correct about the version number. I corrected it on my previous post!
Does BeHappy look for the NicAudio.dll in just the default install location? Because I have all my a/v apps installed to "C:\Multimedia" so AviSynth is in "C:\Multimedia\AviSynth 2.5\Plugins". Every other program I have that uses AviSynth functions fine.
tebasuna51
5th May 2008, 13:16
Does BeHappy look for the NicAudio.dll in just the default install location? Because I have all my a/v apps installed to "C:\Multimedia" so AviSynth is in "C:\Multimedia\AviSynth 2.5\Plugins". Every other program I have that uses AviSynth functions fine.
Well, BeHappy call AviSynth, and AviSynth load the plugins in the folder indicated by the "plugindir2_5" registry value.
If, in your machine, is "C:\Multimedia\AviSynth 2.5\Plugins", then NicAudio.dll, BassAudio.dll, bass_*.dll, sox.dll ... must be there.
EpheMeroN
5th May 2008, 20:26
@tebasuna51: All the files are in the plugins directory so I have no clue why BeHappy is giving me that error.
Anyone have ideas?
tebasuna51
5th May 2008, 22:17
@EpheMeroN
To discard others problems try this:
1) Instead 'Enqueue' you job, use 'Export AviSynth Script'
2) Edit the .avs created with Notepad and insert like first line:
LoadPlugin("C:\Multimedia\AviSynth 2.5\Plugins\NicAudio.dll")
Save the file.
3) Open the .avs file with BeHappy instead your source. You don't need add DSP functions, only encode with Lame.
EpheMeroN
5th May 2008, 23:19
@EpheMeroN
To discard others problems try this:
1) Instead 'Enqueue' you job, use 'Export AviSynth Script'
2) Edit the .avs created with Notepad and insert like first line:
LoadPlugin("C:\Multimedia\AviSynth 2.5\Plugins\NicAudio.dll")
Save the file.
3) Open the .avs file with BeHappy instead your source. You don't need add DSP functions, only encode with Lame.
Starting job audio-tst.avs->audio-tst.mp3
Found Audio Stream
Channels=6, BitsPerSample=32 int, SampleRate=48000Hz
encoder\lame.exe --abr 128 --nohist -h -S --silent - "C:\Users\xxxxxxx\Desktop\audio-tst.mp3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Error: System.IO.IOException: The pipe has been ended.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
at BeHappy.Encoder.encode()
tebasuna51
6th May 2008, 01:03
Ok. One problem solved.
The actual problem is evident.
You try encode 'Channels=6' with Lame.
Lame only support mono/stereo.
You need select a downmix DSP function, I recommend you use DPL II
EpheMeroN
6th May 2008, 03:39
Ok. One problem solved.
The actual problem is evident.
You try encode 'Channels=6' with Lame.
Lame only support mono/stereo.
You need select a downmix DSP function, I recommend you use DPL II
Okay. Doing that worked just fine!
Starting job test.avs->test.mp3
Found Audio Stream
Channels=2, BitsPerSample=32 int, SampleRate=48000Hz
encoder\lame.exe --abr 128 --nohist -h -S --silent - "C:\Users\xxxxxxx\Desktop\test.mp3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Finalizing encoder
So based on what we've figured out, BeHappy looks (by default) for the NicAudio.dll in the "C:\Program Files\AviSynth 2.5\Plugins" directory regardless of where you really have AviSynth installed. Could this be manually corrected in that NicAudio.extension file? Or what could be done?
Btw, for the purpose of diagnosing this issue, I have been using the latest BeHappy (stated in previous post), and using Windows Vista Home Premium as my operating system.
tebasuna51
6th May 2008, 10:08
So based on what we've figured out, BeHappy looks (by default) for the NicAudio.dll in the "C:\Program Files\AviSynth 2.5\Plugins" directory regardless of where you really have AviSynth installed.
BeHappy don't load AviSynth plugins at all.
I think is a AviSynth issue.
Could this be manually corrected in that NicAudio.extension file? Or what could be done?
Yep, you can patch NicAudio.extension changing each line:
<Value></Value>
For instance:
<Value>NicAc3Source("{0}")</Value>
must be
<Value>LoadPlugin("C:\Multimedia\AviSynth 2.5\Plugins\NicAudio.dll")
NicAc3Source("{0}")</Value>
Btw, for the purpose of diagnosing this issue, I have been using the latest BeHappy (stated in previous post), and using Windows Vista Home Premium as my operating system.
And can you confirm your registry is correct?
Must be like this:
[HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth]
@="C:\\Multimedia\\AviSynth 2.5"
"plugindir2_5"="C:\\Multimedia\\AviSynth 2.5\\plugins"
EpheMeroN
6th May 2008, 18:42
And can you confirm your registry is correct?
Must be like this:
[HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth]
@="C:\\Multimedia\\AviSynth 2.5"
"plugindir2_5"="C:\\Multimedia\\AviSynth 2.5\\plugins"
Confirmed!
http://img225.imageshack.us/img225/714/90001324wu4.jpg
tebasuna51
6th May 2008, 23:38
Confirmed!
Thanks. Then I don't know what is the problem.
EpheMeroN
7th May 2008, 00:45
I don't either! Maybe the author of BeHappy can take a look.
EpheMeroN
7th May 2008, 07:56
1) More options for DRC from NicAudio.dll please? So instead of just DRC you can choose Light, Normal, Heavy DRC in the option box.
I assume the default DRC option uses Normal DRC correct?
2) My previous issue (last 2 pages within this thread) with not being able to load NicAudio.dll without first having to save as .avs and then manually type in plugin location.
tebasuna51
7th May 2008, 12:58
1) More options for DRC from NicAudio.dll please? So instead of just DRC you can choose Light, Normal, Heavy DRC in the option box.
I assume the default DRC option uses Normal DRC correct?
Inside the ac3 stream can have a unique attenuation value for each block (256 samples) of audio data. Some decoders offer the option of modify this internal value by half or double (Azid, PowerDVD, ...). Other decoders can ignore the internal DRC value (Ac3Filter) and offer drc methods with continuous adjust.
The liba52 decoder offer the option to write external routines to manage DRC but the spirit of the AviSynth decoders I think must be:
- The decoder just decode the internal format to uncompressed audio data with the minimum process.
- Any data transformation must be done out of decoders to be generic. For instance liba52 have downmix functions, but I think this process must be done with more flexible AviSynth functions and independent of source format.
Then the object of DRC option in ac3 (and dts) decoder is recover the unique value present in ac3 stream recommended by the source author.
If you want some other distinct adjust you can write your filters using the compand function of sox filter. You have some samples in this post (http://forum.doom9.org/showthread.php?p=779165#post779165)
2) My previous issue (last 2 pages within this thread) with not being able to load NicAudio.dll without first having to save as .avs and then manually type in plugin location.
To know more about this problem, I suggest another test with bepipe:
- In last BeHappy_r50201.7z release there are a encoder\Bepipe.7z, please decompress the file and you have a bepipe folder with:
Bepipe.bat
Bepipe.exe
WavFix.exe
Edit with Notepad the Bepipe.bat:
@echo off
rem Sample of use to write correct wav header with Bepipe (if < 4GB). Not neded with encoders.
Bepipe --script "BassAudioSource(^D:\Musica\Ejemplos\High.wma^)" | Wavfix - output.wav
pause
and replace "BassAudioSource" with "NicAc3Source", and the example wma file with an ac3 in your system (let the necessary ^)
Run (Double Click) Bepipe.bat and let me know the result.
Chumbo
7th May 2008, 15:05
I don't either! Maybe the author of BeHappy can take a look.
Like tebasuna said, it's not a BeHappy issue. What you may consider doing is getting the latest install package from Shon3i on the 2nd post here (http://forum.doom9.org/showthread.php?p=758076#post758076) and then update the latest BeHappy and plug-ins after that. The install package has everything including avisynth. I'd remove your existing avisynth and BeHappy installations first and then install the Shon3i package.
EpheMeroN
8th May 2008, 18:14
Like tebasuna said, it's not a BeHappy issue. What you may consider doing is getting the latest install package from Shon3i on the 2nd post here (http://forum.doom9.org/showthread.php?p=758076#post758076) and then update the latest BeHappy and plug-ins after that. The install package has everything including avisynth. I'd remove your existing avisynth and BeHappy installations first and then install the Shon3i package.
Is there something different in the older Shon3i package than w/ the official latest BeHappy that might make a difference?
tebasuna51
9th May 2008, 00:01
Is there something different in the older Shon3i package than w/ the official latest BeHappy that might make a difference?
Is a installer (also AviSynth) to be sure. Of course with a official installation all must work, like in many others PC's, but here the interest is know for what don't work with your custom install.
You say:
"Every other program I have that uses AviSynth functions fine."
Please, what others programs?
You need load plugins?
And the Bepipe test I suggest?
masscamp24
9th May 2008, 19:21
Can Behappy transcode 2 stereo wav to a 5.1 ac3 stereo
tebasuna51
9th May 2008, 19:52
Can Behappy transcode 2 stereo wav to a 5.1 ac3 stereo
Please clarify your question.
'2 stereo wav' can be 2 wav files with 2 channel each, but what is '5.1 ac3 stereo'?
masscamp24
9th May 2008, 20:45
Please clarify your question.
'2 stereo wav' can be 2 wav files with 2 channel each, but what is '5.1 ac3 stereo'
I mean wav 2 channel to ac3 5.1 channel
tebasuna51
10th May 2008, 00:01
I mean wav 2 channel to ac3 5.1 channel
Of course, there are 6 profiles to choose in 5.1 Upmix DSP function.
jangai
11th May 2008, 19:17
With BeHappy to convert an AAC 6 ch file to AC3 5.1 with following script :
########################################
#Created by BeHappy v0.1.9.50201
#Creation timestamp: 11/05/2008 18:30:53
########################################
#Source FileName:C:\Documents and Settings\Jangai\Mes documents\Mes videos\Audio.aac
#Target FileName:C:\Documents and Settings\Jangai\Mes documents\Mes videos\Audio.ac3
########################################
########################################
# [Source: AviSynth]
########################################
Import("C:\Documents and Settings\Jangai\Mes documents\Mes videos\Audio.aac")
########################################
# [BeHappy: Delay Audio by -10 ms ]
DelayAudio( -10.0/1000.0)
########################################
# [Encoder: Aften AC3 CBR @ 448 kbps, L+R, ReadToEof, DRC: None]
########################################
I get following error at the beginning of process :
Starting job Audio.aac->Audio.ac3
Error: BeHappy.AviSynthException: unexpected character "˙"
ŕ BeHappy.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
ŕ BeHappy.Encoder.encode()
Same error with ffmpeg AC3 encoder...
Anybody has a small idea to steer my searches ?
Thanks in advance :thanks:
tebasuna51
11th May 2008, 22:55
With BeHappy to convert an AAC 6 ch file to AC3 5.1 with following script :
...
# [Source: AviSynth]
########################################
Import("C:\Documents and Settings\Jangai\Mes documents\Mes videos\Audio.aac")
...
You must select the appropriate method (decoder) to open your source file.
The AviSynth method Import() is for .avs files
To decode aac you need BassAudio() method.
When you select an .aac like input file the BassAudio method is automatically selected.
jangai
12th May 2008, 09:24
You must select the appropriate method (decoder) to open your source file.
The AviSynth method Import() is for .avs files
To decode aac you need BassAudio() method.
When you select an .aac like input file the BassAudio method is automatically selected.
OK ! I was far of the right way...
Unfortunately, BassAudio method seems hard to activate for me :
Command panel with (good ?) input method :
http://i41.servimg.com/u/f41/11/71/09/36/behapp11.jpg (http://www.servimg.com/image_preview.php?i=59&u=11710936)
Preview:
http://i41.servimg.com/u/f41/11/71/09/36/behapp13.jpg (http://www.servimg.com/image_preview.php?i=61&u=11710936)
Log :
http://i41.servimg.com/u/f41/11/71/09/36/behapp12.jpg (http://www.servimg.com/image_preview.php?i=60&u=11710936)
Checked my BassAudio installation into AviSynth/plugin folder...
All seems right... But... is not ! :-)
A missing DLL somewhere ?
tebasuna51
12th May 2008, 09:54
OK ! I was far of the right way...
Unfortunately, BassAudio method seems hard to activate for me :
...
Checked my BassAudio installation into AviSynth/plugin folder...
All seems right... But... is not ! :-)
A missing DLL somewhere ?
1) Check your registry. A correct AviSynth install make the keys (translate to your language):
[HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth]
@="C:\\Archivos de programa\\AviSynth 2.5"
"plugindir2_5"="C:\\Archivos de programa\\AviSynth 2.5\\plugins"
2) Check the needed .dll at "plugindir2_5" folder:
BassAudio.dll
Bass.dll
Bass_aac.dll
3) If don't work, you can patch (Notepad) BassAudio.extension replacing the black part with your "plugindir2_5" folder:
<?xml version="1.0"?>
<BeHappy.Extension xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://workspaces.gotdotnet.com/behappy">
<AudioSource Name="BassAudio" UniqueID="368e0760-ae08-11da-a746-0800200c9a66">
<Script>LoadPlugin("C:\Archivos de programa\AviSynth 2.5\Plugins\BassAudio.dll")
bassAudioSource("{0}")</Script>
<SupportedFileExtension>aac</SupportedFileExtension>
<SupportedFileExtension>aiff</SupportedFileExtension>
<SupportedFileExtension>ape</SupportedFileExtension>
<SupportedFileExtension>cda</SupportedFileExtension>
<SupportedFileExtension>flac</SupportedFileExtension>
<SupportedFileExtension>m4a</SupportedFileExtension>
<SupportedFileExtension>mp1</SupportedFileExtension>
<SupportedFileExtension>mp2</SupportedFileExtension>
<SupportedFileExtension>mp3</SupportedFileExtension>
<SupportedFileExtension>mp4</SupportedFileExtension>
<SupportedFileExtension>mpc</SupportedFileExtension>
<SupportedFileExtension>ogg</SupportedFileExtension>
<SupportedFileExtension>tta</SupportedFileExtension>
<SupportedFileExtension>wav</SupportedFileExtension>
<SupportedFileExtension>wma</SupportedFileExtension>
<SupportedFileExtension>wv</SupportedFileExtension>
</AudioSource>
</BeHappy.Extension>
jangai
12th May 2008, 14:12
Many thanks... I had to follow the 1-2-3 parts of your advices.
-Create a "plugindir2_5" folder and fill it with right dll collection :
http://i41.servimg.com/u/f41/11/71/09/36/behapp14.jpg (http://www.servimg.com/image_preview.php?i=62&u=11710936)
-Check registry to see plugindir2_5 folder access key was right (it was) :http://i41.servimg.com/u/f41/11/71/09/36/behapp15.jpg (http://www.servimg.com/image_preview.php?i=63&u=11710936)
-Patch the xml Behappy BassAudio.extension file with correct order and path :http://i41.servimg.com/u/f41/11/71/09/36/behapp16.jpg (http://www.servimg.com/image_preview.php?i=64&u=11710936)
And : it would have been working... No ! Arrgggggghhhhhhh! I check and check again my syntaxes... The DLL doesn't load ...
http://i41.servimg.com/u/f41/11/71/09/36/behapp17.jpg (http://www.servimg.com/image_preview.php?i=65&u=11710936)
Is it a bad DLL release or a so big mistake that I can see it ???
tebasuna51
12th May 2008, 20:11
Must be
C:\Program Files\AviSynth 2.5\plugins
BassAudio.dll 69.632 14/03/2008 09:08
bass.dll 97.336 08/04/2008 15:07
bass_aac.dll 150.904 27/02/2008 17:10
bass_ac3.dll 16.736 27/02/2008 17:10
bass_alac.dll 12.144 27/02/2008 20:03
bass_ape.dll 33.112 27/02/2008 17:10
bass_cda.dll 16.952 02/04/2008 12:28
bass_flac.dll 25.152 02/04/2008 12:26
bass_midi.dll 25.152 24/03/2008 15:07
bass_mpc.dll 16.200 27/02/2008 21:46
bass_ofr.dll 5.960 27/02/2008 17:11
bass_spx.dll 47.936 27/02/2008 18:25
bass_tta.dll 8.536 27/02/2008 21:49
bass_wma.dll 15.416 02/04/2008 12:32
bass_wv.dll 27.704 02/04/2008 12:36
The 'plugindir2_5' is the name in regedit.
And check the dates, seems you have v2.3 bass files.
jangai
12th May 2008, 22:54
And check the dates, seems you have v2.3 bass files.
OK I understand my mistakes, but I have also a release problem...
For Bass files, I have only BassAudio.dll from 2008 and bass.dll, bass_aac.dll, bass_xxx.dll are all from 2007...
Now, I think file linkage is good, but I have serious releases mismatch into all BassAudio DLLs from my AviSynth plugins folder...
My sources for these files (BeHappy, BassAudio and updates) are :
-BeHappy_20070324.exe for main package and
-BassAudio23.7z
My question is : Are theses references OK and if not, what are the good ones and where to find the good ones ?
Thank you for your patience, but the actual "packaging" of BeHappy with BassAudio extensions is not a very intuitive cruise... ;-)
tebasuna51
12th May 2008, 23:00
Thank you for your patience, but the actual "packaging" of BeHappy with BassAudio extensions is not a very intuitive cruise... ;-)
In ...\plugins\readme.txt:
(1) The oficial releases v2.4 are in http://www.un4seen.com/bass.html
EpheMeroN
16th May 2008, 11:15
Hey guys! Sorry I didn't run the BeHappy tests for my current issues. I had to leave for a week on short notice.
I'll run the tests come Saturday morning. Thanks for the help!
@cweb
Maybe you have the old RaWav.extension in BeHappy folder.
Now is inside NicAudio.extension (same ID), and you need delete RaWav.extension and also RaWav.dll in AviSynth 2.5\plugins folder if exist.
I just reinstalled the new version. I followed your tip to delete the old RaWav extension and dll in behappy's plugins directory. All seems to be working fine.
Something I noticed also, I might be doing something wrong, I have a demuxed ac3, trying to convert it to an ogg vorbis file, and I choose to DownMix it, well the end result contains a lot of hissing. Not sure what's the problem, but I'm using the latest oggenc2 from rarewares (P3/amd build) - oggenc2.85-aoTuVb5.5-P3.zip
tebasuna51
18th May 2008, 17:13
Something I noticed also, I might be doing something wrong, I have a demuxed ac3, trying to convert it to an ogg vorbis file, and I choose to DownMix it, well the end result contains a lot of hissing. Not sure what's the problem, but I'm using the latest oggenc2 from rarewares (P3/amd build) - oggenc2.85-aoTuVb5.5-P3.zip
Sorry, my fault.
I forget use the parameter
--raw-format=3
when send float samples in last BeHappy revision, must be corrected in the next revision.
To work until next revision you can use, like last DSP, a Convert Sample To 32 bit int.
Oh, good. I was just about to post about the ogg problem, and look! Here it is. Good to know that it wasn't something I was doing. Can't wait for the next version!! This is THE audio conversion software now, so keep going tebasuna51!! Your work is very appreciated.
Sorry, my fault.
I forget use the parameter
--raw-format=3
when send float samples in last BeHappy revision, must be corrected in the next revision.
To work until next revision you can use, like last DSP, a Convert Sample To 32 bit int.
thanks! I too wanted to say you are doing a great job!
tebasuna51
21st May 2008, 20:13
New BeHappy release BeHappy 0.1.9.50202 (https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=BeHappy&ReleaseId=13626)
+ Solved bug when sending float samples to oggenc2 encoder.
+ Added new experimental features related with headers for multichannel audio data:
-ChannelMask: CMask in [2] Tweak. When checked the header is WAVE_FORMAT_EXTENSIBLE.
Selecting 0 the default for the current NumChannels is applied.
-HeaderType: Head. in [2] Tweak. 0 for WAV, 1 for W64, 2 for RF64, 3 for W64 if >4GB, 4 for RF64 if >4GB
Use only for Wav Writer or encoders with support for these headers.
We can output WAVE_FORMAT_EXTENSIBLE, w64 and rf64 uncompressed files.
Is recommended, but not mandatory, rename the W64 files like .w64
At least Flac seems go support these formats >4GB in next version.
Great!! Thanks a lot tebasuna51!! I'll test it out soon.
Great!! Thanks a lot tebasuna51!! I'll test it out soon.
I'll be doing the same myself.. thanks for this update!
DaniH
1st June 2008, 22:17
Hi!
What about 5.1 AC3 to 5.1 HE-AAC (Nero), is it supported?
I tried it and got 2 channel AAC-s every time...
tebasuna51
2nd June 2008, 01:31
Hi!
What about 5.1 AC3 to 5.1 HE-AAC (Nero), is it supported?
I tried it and got 2 channel AAC-s every time...
Maybe use you DirectShowSource to open the ac3?
Use NicAc3Source or configure properly your DirectShow decoder.
If still obtain stereo from 5.1 please put the log (copy the output window and paste here), and the avs generated by 'Export AviSynth script' button.
DaniH
2nd June 2008, 08:07
Maybe use you DirectShowSource to open the ac3?
Use NicAc3Source or configure properly your DirectShow decoder.
If still obtain stereo from 5.1 please put the log (copy the output window and paste here), and the avs generated by 'Export AviSynth script' button.
Dear tebasuna51,
I used NicAC3Source of course. Didn't try DirectShowSource. I'll do some more tests and post the log.
I checked the channel count in SMPlayer's information window. Is there a dedicated program that analyzes sound streams, maybe even channel mapping? I would like to check whether channels gets mixed up after encoding or not (many people had similar problems)
UPDATE: sorry it seems SMplayer info is b0rked, downloaded GSpot, nice prog, but there is no channel mapping info :(
Now I get another error:
Error: System.IO.IOException: Pipe ended (or something) when using NicAC3Audio. Tried to convert to WAV, then to AAC, same IO problem...
Here is the output
-------------------------------------------------------------------------------
Starting job test_Track1.wav->test_Track1_b9624cce58bf4e8a8f05db6536ef8296.mp4
Found Audio Stream
Channels=6, BitsPerSample=32 float, SampleRate=48000Hz
encoder\neroAacEnc.exe -ignorelength -he -q 0.6 -if - -of "D:\Test\test_Track1_b9624cce58bf4e8a8f05db6536ef8296.mp4"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Error: System.IO.IOException: A pipe használata befejeződött. //(Meaning pipe ended - my addition)
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
at BeHappy.Encoder.encode()
#### Encoder StdOut ####
ERROR: no valid SBR configuration found
-------------------------------------------------------------------------------
This is the wav input - with AC3 input I get the same error.
DaniH
2nd June 2008, 08:58
Okay, me again, sorry :)
So I found out about this IO problem: I get this when i choose HE-AAC with VBR (quality)...
LC-AAC with VBR, or HE-AAC with CBR works... So why no VBR???
The only question that remains is how I could check the channel mappings of the AC3 input and the AAC output (recommend a program please)!
P.S. I did some research on the forums, found this (http://forum.doom9.org/showthread.php?t=120192&highlight=channel):
Skelsgard @ 4th Jan. 2007 wrote
"Nero AAC encoder CLI has proper mapping. As long as your WAV is correctly mapped as a multichannel WAV, you will have no problem."
So i presume if a correctly mapped AC3 (and I see no reason for it to be not correct - it's the DVD source itself) gets converted to AAC via NicAC3Decoder and NeroAacEnc CLI (latest), the channel mapping will be correct (and I can sleep calmly :))?
Tebasuna51, you too recommended the CLI encoder in the same topic.
tebasuna51
2nd June 2008, 10:12
Okay, me again, sorry :)
So I found out about this IO problem: I get this when i choose HE-AAC with VBR (quality)...
LC-AAC with VBR, or HE-AAC with CBR works... So why no VBR???
When use VBR quality use the 'Automatic' set. Only in the limits you can select the mode HE or LC.
The HE-AAC option is for low quality and q=0.6 is high quality then Neroaacenc reject the petition. I don't remember now, but the limit is near q=0.3
The only question that remains is how I could check the channel mappings of the AC3 input and the AAC output (recommend a program please)!
I don't know what you want check. An ac3 5.1 only have one possible channels configuration: LFE on, acmod=7 (mean left, right and center front channels and left, right surround channels)
You can see the acmod/lfeon possible values is this post (http://forum.doom9.org/showthread.php?p=1134394#post1134394)
About aac I don't know other info than the number of channels.
You can use MediaInfo to know data about media streams.
DaniH
2nd June 2008, 11:12
I don't know what you want check. An ac3 5.1 only have one possible channels configuration: LFE on, acmod=7 (mean left, right and center front channels and left, right surround channels)
Thank you for your post!
What I've meant was that the AV forums of the net are full of topics that discuss the mixed-up channel order that results from an 5.1AC3->5.1AAC encode. Left gets mixed up with Right etc... But none of the topics came to a conclusion, and that confused me a bit, that's why I asked.
tebasuna51
2nd June 2008, 12:25
Thank you for your post!
What I've meant was that the AV forums of the net are full of topics that discuss the mixed-up channel order that results from an 5.1AC3->5.1AAC encode. Left gets mixed up with Right etc... But none of the topics came to a conclusion, and that confused me a bit, that's why I asked.
Don't worry about this. BeHappy always produce correct channel mapping output.
Only old style decoders/encoders can have channel mapping problems. Between the decoders/encoders used by BeHappy, only ffmpeg(for ac3) and oggenc2(ogg) need a remapping done automatically.
masscamp24
3rd June 2008, 00:50
How does one install ffmpeg programme for ac3 in behappy? I install it in the encoder folder. try to convert a wav file to ac3 (upmix to 5.1 channels) got a error indicating that encoder not found.
tebasuna51
3rd June 2008, 01:42
How does one install ffmpeg programme for ac3 in behappy? I install it in the encoder folder. try to convert a wav file to ac3 (upmix to 5.1 channels) got a error indicating that encoder not found.
Maybe is a ffmpeg without the ac3 encoder. There are many ffmpeg binary and you must select the appropriate.
Not problem with my old version:
Starting job Jap6.wav->zzJap6.ac3
Found Audio Stream
Channels=6, BitsPerSample=16 int, SampleRate=48000Hz
encoder\ffmpeg.exe -i - -y -acodec ac3 -ab 384 "E:\zzJap6.ac3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Finalizing encoder
Complete
#### Encoder StdErr ####
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mingw32 --enable-memalign-hack --enable-gpl --enable-a52 --enable-dts --enable-mp3lame --enable-faac --enable-amr_nb --enable-faad --enable-amr_wb --enable-pp --enable-x264 --enable-xvid --enable-theora --enable-libogg --enable-vorbis
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on May 13 2006 18:31:30, gcc: 4.1.0 [Sherpya]
Input #0, wav, from 'pipe:':
Duration: N/A, bitrate: 4608 kb/s
Stream #0.0: Audio: pcm_s16le, 48000 Hz, 5:1, 4608 kb/s
Output #0, ac3, to 'E:\zzJap6.ac3':
Stream #0.0: Audio: ac3, 48000 Hz, 5:1, 384 kb/s
Stream mapping:
Stream #0.0 -> #0.0
video:0kB audio:938kB global headers:0kB muxing overhead 0.000000%
SpAwN_gUy
3rd June 2008, 09:33
Hi guys ... it's me :) ..again.. i've moved to Vista x64 ... and.. i'm having all king of troubles :) ..
Starting job Rus_25fps.ac3->Rus_25fps_a2f77829a9834bdba1e700f216907c71.ac3
Error: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at BeHappy.AviSynthClip.dimzon_avs_init_2(IntPtr& avs, String func, String arg, AVSDLLVideoInfo& vi, AviSynthColorspace& originalColorspace, AudioSampleType& originalSampleType, String cs)
at BeHappy.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
at BeHappy.AviSynthScriptEnvironment.ParseScript(String script)
at BeHappy.Encoder.encode()
and this happens all the time.. it seems like i'm doing something wrong.. :( (latest BeHappy.. previous has the same problem)
any solution, please?
(well, it may be due to x86 and x64 bitness of various software.. i'll try BePipe now...)
UPD: BePipe decodes.. but ffmpeg - does not encode (something like "Can't open file for writing")
btw.. same stuff happens to allmost latest megui ... (i'll move there)
masscamp24
3rd June 2008, 20:01
[QUOTE=tebasuna51;1145102]Maybe is a ffmpeg without the ac3 encoder. There are many ffmpeg binary and you must select the appropriate.
Where can I find the correct binary? :stupid:
tebasuna51
3rd June 2008, 23:54
Maybe is a ffmpeg without the ac3 encoder. There are many ffmpeg binary and you must select the appropriate.
Where can I find the correct binary? :stupid:
I can't recommend ffmpeg like ac3 encoder, use aften (http://win32builds.sourceforge.net/aften/index.html) instead.
dimzon
4th June 2008, 11:38
Hi guys ... it's me :) ..again.. i've moved to Vista x64 ... and.. i'm having all king of troubles :) ..
Starting job Rus_25fps.ac3->Rus_25fps_a2f77829a9834bdba1e700f216907c71.ac3
Error: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at BeHappy.AviSynthClip.dimzon_avs_init_2(IntPtr& avs, String func, String arg, AVSDLLVideoInfo& vi, AviSynthColorspace& originalColorspace, AudioSampleType& originalSampleType, String cs)
at BeHappy.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
at BeHappy.AviSynthScriptEnvironment.ParseScript(String script)
at BeHappy.Encoder.encode()
and this happens all the time.. it seems like i'm doing something wrong.. :( (latest BeHappy.. previous has the same problem)
any solution, please?
it means BeHappy is started as 64-bit process and attept to load 32-bit dll...
to solve this problem we need rebuild BeHappy using target CPU x86 (not Any CPU)
it's also possible via special compiler key too
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.