Log in

View Full Version : SoundOut 1.1.1 - Sound Output Plugin [10/15/07]


Pages : 1 2 [3] 4

HeadBangeR77
31st July 2007, 11:02
Sorry for a noobish question:

I've already transcoded many AC3 448 files into AC3 384 using SoundOut 1.0.0. a couple of months ago and now using the latest plug-in version. Is the libaften.dll embedded in your plug-in? If so, is it Kuronoise13's build? I'm asking, because I always use and AVS with command line, which points directly to the aften executable (07sse by Wisodev atm). What should I do to use the newer revision? Just leave out the path to the executable?

Good to see the things improving - thanks for the plug-in, it's slowly becoming my only encoder /transcoder for soundtracks. :)

sh0dan
31st July 2007, 11:25
HeadBangeR77, libaften is inside the SoundOut plugin, so when you use the built-in AC3 output, you use the revision in SoundOut.

You can however, as you mention, use an external "aften.exe". If you use a direct path, it will always use that version.

You can also put an aften.exe into a directory called Soundout in your plugin directory. If the program cannot find aften.exe in your current path, it will attempt to load it from there.

HeadBangeR77
31st July 2007, 11:56
:thanks: for the quick answer - now everything is clear :)

I only must compare the built-in one with Wisodev's sse version in terms of speed to decide which one to use.
Thanks again!

buzzqw
25th August 2007, 13:18
i think i found a bug

using this script

