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.

 

Go Back   Doom9's Forum > General > Audio encoding
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th May 2008, 09:41   #701  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by EpheMeroN View Post
BeHappy v0.1.9.59201 is reporting the following error when trying to do AC3 > mp3 transcode:
Maybe BeHappy v0.1.9.50201?

Quote:
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):
Code:
[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
tebasuna51 is offline   Reply With Quote
Old 5th May 2008, 10:00   #702  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
@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.

Last edited by EpheMeroN; 5th May 2008 at 10:05.
EpheMeroN is offline   Reply With Quote
Old 5th May 2008, 13:16   #703  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by EpheMeroN View 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.
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.
tebasuna51 is offline   Reply With Quote
Old 5th May 2008, 20:26   #704  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
@tebasuna51: All the files are in the plugins directory so I have no clue why BeHappy is giving me that error.

Anyone have ideas?
EpheMeroN is offline   Reply With Quote
Old 5th May 2008, 22:17   #705  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
@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.
tebasuna51 is offline   Reply With Quote
Old 5th May 2008, 23:19   #706  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
Quote:
Originally Posted by tebasuna51 View Post
@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.
Code:
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()
EpheMeroN is offline   Reply With Quote
Old 6th May 2008, 01:03   #707  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
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
tebasuna51 is offline   Reply With Quote
Old 6th May 2008, 03:39   #708  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
To The Author Of BeHappy

Quote:
Originally Posted by tebasuna51 View Post
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!
Code:
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.

Last edited by EpheMeroN; 6th May 2008 at 03:46.
EpheMeroN is offline   Reply With Quote
Old 6th May 2008, 10:08   #709  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by EpheMeroN View Post
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.
Quote:
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:
Code:
<Value>NicAc3Source("{0}")</Value>
must be
<Value>LoadPlugin("C:\Multimedia\AviSynth 2.5\Plugins\NicAudio.dll")
NicAc3Source("{0}")</Value>
Quote:
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:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth]
@="C:\\Multimedia\\AviSynth 2.5"
"plugindir2_5"="C:\\Multimedia\\AviSynth 2.5\\plugins"
tebasuna51 is offline   Reply With Quote
Old 6th May 2008, 18:42   #710  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
Quote:
Originally Posted by tebasuna51 View Post
And can you confirm your registry is correct?
Must be like this:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth]
@="C:\\Multimedia\\AviSynth 2.5"
"plugindir2_5"="C:\\Multimedia\\AviSynth 2.5\\plugins"
Confirmed!
EpheMeroN is offline   Reply With Quote
Old 6th May 2008, 23:38   #711  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by EpheMeroN View Post
Confirmed!
Thanks. Then I don't know what is the problem.
tebasuna51 is offline   Reply With Quote
Old 7th May 2008, 00:45   #712  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
I don't either! Maybe the author of BeHappy can take a look.
EpheMeroN is offline   Reply With Quote
Old 7th May 2008, 07:56   #713  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
Feature Request

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.
EpheMeroN is offline   Reply With Quote
Old 7th May 2008, 12:58   #714  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by EpheMeroN View Post
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

Quote:
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:
Code:
@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.
tebasuna51 is offline   Reply With Quote
Old 7th May 2008, 15:05   #715  |  Link
Chumbo
Registered User
 
Chumbo's Avatar
 
Join Date: Feb 2005
Posts: 585
Quote:
Originally Posted by EpheMeroN View Post
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 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.
__________________
Chumbo
Chumbo is offline   Reply With Quote
Old 8th May 2008, 18:14   #716  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
Quote:
Originally Posted by Chumbo View Post
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 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?
EpheMeroN is offline   Reply With Quote
Old 9th May 2008, 00:01   #717  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by EpheMeroN View Post
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?
tebasuna51 is offline   Reply With Quote
Old 9th May 2008, 19:21   #718  |  Link
masscamp24
Registered User
 
Join Date: Oct 2005
Posts: 55
Can Behappy transcode 2 stereo wav to a 5.1 ac3 stereo
masscamp24 is offline   Reply With Quote
Old 9th May 2008, 19:52   #719  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by masscamp24 View Post
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'?
tebasuna51 is offline   Reply With Quote
Old 9th May 2008, 20:45   #720  |  Link
masscamp24
Registered User
 
Join Date: Oct 2005
Posts: 55
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
masscamp24 is offline   Reply With Quote
Reply

Tags
behappy


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.