Forum archive - MP3 or FLAC to AC3

http://www.supermediastore.com/



Forum Archive Home -> Audio -> MP3 or FLAC to AC3



MP3 or FLAC to AC3

Benjy posted 2009 Oct 20 12:08
How could I convert MP3 or FLAC files into AC3 and what soft are necessary ??


Placio74 posted 2009 Oct 20 12:31
For example...
... can use foobar2000 and Aften encoder.


Or FFmpeg (possibly with some GUI), (after decode to WAV PCM) ac3enc from AC3Filter Tools, (after decode to WAV PCM - also can use Avisynth script) WAV to AC3 Encoder, BeHappy.



Baldrick posted 2009 Oct 20 12:36
Moving you to our audio section as I don't see what this has to do with any blu-ray.


Benjy posted 2009 Oct 20 12:57
I thought that this topic is connected with Megui , i.e. Blu-ray , a.s.o.
10x anyway !!!



Benjy posted 2009 Oct 26 13:59
I must REPEAT my first question :

What soft are necessary to convert WAV , MP3 or FLAC files into AC3 ???

All the above specified softs DO NOT PROPERLY WORK and gave much , too much errors...

There is any professional softs for this kinf of audio conversion ???



poisondeathray posted 2009 Oct 26 14:13
eac3to, or avisynth + soundout are free other options

What errors did you get with the other software? It might be issues with your source file



Benjy posted 2009 Oct 26 15:06
[quote=poisondeathray]eac3to, or avisynth + soundout [/quote]

soundout ??? namely :......????
except Nero 7 or Nero Hd Blu ray

Does it be so hard, bro , to give full explanation, if you just started ???



