View Full Version : Lame encoding AVS output audio?
Livesms
9th October 2006, 12:18
Is it possible to encode using Lame MP3 command line encoder audio output from AVS script?
Audio from script is changed with FadeIn/FadeOut functions, and source for script is taken from diffrent files.
I'm interested in on-the-fly AVS output audio encoding with command-line switches like higher quality, quality setting for VBR, process priority and other.
shon3i
9th October 2006, 12:49
Yes using BeHappy/BePipe programs
Livesms
9th October 2006, 13:00
Yes using BeHappy/BePipe programs
Can you give me working example of cmd line string.
Downloads
BeHappy - BeHappy 20060719 (http://www.gotdotnet.com/workspaces/workspace.aspx?id=1bb59ddf-901b-43a5-bd54-b0999e8e223e)
Lame MP3 - lame3.97-final.zip (http://www.free-codecs.com/Lame_Encoder_download.htm)
tebasuna51
9th October 2006, 13:27
BeHappy is a GUI, for command line use Bepipe:
Bepipe --script "Import(^path\Audio.avs^)" | lame --vbr-new -V 5 audio.mp3
Livesms
9th October 2006, 13:36
BeHappy is a GUI, for command line use Bepipe:
Bepipe --script "Import(^path\Audio.avs^)" | lame --vbr-new -V 5 audio.mp3
Your script gives me smth like this
c:\1>bepipe --script "Import(^audio.avs^)" | lame --vbr-new -V 5 audio.mp3
Could not find "audio.mp3".
***************************************
BePipe by dimzon
***************************************
Script used:
# BEGIN
Import("audio.avs")
# END
Scanning for Audio Stream...
Found Audio Stream
Channels=1, BitsPerSample=16, SampleRate=24000Hz
Writing Header...
Writing Data...
Done!
and no mp3 output file (exp. audio.mp3)
raquete
9th October 2006, 13:36
BeHappy is a GUI, for command line use Bepipe:
Bepipe --script "Import(^path\Audio.avs^)" | lame --vbr-new -V 5 audio.mp3
:goodpost:
off topic:
tebasuna51,
you could write some tutors and "how to" for command lines and others. :)
edit:
Channels=1...SampleRate=24000Hz
1 channel? SampleRate=24000Hz? will sound too bad!
Livesms
9th October 2006, 13:44
1 channel? SampleRate=24000Hz? will sound too bad!
Yes. I took first video I saw. There is really mono 24khz sound here.
But script (command) don't solve the problem.
I have no mp3 output audio.
Look's like lame is not able to take audio source from stdin.
Could not find "audio.mp3".
audio.mp3 - is concidered as input parametr by Lame.exe
shon3i
9th October 2006, 13:46
Can you give me working example of cmd line string.
Downloads
BeHappy - BeHappy 20060719 (http://www.gotdotnet.com/workspaces/workspace.aspx?id=1bb59ddf-901b-43a5-bd54-b0999e8e223e)
Lame MP3 - lame3.97-final.zip (http://www.free-codecs.com/Lame_Encoder_download.htm)
You can open avs script directly in BeHappy as source.
and download this BeHappy package from my signature, aslo change lame in behappy dir to 3.97
tebasuna51
9th October 2006, 13:48
Post your Audio.avs
Livesms
9th October 2006, 13:52
Post your Audio.avs
AviSynth Script - audio.avs
AviSource("D:\DVD\DVD5 NLO\NLO.avi")
Command line
Bepipe --script "Import(^Audio.avs^)" | lame --vbr-new -V 5 audio.mp3
Result
c:\1>Bepipe --script "Import(^Audio.avs^)" | lame --vbr-new -V 5 audio.mp3
Could not find "audio.mp3".
***************************************
BePipe by dimzon
***************************************
Script used:
# BEGIN
Import("Audio.avs")
# END
Scanning for Audio Stream...
Found Audio Stream
Channels=2, BitsPerSample=16, SampleRate=48000Hz
Writing Header...
Writing Data...
...
47,264389130914%
...
61,1483125282647%
...
81,1422675820442%
...
Done!
tebasuna51
9th October 2006, 15:53
Bepipe --script "Import(^Audio.avs^)" | lame --vbr-new -V 5 audio.mp3
Could not find "audio.mp3".
My fault, I forget the input (stdin) for Lame. The command line must include a '-':
Bepipe --script "Import(^Audio.avs^)" | lame --vbr-new -V 5 - audio.mp3
Livesms
9th October 2006, 16:44
My fault, I forget the input (stdin) for Lame. The command line must include a '-':
Bepipe --script "Import(^Audio.avs^)" | lame --vbr-new -V 5 - audio.mp3
set _input_=%1
set _output_=%_input_:.avs=.mp3%
Bepipe --script "Import(^%1^)" | lame -b 128 -q 2 -m j --priority 0 - %_output_%
Here is the batch for AVS audio output encoding with Lame MP3 for 128kbit/s Joint Stereo.
gameplaya15143
12th October 2006, 01:52
That should be possible to do using dBpowerAMP (with its directshow input plugin). I think it would be a bit easier, and with a pretty gui :cool: Encoding with lame.exe on the fly (http://www.geocities.com/gameplaya_15143/howto/lame4dmc/) as well.
Livesms
12th October 2006, 06:53
That should be possible to do using dBpowerAMP (with its directshow input plugin). I think it would be a bit easier, and with a pretty gui :cool: Encoding with lame.exe on the fly (http://www.geocities.com/gameplaya_15143/howto/lame4dmc/) as well.
I do not need any GUI. I need Command Line Interface without any windows :)
Look at Lame.exe :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.