Log in

View Full Version : NicAudio Vs DirectShowSource for AVI Audio


Mr_Odwin
5th April 2006, 09:46
I am making an app for avi to mpeg-2 conversion and part of the process is to automatically generate the avisynth scripts. At the moment it produces some thing like:

Video=AVISource("C:\Documents and Settings\James\My Documents\My Videos\SerenityBacked.avi", False)
Audio=DirectShowSource("C:\Documents and Settings\James\My Documents\FAVC\Working Folder 0\SerenityBacked.avi")
Audiodub(Video,Audio)

Aside from the channel output and DRC selection is there any benefit to using NicAudio over DirectShowSource? Obviously using NicAudio involves demuxing the audio so I'm a bit loathe to introduce that additional step. Does NicAudio not rely on the corresponding directshow filters so, for example, it can open ac3 even if the required codec isn't present?

Richard Berg
5th April 2006, 10:01
What audio codec? Any reason you can't just let Avisource use ACM?

dimzon
5th April 2006, 10:06
Aside from the channel output and DRC selection is there any benefit to using NicAudio over DirectShowSource?
NicAudio doesn't support AVI input, you must demux audio first

Mr_Odwin
5th April 2006, 10:37
What audio codec? Any reason you can't just let Avisource use ACM?

I've come across some files with vbr mp3 that made avisource balk, but were handled fine by directshowsource. As I'd like my app to be as robust as possible, with the smallest user interaction, I thought that DirectShowSource the better option.

Shocku
5th April 2006, 10:44
Did you try EnsureVBRMP3Sync() after avisource?

Mr_Odwin
5th April 2006, 11:07
Did you try EnsureVBRMP3Sync() after avisource?

Yep. It doesn't even get that far.

http://pike.fireflyinternet.co.uk/ProbASource.jpg

Yet it plays in every media player I have and works fine with directshowsource. Is there something really obvious that I don't understand about avisynth or codecs in general? Treat me like a total n00b.

foxyshadis
5th April 2006, 11:18
That error was fixed for the 2.5.7alpha 2, iirc, it's caused by bad avi/mp3 muxers, so you could give that a shot. DS can handle it fine while VFW hacks up a lung.

Mr_Odwin
5th April 2006, 11:25
Ace. That works!

But that brings up a very similar question. Is there any advantage to using NicAudio over Avisource?

Mug Funky
6th April 2006, 01:19
if your source is demuxed m2v + ac3 then there's a lot of advantage - one works, the other does not :). for avi files it's another story.