Benjy posted 2009 Oct 26 15:46
I found a little soft : WAV to AC3 Encoder , but do not works :(( gave me errors , i.e. the resulted files are empty..
What kind of settings are necessary ???



Placio74 posted 2009 Oct 27 01:06
What is source audio format?
Sampling rate is 48000 Hz?

What is purpose of conversion?


BTW
In foobar2000 when convert can add DSP (Processing) and can change sampling rate used Resampler filter.



Benjy posted 2009 Oct 27 01:23
@Placio74

Simply , I have a .wav file of 3,4 GB and I want to reduce its size at maximum and make it ac3 file.

About foobar 2000 I'm very dissapointed because I can't setted to convert:(

it is just a player , no matter how many other pluggins I installed :((

I really do not know to set it as converter:((



Placio74 posted 2009 Oct 27 07:59
Download Aften encoder and unpack to some folder.

File > Preferences
Tools > Converter
Add New > Custom

Select a location of encoder,
set extension as ac3,
parameters example:
:
-b 448 -readtoeof 1 -dynrng 1 -v 0 - %d

complete display info.
(-b 448 it's just bitrate - can set other.)

Add file in player,
right mouse button (context menu) on file,
Convert..., choose (previously created) output format,
if want resample, go to Processing tab, turn on DSP, add Resampler, set 48000 Hz in configuration,
finally click OK.



Benjy posted 2009 Oct 27 08:56
@Placio74

Many thanks...I already had Aften but I didn't know to set it:D:D...

There is another problem , a little one : what about that < lame.exe> ??

I don't know where to place it or to find it or how to set it....also , It seems that didn't setted for AC3 , but for mp3 and I do not want mp3...



poisondeathray posted 2009 Oct 27 09:04
If you wanted to use eac3to, it's a simple 1 commandline:

eac3to input.wav output.ac3

http://en.wikibooks.org/wiki/Eac3to/How_to_Use

There is a gui to use it, but you have to set it up properly





For avisynth, you would input your source filter, and just type soundout(). When you open the script in a media player or avsp it will give you encoding options. You need avisynth installed and soundout in your plugins directory

The script is just a notepad text file. You save it and rename the extension to .avs.

e.g.
WAVSource("myaudio.wav")
Soundout()




For foobar 2k, just right click and select convert



Placio74 posted 2009 Oct 27 09:31
Benjy :
There is another problem , a little one : what about that < lame.exe> ??

Just click on ... button and select location of encoder.



Benjy posted 2009 Oct 27 09:46
I see...that is the problem :((
In my folder where is foobar 2000 and should be that < lame.exe> , this is...absent :(
I haven't it :((
Maybe the soft I find and installed was incomplete:((

No problem :( I will give up ,coz is too difficult for me , and everybody explain to me briefly ,like I 'll be an expert....

I found out on webs half a day and all I found was that stupid soft which seems to be incomplete :((

Thanks anyway for your help !!

PS I think this foobar 2000 is not good for what I need : I want a file of 1,5 GB , format .wav to convert to a little one , format ac3...that's all...this foobar converts to mp3 , which is totally different:(



Placio74 posted 2009 Oct 28 01:50
Benjy :
I see...that is the problem :((
In my folder where is foobar 2000 and should be that < lame.exe> , this is...absent :(
I haven't it :((
Maybe the soft I find and installed was incomplete:((

Wrong.
Look again at screenshots (just download and set other encoder - Aften for AC3) :!:
foobar2000 does not contain any encoders (need download them separately), but has several predefined profiles - also user can make new own (custom) profiles.


Try WinFF (FFmpeg GUI).
Convert To... = Audio
Device Preset = Ac3 DVD
Also can click at Options and set own bitrate...



Benjy posted 2009 Oct 28 01:58
@ Placio74

Asd I told you I'm a noobye , I don't know what bitrate to set and so on..:(
can you show me , for exemple ???



Benjy posted 2009 Oct 28 02:11
I'm back...unfortunatelly I installed ALL soft you have recomanded me , but there is NO such a < lame.exe> and NO possibility to convert from .wav to .ac3...

Are you really good at this problem or talk by the ear and laugh with me???
Are you joking with me ?



Placio74 posted 2009 Oct 28 02:53
Benjy :
Asd I told you I'm a noobye , I don't know what bitrate to set and so on..:(
can you show me , for exemple ???

Lower bitrate = worse quality but smaller file.
Higher bitrate = better quality but larger files.
http://en.wikipedia.org/wiki/Bit_rate#Bitrates_in_multimedia

If you still want to try with foobar2000...
Download Aften encoder from here or here or here.
Unpack to some folder and when create new custom profile select path to aften.exe file.
If aften.exe file is in foobar2000 folder, enough just type aften.exe instead whole path.

Do you really tried to use WinFF?



Benjy posted 2009 Oct 28 04:12
Now I tried winff....it requires any supplementary settings or patches ???
'coz gaves me errors...



Placio74 posted 2009 Oct 28 04:23
Benjy :
Now I tried winff....it requires any supplementary settings or patches ???

No.

Benjy :
'coz gaves me errors...

Specifically what errors?

What are characteristics of source audio file?
Use MediaInfo, export info to text file, show here content.
Can play source audio file?


BTW
Initial question was: "How could I convert MP3 or FLAC files into AC3 and what soft are necessary?".
However, later you said about WAV file...
Why not convert directly - MP3>AC3 or FLAC>AC3?



Benjy posted 2009 Oct 28 05:09
Format : Wave
File size : 3.93 GiB
Duration : 1h 1mn
Overall bit rate : 9 216 Kbps

Audio
Format : PCM
Codec ID : FFFE
Codec ID/Info : Extensible
Duration : 1h 1mn
Bit rate mode : Constant
Bit rate : 9 216 Kbps
Channel(s) : 8 channels
Channel positions : Front: L, C, R, Middle: L, R, Surround: L, R, LFE
Sampling rate : 48.0 KHz
Resolution : 24 bits
Stream size : 3.93 GiB (100%)



PS Sorry ,it was my mistake regarding that mp3...wav to ac3 is true...



Placio74 posted 2009 Oct 28 06:58
Uh... 8 channels. It's problematic - need downmix. Unfortunately, it's rather not easy.


Benjy posted 2009 Oct 28 07:08
It's not necessary 8 channels , just 2 if it is possible...

My great problem is to resize it from 3,9 GB to a " human " size , let's say about 300 Mb....
This is an audio track from a movie , I have split it , mean time I encoded that movie from 1980 to 1280 and now I want to menage audio track , but as you can see , now the audio track is bigger than the whole movie :))



Placio74 posted 2009 Oct 28 08:33
Try BeHappy...

- install Avisynth
- download and unpack BeHappy
- download Aften and copy aften.exe to encoder subfolder in BeHappy

- choose Avisynth plugin to use - WavSource, RaWav or DirectShowSource
- choose source audio file
- set Downmix
- choose destination and encoder (can change configuration)
- click on Enqueue button
- go to Queue tab and click Start button




BTW
foobar2000 - does not support decoding 8 channel WAV files
FFmpeg - can't downmix (8 channels is not accepted for ordinary AC-3 audio)



Benjy posted 2009 Oct 28 10:21
ok


Benjy posted 2009 Oct 28 11:06
I think , after many tryings , I solved smth , but not too much..
Here is the error it gave me :

BeHappy.AviSynthException: Import: unable to read "C:\Documents and Settings\EMPEROR\Desktop\sound.wav"
at BeHappy.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
at BeHappy.Encoder.encode()

What does it means ???



Placio74 posted 2009 Oct 30 00:40
Odd... maybe move file to other folder.


Benjy posted 2009 Oct 30 00:48
which one...the original or the resulted one ???
I think is a problem of settings...coz the second time , it gave me another kind of error after I modified some settings....
Unfortunatelly I do not know how to set it normally and correct :((

what you've showed me above is not enough....



Benjy posted 2009 Oct 30 01:23
Here is few screenshots...






Placio74 posted 2009 Oct 30 03:05
When open file, change file type.

Required source filter/plugin should be set automatically.

Or after adding a file set source filter/plugin (WavSource or RaWav or DirectShowSource).


With Avisynth set as source, BeHappy expects 'ready to use' .avs script.
With other, BeHappy uses own templates and make 'temporary' .avs script.



Benjy posted 2009 Oct 30 03:24
I've done like you said but the same error :((

< Starting job sound.wav->sound.ac3
Found Audio Stream
Channels=2, BitsPerSample=32 float, SampleRate=48000Hz
encoder\Aften.exe -v 0 -b 448 -m 0 -readtoeof 1 -cmix 0 -smix 0 -dsur 0 -dnorm 31 -dynrng 5 - "C:\Documents and Settings\EMPEROR\Desktop\sound.ac3"
Error: System.ApplicationException: Can't start encoder: The system cannot find the file specified ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at BeHappy.Encoder.createEncoderProcess(AviSynthClip x)
--- End of inner exception stack trace ---
at BeHappy.Encoder.createEncoderProcess(AviSynthClip x)
at BeHappy.Encoder.encode() >

I do not what to do :(((((



Benjy posted 2009 Oct 30 03:39





Placio74 posted 2009 Oct 30 03:45
It's different error...
:
Can't start encoder: The system cannot find the file specified


Unpacked from archive and copied aften.exe file to a /BeHappy/encoder/ folder?




Benjy posted 2009 Oct 30 04:19


I feel I go crezy :(((

Do NOT work :((((



Benjy posted 2009 Oct 30 04:22
http://www.videohelp.com/tools/Aften

maybe this link is not good or I do not know what kind of Aften to download:(( there are 3-4 options here...which one ???
Aften 0.0.8.zip , 0.0.7 a.s.o ???



Benjy posted 2009 Oct 30 04:31
URAAAAA
Finaly I got the true way:)))
I think is working good....I'll inform you after whole converting...
THANKS anyway !!!!!



Benjy posted 2009 Oct 30 07:14
yep ,was working fine...
THANKS my friend for your patience with me :D:)
I obtained from a 3,9 Gb file a smaller one , of about 197 MB which is very very good...
I've already overlaped it on the movie and work nice...
This is MY first try...I hope the future ones would be the same ,succesfull :)


Many THANKS to the admins of this site / forum ,too , especially to Baldrick !!
It helped me a lot in solving this " firing " problem...:)

I'll remain a permanent user of your site....Is very usefull !!!



Benjy posted 2009 Oct 30 10:56
OMG...I must come back:((
seems to be the same trouble :
the same error:
< Starting job sound.wav->sound.ac3
Error: BeHappy.AviSynthException: GetChannel: Attempted to request a channel that didn't exist!
at BeHappy.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
at BeHappy.Encoder.encode()>

Unfortunatelly I don't know to interpret/perform such an error...

Placio74 will you help me again ???
here are the technical details of new file :
Format : Wave
File size : 2.10 GiB
Duration : 1h 5mn
Overall bit rate : 4 608 Kbps

Audio
Format : PCM
Codec ID : FFFE
Codec ID/Info : Extensible
Duration : 1h 5mn
Bit rate mode : Constant
Bit rate : 4 608 Kbps
Channel(s) : 2 channels
Channel positions : Front: L, R
Sampling rate : 96.0 KHz
Resolution : 24 bits
Stream size : 2.10 GiB (100%)

What is now necessary to do working it ???

thanks !!



Placio74 posted 2009 Oct 30 14:08
:
GetChannel: Attempted to request a channel that didn't exist!

BeHappy can not find channels to downmix, because...

:
Channel(s)                       : 2 channels
Channel positions                : Front: L, R

Now you only have a stereo (2 channels) in source audio - no need to downmix (don't use Downmix option).


BTW
For 6 channel audio is also no need (if of course convert to audio format that supports it - AC3 for example).
Just 8 channel is problematic (supported by E-AC3, TrueHD and DTS-HD audio formats).



Benjy posted 2009 Oct 30 14:52
here is the new error , after passing by Downmix :

Starting job sound.wav->sound.ac3
Found Audio Stream
Channels=2, BitsPerSample=24 int, SampleRate=96000Hz
encoder\Aften.exe -v 0 -b 448 -m 0 -readtoeof 1 -cmix 0 -smix 0 -dsur 0 -dnorm 31 -dynrng 5 - "E:\sound.ac3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Error: System.IO.IOException: The pipe has been ended.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
at BeHappy.Encoder.encode()
#### Encoder StdErr ####
invalid sample rate
error initializing encoder



Placio74 posted 2009 Oct 30 15:17
:
...
Channels=2, BitsPerSample=24 int, SampleRate=96000Hz
...
invalid sample rate
...

Unsupported sampling rate for AC3 audio (too high).

Use Resample SSRC option and set 48000 Hz.



Benjy posted 2009 Oct 30 15:30
Starting job sound.wav->sound.ac3
Found Audio Stream
Channels=2, BitsPerSample=24 int, SampleRate=96000Hz
encoder\Aften.exe -v 0 -b 448 -m 0 -readtoeof 1 -cmix 0 -smix 0 -dsur 0 -dnorm 31 -dynrng 5 - "E:\sound.ac3"
Writing RIFF header to encoder's StdIn
Writing PCM data to encoder's StdIn
Error: System.IO.IOException: The pipe has been ended.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
at BeHappy.Encoder.encode()



Benjy posted 2009 Oct 30 15:34
sorry for double post :((
Now , AGAIN , works :))
You are really a proffesionist !!!

but do not forget: this BeHappy gave many times errors...
must be stopped , or closed to start again without errors...

above item itself is not a double post ,but the error which gave me after I made the settings you specified, and when the same command had not been taken...

only the third time it started and worked normally..

Thanks a lot...I hope not disturb you any more in the future :)




Login/Register to our forum to be able to post here.








DVDFab DVD to DVD lets you backup DVDs to DVDr, AVI or MP4 for portable devices. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics