View Full Version : BeHappy - AviSynth based audio transcoding tool (UPD 19-07-2006)
tebasuna51
2nd January 2015, 13:34
Happy new year!
Can you upload the new qaac.extension to see the changes needed?
jones1913
2nd January 2015, 19:03
Hehe patience please,
I will tomorrow make a package with all needed files, but first I must clean up the things a bit.
a few general notes:
as long the new extension specification is not "frozen" there is no need to convert all plugins
But: I have worked so far only with qaac and l-smashSource plugin, other encoders or sources may have other requirements,
so it would make sence to first convert some prominent plugins to see if there are fundamental bugs or if more window controls are needed
suggestions about additional usefull window controls are welcome (maybe optional textbox for command args or so?)
my current approach seems to work good for encoder and source plugins, not for dsp plugins.
I think configuring complex avisynth scripts for dsp functions is anyway beyond what we can achieve with the current xml extension system.
So for dsp plugins we wont see big changes here.
suggested new naming convention to tidy up extension directory:
- file extension is now ".ext" (looks better)
- encoder plugins start with "e_", dsp with "d_", source with "s_" (eg. "e_qaac.ext")
we can now specify the name of the needed avisynth plugin in the ext. file. If the plugin is found in "BeHappy\plugins32" folder
it will be explicit loaded from there. This makes behappy a bit more portable, but its of course fully optional.
(anyway I suggest to always specify the plugin.dll)
Man now Im tired of writing... Not to mention that the formatting takes almost longer than writing. :eek:
Thanks google translator in any case for help! :p
jones1913
3rd January 2015, 12:09
Here is a test version with 3 plugins and documentation included:
EDIT: removed invalid link
a few notes about window control arrangement:
http://abload.de/thumb/q2k0s16.png (http://abload.de/image.php?img=q2k0s16.png)
the window is unvisible tiled horizontal
upper side:
- this is the place for the radiobuttons and trackbar
- the trackbar is only shown if at least one radiobutton has specified one, otherwise its omited
- there exist only one trackbar dynamical assigned to selected radiobutton
- arrangement is top down, first radiobuttons, trackbar always bottom
- theoretical radiobuttons can be omited but then there can also exist no trackbar
lower side:
- place for comboboxes, checkboxes, url
- arrangement is left to right, first comboboxes, checkboxes, url
- every object here is optional
Thats currently all I can say about that. Feel free to ask if something is unclear.
siella
7th January 2015, 10:11
I treid BeHappy-0.2.6.34898e converting sample but didnt work. Can You check it?
@jones1913
Many thanks for new extantions feature i am going to start to create new extantions
LigH
7th January 2015, 10:35
No details about the source format.
No details about the setup.
No log file or error message.
So what do we have to check?
siella
7th January 2015, 10:39
well
########################################
#Created by BeHappy v0.2.6.34898
#Creation timestamp: 07.01.2015 11:36:11
########################################
#Source FileName:E:\1.mkv
#Target FileName:E:\1.dts
########################################
########################################
# [Source: FFAudioSource - First Audio]
########################################
FFAudioSource("E:\1.mkv")
########################################
# [DSP: Convert Sample To 16 bit int]
########################################
ConvertAudioTo16bit()
########################################
# [DSP: Resample SSRC - SpeedUp 23.976->25]
########################################
AssumeSampleRate(last, (AudioRate()*1001+480)/960).SSRC(AudioRate(last))
########################################
# [Encoder: @DTS Encoder @ 768 kbps]
########################################
16==Audiobits(last)?last:ConvertAudioTo32bit(last)
Found Audio Stream
Channels=6, BitsPerSample=32 int, SampleRate=48000Hz
BitsPerSample must be 16, older version can convert 16 bit
Source is 24 bit.
I geuss 16==Audiobits(last)?last:ConvertAudioTo32bit(last) command crushes ConvertAudioTo16bit()
LigH
7th January 2015, 10:56
There is indeed something surprising in the last command:
"If the result has 16 bit audio, then return it as it is, else convert it to 32 bit"?! That appears suspicious.
tebasuna51
7th January 2015, 11:37
There is indeed something surprising in the last command:
"If the result has 16 bit audio, then return it as it is, else convert it to 32 bit"?! That appears suspicious.
It's correct. The dcaenc support 16 bits and 32 bits int but not 24 bits or float.
BTW, I recommend use the fork ffdcaenc (http://forum.doom9.org/showthread.php?p=1688148#post1688148) with support for 24 bits and other benefits (read the full thread).
siella
7th January 2015, 11:46
Yes i know that but i convert with ConvertAudioTo16bit before but it doesnt effect
tebasuna51
7th January 2015, 12:21
Yes i know that but i convert with ConvertAudioTo16bit before but it doesnt effect
I see, but you have:
ConvertAudioTo16bit()
########################################
# [DSP: Resample SSRC - SpeedUp 23.976->25]
########################################
AssumeSampleRate(last, (AudioRate()*1001+480)/960).SSRC(AudioRate(last))
And:
SSRC Shibata Sample Rate Converter is a resampler. Audio is always converted to float
Change the DSP order if you want 16 bits.
siella
7th January 2015, 13:54
thanks tebasuna51. i changed order and now it is effected
siella
7th January 2015, 20:36
@jones1913
I am writing new extantions according to your new rules.
Firstly at DSP Tooltip box appears like this
http://i.imgbox.com/QEfmyXmi.png
it has space at front
List my asking for extantion
Could you
-add tag for note like url? I want to add some explanation like "it needs this dll or soft bla bla.."
-add default selected value for Trackbar?
-make multi load plugin tag for bass source or another one?
-add Standart values for Trackbar like constant bitrate of ac3 aften config
-show Dropdown Name at above choice
- add multiple wav source for encoding 5.1 audio?
jones1913
7th January 2015, 22:00
at DSP Tooltip box appears like this
haha strange, I will look into it
-add tag for note like url? I want to add some explanation like "it needs this dll or soft bla bla.."
-add default value for Trackbar?
no problem
-multi load plugin tag for bass source or another one?
you mean to specify more than one avisynth plugin.dll to be loaded? certainly easy to implement. (even I thought its not needed)
- add multiple wav source for encoding 5.1 audio?
currently not sure about how to do this. On weekend I will look into the things.
siella
7th January 2015, 22:11
I just need multi load plugin for bass. You know there is more dll. And so that users dont need copy all plugin into avisynth plugin folder.
One more thing :) Can you add input section like aftengui
http://i.imgbox.com/bP8TbVvO.png
and maybe Additional CLI argumant box
tebasuna51
7th January 2015, 22:57
I just need multi load plugin for bass. You know there is more dll.
But only one is a AviSynth plugin: BassAudio.dll
- add multiple wav source for encoding 5.1 audio?
Something like Mux Wizard in EncWAVtoAC3?
To create a temporal input.avs like:
l = RaWavSource("D:\tmp\0L.wav")
r = RaWavSource("D:\tmp\0R.wav")
c = RaWavSource("D:\tmp\0C.wav")
lfe= RaWavSource("D:\tmp\0LFE.wav")
sl = RaWavSource("D:\tmp\0SL.wav")
sr = RaWavSource("D:\tmp\0SR.wav")
mergechannels(l,r,c,lfe,sl,sr)
siella
8th January 2015, 11:04
@tebasuna51
Yes it can be but i think also it can use source1, soruce2... for ffdcaenc, aften or other aac encoder that can support multichannel encode.
I dont know which is easy for behappy.
But only one is a AviSynth plugin: BassAudio.dll
Then still user must copy all bass dll to avisynth folder or system path?
LigH
8th January 2015, 18:18
DLLs can be used (and even required) by other DLLs too. Either the same directory as the calling EXE/DLL or the system directory are recommendable locations for dependent DLLs, because Windows would look there, probably also in all directories listed in %PATH% (here the system directory is usually included).
jones1913
8th January 2015, 18:39
Then still user must copy all bass dll to avisynth folder or system path?
No, this means: only the "BassAudio.dll" needs to be loaded via "LoadPlugin()", and all other bassxxx.dll must be located in the same place where the BassAudio.dll is.
So for the time being I see no need for multiple <LoadAvsPlugin> fields.
and maybe Additional CLI argumant box
yes, probably optional displayable
- add multiple wav source for encoding 5.1 audio?
Something like Mux Wizard in EncWAVtoAC3?
To create a temporal input.avs like:
This seems not related to the current extension stuff and would require an additional window where you can open files and assign the channels.
Maybe when the extensions are done, but with rather low priority for me. Simplest solution for now is manually create avs script like tebasuna has shown.
Can you add input section like aftengui
I thought that something like this is required for fixed bitrate values, but I dont like the idea of adding or replacing the trackbar with a combobox.
The simplest solution for me to implement would be a trackbar which accept fixed values instead of min/max values.
siella
9th January 2015, 00:32
Ok jones1913. I am waiting your new extantions xml still. When you finished i ll keep going.
I think if Dropdown name is showed at above it ll be nice.
jones1913
9th January 2015, 18:52
I think if Dropdown name is showed at above it ll be nice.
To keep things simple window controls in this area are arranged automatical from left to right, if a control not fit in remaining space then it is wrapped to the next line.
I think about adding a label next to each combobox somehow...
Thanks so far for your suggestions. Give me some time to implement the things.
jones1913
13th January 2015, 20:53
new test version online:
EDIT: removed invalid link
changes:
- fixed tooltip bug
- added tooltip field for url
- trackbar can now represent fixed values instead of continuous values
- each window control can have a default value
- changed plugin configuration saving behavior in save state file, to use less space
- updated sample plugins and documentation
The other suggested changes follow at a later time. I think they are not so important at the moment.
jones1913
15th January 2015, 21:35
ok, had some time today, so new test version (same link as in previous post)
- added optional textbox for commandline arguments to plugin config window
- updated sample plugin and doc
@siella
if you have some extensions working can you upload them somewhere, so that I can see myself how good or bad it is working?
I still test things only with the 3 sample plugins...
siella
18th January 2015, 12:23
Today i start to write new ext. whe i finished i ll upload to mediafire
jones1913
1st February 2015, 21:18
Everything ok with you, siella? :D:D:D
I have a new test version ready but I really like to test this with some real world extensions instead of my 3 uncluttered samples.
So if somebody of the many test version downloaders has made an extension dont hesitate to share it with me.
I added description labels for the comboboxes but dont invested much time to mess around with automatic resizing and alignment because it is boring stuff.
Best for you is to play around with the <DialogWidth> element to find a suitable window control layout. A value of 350-400 works good for 1 column of comboboxes.
If there are many comboboxes then try a value around 550 for 2 columns of combos. I dont know how this behave when using non standard font sizes or high dpi settings or so.
It is a primitive solution and I will improve that at a later time.
Here is a pic of current look:
http://abload.de/thumb/q_currypxr0.png (http://abload.de/image.php?img=q_currypxr0.png)
Of course a lot better than the former radiobutton invasion, but it feels like something is missing... I dont know.
changes:
- NOTE: The placeholder for trackbar value is now "{0}" instead of "%tbval%" !!! (sorry)
- added optional <Divisor> element to <Trackbar>, usefull if point values are needed
- added description label to comboboxes
- reset button for plugin configuration works again and set all values to default
same link as before.
jones1913
18th February 2015, 21:18
Small enhancement to make extension plugin development a bit easier:
If Behappy is started with parameter "-testmode" then two additional buttons are added to the operations section.
One button opens a window which shows the generated avs script and commandline (after click on "enqueue job"), the other one to immediately reload all extensions.
(The last saved config is also reloaded)
I changed configuration saving behavior again a bit to save all radiobutton option values independently.
Now when selecting a radiobutton option then the last known value for this option is set at trackbar.
Last but not least I made a small change to the integrated timestretch plugin.
old:
http://abload.de/thumb/ts_oldyvut8.png (http://abload.de/image.php?img=ts_oldyvut8.png)
new:
http://abload.de/thumb/ts_newu7uj5.png (http://abload.de/image.php?img=ts_newu7uj5.png)
From now we dont need to grab an external calculator anymore when changing audio track lenght (sometimes Im lazy).
EDIT: removed invalid link
siella
12th March 2015, 14:51
@jones1913
sorry bro i had some problems so i couldnt look, but this week i am gone do it
jones1913
13th March 2015, 18:14
Good to see that you are still here. I have a new build almost ready, I must only do some tests and write changelog and documentation.
Best for you is to wait for this release because there are some changes and the previous one was a bit buggy. :o
jones1913
15th March 2015, 15:06
Time to bring this to an end and move on to other things. I converted all existing extensions from the repository to the new format and added also QAAC and Opus extension.
Mostly I have done only 1:1 conversion with minimal tweaks, additional functionality can be of course added at any time later.
Additionally I have ripped out some encoders out of Behappy source and provide them now as extensions (Nero-AAC, CT-AAC, Lame, Aften), because with the new extension capabilities there is no need to bloat the source code with legacy plugins.
Last but not least I rewrote parts of the control arrangement code because I was not happy with it.
Using FlowLayoutPanels for automatic control alignment was the a wrong decision. Now I use TableLayoutPanels and it works (and looks) better I think.
- bugfix: when reloading extensions then source files list was cleared instead of source plugins list
- bugfix: exceptions when loading extensions with certain configurations
- bugfix: exception if config loaded from save state not matched the extension config, now the defaults are loaded instead
- bugfix: logo was cutted off if there was only a few controls on plugin form
- replaced <Divisor> element for trackbars with <Multiplier> (is more common, to achieve the same thing)
- Radiobutton "Name" attribute now can include a "{0}" string for trackbar value representation in GUI
- added <NumericUpdown> element
- changed <DropDown> element to have separate value and caption
- show a summary of all plugin settings in main-window's plugin combobox
- added some more encoder .exes
- updated/added documentations for all extension types
Maybe someone can help me a bit with testing the encoder extensions for proper audio output...
(Especially with multichannel audio, I have no 5.1 environment available to test this)
EDIT: removed invalid link
Finally I will make a stronly needed code cleanup and then, if there are no complaints, commit the changes to SVN and make a new release.
some impressions:
http://abload.de/thumb/aften_oldipsb0.png (http://abload.de/image.php?img=aften_oldipsb0.png) ===> http://abload.de/thumb/aften_aeroizsyw.png (http://abload.de/image.php?img=aften_aeroizsyw.png)
http://abload.de/thumb/lame_old9ms2b.png (http://abload.de/image.php?img=lame_old9ms2b.png) ===> http://abload.de/thumb/lame_aeros8sn8.png (http://abload.de/image.php?img=lame_aeros8sn8.png)
http://abload.de/thumb/nero_oldshs8a.png (http://abload.de/image.php?img=nero_oldshs8a.png) ===> http://abload.de/thumb/nero_classic0asps.png (http://abload.de/image.php?img=nero_classic0asps.png)
http://abload.de/thumb/opus_old8bsim.png (http://abload.de/image.php?img=opus_old8bsim.png) ===> http://abload.de/thumb/opus_classicqas4r.png (http://abload.de/image.php?img=opus_classicqas4r.png)
http://abload.de/thumb/qaac_old1msli.png (http://abload.de/image.php?img=qaac_old1msli.png) ===> http://abload.de/thumb/qaac_classick2sw8.png (http://abload.de/image.php?img=qaac_classick2sw8.png)
LigH
15th March 2015, 19:10
:thanks:
You brought this project to another milestone!
jones1913
16th March 2015, 19:04
You brought this project to another milestone!
BeHappy 0.3 ? :D
GMJCZP
18th March 2015, 13:17
These changes also includes Fraunhofer mp3 and Fgh aac? Thanks for your effort.
jones1913
18th March 2015, 17:20
A very basic Fraunhofer MP3 plugin is there but I was not able to find the needed executable (mp3sencoder.exe) on the net to test this, all links seems to be down.
FhgAAC plugin is not yet there but can easy created.
GMJCZP
18th March 2015, 20:59
A very basic Fraunhofer MP3 plugin is there but I was not able to find the needed executable (mp3sencoder.exe) on the net to test this, all links seems to be down.
Looking at one of the packages of siella (BePack.v2).
siella
19th March 2015, 23:26
@jones1913
I've looked lame and qaac extensions
<Step> tag is not effected in Trackbar for BeHappy_testing_2015-03-15
jones1913
21st March 2015, 10:24
Looking at one of the packages of siella (BePack.v2).
Hehe sometimes the things are so close that you cant see them. The FhgMP3 plugin needed some tweaking but it works now.
I have uploaded FhgMP3 and FhgAAC plugin if you want to test. Make sure to delete the old "e_FraunhoferMP3.ext" before copying the new ones to extension directory.
EDIT: removed invalid link
@siella
<Step> element works as expected, but it describes only the ticks drawn on the trackbar, see here: https://msdn.microsoft.com/library/system.windows.forms.trackbar.tickfrequency%28v=vs.100%29.aspx
I must admit the term "step" is maybe a bit misleading, you probably expected something that "skips" the specified count of values?
Tom Keller
2nd April 2015, 22:37
Is it possible to use floating point values for a trackbar in an encoder extension? I did try to use something like 1411.2 as a bitrate value for a dcaenc extension... but it crashes BeHappy.
jones1913
3rd April 2015, 11:28
This can be achieved by playing around with the <min/max> values and <multiplier>.
<Trackbar DefaultValue="15000">
<Min>1280</Min>
<Max>15000</Max>
<Step>320</Step>
<Multiplier>0.1</Multiplier>
</Trackbar>
I have noticed again that there occurs an exception if "DefaultValue" is not set, tought I had already fixed that...
Tom Keller
3rd April 2015, 14:06
I see - thanks. But is there a similar solution for a trackbar with fixed values? Cause there might be situations, where an encoder only accepts some floating point values amongst a couple of integer values. So you can't feed him with any possible value between a certain range of values but only with some specific ones.
jones1913
3rd April 2015, 17:01
Fixed values list currently only consists of integer types. Maybe I take a look tomorrow, should be no problem to use floats instead.
I never used dcaenc, can you post some commandlines that I can see how the parameters should look?
Tom Keller
3rd April 2015, 20:59
There aren't much options for dcaenc (afaik). A basic command line for creating a *.dts file with a constant bitrate of 768kbps may look like this:
dcaenc -i "C:\Input.wav" -o "C:\Output.dts" -b 768
Since the original dcaenc does not support stdin, the dcaenc-2 (http://forum.videohelp.com/threads/348702-ffdcaenc-%28an-upgrade-to-dcaenc%29?p=2337613&viewfull=1) fork (created by 'LoRd_MuldeR (https://german.doom9.org/member.php?u=78667)') is needed in order to work properly with BeHappy. The -h parameter provides some additional infos about the command line options - but (as i said) there aren't an awful lot of them:
DCAENC --- experimental 'Coherent Acoustics' compressor.
Usage: dcaenc -i <input.wav> -o <output.dts> -b <kbps>
Optional:
-l Ignore input length, can be useful when reading from stdin
-e Set the byte-order to 'Little-Endian' (default is 'Big-Endian')
-h Print this help screen
-c Overwrite the channel configuration (default is: auto-selection)
-f Add an LFE channel (default: used for 6-channel input)
-v Show version info
DETAILS:
The input .WAV file must be either 16-bit or 32-bit integer;
the input or output file name can be "-" for stdin/stdout.
The bitrate is specified in kilobits per second and may be rounded up;
floating-point values are allowed.
* Available channel-layouts:
- 1: A
- 2: A, B
- 3: L, R
- 4: (L+R), (L-R)
- 5: Lt, Rt
- 6: FC, FL, FR
- 7: FL, FR, BC
- 8: FC, FL, FR, BC
- 9: FL, FR, BL, BR
- 10: FC, FL, FR, BL, BR
- 11: CL, CR, FL, FR, BL, BR (not supported)
- 12: FC, FL, FR, BL, BR, OV (not supported)
- 13: FC, BC, FL, FR, BL, BR (not supported)
- 14: CL, FC, CR, FL, FR, BL, BR (not supported)
- 15: CL, CR, FL, FR, SL1, SL2, SR1, SR2 (not supported)
- 16: CL, FC, CR, FL, FR, BL, BC, BR (not supported)
[more info in the file 'uncommon-channel-layouts.mht']
* Valid sample rates (in kHz):
8 11.025 12 16 22.05 24 32 44.1 48
* Transmission bitrates (in kbps):
32 56 64 96 112 128 192 224
256 320 384 448 512 576 640 768
960 1024 1152 1280 1344 1408 1411.2 1472
1536 1920 2048 3072 3840 open VBR LOSSLESS
I created a rudimentary BeHappy extension for dcaenc-2 which works kind of well:
http://s000.tinyupload.com/index.php?file_id=88627149444811312474
I write "kind of", because dcaenc has some restrictions you have to deal with. For instance: 24bit and 32bit float input isn't supported. But since most AviSynth audio source-plugins deliver 32bit float audio, a line for converting the audio to 32bit integer has to be inside the extension, which is a bit bothering.
There's even another dcaenc fork: ffdcaenc (http://forum.videohelp.com/threads/348702-ffdcaenc-%28an-upgrade-to-dcaenc%29?p=2337613&viewfull=1#post2337613), with 24bit input support and options for a more DTS-CD- and DVD-Video-compliant output - which may be the best one of all the dcaenc forks:
FFDCAENC --- experimental 'Coherent Acoustics' compressor.
Usage:
ffdcaenc -i <input.wav> -o <output.dts> -b <bitrate_kbps>
Optional:
-l Ignore input length, can be useful when reading from stdin
-e Switch output endianess to Little Endian (default is: Big-Endian)
-r Reduced Bit Depth for DTS CD format (default is: Full Bit-Depth)
-h Print this help screen
-c Overwrite the channel configuration (default is: auto-selection)
-f Add an additional LFE channel (default: used for 6-channel input)
-m Multiple Mono input files (default: -i for multi-channel input file)
Use -0 <input.wav> -1 <input.wav> etc. (up to -5) Channels are in ITU order:
0,1,2,3,4,5 --> LF, RF, C, LFE, LS, RS
The following mono input file combinations are supported:
1.0 -2 center.wav
1.1 -2 center.wav -3 lfe-wav
2.0 -0 left.wav -1 right.wav
2.1 -0 left.wav -1 right.wav -3 lfe.wav
3.0 -0 left.wav -1 right.wav -2 center.wav
3.1 -0 left.wav -1 right.wav -2 center.wav -3 lfe.wav
4.0 -0 left.wav -1 right.wav -4 ls.wav -5 rs.wav
4.1 -0 left.wav -1 right.wav -4 ls.wav -5 rs.wav -3 lfe.wav
5.0 -0 left.wav -1 right.wav -2 center.wav -4 ls.wav -5 rs.wav
5.1 -0 left.wav -1 right.wav -2 center.wav -4 ls.wav -5 rs.wav -3 lfe.wav
-v Show version info
REMARKS:
The input or output filename can be "-" for stdin/stdout.
The bitrate is specified in kilobits per second and may be rounded up
-- use floating-point values for bitrates that are not a multiple of 1 kbps.
Because the encoder uses a 4-byte granularity, i.e., 32 bits per audio frame
(with 512 samples/frame), the ACTUAL bitrate will always be a multiple of:
3 kbps for 48 kHz
2.75625 kbps for 44.1 kHz
2 kbps for 32 kHz
1.5 kbps for 24 kHz
1.378125 kbps for 22.05 kHz
1 kbps for 16 kHz
0.75 kbps for 12 kHz
0.6890625 kbps for 11.025 kHz
0.5 kbps for 8 kHz
-- NOTICE: the values 754.5 and 1509.75 AT _48kHz_ are an exception.
* Available channel-layouts:
- 1: A
- 2: A, B
- 3: L, R
- 4: (L+R), (L-R)
- 5: Lt, Rt
- 6: FC, FL, FR
- 7: FL, FR, BC
- 8: FC, FL, FR, BC
- 9: FL, FR, BL, BR
- 10: FC, FL, FR, BL, BR
- 11: CL, CR, FL, FR, BL, BR (not supported)
- 12: FC, FL, FR, BL, BR, OV (not supported)
- 13: FC, BC, FL, FR, BL, BR (not supported)
- 14: CL, FC, CR, FL, FR, BL, BR (not supported)
- 15: CL, CR, FL, FR, SL1, SL2, SR1, SR2 (not supported)
- 16: CL, FC, CR, FL, FR, BL, BC, BR (not supported)
* Valid sample rates (in kHz):
8 11.025 12 16 22.05 24 32 44.1 48
* Transmission bitrates (in kbps):
32 56 64 96 112 128 192 224
256 320 384 448 512 576 640 768
960 1024 1152 1280 1344 1408 1411.2 1472
1536 1920 2048 3072 3840 open VBR LOSSLESS
But it doesn't change THAT much for its usage with BeHappy.
I have to admit: it's not mandatory necessary to feed the encoder with floating point bitrate values, since every incarnation of dcaenc does some internal roundings for any given bitrate (depending on the sample rate). But i thought it may be useful to have the option to add floating point numbers as fixed values to a trackbar... and maybe(???) letters too? Therefore it would be possible to use trackbars/sliders in extensions for some other purposes than "just" setting up the bitrate.
tebasuna51
3rd April 2015, 21:06
About the free DTS encoder I recommend use ffdcaenc (a fork of dcaenc): http://forum.doom9.org/showthread.php?p=1688150#post1688150
Accept wav int (16, 24 or 32) but not float (dcaenc don't accept 24 int), and make:
- CD-compatible DTS files from a multichannel 44.1KHz sample rate file:
ffdcaenc -i - -o output.dts -e -r -b 1411.2
- DVD-compatible tracks from a multichannel wav file 48 kHz sample rate:
ffdcaenc -i - -o output.dts -l -b 1509.75 (Transmission bitrate 1536)
ffdcaenc -i - -o output.dts -l -b 754.5 (Transmission bitrate 768)
Other options in README and ffdcadec -h
Edit: same time than Tom Keller
jones1913
4th April 2015, 10:49
I have to admit: it's not mandatory necessary to feed the encoder with floating point bitrate values, since every incarnation of dcaenc does some internal roundings for any given bitrate (depending on the sample rate). But i thought it may be useful to have the option to add floating point numbers as fixed values to a trackbar... and maybe(???) letters too?
Easy solution: trackbar fixed values list is now of "String[]" type, you can use numbers or letters or whatever you want now. :cool:
And the bug with the exception in case of missing "DefaultValue" attribute is fixed.
Therefore it would be possible to use trackbars/sliders in extensions for some other purposes than "just" setting up the bitrate.
Yes but keep in mind that there only one trackbar exists assigned to currently selected radiobutton. When using the trackbar for other parameters then the bitrate must be set with another control eg. with a dropdown.
Btw. dcaenc extension looks good.
EDIT: removed invalid link
Tom Keller
4th April 2015, 22:25
Thanks a lot 'jones1913' - looking forward to do some tests with the new version.
Btw i did some changes to the dcaenc extension and modified it for ffdcaenc:
http://s000.tinyupload.com/index.php?file_id=76826108398181592540
The trackbar now uses 0.05 steps to allow pretty precise bitrate settings for most situations. Because of the wide bitrate range i increased the dialog width in order to make the trackbar usable. I also added the new "reduce bitrate" option and introduced some advices in the tool tips for creating dts files for DTS-CDs.
tebasuna51
5th April 2015, 10:01
...and introduced some advices in the tool tips for creating dts files for DTS-CDs.
Works fine.
Also we can modify:
<ToolTip>Constant Bitrate mode. In order to create DVD-BD compliant files use 1509.75 or 754.5 kb/s.</ToolTip>
Tom Keller
5th April 2015, 14:15
I thought about that - but i was unsure, if the DVD and/or BD specs may allow some lower bitrates for 1- and 2-channel DTS files too.
tebasuna51
5th April 2015, 18:19
I thought about that - but i was unsure, if the DVD and/or BD specs may allow some lower bitrates for 1- and 2-channel DTS files too.
Of course there are others bitrates allowed, but this ones are the standard for 5.1.
I can't understand for what use DTS to encode mono or stereo.
Tom Keller
5th April 2015, 19:15
A couple of years ago i didn't even know that movie releases with DTS mono or stereo sound existed... 'till someone mentioned to me having an old movie on Bluray with a DTS stereo track. I don't remember which movie it was and i didn't believe him at first - but he sent me a snippet for prove. I don't know why the BD producers used DTS for the stereo audio track of the movie... but they did it nonetheless.
Long story made short:
Even if it's uncommon, there may be users out there trying to create (for whatever reason) DTS 1- and 2-channel files for their DVDs or Blurays. So i would simply suggest writing ;) :
<ToolTip>Constant Bitrate mode. In order to create DVD-BD compliant 6-channel files use 1509.75 or 754.5 kb/s.</ToolTip>
Btw. just out of interest @tebasuna51:
Why didn't you add the 6.1-to-5.1 and 7.1-to-5.1 downmix setups you posted a couple of years before as two additional downmix options to BeHappy :confused: :
http://forum.doom9.org/showthread.php?p=1465361#post1465361
siella
7th April 2015, 21:51
I edited e.dcaenc.ext for ffdcaenc (http://forum.doom9.org/showthread.php?t=170952) i changed some little options and logo. Btw. i added yours tooltip :)
http://i.imgbox.com/SOOxDtIx.png
I edited e_FhgMP3.ext. too
I added tooltip for cbr and replaced min max of Trackbar with fixed value.
Also i fixed e_Flac.ext. There was problem with wav header.
@jones1913
Can you add end of box tex area for note. e.g. " it's only support 1 2 or 6 channels audio input"
Additionally There are a lot of config info at encoder select box. So when I reopen behappy, windows is expanding on the screen. could you make it as optional that who appear on selected info .
Also i tried NumericUpdown and Dropdown without Radiobutton and TitleFormatString and it was appeared fisrt "???" at selected info.
tebasuna51
8th April 2015, 14:11
Btw. just out of interest @tebasuna51:
Why didn't you add the 6.1-to-5.1 and 7.1-to-5.1 downmix setups you posted a couple of years before as two additional downmix options to BeHappy :confused: :
http://forum.doom9.org/showthread.php?p=1465361#post1465361
I don't use these downmix now to avoid Normalize and low the volume of front channels.
Now I use:
flr = Getchannel(a, 1, 2, 3, 4)
blr = Getchannel(a, 5, 6)
slr = Getchannel(a, 7, 8)
sur = MixAudio(blr, slr, 1.0, 1.0).SoftClipperFromAudX(0.0)
return mergechannels(flr,sur)
We need AudioLimiter.dll http://forum.doom9.org/showthread.php?t=108470
Added to d_DownMix.ext, downloads:
jones1913
9th April 2015, 16:32
First thanks for all contributions, I am happy to integrate them in the next release.
I edited e.dcaenc.ext for ffdcaenc i changed some little options and logo.
You have used another approach for bitrate setting, but I will only integrate one ffdcaenc extension in Behappy.
I can not decide which is better, because I'm not interested in DTS encoding...
Can you add end of box tex area for note. e.g. " it's only support 1 2 or 6 channels audio input"
Somehow I dislike the idea of writing help text in the config window...
And if the encoder not support the audio input then you see it on the exception thrown :p
Additionally There are a lot of config info at encoder select box. So when I reopen behappy, windows is expanding on the screen.
On my machine the text is simply cutted off, the window never expands itself.
could you make it as optional that who appear on selected info .
An additional parameter for each option to specify if it should be shown in summary? Probably not...
Also i tried NumericUpdown and Dropdown without Radiobutton and TitleFormatString and it was appeared fisrt "???" at selected info.
I will check this next time.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.