View Full Version : BeHappy - AviSynth based audio transcoding tool (UPD 19-07-2006)
jones1913
5th July 2015, 16:55
I wouldn't know, don't know anything about avisynth. I used EAC and CEP2 for audio encoding before.
BeHappy needs a working AviSynth environment as prerequisite. It should be as easy as installing the latest version using the installer. (http://sourceforge.net/projects/avisynth2/files/AviSynth%202.6/AviSynth%202.6.0/)
But if its not working you need a basic knowledge of how avisynth works to test your environment. Try to read in the avisynth section of this forum or the avisynth wiki.
(http://avisynth.nl/index.php/Main_Page#New_to_AviSynth_-_start_here)
As quick'n dirty alternative it can work to simply copy an avisynth.dll to the BeHappy main folder. (here you can find one (https://forum.doom9.org/showthread.php?t=167358))
But apart from that, if you want to convert your music collection then you may consider using a tool more suited for this use case eg. LameXP. (https://forum.doom9.org/showthread.php?t=157726)
BeHappys main purpose is more at movie track conversions.
Yamcha
5th July 2015, 20:48
BeHappy needs a working AviSynth environment as prerequisite. It should be as easy as installing the latest version using the installer. (http://sourceforge.net/projects/avisynth2/files/AviSynth%202.6/AviSynth%202.6.0/)
But if its not working you need a basic knowledge of how avisynth works to test your environment. Try to read in the avisynth section of this forum or the avisynth wiki.
(http://avisynth.nl/index.php/Main_Page#New_to_AviSynth_-_start_here)
As quick'n dirty alternative it can work to simply copy an avisynth.dll to the BeHappy main folder. (here you can find one (https://forum.doom9.org/showthread.php?t=167358))
But apart from that, if you want to convert your music collection then you may consider using a tool more suited for this use case eg. LameXP. (https://forum.doom9.org/showthread.php?t=157726)
BeHappys main purpose is more at movie track conversions.
Uninstalled 258 with revo uninstaller and installed 260. It works now, quite speedy also on this 12yo pc. :) Thanks for the help. :)
siella
28th July 2015, 14:29
Pre-release: EDIT: dead link removed
- added file type filters to show only certain encoder/source plugins (use right click on source/encoder combobox)
- added <IsLossless> field to extensions
- cleaned up about-tab a bit
14807
@siella
There is a problem with Helix MP3 encoder: When the process reaches 99%, then the encoder throw an error and delete the encoded file.
I have tried with various encoder settings. Is it working for you?
Log:
Starting job test.flac -> test.mp3
Found Audio Stream
Channels=2, BitsPerSample=16 int, SampleRate=48000Hz
encoder\hmp3.exe - "C:\Dokumente und Einstellungen\jones\Eigene Dateien\media\test.mp3" -V80 -hf2 -C0 -O1 -U2 -X2 -SBT450 -TX0
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Finalizing encoder
Error: System.ApplicationException: Abnormal encoder termination 13237
bei BeHappy.Encoder.encode()
#### Encoder StdErr ####
file-file MPEG Layer III audio encode v5.1 2005.08.09
Copyright 1995-2005 RealNetworks, Inc.
Usage: mp3enc <input> <output> [options]
<input> and/or <output> can be "-", which means stdin/stdout.
Example:
mp3enc input.wav output.mp3
Options:
-Nnsbstereo -Sfilter_select -Aalgor_select
-C -X -O
-D -Qquick -Ffreq_limit -Ucpu_select -TXtest1
-SBTshort_block_threshold -EC
-h (detailed help)
<press any key to stop encoder>
PCM input file: -
MPEG ouput file: C:\Dokumente und Einstellungen\jones\Eigene Dateien\media\test.mp3
pcm file: channels = 2 bits = 16, rate = 48000 type = 0
Layer III mode 1 STEREO 48000Hz VBR-80 hf2
-------------------------------------------------------------------------------
Frames | Bytes In / Bytes Out | Progress | Current/Average Bitrate
13237 | 61032960 / 6080904 | 371517% | 75.08 / 153.14 Kbps
-------------------------------------------------------------------------------
Compress Ratio 37015.485756%
@tebasuna
I noticed the wavsplit.exe build is older (1.0.0.3) than the source code in BeHappy/others folder (1.0.1.1) ??
i tried some diffirent header and i solved that problem. I checked and now i cant. I dint remember but if you tick keep out put on error at behappy, mp3 files is written and it seems no problem.
I report this eror
When i choose lwlibavaudio at source i get error.
"LoadPlugin: unable to load "D:\program\ses\BeHappy-0.2.8.19896\BeHappy\plugins32\lsmashsource.dll", Module not found. Install missing library?"
jones1913
2nd August 2015, 19:16
i tried some diffirent header and i solved that problem. I checked and now i cant. I dint remember
What??? :D:D:D
but if you tick keep out put on error at behappy, mp3 files is written and it seems no problem.
Ok but its of course no permanent solution.
When i choose lwlibavaudio at source i get error.
"LoadPlugin: unable to load "D:\program\ses\BeHappy-0.2.8.19896\BeHappy\plugins32\lsmashsource.dll", Module not found. Install missing library?"
M$VC 2010 package (https://www.microsoft.com/en-US/download/details.aspx?id=5555) installed?
siella
17th August 2015, 15:30
M$VC 2010 package installed?
Nope. I ll install
at codeplex page images of behappy is very old. it can be good if it is renewed
jones1913
6th September 2015, 13:00
at codeplex page images of behappy is very old. it can be good if it is renewed
Done. (https://behappy.codeplex.com/) Also updatet the description a bit.
tebasuna51
6th September 2015, 17:56
Thanks jones1913.
jones1913
6th September 2015, 19:30
Thanks jones1913
You're welcome! :)
siella
12th September 2015, 20:06
Thanks for all jones1913
Good work
siella
16th September 2015, 22:25
I update oggenc2 v2.88 aoTuVb6.03 2015, qaac 2.52 and some bass dll.
Also i corrected some readme files.
Bug: newer version of mac. exe encoder doenst support stdin so i replaced with older version.
Main readme file
You need install AviSynth v2.6 or higher*, and .NET FrameWork v4.5 or higher.
The basic BeHappy is a folder (portable) with BeHappy.exe and AvisynthWrapper.dll.
You can create a DeskTop link with right mouse button over BeHappy.exe and Send to -> DeskTop
To add more features you can add a subfolder 'extensions'.
Add the subfolder 'encoder' (read the Readme.txt file)
Not: We dont recommend but if you dont want install avisynth you can download avisynth.ddl and DevIL.dll from http://avs-plus.net/
and copy them to the BeHappy main folder and also install Visual C++ Redistributable or put msvcp110.dll and msvcr110.dll main folder.
Maybe after some test it can be realease avisynth.dll as standart to make complate portable.
http://www.mediafire.com/download/dwr2xkh86kc3qqi/BeHappy.17.09.2015.7z
siella
24th October 2015, 12:04
I got this error
Error: BeHappy.AviSynthException: LoadPlugin: unable to load "E:\BeHappy_v0.2.8.19896\plugins32\TimeStretch.dll", Module not found. Install missing library?
but TimeStretch.dll(16.05.2015) exist in plugins folder
LigH
24th October 2015, 12:40
Maybe TimeStretch.dll exists, but depends on any other DLL? (try DependencyWalker 32 bit)
Wilbert
25th October 2015, 17:23
You will need the VC2010 runtime libs: http://www.microsoft.com/en-us/download/details.aspx?id=8328 (or maybe just http://www.microsoft.com/en-us/download/details.aspx?id=5555).
siella
31st December 2015, 16:41
I updated some dll , encoder and readme files. Also i added avisynth+ from megui(that has ConvertAudioToFloat, SSRC).
http://www.mediafire.com/download/3d6ji33jyvcvihh/BeHappy.31.12.2015.7z
jones1913
4th January 2016, 18:50
I updated some dll , encoder and readme files. Also i added avisynth+ from megui(that has ConvertAudioToFloat, SSRC).
Cool, only small problem with portable Avisynth is that the "Preview" button wont work.
Preview simply opens the avs script with the associated direct show player, and this call fail without avs system wide installed.
LigH
4th January 2016, 18:56
A VfW based player would possibly be able to use an avisynth.dll if its working directory is specified in its directory... Is there even any dedicated "native AviSynth player"? Never heard of any, yet. But well, AviSynth's focus is accuracy, not real-time playback.
jones1913
4th January 2016, 19:12
I could hook the preview function to behappys internal decoding routines and then playback the raw wave samples via internal .net media classes... :cool:
But.. too lazy, too less time, no interest. choose one :D:D:D
LigH
5th January 2016, 09:27
At least two of them could be solved by a "distributed persuasion attack"... any volunteers? ;)
jones1913
7th January 2016, 14:38
At least two of them could be solved by a "distributed persuasion attack"... any volunteers?
Seems there is low demand for this "feature". No way that I currently spend time on this.
For now I'm busy with other important things (trying to get the VCE on my AM1 Kabini to run on linux). :devil:
Sharc
2nd February 2016, 09:42
Thanks jones1913 for keeping BeHappy alive......
tebasuna51
16th October 2016, 18:39
I make a new package of BeHappy (https://www.sendspace.com/file/bakkpw) with:
- New versions of AviSynth plugins decoders: LSMASHSource, ffms2 and Bass.
- New versions of some encoders and a new encoder: OptimFROG
- Also a pack of encoders with 64 bit version (https://www.sendspace.com/file/whrg1v) to replace if use OS 64 bits.
- Some changes in extension folder to acomodate new encoder versions or correct some bugs.
I put in main BaHappy folder OptimFROG.dll, because in plugins32 is usseless, and work here without need to copy to system folder.
Is a new version from recent encoder, the included with bass_ofr don't work with the new encoder.
I modify the Readme files. And I have somme suggestions about encoders:
Some of them are really old and usseless: enc_AudX_CLI and mp3sEncoder.
Others are deprecated and replaced with better options: dcaenc, Aften, Twolame and enc_aacPlus
Now ffmpeg is preferred for AC3 and MP2, and offer the new native AAC than claim be high quality (FAAC deprecated, fdkaac not present in Zeranoe builds but we have already fdkaac).
We have now 6 AAC encoders.
Also CUETools, a great tool to rip CD's, but wasted here to only encode to flac when we have already Flaac.
Maybe is time to clear a little BeHappy. At least I will do that with my working copy, and leave this package like a historic backup.
EDIT: I forget the Readme.txt and Changes.txt from main folder but without changes with the included in Codeplex.
Only ffms2 need AviSynth 2.6 but LSMASHSource work with 2.58 (and I suposse also with 2.57)
EDIT 2: Included Readme.txt and Changes.txt
Sharc
17th October 2016, 15:16
Thank you. Makes me feel happy :)
GMJCZP
17th October 2016, 18:31
Thank you tebasuna51.
IMHO mp3sencoder is still valid, it's a excelent encoder for mp3 cbr.
tebasuna51
17th October 2016, 20:11
I changed the packages in previous post:
- pack of encoders with 64 bit version
Deleted mpcdec.exe, a decoder not needed at all.
Created folder qaac (previously qaac was in encoder folder)
Don't need a new download only make the changes if already download previously.
- new package of BeHappy
Added Readme.txt and Changes.txt with some changes.
New clean BeHappy.State
I know BeHappy.State is created if not exist but the included put the logical order, for me, of DSP functions.
By default BeHappy put the DSP order of first image, but I like the order of second image:
- First downmix channels (mono, Downmix).
- After convert frequency or tempo (TimeStretch or SSRC).
- Now upmix (Duplicate or Upmix 5.1).
- Amplify or Normalize volume.
- At last change to desired bitdepth if required.
Changed files attached if already downloaded.
tebasuna51
17th October 2016, 20:32
IMHO mp3sencoder is still valid, it's a excelent encoder for mp3 cbr.
Of course each user can preserve any of them.
But I think mp3sencoder need a special player to play surround mp3's, is not standard at all.
And I don't found new versions, the link provided don't work.
GMJCZP
18th October 2016, 00:18
The package of siella BePack v3.1 (see in previous pages of this thread) is mp3sencoder.
tebasuna51
18th October 2016, 13:47
Yep, the mp3s(surround)encoder.exe 2008/05/19 is still in my package.
But need special player like http://www.free-codecs.com/download/fraunhofer_iis_mp3_surround.htm (not currently available)
Or Foobar2000 plugin http://www.free-codecs.com/download/winamp_plugin_mp3_surround.htm (not currently available)
The same for enc_AudX_CLI, you can always make a Downmix Dpl_II, encode like regular mp3 stereo, and play with hardware/software players with Dpl_II decoder than is more standard.
GMJCZP
18th October 2016, 14:45
In foobar2000 is present the last version of fhg aac (by case, 2015, in lamexp is already present too). In your package is the 2012 version of tmkk.
For now, I use mp3sencoder for mp3 cbr only.
siella
1st December 2016, 10:24
thanks tebasuna51
I am not sure but i think new version of behappy need net frame 4 not 2
tebasuna51
1st December 2016, 22:52
I'm not change the BeHappy versión, is still the same than Sun Jun 21, 2015.
Only encoders, some plugins and .ext.
GMJCZP
2nd January 2017, 17:26
At least in xp with avast, lately and sometimes exists incompatibilities with d_ConvertSample.ext. The error message starts:
"Can't load extensions from file C:\Program files\BeHappy\extensions\d_ConvertSample.ext
System.InvalidOperationException:There is an error in XML document (22, 4).---> System.IO.IOException: The process cannot access the file 'C:\Documents and Settings\...\Temp\da5qiums.dll' because it is being used by another process"
The solution is deactivate the AV or click in "Reintent" (equivalent to "Reintentar" in spanish).
Edit: the dll archive in Temp directory maybe be different.
Emulgator
3rd January 2017, 00:10
da5qiums.dll would look suspicious to me, nothing that belongs inside BeHappy. An unwanted guest maybe ?
tebasuna51
3rd January 2017, 03:24
Of course don't belong to BeHappy, but if "The solution is deactivate the AV" you have already the culprit.
jones1913
3rd January 2017, 10:58
I can not imagine what dependency could be between the extension loading and some suspicious dlls in your Temp folder.
I suggest to clear your 'C:\Documents and Settings\...\Temp\' folder (manual or with CCleaner or so..).
LigH
3rd January 2017, 11:05
I would guess that BeHappy wants to create a temporary file, which gets a directory content list to avoid filename conflicts, and the AV takes this opportunity to scan the folder for suspicious files in the same location as their list is collected. So, obviously, cleaning the %TEMP% folder regularly is not a bad idea...
GMJCZP
4th January 2017, 01:34
It's curious, BeHappy, d_ConvertSample and Temp folder? :confused:
jones1913
22nd January 2017, 14:56
I have cloned BeHappy repository over to GitHub. (https://github.com/jones1913/behappy) Why? Because everybody is on GitHub. :cool:
Next week or so I'll look at tebasuna's changes. (https://forum.doom9.org/showpost.php?p=1782977&postcount=1221)
@tebasuna: You can of course send your changes via pull request at github, or I can add you as collaborator (for direct access) if you want.
I aggree to clean extensions folder, we can move old exts. to 'BeHappy/extensions/deprecated/' and users can copy them back if they want to use them.
Changes since last release on codeplex:
(Nothing fancy, some gui tweaks and github import related things.)
commit 7c938ce21cc52a35149a838c48dd941cd4b93b29
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Sun Jan 22 11:16:34 2017 +0100
* fix .csproj and compile.bat
+ add controls.cs (missing in previous commit)
+ add .gitignore
commit fefcce84b240a96d3d66af432a7063f01aacaff5
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Wed Jan 11 10:45:54 2017 +0100
* move custom controls to controls.cs
+ add linkLabel with context menu as head to source and destination groupboxes
to make related tasks accessible in a more obvious way (concept stolen from StaxRip)
+ add some tooltips to 'Tweak' section
commit 53d4ca1eb6bfbc0e51f012698983af108aedbf4f
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Wed Jan 11 10:27:45 2017 +0100
+ show number of loaded source files in groupbox text
+ add option 'StartJobsInstantly' to start jobs immediately after enqueuing
* state of 'omitEncoderScript' and 'startJobsInstantly' checkboxes is saved in config file
commit 15d1a4546955cc76702e26623a8da38da8190ad5
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Wed Jan 11 10:18:54 2017 +0100
+ jobqueue tab is splitted horizontal to make jobqueue/log panels resizeable
* fix too much spaces in some generated encoder command lines
commit 21658ae39699ba27a27c69cacdd2cf95c9440325
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Wed Jan 11 10:05:45 2017 +0100
+ add button 'show script' to immediately inspect the avs script
+ add encoder commandline as comment to avs script
commit 072644cb221c032854307080398d5c202b97224c
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Wed Jan 11 09:11:57 2017 +0100
* cleanup after TFS import from codeplex
* changed folder structure, removed some stuff
commit 7895a07b2856940a5414280a2a1f0d662ba226fe
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Sun Jan 8 15:34:34 2017 +0100
create README.md
commit 25262541788250d9731cc5707d8749a985a64872
Author: jones1913 <jones1913@users.noreply.github.com>
Date: Sun Jul 5 07:49:01 2015 -0400
* bugfix in ffmpeg aac extension
Compiled binary can be found here: https://github.com/jones1913/BeHappy/releases
tebasuna51
22nd January 2017, 23:37
Thanks jones1913, I aggree with your decission.
Don't need be addeed like collaborator, if I have some suggestion I can use GitHub and/or this thread.
GMJCZP
23rd January 2017, 00:38
Thank you, Mr. Jones!
I have a question: How use BeHappy and fhgaac (or fdkaac) for encode the audio source ripped from a Bluray with MakeMKV?
tebasuna51
23rd January 2017, 02:24
- [1] Load your mkv in BeHappy
- [1] Select LWLibavAudioSource and Configure to the Stream Index (-1 work for first audio, if not select the desired track, 2 for the second...)
All audio formats (except DTS-Express) from a BluRay can be decoded by LWLibavAudioSource.
- [3] If desired select any DSP (Downmix, TimeStretch, ...)
- [4] Select name, Encoder and Configure to the desired mode (CBR/VBR) and Bitrate/Quality.
GMJCZP
23rd January 2017, 18:09
Thanks, I will analyze your reply, thank you very much.
jones1913
26th February 2017, 20:07
I've just packed a new release (https://github.com/jones1913/BeHappy/releases) and wrote some lines to the wiki. (https://github.com/jones1913/behappy/wiki)
Have fun! :)
LigH
26th February 2017, 21:41
:thanks:
I will.
tebasuna51
27th February 2017, 00:36
Thanks jones1913.
Richard1485
16th June 2017, 16:43
Is it possible to build this nightmode downmix (https://forum.doom9.org/showthread.php?t=168267) into BeHappy but to normalize the matrix to prevent clipping?
This "nightmode" preset uses the following channel matrix:
FL' = FC + 0.30*FL + 0.30*BL
FR' = FC + 0.30*FR + 0.30*BR
I'm not sure how to normalize the matrix myself. It looks as if it should be something like...
FL'= 0.2929 + 0.1875 + 0.1875
FR'= 0.2929 + 0.1875 + 0.1875
..but the total is significantly below 1.0. (I know that the total doesn't have to be exactly 1.0, but should it be this much less?)
tebasuna51
16th June 2017, 21:39
In FL' = FC + 0.30*FL + 0.30*BL
the max value is 1.6 then the normalized version is:
FL' = (1/1.6)*FC + (0.30/1.6)*FL + (0.30/1.6)*BL = 0.625*FC + 0.1875*FL + 0.1875*BL
Richard1485
17th June 2017, 02:00
Thank you! For some reason, I divided the value for FC by the wrong number. I knew something didn't look right. Would this work?
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.1875, 0.625)
blr = GetChannel(a, 5, 6)
return MixAudio(lrc, blr, 1.0, 0.1875)
tebasuna51
17th June 2017, 10:52
Yes, this is the avs code for that downmix.
Richard1485
18th June 2017, 17:19
^ Thanks very much! If it would possible to build it into BeHappy at some point, that would be most useful. :-)
tebasuna51
18th June 2017, 19:51
^ Thanks very much! If it would possible to build it into BeHappy at some point, that would be most useful. :-)
Done.
Replace ...Behappy\extensions\d_DownMix.ext with the attached one.
You can edit d_DownMix.ext and add your mixes.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.