Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th March 2008, 13:13   #1  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
BassAudio - New version (2014-12-12)

IMPORTANT EDIT
At this moment (2016) I recommend use LWLibavAudioSource like AviSynth audio decoder instead BassAudio (or NicAudio).
Then I never will make new versions of BassAudio.
---------------------------------------------------------------------------------------------------- EDIT END
I open a new thread to request everybody interested to test this new version.

BassAudio2410.7z

I think the problems are solved now. My first test with aac and wma seems work fine.

Please send yours results here.

EDIT: New version thanks to forclip.
The 2.4.10 version is included also in last BeHappy package (read carefully the readme.txt in plugins folder)

Last edited by tebasuna51; 30th January 2016 at 13:19.
tebasuna51 is offline   Reply With Quote
Old 14th March 2008, 18:19   #2  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Can you use some other hosting please?

Quote:
I think the problems are solved now. My first test with aac and wma seems work fine.
Did 5.1 AAC and WMA decoding work?
shon3i is offline   Reply With Quote
Old 14th March 2008, 18:41   #3  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by shon3i View Post
Can you use some other hosting please?
Select one for your convenience.

I'm still waiting your register in CodePlex to do a new BeHappy package (now we can add this bass version).

Quote:
Did 5.1 AAC and WMA decoding work?
Work fine with my samples.

Don't work for me:

.mid

.ac3 with non standard acmod channels (e = empty channel):
2/0.1 -> L,e,R,FE,e,e
2/1.0 -> L,R,BC,BC
3/0.1 -> L,R,C,FE,e,e
3/1.0 -> L,R,C,BC,BC
2/1.1 -> L,BC,R,FE,BC,e
3/1.1 -> L,R,C,FE,BC,BC
2/2.1 -> L,BL,R,FE,BR,e
ok with 1/0.0, 1/0.1, 2/0.0, 3/0.0, 2/2.0, 3/2.0, 3/2.1
(all work fine with a new NiacAudio.dll version pending to publish)

For me BassAudio is the AviSynth decoder for Flac, Cda(Audio CD), Ogg, Wma and Aac/M4a (Stereo/5.1/LC/HE/PS tested).

Waiting for test in other formats like: alac, ape, mpc, ofr, spx, tta, wv
but I think we can be optimist, I think these formats can be always optional.

Last edited by tebasuna51; 14th March 2008 at 19:30.
tebasuna51 is offline   Reply With Quote
Old 14th March 2008, 20:00   #4  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 826
Quote:
Originally Posted by tebasuna51 View Post
Select one for your convenience.
Please post it to http://ulozto.net/ because I'd like to try this new version too and MEGAUPLOAD Toolbar is big NO NO on my PC
kypec is offline   Reply With Quote
Old 14th March 2008, 20:05   #5  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
New link to BassAudio23.7z

EDIT: Link deleted
Use instead 2.4 version included in BeHappy package (read carefully the readme.txt in plugins folder)

Last edited by tebasuna51; 2nd December 2008 at 19:32.
tebasuna51 is offline   Reply With Quote
Old 17th March 2008, 13:57   #6  |  Link
Southstorm
20yr Videographer
 
Join Date: Jan 2008
Location: The Great Northwest
Posts: 272
Having some trouble downloading....

Nevermind, finally got it. Thanks.

Last edited by Southstorm; 17th March 2008 at 14:11.
Southstorm is offline   Reply With Quote
Old 8th May 2008, 10:15   #7  |  Link
SpAwN_gUy
Junglist
 
SpAwN_gUy's Avatar
 
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
hello.. i dunno where to post, so...

as BeHappy is UpDated to 2.4 bass, and the BassAudio.dll is also updated... can anyone make a package of 2.4, that "WORKS"...
'cause on the main site of bass dll there are no (taken form beHappy readme)
Code:
bass_cda.dll    Optional to read CD Audio. Link(1)
bass_flac.dll   Optional to read Flac until v1.2.1. Link(1)
bass_wv.dll     Optional to read WV, WavPack Audio. Link(1)
and when other plugins are updated, some older plugz show errors, like.. "Bass.dll version 2.2 is needed", and "bass.dll version 2.3 is required" (the first one might be my problem, as far as i have the extermely old beHappy package)
__________________
Rule Number 6: Concentrate!!!
(c)Hercules, Disney

"I like to build planes.... in the air" (c) some ADV.

tutorials
How to Setup agent-based encoding with x264farm (the easy way)
SpAwN_gUy is offline   Reply With Quote
Old 8th May 2008, 11:46   #8  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by SpAwN_gUy View Post
hello.. i dunno where to post, so...
Here is Ok. Or in Behappy thread.
Quote:
as BeHappy is UpDated to 2.4 bass, and the BassAudio.dll is also updated... can anyone make a package of 2.4, that "WORKS"...
'cause on the main site of bass dll there are no
I can't send you other than the last v2.4 from un4seen, maybe ...
Quote:
(taken form beHappy readme)
Code:
bass_cda.dll    Optional to read CD Audio. Link(1)
bass_flac.dll   Optional to read Flac until v1.2.1. Link(1)
bass_wv.dll     Optional to read WV, WavPack Audio. Link(1)
also from the readme:
"There are some bass*.dll than must be renamed to bass_*.dll to be load properly in AviSynth."

and basscd.dll, bassflac.dll, basswv.dll and basswma.dll must be renamed to bass_SOMETHING.dll, because BassAudio.dll (Bass-AviSynth interface) first need load the main dll (bass.dll) and after any other Bass subplugins (bass_*.dll).
Quote:
and when other plugins are updated, some older plugz show errors, like.. "Bass.dll version 2.2 is needed", and "bass.dll version 2.3 is required" (the first one might be my problem, as far as i have the extermely old beHappy package)
This is a Bass requisite all dll must match the version and also BassAudio.dll (AviSynth interface) must match. The correct procedure to upgrade to 2.4 version is delete Bass*.dll from ...\AviSynth 2.5\plugins folder, load BassAudio.dll v2.4 from the last BeHappy release, and from un4seen site the main bass.dll (v2.4.x) and any other Add-on (v2.4.x) renamed to bass_*.dll

Of course only decoder Add-ons are tested with AviSynth.

Last edited by tebasuna51; 8th May 2008 at 11:50.
tebasuna51 is offline   Reply With Quote
Old 23rd September 2008, 22:30   #9  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
It's really great to have this plugin, one little issue though: startup opening scripts takes 2-3 seconds longer just putting the libraries in the plugin auto load folder, even if the script don't use the plugin, shutdown is also noticable slower.
stax76 is offline   Reply With Quote
Old 23rd September 2008, 23:13   #10  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by stax View Post
It's really great to have this plugin, one little issue though: startup opening scripts takes 2-3 seconds longer just putting the libraries in the plugin auto load folder, even if the script don't use the plugin, shutdown is also noticable slower.
Yep, you always can put all .dll at another folder and load explictly only the plugins needed in the script.

To use the Bass lib's you only need for instance:
LoadPlugin("C:\Temp\BassAudio.dll")

at "C:\Temp\" you need BassAudio.dll, Bass.dll and the optional Bass_*.dll
tebasuna51 is offline   Reply With Quote
Old 23rd September 2008, 23:40   #11  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
Can this be used to load winamp DSP plugins in AviSynth?
http://un4seen.com/bass.html#maddons

Also could we use the BASS lib to do this?
http://forum.doom9.org/showthread.php?t=141063

Last edited by mikeytown2; 23rd September 2008 at 23:43.
mikeytown2 is offline   Reply With Quote
Old 24th September 2008, 01:28   #12  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by mikeytown2 View Post
Can this be used to load winamp DSP plugins in AviSynth?
BassAudio only provides a source filter, for the formats supported by BASS. It does not currently support any of BASS's DSP features. (Strangely, I was looking at this only the other day, with the thought of perhaps using the BASS VST add-on as a way of getting VST plugins into Avisynth.)
Quote:
Also could we use the BASS lib to do this? [output audio for a frame]
If you mean to write an AVisynth plugin using the BASS lib as the audio renderer, then in principle, yes, and I imagine it would be easier than using DirectSound.
Gavino is offline   Reply With Quote
Old 24th September 2008, 02:20   #13  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
I don't know. You can try.

I read your thread and I can't imagine for what you need so. You can play avs files in VirtualDub or MPC.

Good luck.
tebasuna51 is offline   Reply With Quote
Old 27th September 2008, 15:28   #14  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by tebasuna51 View Post
Don't work for me:
.mid
Any idea why .mid doesn't work properly?

I have the BASS midi add-on and an appropriate soundfont installed, and the BASS midi test works perfectly. However, when using BassAudioSource with a midi file in Avisynth, I can hear chunks of what sounds intermittently like the right output, but it is obviously not complete.

Looking at the resulting audio file with a wave editor, I can see that it is the right length, but consists of short bursts of sound interpersed with longer bursts of silence.

Any ideas?
Gavino is offline   Reply With Quote
Old 2nd October 2008, 20:24   #15  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
@tebasuna51

After some experimentation, and a little intelligent guesswork, I've found the source of the problem with .mid, and how to fix it.

My diagnosis is that BASS_ChannelSetPosition on a Midi stream does not take into account notes already playing at the new position.

I don't know if this is a bug or a feature in the BASS Midi library, but with the way BassAudioSource uses BASS_ChannelSetPosition on each GetAudio call, the result is that notes are cut off and do not sound for their full length.

The solution (which I have tested) is to change this line (in bassAudioSource::GetAudio)
Code:
BASS_ChannelSetPosition(_streamHandle, pos, BASS_POS_BYTE);    // 2.4
to this
Code:
QWORD currPos = BASS_ChannelGetPosition(_streamHandle, BASS_POS_BYTE);
if (pos != currPos)
    BASS_ChannelSetPosition(_streamHandle, pos, BASS_POS_BYTE);    // 2.4
ie do not call BASS_ChannelSetPosition if the position is already correct.
Gavino is offline   Reply With Quote
Old 3rd October 2008, 02:30   #16  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
@Gavino
I don't know your BassAudio.cpp because the last source for bassAudioSource::GetAudio is :
Code:
void __stdcall bassAudioSource::GetAudio(void* buf, __int64 start, __int64 count, IScriptEnvironment* env) {
...
        QWORD pos = start;
        pos *= vi.BytesPerAudioSample();
        if (start != last_sample) BASS_ChannelSetPosition(_streamHandle, pos, BASS_POS_BYTE);    // 2.4

        DWORD length = count;
        length *= vi.BytesPerAudioSample();

        BASS_ChannelGetData( _streamHandle, buf, length);
        last_sample = start + count;
}
then only call BASS_ChannelSetPosition when the sample required isn't the last sample read + 1, same idea than you but with samples instead bytes.

Is the main patch I make to original bassaudio from Dimzon, when BASS_ChannelSetPosition is called the decoders are initialized and lose info from precedent frame.

Last edited by tebasuna51; 3rd October 2008 at 02:38.
tebasuna51 is offline   Reply With Quote
Old 3rd October 2008, 17:21   #17  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
ĦAy, que tonto!
Turns out I was using an older version of BassAudio which I got from this post. I think I got confused by the filename bassAudio23_24.7z into thinking that it was the latest version, in place of the real one (bassAudio23.7z). Sorry about that.

Incidentally, I see that last_sample is initialised to 2, a valid (though unlikely) value for the first GetAudio call.
Wouldn't 0 (or -1 if you want to force at least one call to BASS_ChannelSetPosition) be a better value to use?

A further question:
I am thinking of using the BASS libraries to allow VST (and possibly Winamp) DSP effects to be used within Avisynth. Do you think it would make sense to combine this with BassAudio (as an additional function) or do you think a completely separate plugin would be more appropriate? Bear in mind that there would be some code in common, eg loading the BASS libraries.
Gavino is offline   Reply With Quote
Old 3rd October 2008, 21:43   #18  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by Gavino View Post
ĦAy, que tonto!
Turns out I was using an older version of BassAudio which I got from this post. I think I got confused by the filename bassAudio23_24.7z into thinking that it was the latest version, in place of the real one (bassAudio23.7z). Sorry about that.
The last BassAudio sources are always at last BeHappy release (plugins folder).
Quote:
Incidentally, I see that last_sample is initialised to 2, a valid (though unlikely) value for the first GetAudio call.
Wouldn't 0 (or -1 if you want to force at least one call to BASS_ChannelSetPosition) be a better value to use?
Can be -1 of course.
Quote:
A further question:
I am thinking of using the BASS libraries to allow VST (and possibly Winamp) DSP effects to be used within Avisynth. Do you think it would make sense to combine this with BassAudio (as an additional function) or do you think a completely separate plugin would be more appropriate? Bear in mind that there would be some code in common, eg loading the BASS libraries.
You can use the same plugin, if we detect any problem then you can make another.
tebasuna51 is offline   Reply With Quote
Old 28th February 2009, 18:53   #19  |  Link
morphinapg
ASXGui Developer
 
morphinapg's Avatar
 
Join Date: Sep 2007
Posts: 248
Quote:
Originally Posted by tebasuna51 View Post
The last BassAudio sources are always at last BeHappy release (plugins folder).
There is no plugins folder in the current release
__________________
ASXGui 2.5 / Installer
Thread / All Downloads
morphinapg is offline   Reply With Quote
Old 1st March 2009, 03:18   #20  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
The BeHappy interface with bass libraries don't change (BeHappy release 0.2.2.30338) if Bass remain at 2.4 version.
You can download the last Bass changes in http://www.un4seen.com/
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.