PDA

View Full Version : lame and avs2wav - no console output


vlada
19th October 2009, 12:22
Hi,

I'm trying to use avs2wav to encode audio from Avisynth. But I need progress reporting. Unfortunately it doesn't work with lame (I tried 3.98.2 and some earlier versions). This is my command line:
avs2wav.exe audio.avs - | lame -V 5 - audio.mp3

It works with faac or aften, but lame displays no output before finishing. But if I use WAV input instead of pipe, everything works fine. What could be the problem?

tebasuna51
19th October 2009, 14:27
Seems Lame disable display output when input is STDIN, and avs2wav don't show the progress .

You can use Bepipe.exe

vlada
19th October 2009, 17:09
Thanks a lot for your suggestion, unfortunately I would like to avoid .NET.

I'm looking for a portable solution. I was hoping that AVS2WAV would work without Avisynth installed. Unfortunately it doesn't as well as Bepipe and Wavi. So the only portable solution remains SoundOut plugin, which for some reason doesn't work with faac. I'm lost at this point. All solutions I tried failed for my needs. :-(

Is there any other option which I missed?

I'm writing my application in Python. Would it be a good idea to use the encoders as libraries (.dll)? Python can import C libraries, but it is a black magic for me. :-(

tebasuna51
19th October 2009, 19:44
... So the only portable solution remains SoundOut plugin, which for some reason doesn't work with faac.(

I only can confirm you: SoundOut with Faac also stop working in my system without finish the encode, and I need force to finish the program.

Seems you don't want use NeroAacEnc, run fine with SoundOut.

BTW, how work SoundOut without AviSynth installed?
Decoders like NicAudio and BassAudio can work also?

vlada
19th October 2009, 20:46
tebasuna51> I have NeroAacEnc as an option, but I also want a free solution that can work out-of-box in my application. I can not distribute NeroAacEnc with my program because of it's licensing terms. The other problem is that it can't produce RAW AAC and MP4Creator can't mux MP4. I'll probably switch to MP4Box, but it was incredibly slow for a muxer when I last tried it, so I chose MP4Creator instead.

To use Avisynth without installing it, I use avs2yuv (http://akuvian.org/src/avisynth/avs2yuv/) which can load avisynth.dll directly if it is in the same folder. All external plugins I tried work without any problems including NicAudio, FFmpegSource, SoundOut, Yadif etc. I haven't tried BassAudio, but it should work too.

Do you have any idea what could be the reason why faac won't finish the encoding? It is strange that only this combination fails. SoundOut + any other decoder works and faac + any other source works too. Unfortunately it seems that sh0dan is not working on SoundOut anymore. And I don't have any skills in C/C++ programming to have a look at the plugin.