Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th October 2006, 04:16   #1  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
Tebasuna 51 and flac guide

@ tebasuna51

can you repost the guide to encode 5.1 in .flac please?
thank you so much.
raquete is offline   Reply With Quote
Old 29th October 2006, 14:33   #2  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Pre-requisites
AviSynth v2.5.6
.NET FrameWork v2.0

Install
Use the last shon3i package to install BeHappy.
After you must update to the last version:
- NicAudio.dll at ...\Avisynth 2.5\Plugins folder
- Aften.exe 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 we need a uuid and know the commandline parameters.
For instance: wav2mono.exe, wav2mono.extension in WavUtil.zip 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):
Code:
[-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.

Last edited by tebasuna51; 16th November 2006 at 12:32. Reason: Update WavUtil link
tebasuna51 is offline   Reply With Quote
Old 29th October 2006, 17:06   #3  |  Link
Rockaria
nobody's nobody
 
Join Date: Mar 2005
Location: The Sun, somewhere around
Posts: 553
@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 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.
Quote:
Originally Posted by it since Oct.2006
...
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
__________________
u know everything in the end, or now if aligned... no right(x).right(y) pls. it's confusing... : phase-shift /Jun.2006

Last edited by Rockaria; 29th October 2006 at 21:36.
Rockaria is offline   Reply With Quote
Old 29th October 2006, 20:54   #4  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
thank you so much tebasuna. (i saved the page)
raquete is offline   Reply With Quote
Old 21st August 2009, 14:36   #5  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
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!
raquete is offline   Reply With Quote
Old 21st August 2009, 15:39   #6  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Why not use flac.exe or eac3to.exe ?
Midzuki is offline   Reply With Quote
Old 21st August 2009, 17:04   #7  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
Quote:
Originally Posted by Midzuki View Post
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!
raquete is offline   Reply With Quote
Old 21st August 2009, 17:07   #8  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by raquete View Post
...
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:
Code:
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
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 21st August 2009, 17:23   #9  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
"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.
raquete is offline   Reply With Quote
Old 21st August 2009, 17:24   #10  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by Midzuki View Post
Why not use flac.exe or eac3to.exe ?
Yep, flac.exe is used.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 21st August 2009, 17:32   #11  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
infos from wave in sound forge

raquete is offline   Reply With Quote
Old 21st August 2009, 18:05   #12  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
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:

Code:
eac3to input.wav output.flac

Last edited by Midzuki; 21st August 2009 at 18:07. Reason: fix typo
Midzuki is offline   Reply With Quote
Old 21st August 2009, 19:09   #13  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by raquete View Post
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
and AviSynth v2.5.8

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

Last edited by tebasuna51; 21st August 2009 at 19:15.
tebasuna51 is offline   Reply With Quote
Old 21st August 2009, 19:51   #14  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
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 is offline   Reply With Quote
Old 21st August 2009, 20:10   #15  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
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()

Last edited by raquete; 21st August 2009 at 20:14.
raquete is offline   Reply With Quote
Old 21st August 2009, 22:33   #16  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Midzuki had written:
Quote:
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. 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.
Midzuki is offline   Reply With Quote
Old 21st August 2009, 23:54   #17  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by raquete View Post
...
Channels=6, BitsPerSample=24 int, SampleRate=48000Hz
Seems the problem is solved with the AvisynthWrapper.dll from 2008-02-03.
Quote:
...
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)
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 22nd August 2009, 00:06   #18  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
Quote:
Originally Posted by tebasuna51 View Post
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....

raquete is offline   Reply With Quote
Old 22nd August 2009, 00:12   #19  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by Midzuki View Post
My bad. 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.
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
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 22nd August 2009, 00:16   #20  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
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!

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!

Last edited by raquete; 22nd August 2009 at 00:21.
raquete is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Forum Jump


All times are GMT +1. The time now is 02:58.


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