Log in

View Full Version : BeHappy - AviSynth based audio transcoding tool (UPD 19-07-2006)


Pages : 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

shon3i
17th August 2006, 20:40
really Normalize work fine. Yes and i don't say anything about normalize because do great work, but ppl and me whan't very loud files like AutoGK mp3 files when playing, because PowerDVD gain ac3 when playing. Aslo HybridGained mp3 files are about 5db differents then only normalized mp3's

tebasuna51
17th August 2006, 22:58
Yes and i don't say anything about normalize because do great work, but ppl and me whan't very loud files like AutoGK mp3 files when playing, because PowerDVD gain ac3 when playing.
My PowerDVD 6 player offer this options:
- Quiet Environment: experience the full dynamic range of Dolby Digital Surround. (== without DRC)

- Normal Environment: experience the compressed dynamic range of Dolby Digital Surround. (== with DRC)

- Noisy Environment: experience boosted sound. Strongly recommended for notebook users. (== with DRC boosted)

Do you want make your audio something boosted permanently?
This can't be recovered, after encoded you never can "experience the full dynamic range of Dolby Digital Surround" in a Quiet Environment. This options are for player time.

Use foobar, bsplayer (with ffdshow) with common DSP's for all codecs to listen ac3 and aac.
Aslo HybridGained mp3 files are about 5db differents then only normalized mp3's
Sorry, the only way to obtain a file 5 dB more loud than a normalized is with clips or distort.

shon3i
18th August 2006, 16:14
Use foobar, bsplayer (with ffdshow) with common DSP's for all codecs to listen ac3 and aac.
I will try thanks for tip.

Sorry, the only way to obtain a file 5 dB more loud than a normalized is with clips or distort.
It is with clips, but file is hard limited so then there is no distorsions.

EDIT:

BTW New package (http://www.box.net/public/1hvgoifeyd) is out, changelog (http://forum.doom9.org/showpost.php?p=829754&postcount=259)

fight2win
22nd August 2006, 05:57
aud-x encoding has been updated to v1.23, i think v1.2.0 is being used in behappy, can someone please update that?

dimzon
22nd August 2006, 22:22
new Aften configuration dialog (in progress)
http://img206.imageshack.us/img206/5256/aftengq8.png

raquete
23rd August 2006, 00:17
seems cool dimzon.

:thanks:

BigDid
23rd August 2006, 03:48
new Aften configuration dialog (in progress)
Nice, I will have a dozen more possibilities to get confused (joke). Hurry up for the release (re-joke) :D
Continue the good work, :thanks:

Did

anonymez
19th September 2006, 12:56
couple of suggestions if i may, been using behappy for a while but 2 things that'll make it a little easier to use for those of us that use it often :)

- a 'clear all' button in the queue tab
- when input file is selected, output file name should be adjusted accordingly (otherwise when loading multiple files it just writes over the previous job)

thx dimzon :)

NorthPole
7th October 2006, 00:56
@tebasuna51

My first C# program, using enc_AudX_CLI.cs scheme I change the body code to obtain Wav2mono.exe.

This program can split in mono wav's any stereo or 6 channel wav accepting STDIN input. Then can be used with BeHappy to obtain mono wav´s like output instead Wav writer, this replace a BeSweet/BeLight functionality not supported yet by BeHappy.

Tried using wav2mono by piping directly from a 6ch flac file to wav2mono output files with the following command line.


c:\<path>\flac.exe -d -s test.flac -c | c:\<path>\wav2mono.exe - ch.wav

runs ok but output is just pulsing static

if i run without stdin directly from a wav file it works fine.

here is the info I got by running wavinfo.exe on each file. The first one is the front center channel from the flac stdin file that sounds bad.
(Note: the source flac file plays fine in fb2k.)

C:\Temp>wavinfo ch_fc from flac.wav

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
File:
Name: ch_fc.wav
File Size: 27464079
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 48000 Hz
Avg bytes/sec: 0
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 27464035
Samples: 13732017
Playing Time: 286.08 sec
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

here is the fc.wav generated from a wave file without stdin