LoadPlugin("C:\Programmi\PureBasic402\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("C:\Programmi\PureBasic402\AutoMKV\exe\filter\SoundOut.dll")
NicAC3Source("E:\Nuova cartella\Matrix\temp\fixed1.ac3")
Normalize()
Soundout()
fixed1.ac3 is a 3_2ch 384kbps ac3 file
and outputting to flac at 0 compression (or even at 6 compression), whenever the saved file got the 2gb size i got this error
http://img95.imageshack.us/img95/1300/flacsoundoutdx9.png

btw i am using soundout 1.0.3 not 1.0.2 as reported :confused:

BHH

sh0dan
27th August 2007, 13:00
Seems like an error in the OGG/FLAC library. I'll have a look at it. I'm preparing v1.1.0, so it will be included in this one.

For lossless encoding you can look forward to wavpack lossless encoding.

buzzqw
27th August 2007, 13:19
thanks Sh0dan!

i can surely wait!

BHH

IanB
27th August 2007, 14:34
@Sh0dan, The default Flac output with a "Filename" uses crappy stdio with a 2GB limit. You will need to provide a set of output callback routines that implement big file i/o. (or upgrade the standard internal routines :D )

hartford
16th September 2007, 02:06
I get an error with Virtualdub that it cannot load
this plugin if it is not in the Avisynth "autoload" folder.

I discovered that SoundOut.dll and libsndfile-1.dll MUST be located in the plugin autoload folder.

I put plugins in a seperate folder and load them as needed to avoid incompatabilities.

-

Avisynth 2.57, build: Dec 31 2006 [13:16:28]

Windows XP Pro, SP2, all updates through August, 2007

.Net Framework 2.0

buzzqw
16th September 2007, 09:26
there is no need for soundout and libsndfile-1.dll to be in avisynth plugin directory

just copy libsndfile-1.dll to your \windows\system32 , or in a windows path folder

BHH

hartford
21st September 2007, 03:41
there is no need for soundout and libsndfile-1.dll to be in avisynth plugin directory

just copy libsndfile-1.dll to your \windows\system32 , or in a windows path folder

BHH

Yes, I understand, to some degree, how Windows works.

I'm pointing-out that the installation directions don't explicitly say that libsndfile-1.dll must be in "some" path, however derived.

The install directions should make a point of this. The Install directions do not say "install in your "\windows\system32" directory."

In other words, SoundOut doesn't search its current directory for libsndfile-1.dll.

That's my point, apparently poorly expressed.

sh0dan
23rd September 2007, 14:41
v1.1.0:

http://klauspost.googlepages.com/SoundOut-1.1.0.zip

Changes:
- Added WavPack output module.
- Added Sample type selection to WAV Output.
- Updated FLAC to v 1.2.1 - 24 bit/sample seems broken, so only 8 & 16 bit are enabled.
- Fixed bug in FLAC to enable files larger than 2GB.
- FLAC now uses the same GUI as other filters.
- Aften updated.
- Re-enabled Aften multithreading.
- Faster 3DNOW! float to 24 bit conversion.

buzzqw
23rd September 2007, 15:12
:thanks: Sh0dan!

wonderfull plugin!

should be integrated in avisynth directly! (as nicaudio..)

BHH

Wilbert
23rd September 2007, 15:14
- Updated FLAC to v 1.2.1 - 24 bit/sample seems broken, so only 8 & 16 bit are enabled.
I used FLAC 1.2.1 to encode at 96/24 a few times. Why do you think it's broken?

@buzzqw,
should be integrated in avisynth directly!
It will be in v2.6.

buzzqw
23rd September 2007, 16:00
thanks Wilbert!

what about nicaudio plugin ?

BHH

lolent
23rd September 2007, 16:29
:thanks: sh0dan for updating your amazing plugin.
I will try it asap :p

sh0dan
23rd September 2007, 16:33
I used FLAC 1.2.1 to encode at 96/24 a few times. Why do you think it's broken?
It produces broken files for me. I found this bug, that seems to fit:

https://sourceforge.net/tracker/?func=detail&atid=113478&aid=1799513&group_id=13478

Wavpack should be better in most cases, even though it doesn't seem to be as widely supported.

Wilbert
23rd September 2007, 16:46
It produces broken files for me. I found this bug, that seems to fit:

https://sourceforge.net/tracker/?fun...group_id=13478
Ok. I've been using flac-1.2.1a.exe the whole time. I guess the bug was not present in that version.

Kurtnoise
13th October 2007, 08:06
o0ps...problem solves. Sorry for the disturbance...

@Sh0dan: here is a strange behaviour that I noticed. I've 2 Windows OS. The first one (XP) in my first hard drive (C:) and the second one (Vista) in my second hard drive (D:). When I'm running on XP, all works fine with SoundOut and his own extra commands but as soon as I'm running on Vista, nothing works correctly with this plugin. A simple script like this:

AVISource("D:\input.avi")
SoundOut()

returns :
Script error : there is no function named "SoundOut"
(D:\COLLATERAL\Test222.avs, line 2)

Note that Avisynth 2.5.7 is installed on both hard drives. SoundOut.dll and libsndfile-1.dll are of course in the Avisynth plugins directory. So, if I move these dlls on my C drive, all works fine. Any idea ?

foxyshadis
13th October 2007, 08:54
libsndfile has to be somewhere in the dll load path, so putting it in the app folder, the windows or system32 folder, or manually loading it works. (Thanks to myrsloik for that last bit.) I'm hoping the fix to make the autoload folder temporarily part of the path will go into 2.5.8.

Kurtnoise
13th October 2007, 09:08
ok...I found the problem. It was my fault. :p I had changed the path in the registry key. That's why I had this behaviour. Sorry for the noise.

chrishallowell
2nd November 2007, 18:51
Question/Problem #1:
Using HCGUI and the below script HCGUI pops up the sound GUI but when I try to save to ac3 it gives me this error: "Could not initialize encoder. Probably invalid input."

I'm guessing I'm missing a program or it's in the wrong directory....
Any ideas?

Question/Problem #2:
Using the below script, will soundout exclude the audio for frames 4459 through 4999?

Here's my test script:

LoadPlugin("degrainmedian.dll")
LoadPlugin("fft3dfilter.dll")
LoadPlugin("ColorMatrix.dll")
LoadPlugin("AudioLimiter.dll")
LoadPlugin("soxfilter.dll")
loadplugin("SoundOut.dll")

avisource("E:\Orginal with audio.AVI",audio=true)
AssumeFPS("ntsc_video",sync_audio=true)
Trim(101,4458).Fadeio(30)
Trim(5000,6155).Fadeio(30)
ConvertAudioToFloat().SSRC(41000)
fl = GetRightChannel()
fr = GetRightChannel()
cc = mixaudio(GetRightChannel(),GetRightChannel(),0.707,0.707)
lfe = GetRightChannel() #ConvertToMono(a).SoxFilter("lowpass 120","vol 1.2")
sl = GetRightChannel() #.amplify(-1.0)
sr = GetRightChannel() #.amplify(-1.0)
sl = DelayAudio(sl,0.02)
sr = DelayAudio(sr,0.02)
MergeChannels( fl, fr, cc, lfe, sl, sr).wavgainlimiter(1.0)
SoundOut()

sh0dan
4th November 2007, 09:09
@chrishallowell: #1: You see this error message because the aften AC3 encoder cannot initialize - probably because of sample-rate or similar. Post The sample info the main window shows.

#2: Check your script, you probably meant:

vid = AssumeFPS("ntsc_video",sync_audio=true)
Trim(vid, 101,4458).Fadeio(30) ++ Trim(vid,5000,6155).Fadeio(30)

aleste81
30th November 2007, 20:05
Thanks !
This tool is great. It will allow a fully automated process of encoding A/V.

SoundOut(output = "WAV", filename="D:\CAPTURED\outputFile.wav", autoclose = true, showprogress = true, type = 0)

sh0dan
20th December 2007, 08:49
Note to self, bug report: http://forum.doom9.org/showthread.php?t=132912

Also there are still some overwrite messagebox issues left.

ernstblaauw
11th February 2008, 12:56
Hi,

I found a error in the documentation of this great plugin!
Writing a wav file, the argument 'format = 0' leads to a 8-bit wav-file and 'format = 1' to a 16-bit wav-file. This is contrary to the documentation where the first situation would lead to an 16-bit and the second to 24-bit file.

Thanks!

vlada
23rd February 2008, 11:06
Would it be possible to make a "portable" version of this plugin? Unfortunately I'm on a computer without administrator privileges, so I can't write neither to Avisynth plugin directory neither to system32.

It would be very helpful if the SoundOut would look for libsndfile-1.dll in it's directory. I hope this can be done with a simple change.

sh0dan
23rd February 2008, 13:03
You can place the libsndfile in the current script directory, or the application directory (vdub). OTOH you have already gotten avisynth installed somehow, so you should be able to

A statically linked libsndfile is unfortunately not possible, since no-one has ported it to visual studio.

vlada
25th February 2008, 13:44
Thanks, placing the dll in the application directory is fine for me. I installed Avisynth with administrator rights, but now I don't have them anymore.

I have some more questions regarding your plugin. First of all looking at the size of your plugin, I can't believe it contains all the encoders. So how is it? Are the encoders included (seems so, to me) or do I need some external files (lame, aften, etc.)?

As for lame and oggenc settings, I would suggest to use more standard configuration. Which would be following:

lame: cbr, abr - bitrate, vbr - quality ( -V 0 .. -V 9) + switch whether use --vbr-new (default on).

oggenc: cbr - bitrate, vbr - quality (q -2 .. 10)

What do you think about these changes?

vlada
25th February 2008, 22:28
And one more question:

I need a CLI program, which would just "ping" the AviSynth script and start audio compression through SoundOut. I tried AVS2AVI with this command:
avs2avi.exe "audio.avs" -c "null" -o n

The problem is, that AVS2AVI starts SoundOut two times. Once during analyzing the script and once during the "fake" processing. Do you have any ideas what should I try? Many thanks.

tebasuna51
26th February 2008, 02:42
The problem is, that AVS2AVI starts SoundOut two times. Once during analyzing the script and once during the "fake" processing. Do you have any ideas what should I try? Many thanks.

Try with:
avs2avi.exe "audio.avs" -c null -q -e

vlada
26th February 2008, 19:19
tebasuna51
Many thanks, this works fine.

Ranguvar
11th March 2008, 00:57
The LAME stdin problem (http://sourceforge.net/tracker/index.php?func=detail&aid=1576370&group_id=290&atid=300290) has been fixed since 3.98 beta 5, as long as you have that or later, no need to worry people as you did me :p (http://lame.cvs.sourceforge.net/*checkout*/lame/lame/doc/html/history.html)

Thanks very much for this plugin!
Now, all we need is a direct-to-x264 plugin... :p

tebasuna51
11th March 2008, 03:16
The LAME stdin problem (http://sourceforge.net/tracker/index.php?func=detail&aid=1576370&group_id=290&atid=300290) has been fixed since 3.98 beta 5, as long as you have that or later, no need to worry people as you did me :p (http://lame.cvs.sourceforge.net/*checkout*/lame/lame/doc/html/history.html)


The LAME stdin problem never was a problem for SoundOut, everybody can use 3.97 safely.

LAME never do a fseek (the stdin problem) when standard wav header is send, like do AviSynth methods (SoundOut, BeHappy, Wavi).

jmartinr
10th April 2008, 20:55
SoundOut plugin is very useful. :thanks:

Doing two encodes at the same time I found out that the below normal priority of SoundOut can result in lagging behind if the two CPU's (Core @ Duo E6400) are very busy, resulting in the video being ready before the soundencode.

Because my batch file muxes both right afterwards this leads to problems.

So I would like a possibility to raise the priority to normal, or just a SoundOut with normal priority. Which would make it more predictable when using it on a busy system.

sh0dan
11th April 2008, 07:56
@jmartinr: What is your script and your batch file. It should not be possible for the script to shut down before the sound processing has been completed.

jmartinr
11th April 2008, 09:13
It should not be possible for the script to shut down before the sound processing has been completed. Thanks for your reply. I'll look at it a bit more before I get back to you.

jmartinr
13th April 2008, 21:47
What is your script and your batch file. It should not be possible for the script to shut down before the sound processing has been completed.
Well, that it doesn't do, but it can give an error in x264.

I'm very sorry. I tried to hunt the problem down, but didn't really succeed there. First time I retried I had the same problem, encoding 2 files and watching a video at the same time. But it took more than a half hour.

Convinced it would be easy to reproduce the error in a simple way, I didn't take a good look at it. I just noticed the "x264.exe" and "soundout.dll" in the error message. Instead I simplified my script and batch file and tried again, but although I think I only took the unimportant parts out I was not able to reproduce the error. Going back to the original configuration also did not provoke any errors anymore. I still think it has something to do with workload. The errors only came after x264 had waited for soundout to finish. I don't think it's useful to send you my whole production scheme, video files and machine configuration.

So now what? I dug out the DrWatson log of the error and attached it here. I hope that can be of any use for you.

sh0dan
14th April 2008, 20:07
@jmartinr: Do you have the original script?

I have added a "blockvideo" parameter in my current home code that will block any video requests until the audio has finished encoding - that will ensure that audio gets done before any video can be processed. If you still experience problems, PM me, and I'll send you a version.

Ranguvar
9th June 2008, 20:19
Note, SoundOut() seemed to suppress a message that should have told me I had typed the filename for my input wrong. MPC-HC would just open up the AVS and play a blank clip of correct resolution for the video for a few seconds. It wasn't until I opened it in VirtualDub that I saw the error, by way of its extended error handling.

Ranguvar
9th June 2008, 20:35
Another thing... I would like to increase the volume level of a DVD I have already ripped (5.1 AAC-LC), on the fly. If I want to use the stats from SoundOut, by how much should I AmplifydB()? Where do I look? And is there something special I need to do for 5.1 audio? Thanks, I'm not really that experienced with audio, but I'd like to be.

Example:
Analyzed 100%.

[Ch 0] Maximum:-1.80dB. Average:-36.08dB. RMS:-29.92dB. ReplayGain:5.43dB
[Ch 1] Maximum:-0.92dB. Average:-35.13dB. RMS:-29.13dB. ReplayGain:5.24dB
[Ch 2] Maximum:0.00dB. Average:1.#RdB. RMS:1.#RdB. ReplayGain:2.30dB
[Ch 3] Maximum:-6.17dB. Average:1.#RdB. RMS:1.#RdB. ReplayGain:32.14dB
[Ch 4] Maximum:-1.52dB. Average:1.#RdB. RMS:1.#RdB. ReplayGain:7.72dB
[Ch 5] Maximum:-1.85dB. Average:1.#RdB. RMS:1.#RdB. ReplayGain:7.71dB

[All channels] Maximum:0.00dB. Average:1.#RdB. RMS:1.#RdB

sh0dan
9th June 2008, 21:34
@Ranguvar: It seems like you cannot amplify your sound any more, since channel 2 is already at maximum without clipping.

On another note, the average and rms calculations seems to have problems for the last bunch of channels. Strange.

Ranguvar
10th June 2008, 00:23
Strange. However, suppose for a different 5.1 source, how do I find out how much to AmplifydB()?

And, did you see my post about SoundOut() suppressing error messages?

tebasuna51
10th June 2008, 00:57
However, suppose for a different 5.1 source, how do I find out how much to AmplifydB()?

You have:
...
[All channels] Maximum:0.00dB....
then you can't amplify more, if you have:
...
[All channels] Maximum:-4.00dB....
you can AmplifydB(4) without cut the audio signal.

About the error messages I think is a issue of the player, not SoundOut issue, but maybe sh0dan can answer better.

Ranguvar
10th June 2008, 03:42
You have:
...
[All channels] Maximum:0.00dB....
then you can't amplify more, if you have:
...
[All channels] Maximum:-4.00dB....
you can AmplifydB(4) without cut the audio signal.

About the error messages I think is a issue of the player, not SoundOut issue, but maybe sh0dan can answer better.

Okay, so it's the maximum I'm looking at. Thanks. Just to check, so if I had all channels under 0, I would amplify by the absolute value of the one closest to 0? :thanks:

tebasuna51
10th June 2008, 08:37
Okay, so it's the maximum I'm looking at. Thanks. Just to check, so if I had all channels under 0, I would amplify by the absolute value of the one closest to 0?

Yep, the below line, [All channels], give you the maximum closest to 0.

Underground78
13th June 2008, 16:31
Hello,

I have a quite strange issue when encoding with x264.exe an avisynth script using SoundOut() : after a while the classical error window pops up announcing that x264.exe has crashed but actually the encoding process continues and finally both the video file and the audio file work correctly ... It isn't a serious bug but it's just quite surprising so if you don't have time for that, no problem ! If you need some other informations (and I think so), I would be happy to try to help you.

Thanks

NB : It may be the same problem jmartinr was reported in this message (http://forum.doom9.org/showthread.php?p=1125258#post1125258) but I am not really sure ...

jmartinr
13th June 2008, 22:32
I have a quite strange issue when encoding with x264.exe an avisynth script using SoundOut() : after a while the classical error window pops up announcing that x264.exe has crashed but actually the encoding process continues and finally both the video file and the audio file work correctly ... It isn't a serious bug but it's just quite surprising so if you don't have time for that, no problem ! If you need some other informations (and I think so), I would be happy to try to help you.

Thanks

NB : It may be the same problem jmartinr was reported in this message (http://forum.doom9.org/showthread.php?p=1125258#post1125258) but I am not really sure ...

It might be. And now I've given it a bit more consideration, I think it might also be more of a X264 problem. Can you reproduce? Also with the latest X264 version? Lately quite a few bugs were removed.

Underground78
14th June 2008, 08:21
Yes, I always can reproduce if the encoding is long enough ... I always update x264 so yes, it happens with the latest x264 version too.

Underground78
12th July 2008, 09:04
Hello,

Still no idea about this problem (http://forum.doom9.org/showthread.php?p=1148642#post1148642) ?

vlada
12th July 2008, 15:40
Have anyone of you successfully used FAAC and SoundOut? For me it only encodes one half and then freezes. Nero AAC works, but it is not free for distribution or commercial use.