Log in

View Full Version : Tebasuna 51 and flac guide


raquete
29th October 2006, 04:16
@ tebasuna51

can you repost the guide to encode 5.1 in .flac please?
thank you so much.

tebasuna51
29th October 2006, 14:33
Pre-requisites
AviSynth v2.5.6
.NET FrameWork v2.0

Install
Use the last shon3i package (http://forum.doom9.org/showthread.php?p=829754#post829754) to install BeHappy.
After you must update to the last version:
- NicAudio.dll (http://nic.dnsalias.com/NicAudio_alpha3.zip) at ...\Avisynth 2.5\Plugins folder
- Aften.exe (http://kurtnoise.free.fr/index.php?dir=Aften/) at ...\BeHappy folder
- There are also some new encoders versions but is optional.

Short Usage
- Run BeHappy, Tab 'New Job', and click at button (...) in [1]Source.
- In Open Dialog select the 'Type' WavSource (*.wav) and open the desired wav 6 channel to encode.
- In [4] Destination select Flac 1.1.x in encoders list, click in button (...) and select 'Configure' (Only 3 options for Flac), adjust the filename output if desired.
- Click at button 'Enqueue' (automatically the Tab change to 'Queue')
- Click 'Start' and wait.

----------------------------------------------------------
I think is easy. Maybe some more explanation about the 3 main steps and other BeHappy basic ideas/problems:
1 Decoders
In [1] Source you can select the decoder/method used for AviSynth to open the source file, the purpose is go to next step with decompressed audio data. After selected in the list you can see the allowed extensions clicking at upper (...) button, and the configuration options (if exist) at right (...) button.

- WavSource: internal AviSynth method, the more simple because the data are already decompressed. Can open PCM wav files, with AviSynth v2.5.7 RC-1 also 32-Float wav files. WAVE_FORMAT_EXTENSIBLE wav files not supported (use BassAudio instead or patch the wav_ex files).

- DirectShowSource: internal AviSynth method, can open any coded with the DS filter installed. Powerful and problematic.

- AviSynth: open .avs files, useful if we need open more than one audio file (to mix them for instance) or special avs functions.

- Nic*: decoder plugin NicAudio.dll to support Ac3, Dts and mp*

- BassAudio: decoder plugin Bass*.dll for many formats. WARNING don't use for ac3 (use NicAc3Source instead) or aac 5.1 (use DirectShowSource instead).

2 Functions
In [2] Tweak and [3] Digital Signal Processing there are internal/plugins AviSynth functions to process the uncompressed audio data. The functions selected in Tweak sections are executed before, the order of the functions selected in DSP section can be changed.
There are only one function (5.1 Upmix) than use a external plugin: Soxfilter.dll.
The output are "frame-served" to the next step or the 'Preview' application.
We can also write the equivalent .avs file of the entire process with 'Export AviSynth Script'.

3 Encoders
In [4] Destination we can select and configure the encoder between the list of installed encoders ('Wav writer' only make a file with AviSynth output).
Any encoder/application with STDIN support for wav files can be installed here but we need Dimzon to create the Configuration Dialog to generate the command line encoder options (for this the Aften options are updated).

A workaround to install a new encoder/application is create a new destination.extension in BeHappy folder with Dimzon instructions (http://forum.doom9.org/showthread.php?p=758354#post758354) we need a uuid (http://kruithof.xs4all.nl/uuid/uuidgen) and know the commandline parameters.
For instance: wav2mono.exe, wav2mono.extension in WavUtil.zip (http://rapidshare.com/files/3572747/WavUtil.zip.html) to generate monowav's like BeHappy output.

BeHappy TODO list (or petitions to 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)

- 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.

Rockaria
29th October 2006, 17:06
@teb, may I suspect you captured & deleted the thread, and PMed the forum issue without the related content?
Anyway, good to see the crazy words/symbols like :helpful: is not abused to experienced users here, as I warned it before(in my case).
I won't include the links of desperate 'bepipe' petitions(another subtle use) again from another threads still missing here. it's your inner issue now.
And I wish successful whatever forum 'change's by your team, as far as all these kind of efforts integreated & FAQed in a thread instead of hijacking others' all over the threads.

BTW, I didn't know that the thread starter can delete the thread for any reason??? same feather?
So watch out the sigs. This time captured. good luck.

...
thank you so much.
__________________
search raquete here
my english is bad for you or you're not understanding what i mean?
don't blame me,i only post typos here,blame Rockaria


PS. As a remind, I have used these reflections refined in my sig. Relating to anything is everybody's freedom including me.
I also miss my lost gods' mighty voices...addictions! there's no magic in the codes...you are the magic!... Feb.2006
u know everything in the end, or now if aligned... no right(x).right(y) pls it's confusing... Sep.2006
So what is thy Art? trying to impress more than what there is? in alcohol insisting Lossy's stretching moods? /Enigma:return-to-the-innocent... Oct. 2006
Got a stalker in its proud 2004 playground, ever-begging to be attended to fool... 'cause too sober to carry a sneaking broken racquet... Nov. 2006

raquete
29th October 2006, 20:54
thank you so much tebasuna. :) (i saved the page)

raquete
21st August 2009, 14:36
hi tebasuna51.

i'm using this guide for round 3 years and is very very cool.
i don't did any changes, all dlls, avisynth and plugins are the same.

a request:
when i load 24/48 or 24/96 waves the output.flac is 16/48.

what to do to get 24/48(24/88.2, 24/96, etc) in the output.flac?

thanks!

Midzuki
21st August 2009, 15:39
Why not use flac.exe or eac3to.exe ?

raquete
21st August 2009, 17:04
Why not use flac.exe or eac3to.exe ?

i don't want to install eac3to(full of features, seems brilliant) to get only AC3 as i use EncWAVtoAC3 for that target and this guide here to get .flacs from waves.
both( EncWAVtoAC3 and this guide here)are soft to run perfectly in my old pc with old system.
no other format is desired for me from eac3to result if i use.

for DTS i use surcode or DTS Pro Encoder.

flac.exe need command lines?!?

i got your PM and i will try to explain better:
the output.flac is always 16bits.
i want the outpup.flac with the same bitrate as i load, in this case 24bits.
loading 24/48 or 24/88.2 or 24/96 i want .flacs in 24bit always.

cheers!

tebasuna51
21st August 2009, 17:07
...
when i load 24/48 or 24/96 waves the output.flac is 16/48.

what to do to get 24/48(24/88.2, 24/96, etc) in the output.flac?
I can't reproduce your problem.
Check if BeHappy log is like this:
Starting job z2_24_96.wav->z2_24_96.flac
Found Audio Stream
Channels=2, BitsPerSample=24 int, SampleRate=96000Hz
encoder\flac.exe --best --force -o "D:\Test\AudioD\Samples\wavs\z2_24_96.flac" --silent --force-raw-format --endian=little --channels=2 --bps=24 --sample-rate=96000 --sign=signed -
Writing PCM data to encoder's StdIn
Finalizing encoder
Complete

raquete
21st August 2009, 17:23
"Starting job Ringo Wave.wav->Ringo Wave.flac
Found Audio Stream
Channels=6, BitsPerSample=16, SampleRate=48000Hz
flac.exe --force -o "H:\teste Ringo\2448\Ringo Wave.flac" --silent --force-raw-format --endian=little --channels=6 --bps=16 --sample-rate=48000 --sign=signed --input-size=135229440 -
Writing PCM data to encoder's StdIn
Finalizing encoder
Complete"

BeHappy read the wave as 16bit but the wave source is 24/48k, was upsample in sound forge and checked in audition, sound forge and winamp.

tebasuna51
21st August 2009, 17:24
Why not use flac.exe or eac3to.exe ?
Yep, flac.exe is used.

raquete
21st August 2009, 17:32
infos from wave in sound forge

http://img522.imageshack.us/img522/3203/sfinfo.th.png (http://img522.imageshack.us/i/sfinfo.png/)

Midzuki
21st August 2009, 18:05
Well, I've just created a 6-channel "test.wav", and by using the "normal"/"well-known" options, I haven't managed to make flac 1.2.0 generate a 24-bit && 88.2 kHz "test.flac". :(

OTOH, eac3to worked as it should and gave me no HeadAC3hes: :)

eac3to input.wav output.flac

tebasuna51
21st August 2009, 19:09
BeHappy read the wave as 16bit but the wave source is 24/48k, was upsample in sound forge and checked in audition, sound forge and winamp.
I see.

Try open the wav file with RaWav instead WavSource.

Maybe is a version problem try with last:
BeHappy_r13913.7z (http://behappy.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=14812#DownloadId=37805)
and AviSynth v2.5.8

EDIT:
@Midzuki
Yes I know than eac3to work fine with this, but BeHappy must work also.

raquete
21st August 2009, 19:51
Starting job Ringo Wave.wav->Ringo Wave.flac
Found Audio Stream
Channels=6, BitsPerSample=24 int, SampleRate=48000Hz
encoder\flac.exe --force -o "H:\teste Ringo\2448\Ringo Wave.flac" --silent --force-raw-format --endian=little --channels=6 --bps=24 --sample-rate=48000 --sign=signed -
Error: System.ApplicationException: Can't start encoder: O sistema não pode encontrar o arquivo especificado ---> System.ComponentModel.Win32Exception: O sistema não pode encontrar o arquivo especificado
em System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
em System.Diagnostics.Process.Start()
em BeHappy.Encoder.createEncoderProcess(AviSynthClip x)
--- Fim do rastreamento de pilha de exceções internas ---
em BeHappy.Encoder.createEncoderProcess(AviSynthClip x)
em BeHappy.Encoder.encode()

obs: Can't start encoder: O sistema não pode encontrar o arquivo especificado means: the system can't find the archive(file).

but running with avisynth v2.5.7, in the http://avisynth.org/mediawiki/Main_Page i can't find v2.5.8 to download.
i'm still searching....

raquete
21st August 2009, 20:10
just the same message with avisynth v2.5.8 together with BeHappy_r13913

"Can't start encoder: O sistema não pode encontrar o arquivo especificado ---> System.ComponentModel.Win32Exception:,
means: the system can't find the archive(file)."

edit:
openning as RaWav
Starting job Ringo Wave.wav->Ringo Wave.flac
Error: BeHappy.AviSynthException: Script error: there is no function named "RaWavSource"
em BeHappy.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
em BeHappy.Encoder.encode()

Midzuki
21st August 2009, 22:33
Midzuki had written:
Well, I've just created a 6-channel "test.wav", and by using the "normal"/"well-known" options, I haven't managed to make flac 1.2.0 generate a 24-bit && 88.2 kHz "test.flac".

My bad. :o I had tried to feed flac.exe with an improperly-authored multichannel .WAV (which had an incorrect "channel mask", 0x0000). But by using RaWav and SoundOut, I managed to create a 100%-compliant multichannel .WAV, which was correctly compressed by flac.exe. :stupid:

tebasuna51
21st August 2009, 23:54
...
Channels=6, BitsPerSample=24 int, SampleRate=48000Hz
Seems the problem is solved with the AvisynthWrapper.dll from 2008-02-03.
...
obs: Can't start encoder: O sistema não pode encontrar o arquivo especificado means: the system can't find the archive(file).
Now you only need put flac.exe at BeHappy folder (or \encoder subfolder)

raquete
22nd August 2009, 00:06
Now you only need put flac.exe at BeHappy folder (or \encoder subfolder)

flac.exe(last version) is(and was when i encoded) in BeHappy folder....

http://img16.imageshack.us/img16/6305/bhflac.th.png (http://img16.imageshack.us/i/bhflac.png/)

tebasuna51
22nd August 2009, 00:12
My bad. :o I had tried to feed flac.exe with an improperly-authored multichannel .WAV (which had an incorrect "channel mask", 0x0000). But by using RaWav and SoundOut, I managed to create a 100%-compliant multichannel .WAV, which was correctly compressed by flac.exe. :stupid:

I don't know how is your original wav file but maybe you can use:
flac --channel-map=none original.wav

Also for wav files >4GB there are other interesting flac parameter:
--ignore-chunk-sizes

raquete
22nd August 2009, 00:16
forget my last post tebasuna51.

flac.exe was in BeHappy folder but not in encoder subfolder.
now after put flac.exe in encoder subfolder...

"Starting job Ringo Wave.wav->Ringo Wave.flac
Found Audio Stream
Channels=6, BitsPerSample=24 int, SampleRate=48000Hz
encoder\flac.exe --force -o "H:\teste Ringo\2448\Ringo Wave.flac" --silent --force-raw-format --endian=little --channels=6 --bps=24 --sample-rate=48000 --sign=signed -
Writing PCM data to encoder's StdIn
Finalizing encoder
Complete"

cool.
the result is 24b/48k, perfect! :cool:

thank you so much one more time tebasuna51, you're great! :)

edit:
i did with eac3to(command line) and flac file size is 145MB,
with your guide here using default adjusts: 127Mb! :)

tebasuna51
22nd August 2009, 00:31
edit:
openning as RaWav
Starting job Ringo Wave.wav->Ringo Wave.flac
Error: BeHappy.AviSynthException: Script error: there is no function named "RaWavSource"


Seems you don't have NicAudio.dll 2.0 in your AviSynth plugins folder.
See my signature.

raquete
22nd August 2009, 00:34
Seems you don't have NicAudio.dll 2.0 in your AviSynth plugins folder.
See my signature.

is working very fine now, read my last post page1:

http://forum.doom9.org/showthread.php?p=1317250#post1317250

cheers!