C:\Temp>wavinfo ch_fc from wave.wav

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
File:
Name: ch_fc.wav
File Size: 27474282
Format:
Type: Microsoft PCM
Channels: 1
Sample Rate: 48000 Hz
Avg bytes/sec: 0
Block Align: 2 bytes
Bit Width: 16
Channel Mask: 0x004
Data:
Start: 44
Data Size: 27474238
Samples: 13737119
Playing Time: 286.19 sec
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I have been using bepipe to generate 3 stereo files but you program runs faster :D

the bepipe code is

c:\<path>\bepipe.exe --script GetChannel("DirectShowSource(^6chtest.flac^), 1, 2)" > flfr.wav
c:\<path>\bepipe.exe --script GetChannel("DirectShowSource(^6chtest.flac^), 3, 4)" > clfe.wav
c:\<path>\bepipe.exe --script GetChannel("DirectShowSource(^6chtest.flac^), 5, 6)" > slsr.wav

Any ideas?

NorthPole
7th October 2006, 02:51
@dimzon

Sorry about being off topic, probably should have put these posts in the bepipe thread.

@tebasuna51

this bepipe code works OK

c:\<path>\bepipe.exe --script "DirectShowSource(^6chtest.flac^)" | c:\<path>\wav2mono.exe - ch.wav

tebasuna51
7th October 2006, 03:32
@NorthPole
Yes, I test BeHappy/Bepipe/foobar (http://forum.doom9.org/showthread.php?p=876671#post876671) -> Wav2mono and work Ok
Also:

flac.exe -d -s test.flac -c > test.wav
wav2mono.exe test.wav
But:

flac.exe -d -s test.flac -c | wav2mono.exe - ch.wav
don't work. Seems lose some info and mix values and channels.
I don't know what is the problem.

tebasuna51
10th October 2006, 16:25
1) wav2stereo
I have been using bepipe to generate 3 stereo files but you program runs faster :D

the bepipe code is

c:\<path>\bepipe.exe --script GetChannel("DirectShowSource(^6chtest.flac^), 1, 2)" > flfr.wav
c:\<path>\bepipe.exe --script GetChannel("DirectShowSource(^6chtest.flac^), 3, 4)" > clfe.wav
c:\<path>\bepipe.exe --script GetChannel("DirectShowSource(^6chtest.flac^), 5, 6)" > slsr.wav

Any ideas?
I can't make work:

flac -d -s -c 6chan.flac | wav2mono - ch.wav

(works with 2chan.flac)
But maybe this can help:
bepipe --script"DirectShowSource(^6chtest.flac^)" | wav2stereo - st.wav
Also wav2stereo can work with foobar like flac decoder.
The output is st_FLFR.wav, st_CLFE.wav and st_SLSR.wav.

2) wav2mono v1.0.0.2
Some changes, now accept 2/3/4/5/6 channels and a new parameter:
-ignorelength If present the length in wav header is ignored, useful for wav > 2/4 GB. Problem: extrachunks at end of file treated as data (Default in previous version, now default use the datalength)

Now the wrong header and the final extrabytes generated by Bepipe are ignored by default.

3) WavNotEx
Testing AviSynth v2.5.7 RC-1 with Bepipe I see the method WavSource() works with wav 8/16/24/32 bits int and with 32 bits float but not with header WAVE_FORMAT_EXTENSIBLE.

I make a instantaneous wav patcher to permit the use for WavSource()-AviSynth, SoftEncode, BeSweet, and maybe another software not WAVE_FORMAT_EXTENSIBLE header compliant.

Example, is know than Faad decoder make this kind of wav output and work with:
Faad -o wav_ex.wav input.aac
WavNotEx -p -q wav_ex.wav
Bepipe --script "WavSource(^wav_ex.wav^).Normalize()" | aften -b 448 - output.ac3
WavNotEx -q wav_ex.wav

4) The three utils, sources, etc. in WavUtil.zip (http://rapidshare.com/files/3572747/WavUtil.zip.html) (only 23 KB)

5) @Dimzon
Like you can see there are many uses for Bepipe. The AviSynth v2.5.7 RC-1 test (new output 32 bits float) is not possible with BeHappy because AvisynthWrapper.dll convert always the audio to 16 bit int.

With Bepipe I get outputs 32 bits int/float

NorthPole
14th October 2006, 13:58
4) The three utils, sources, etc. in WavUtil.zip (http://www.mytempdir.com/982606) (only 23 KB)

5) @Dimzon
Like you can see there are many uses for Bepipe. The AviSynth v2.5.7 RC-1 test (new output 32 bits float) is not possible with BeHappy because AvisynthWrapper.dll convert always the audio to 16 bit int.

With Bepipe I get outputs 32 bits int/float

@tebasuna51,

Thanks for the wav2mono fixes. I'll try them out along with the other utillities...let you know if I have any problems.

@dimzon,

I agree with tebasuna that bepipe is a very useful tool that you can include in a batch file as needed.

sjchmura
23rd October 2006, 20:41
.GRF/DirectShowSource as input....

I wanted to use BeHappy to use a .GRF file with the AVISynth (stable release) DirectShowSource so I could encode with FFDSHOW HFRT

So under Graphedit:

DTS/AC3 -> FFDSHOW (HFRT eneabled) -> WAVEOUT -> File Writer (So my iPOD gets 5.1 HFRT :)

How can I impliment the .GRF under BeHappy - am I missing something simple???

tebasuna51
22nd November 2006, 12:17
@Dimzon. I see your recent posts. If you have some time for us now, here is my petition list. Thanks.

- The last Bepipe version have the same bugs detected for early BeHappy:
Bugs
The last buffer send to the encoder can be incomplete but is send complete, then there are extrabytes at end.
The RiffChunkSize in wav header is incorrect.
About the first bug you wrote:
Finally I found a bug in Microsoft VfW AVIStreamRead function - it still "read" data even if EOF is alredy occured....
and the second is solved also in BeHappy.
We need a new version or the sources (in the web there are only the previous version source .NET FrameWork v1.1)

- The new encoder options of Aften must include now DRC (last versions is only for test but the syntax can be definitive):
[-dynrng #] Dynamic Range Compression profile
0 = Film Standard
1 = Film Light
2 = Music Standard
3 = Music Light
4 = Speech
5 = None (default)

- We need an AviSynth aac 5.1 decoder instead use the problematic DirectShowSource method. Maybe the new BassAudio v2.3 libraries can do, but the bassaudio.dll plugin work only with v2.2.

- The next AviSynth v2.5.7 not only accept 32-Float wav, also can output 32-Float. Actually the AvisynthWrapper.dll limit the audio output to 16 bit int.

BigDid
22nd November 2006, 21:27
@Dimzon...

- The new encoder options of Aften must include now DRC (last versions is only for test but the syntax can be definitive):
[-dynrng #] Dynamic Range Compression profile
0 = Film Standard
1 = Film Light
2 = Music Standard
3 = Music Light
4 = Speech
5 = None (default)
...
Hi Dimzon,

+1 for the DRC in Aften.
Even if exists with the NIC audio source with DRC, I believe the Aften option is an improvement and also it can be tuned :)

Did

miztadux
29th November 2006, 14:10
Hello,

I'm new to BeHappy.
The main reason I am interested is being able to use the same avs script used to edit the video to encode the audio.

First of all I'd like to thank you for it, it seems to be a really well done app, and i'm looking forward to use it in replacement of besweet (even if dimzon's plugins enabled besweet to stay somewhat up-to-date, thank you for that too!)

After some testing, i got a question and a problem to submit:

Question:
My goal is to reuse, in BeHappy, a .avs full of "duplicateframe" and "trim" to get an audio in perfect sync with the edited video from this very script. (I used to open it in vdub to extract uncompressed audio, i hope behappy can help me avoid this "uncompressed data to hard drive" step).
I tried it but "trim" can only work if there's a video part in the script, so i cannot use a script with audio source only...
My Idea was to use something like this as an avisynth source in behappy:
vid = blankclip(fps=23.976, length=154202)
aud = NicAc3Source('en.ac3')
audiodub(vid, aud)

trim(X,Y)...
duplicateframe...

My question is:
How would you do this ?
Does this way (using a blankclip+audiodub) seems OK ?
(i never actually ran this test, see bellow... )

Problem:
When I was happy with the generated avs/preview I tried to actually convert something, and there I was bitten by a 64bit .Net problem discussed here (http://forum.doom9.org/showthread.php?t=106740) for MeGUI (ok, after some experiences i now know that 64bit windows isn't supported anywhere):

With default compiler options, the .net exe will be re-compiled to 64bit on a 64bit host, appart from affecting the precision of floating point calculations (and maybe performance) it now generates an error when trying to load a 32bit dll.

Long story short, i was able to run behappy after a little "corflags.exe /32BIT+ BeHappy.exe" (even tho the 350MB sdk pack took forever to download at the 50kB/s ms would allow me to use...and left me with no more time to test the app.)
But the linked post about MeGui suggests that adding a compiler option would solve this problem once and for all:
The solution is to add /platform:x86 to the C# compiler options.

Sorry if this problem was already reported here, i failed to find it.


Thanks again for this great app!

Priyatam
27th February 2007, 03:46
Starting job Lucia.mp3->Lucia.ac3
Found Audio Stream
Channels=2, BitsPerSample=16, SampleRate=44100Hz
Aften.exe -v 0 -b 448 -m 1 -s 0 -cmix 0 -smix 0 -dsur 2 -dnorm 31 - "D:\Songs\Lucia.ac3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Error: System.IO.IOException: The pipe has been ended.


i'm getting this error when trying to convert mp3/wmv to ac3. can anyone help me plz

BigDid
27th February 2007, 06:08
i'm getting this error when trying to convert mp3/wmv to ac3. can anyone help me plz

Hi, works:
Starting job Essai448KbpsCutNormEss.mp3->Essai448KbpsCutNormEss vers ac3.ac3
Found Audio Stream
Channels=1, BitsPerSample=16, SampleRate=48000Hz
Aften.exe -v 0 -b 448 -m 1 -s 0 -cmix 0 -smix 0 -dsur 2 -dnorm 31 - "J:\Audios progs\Essai448KbpsCutNormEss vers ac3.ac3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Finalizing encoder
for directshow source and Nic Mpg123 source,
With Aften 0.06 from last Kurtnoise build,
Behappy 0.1.9.5241 (20060719 package).

Did

Chumbo
3rd March 2007, 02:30
new Aften configuration dialog (in progress)
http://img206.imageshack.us/img206/5256/aftengq8.png
Was wondering if this is still in the works? If so, may I ask for a "wish feature" please? Increase the top VBR from 448 to 1024? Many thanks. :)

tebasuna51
3rd March 2007, 03:25
The actual interface is:
http://img91.imageshack.us/img91/5241/aftenbehgx2.png (http://imageshack.us)
You can see the Quality parameter for VBR encoding go to 1023, like say the Aften specs:
[-q #] VBR quality
A value 0 to 1023 which corresponds to SNR offset, where
q=240 equates to an SNR offset of 0. 240 is the default value.

For CBR encoding the up limit is 640 Kb/s

There are other important wished features like:
Dynamic Range Compression
-readtoeof (http://forum.doom9.org/showthread.php?p=962477#post962477)

but seems Dimzon is missing and the new interface must wait.

Chumbo
3rd March 2007, 07:10
Ah, thank you. Not getting enough sleep. Yeah it was the command parameters that triggered my asking this actually. ;) I got the two mixed up, so sorry about that.

I meant to ask for CBR to 640Kbps. Okay, now time to go to sleep. ZZZzzz...

Chumbo
3rd March 2007, 20:43
I was able to find the source code, change the maximum CBR setting to 640 and recompile. I hope you find this useful and that it was okay to do this. Attached is the modified .exe file.

[EDIT]removed attachment. See new mod in a later post.

Mtz
4th March 2007, 18:36
Can you compile to support the latest version of aften?
http://forum.doom9.org/showthread.php?p=947643#post947643

Chumbo
4th March 2007, 21:27
Can you compile to support the latest version of aften?
http://forum.doom9.org/showthread.php?p=947643#post947643
I looked at the aften source code and it does allow for piping, so I'm not sure why that's happening.

I wanted to switch the input order back to how it used to be, i.e., output var first and input last. However, I'm unable to get the dang thing compiled using the latest build.

I've not used Intel's compiler so I'm not sure what's causing this this. Anyone who can point me in the right direction please would be greatly appreciated.

The source project files were kindly provided by wisodev here (http://forum.doom9.org/showthread.php?p=961941#post961941).

I'm not sure how those dpi files are supposed to be created is my problem.

xilink: executing 'link'
Creating library output/aften.lib and object output/aften.exp
a52enc.c
d:\PROGRA~1\Intel\Compiler\C__~1\9.1\Ia32\Bin\profmerge: no .dyn files to merge.

ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/a52enc.c (code 1)
bitalloc.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/bitalloc.c (code 1)
bitio.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/bitio.c (code 1)
crc.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/crc.c (code 1)
dynrng.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/dynrng.c (code 1)
exponent.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/exponent.c (code 1)
filter.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/filter.c (code 1)
mdct.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/mdct.c (code 1)
util.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/util.c (code 1)
window.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/window.c (code 1)
exponent_common.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../libaften/exponent_common.c (code 1)
Fatal error cannot open "output/a52enc.obj"
xilib: error: problem during multi-file optimization compilation (code 1)
xilib: error: problem during multi-file optimization compilation (code 1)
aften.c
d:\PROGRA~1\Intel\Compiler\C__~1\9.1\Ia32\Bin\profmerge: no .dyn files to merge.

ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../aften/aften.c (code 1)
opts.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../aften/opts.c (code 1)
wav.c
ERROR: feedback file "output\pgopti.dpi" missing.
compilation aborted for ../aften/wav.c (code 1)
Fatal error cannot open "output/aften.obj"
xilink: error: problem during multi-file optimization compilation (code 1)
xilink: error: problem during multi-file optimization compilation (code 1)

tebasuna51
5th March 2007, 01:09
Can you compile to support the latest version of aften?
Please test this version BeHappy_Aften449 (http://www.mytempdir.com/1241884).

The interface is changed to:
http://img152.imageshack.us/img152/7558/behappyaften449im7.png (http://imageshack.us)

Changes:
1) CBR is rounded to a valid value when is send to Aften (see AftenEncoder.cs). Upper limit extended to 640 Kb/s.

2) Dinamic Range Compression instead BandWidth

3) Read to End of File instead Selectively use 256-point MDCT

First test with aften rev449 seems ok:
Starting job J6.wav->J6.ac3
Found Audio Stream
Channels=6, BitsPerSample=16, SampleRate=48000Hz
Aften.exe -v 0 -b 448 -m 0 -readtoeof 1 -cmix 0 -smix 0 -dsur 0 -dnorm 31 -dynrng 5 - "G:\J6.ac3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Finalizing encoder
Complete

Chumbo
5th March 2007, 01:42
Thanks for doing that. It's also real easy to change the max 448 to 640 in AftenEncoder.cs. Just replace the two 448 values with 640. That way the support for 640kbps is available via Aften. :)

[EDIT] @tebasuna51
Your copy works great. I recompiled after I set the aften max back to 640 and it did not stop with the "pipe has ended" io exception message. Nice job. And nice job on the new options too. :) Do you want me to attach my version with the 640kbps cbr or do you want to just recompile yours and update the link above?

tebasuna51
5th March 2007, 10:46
Thanks for doing that. It's also real easy to change the max 448 to 640 in AftenEncoder.cs. Just replace the two 448 values with 640. That way the support for 640kbps is available via Aften. :)

[EDIT] @tebasuna51
Your copy works great. I recompiled after I set the aften max back to 640 and it did not stop with the "pipe has ended" io exception message. Nice job. And nice job on the new options too. :) Do you want me to attach my version with the 640kbps cbr or do you want to just recompile yours and update the link above?

My initial version have already the CBR limit to 640 (only the initial default remain at 448). You can see the image at 437 Kb/s far of right limit (640).

Chumbo
5th March 2007, 19:17
Very cool, thanks.

Deckard2019
5th March 2007, 21:34
First test with aften rev449 seems ok:
It works for me too :
Starting job aud.avs->aud.ac3
Found Audio Stream
Channels=6, BitsPerSample=16, SampleRate=48000Hz
Aften.exe -v 0 -b 640 -m 0 -readtoeof 1 -cmix 0 -smix 0 -dsur 0 -dnorm 31 -dynrng 5 - "D:\aud.ac3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Finalizing encoder
Complete

But I don't know if these settings are ok for a DD+ source.
What about LFE for instance ? Is channel mapping ok ?

Thank you tebasuna51 ...

tebasuna51
6th March 2007, 01:31
But I don't know if these settings are ok for a DD+ source.
Of course is not DD+ compliant (6 Mb/s, 13.1 channels,...)
What about LFE for instance ?
If input is 6 channel only can be 3/2.1 then LFE is included.

Really Aften have many parameters, only the habitual/important are present now.
Is channel mapping ok ?
Of course, if sources are correct mapped the output is also correct.

Chumbo
7th March 2007, 06:17
I added to the mods made by tebasuna51. I basically added the features I would use a lot:
- added Delete All to quickly remove all the jobs except the one that is processing
- added check box to allow you to keep any output created if you decide to abort early or if an error occurs

I hope this is helpful. Please test it out. Thank you.

The Aften config is different, so make sure to go in and set it to your liking. I just left my defaults in.

[EDIT] removed attachment. See updated mod in later post.

yonta
7th March 2007, 10:06
@Chumbo
Thank you for the mods. Should be very useful to us all.

One request:
Can you make BeHappy remember last window position and size?
BeHappy starts out with a too big window and at random positions. This is sometimes very annoying.

Chumbo
9th March 2007, 03:48
One request:
Can you make BeHappy remember last window position and size?
BeHappy starts out with a too big window and at random positions. This is sometimes very annoying.
Yeah, I hate this too actually. I just had some time, so I put it in for me as much as you. :)

changes:
- default window size is 800x400 now
- once you close it it'll save the size and position state

File includes exe, changed code and sample of new section in state file. Get it here (http://www.mytempdir.com/1247964).

Happy testing...

tebasuna51
9th March 2007, 12:37
Please use links like http://www.mytempdir.com/ or similar to attach files, because with the forum method remain several days in "Attachments Pending Appoval" state.

I can't still test the previous mod.

Chumbo
9th March 2007, 16:33
Oh, crap. I didn't even notice the pending approval. I need to find some off-site hosting then.

I used the site you provided, thank you. Try this (http://www.mytempdir.com/1247964) link.

tebasuna51
9th March 2007, 18:48
Thanks Chumbo.

Tested your new version and work fine.

yonta
10th March 2007, 02:00
Thank you, Chumbo and tebasuna51 for the modifications.
It works just fine.

alwa
10th March 2007, 13:00
Thanks for your work too!
And i did some minor changes by myself:
- made the Ensure MP3 VBR Sync checkbox work
- target filename will change now after loading an new source file
- aften encoder GUI bitrate trackbar improvement :rolleyes:

You can get the Update here (http://www.mytempdir.com/1248977)

shon3i
10th March 2007, 23:47
Can you guy's, make rounded bitrate in CT encoder, and i will make new Package?

Chumbo
10th March 2007, 23:52
Thanks for your work too!
And i did some minor changes by myself:
- made the Ensure MP3 VBR Sync checkbox work
- target filename will change now after loading an new source file
- aften encoder GUI bitrate trackbar improvement :rolleyes:

You can get the Update here (http://www.mytempdir.com/1248977)
This includes the mods made by me and tebasuna51 right? Just want to be sure. :) Thank you.

[EDIT] I went ahead and grabbed and it looks like it has the previous mods rolled in. Cool, thanks.

Chumbo
11th March 2007, 04:03
Can you guy's, make rounded bitrate in CT encoder, and i will make new Package?
Is this what you're looking for? I've not used aac so please test it first to make sure it works correctly. Includes all previous mods in this thread. Get it here (http://www.mytempdir.com/1249872).

- changed the range to 8 - 320 instead of 8000 - 32000 (still displays correctly, just internal math)
- on save, I multiply the value by 1024 (let me know if this is not correct, i.e., if it should be 1000)

shon3i
11th March 2007, 13:43
Yes, that is that, thanks. Works correctly, but

- on save, I multiply the value by 1024 (let me know if this is not correct, i.e., if it should be 1000)

should be 1000, because when i use 128 for bitrate, input bitrate should be 128000, not 131072

can you correct this aslo.

Thanks

tebasuna51
11th March 2007, 14:02
Can you guy's, make rounded bitrate in CT encoder, and i will make new Package?

For what? CT encoder accept any value without error, and what are the rounder criterium for CT aac?

Is true the CT interface is not clear because:
Stereo Multichannel MaxBitrate
------ ------------ ----------
AAC-LC Yes Yes 320000
AAC-HE (SBR) AAC+ Yes Yes 212000
AAC-HE+PS AAC+v2 Yes - 48000
AAC-HIGH Yes - 256000

But always we obtain correct result because CT encoder override the interface parameters (don't use PS or HIGH for 6 channels, limits and round the bitrate, ...)

shon3i
11th March 2007, 14:20
For what? CT encoder accept any value without error, and what are the rounder criterium for CT aac?
Yes, but what i get if i use 128.656 instead 128 really. Becuase CT is CBR encoder, should have CBR values (8-320) like in winamp. It is hard to choose right bitrate moving slider with mouse right? That is my point.

Is true the CT interface is not clear because:


Stereo Multichannel MaxBitrate
------ ------------ ----------
AAC-LC Yes Yes 320000
AAC-HE (SBR) AAC+ Yes Yes 212000
AAC-HE+PS AAC+v2 Yes - 48000
AAC-HIGH Yes - 256000

close enough

The right table is:

Stereo Multichannel MaxBitrate
------ ------------ ----------
AAC-LC Yes Yes 320000
AAC-HE (SBR) AAC+ Yes Yes 128000, 213000 for Multichannel
AAC-HE+PS AAC+v2 Yes - 64000
AAC-HIGH Yes - 256000, 32000 if Independed Stereo used

alwa
11th March 2007, 16:29
So, i did it again :p .

The package includes the previous mods
+ CT Changes with multiplier 1000
+ extensions can now be stored either in the "ext" directory or like before
+ .config moved to the BeHappy.state file (unlovely, but it works)
+ DirectShowSource(... , video=false)
+ moved GuiPosition class to Configuration.cs

It can be downloaded here (http://www.mytempdir.com/1250395).

I want to move the other binaries to a subdirectory as well, but i haven't discovered yet the best way to do that.
BTW: Do you even like that?

Chumbo
11th March 2007, 21:21
@alwa,
May I ask why you're changing the project structure a bit? Just curious, that's all. Thanks for contributing. :)

I don't think it's a good idea to move the .config stuff into the .state file. The .config file contains settings that are defaults that the project can fall back on or the like BEFORE any state is saved. So when someone want to reset their BeHappy settings, they can just delete their .state file, but we don't want the default configurations removed. So I'd highly recommend keeping what's in the .config separate from the .state file. I hope that makes sense. :)

I really like the idea of having the extension files in the ext folder. Nice.

alwa
12th March 2007, 00:44
May I ask why you're changing the project structure a bit?
Why was the class in the Job.cs? Is there a deeper meaning? ;)

I personally don't think there is a reason to change the settings in the .config.(?) These are very special customizations. Which in the current build fall back to "default"(other default than in your context...) if the file gets delete/corrupted. But i think i got your point. I don't know what's better, i just don't like the additional file :p .

I really like the idea of having the extension files in the ext folder. Nice.
Thanks. The structure in the Project-View is imo more clearly now.

Thanks for contributing.
Thanks too...

Chumbo
12th March 2007, 00:54
Why was the class in the Job.cs? Is there a deeper meaning? ;)

I was a zombie on no sleep is the only explanation I can come up with. You correctly put it where it should have been in the first place. I guess I experienced an "ID 10 T" error. ;)

tebasuna51
12th March 2007, 04:07
One problem pending is obtain 32 bit precision output (int or float) with BeHappy.

Maybe if any can compile AvisynthWrapper.dll without lines 260-274 of AvisynthWrapper.cpp:
if (inf.HasAudio())
{
*originalSampleType = inf.SampleType();
if( *originalSampleType != SAMPLE_INT16)
{
res = pstr->env->Invoke("ConvertAudioTo16bit", res);
pstr->clp = res.AsClip();
infh = pstr->clp->GetVideoInfo();
if(infh.SampleType() != SAMPLE_INT16)
{
strncpy(pstr->err,"Cannot convert audio to 16bit",ERRMSG_LEN-1);
return 6;
}
}
}
I can test it.