Log in

View Full Version : Preffered avs script command line transcoding


chros
2nd May 2016, 15:01
I lost in years with this: what's the preferred ways to transcode avs script audio in command line nowdays?

I know that there are gui's (Megui, Behappy) but I want to automate the process in batch script.

The avs script would look like this (just DRC and normalize function):
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\NicAudio.dll")
NicAc3Source("audio.eng.ac3", DRC=1)
Normalize(0.98)

Maybe Bepipe was the tool that I used back in the days (I forgot it completely), I saw avs2pipemod. What shall I use?

Thanks!

chros
3rd May 2016, 10:48
I tried avs2pipemod but I couldn't managed to get it work within 1 minute, but bepipe still working fine after 10 years:
%bepipe% --script "Import(^%~dp0audio.eng.avs^)" | %opusenc% --ignorelength --vbr --bitrate 128 - "%~dp0audio.eng.opus"

tebasuna51
3rd May 2016, 15:20
Bepipe can work but also avs2pipemod:

avs2pipemod -extwav=float test.avs | encoder...

-extwav to allow WAVE_FORMAT_EXTENSIBLE output with default ChannelMask info
=float to preserve bitdepth of NicAudio decoder (you can change this if encoder don't support float input)

But also you can use wavi (https://sourceforge.net/projects/wavi-avi2wav/):

wavi test.avs - /X | encoder...

/X to allow WAVE_FORMAT_EXTENSIBLE output with default ChannelMask info (like avs2pipemod)

Use in .avs:
global OPT_AllowFloatAudio = True
if you want preserve bitdepth of NicAudio.