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 6th March 2006, 16:11   #1  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
BassAudio - fresh alpha is out! (2006-03-07)

BassAudio is wrapper around BASS library
http://www.un4seen.com/bass.html

The BASS library is free for non-money making use - if you are not charging for the software (and it has no other commercial purpose, eg. advertising), then you can use BASS in it for free.


Currently my plugin must support

MP3/MP2/MP1/OGG/WAV/AIFF/WMA/FLAC/WavPack/Speex/Musepack /AAC/M4A/APE/MO3 / IT / XM / S3M / MTM / MOD / UMX

Usage sample:

Code:
bassAudioSource("C:\ab\Dido\001 Here With Me.m4a")
or
Code:
bassAudioSource("C:\ab\Dido\001 Here With Me.aac")
or
Code:
bassAudioSource("C:\ab\Dido\001 Here With Me.mp3")

Warning! This is REALLY alpha version - i need testing from You!

Download it here:
http://www.mytempdir.com/497118
and apply this update first: http://www.mytempdir.com/499293

Source code is here:
http://www.mytempdir.com/497135

edit Wilbert:
downloads:
http://www.geocities.com/wilbertdijk...firstAlpha.zip
http://www.geocities.com/wilbertdijk...tAlpha-src.zip
http://www.geocities.com/wilbertdijk...3-07-patch.zip (update)
http://www.geocities.com/wilbertdijkhof/basscd22.zip (BASSCD 2.2 / for CDa)

Last edited by Wilbert; 21st January 2007 at 14:36.
dimzon is offline   Reply With Quote
Old 6th March 2006, 17:45   #2  |  Link
Inc
Squeeze it!
 
Inc's Avatar
 
Join Date: Oct 2003
Location: Germany
Posts: 472
интересно!

Maybe you have a look at Libavcodec, as it supports many other formats too (http://ffmpeg.sourceforge.net/ffmpeg-doc.html#SEC20). Compiling it as shared dll (without demuxers/muxers/encoders, so just the decoders) and handling the avcodec.dll access the same way you did in your approach on the bass.dll could be a nice step.

Beside this ... IMHO MugFunky some time ago asked for a LibavCodecSource() for video handling purposes, but If you compile Libavcodec incl. everything, it can be used to decompress everything supported by libavcodec for avisynth purposes.

http://www.inb.uni-luebeck.de/~boehm...ibavcodec.html

I know theres a ffdshow support for avisynth, but maybe such a plugin could be more handy. Who knows.

Last edited by Inc; 6th March 2006 at 17:50.
Inc is offline   Reply With Quote
Old 6th March 2006, 17:49   #3  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by Inc
Nje plocha,
Does you trying to speak russian? Are You from East - Germany?
dimzon is offline   Reply With Quote
Old 6th March 2006, 17:55   #4  |  Link
Inc
Squeeze it!
 
Inc's Avatar
 
Join Date: Oct 2003
Location: Germany
Posts: 472
Nope Cologne, my russian bases on maybe 5 words, these are the only ones I know:

- Interesno / interesting (just encountered)
- Harascho (?) / very well
- Priviet / Hi
- paka / bye bye ?

A long long time ago I knew some parts of the russian alphabet as the russian language seemed to be (is) very very interesting

Last edited by Inc; 6th March 2006 at 17:57.
Inc is offline   Reply With Quote
Old 6th March 2006, 18:01   #5  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
talking about BASS
fist attempt was to write generic WinAmp plugin wrapper to allow usage of WinAmp input plugin
Then I perform some google-ing to find another players with plugin support. I have found XMPlay and BASS...
dimzon is offline   Reply With Quote
Old 6th March 2006, 18:06   #6  |  Link
Inc
Squeeze it!
 
Inc's Avatar
 
Join Date: Oct 2003
Location: Germany
Posts: 472
There's also "Fmod". AFAIK it supports beside decoding many sound processing algorhythms.
Inc is offline   Reply With Quote
Old 6th March 2006, 18:08   #7  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by Inc
There's also "Fmod". AFAIK it supports beside decoding many sound processing algorhythms.
I have compared it - BASS allows much more formats to be decoded - AC3/WMA/AAC/OGG etc
dimzon is offline   Reply With Quote
Old 6th March 2006, 18:25   #8  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Ogg and aac support means I'll be testing it tonight. Does it downmix at all?
foxyshadis is offline   Reply With Quote
Old 6th March 2006, 18:26   #9  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Audio-CD Ripping using this plugin
Download BASSCD 2.2 from official BASS homepage
Extract basscd.dll
Rename it to bass_cd.dll
Place bass_cd.dll near bassAudio.dll
Write such script:
Code:
bassAudioSource("D:\Track01.cda")
dimzon is offline   Reply With Quote
Old 6th March 2006, 18:27   #10  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by foxyshadis
Ogg and aac support means I'll be testing it tonight. Does it downmix at all?
No. There are possible to DownMix using AviSynth itself - there are no reson to implement built-in downmixer
dimzon is offline   Reply With Quote
Old 6th March 2006, 18:49   #11  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
quick hotfix/patch uploaded!
dimzon is offline   Reply With Quote
Old 6th March 2006, 19:56   #12  |  Link
acrespo
Brazilian Anime Ripper
 
Join Date: Nov 2001
Location: Brazil
Posts: 237
Can I use this plugin to load MPA source files?
__________________
Capture cards:
Compro VideoMate Gold+ (Philips SAA7134 based) (not active)
Hauppauge PVR 150MCE (not active)
ATI TV Wonder Elite (active)
acrespo is offline   Reply With Quote
Old 7th March 2006, 14:40   #13  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
new version is out - now MO3 / IT / XM / S3M / MTM / MOD / UMX file formats are supported
dimzon is offline   Reply With Quote
Old 7th March 2006, 20:12   #14  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
dimzon,
it is really "interesno"

But can I ask you some off-topic: it is possible to create some Avisynth plugins for more advanced audio processing, for example for old vinil click removal, etc? My expirience is for video plugins only.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 7th March 2006, 20:45   #15  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by Fizick
t is possible to create some Avisynth plugins for more advanced audio processing, for example for old vinil click removal, etc? My expirience is for video plugins only.
theoretically why not everything what we need is algorytm/math... unfortunally I'm not DSP expert

Now I'm seriously thinking about generic WinAmp DSP plugin wrapper or/and generic VST plugin wrapper...
dimzon is offline   Reply With Quote
Old 8th March 2006, 11:08   #16  |  Link
chros
Registered User
 
chros's Avatar
 
Join Date: Mar 2002
Posts: 2,323
Haven't you see this on http://www.un4seen.com/ ?

BASS_WADSP 2.2 (.0.5) : An extension enabling the use of Winamp DSP plugins with BASS. C/C++, Delphi and Visual Basic APIs are included.
chros is offline   Reply With Quote
Old 9th March 2006, 09:50   #17  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
AIF LOADER!!! YOU WIN MY INTERNET!!

sorry bout that... i'm excited. the spruce cards here produce aif files, and it's a real pain to convert them to wavs for processing in avisynth. also sucks because soft encode doesn't accept big endian raw files (and if it did there'd no doubt be a click at the start from the file header).

this plugin means i can make a batch process to convert aif to wav, then send that wav to soft encode without the operator having to lift a finger. thanks heaps
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 9th March 2006, 12:08   #18  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by Mug Funky
this plugin means i can make a batch process to convert aif to wav, then send that wav to soft encode without the operator having to lift a finger. thanks heaps
If anyone provide me API for direct invocation of AC3 encoder dll from soft encode i will write my own commandline frontend with pipeline support (direct AIFF->AC3 transcoding without WAV files)
dimzon is offline   Reply With Quote
Old 9th March 2006, 15:24   #19  |  Link
Inc
Squeeze it!
 
Inc's Avatar
 
Join Date: Oct 2003
Location: Germany
Posts: 472
I think if you use a dll function names parser and Google using one of these function names, maybe youll get on a site where the correct accessing is explained - depending on IF softencode somewhere/sometime did release an API Listing for developers of their dll.
Quote:
i will write my own commandline frontend
Btw. Softencode does support Commandlining directly so you can include its acces in Behappy?(maybe at least this helps):
http://forum.doom9.org/showthread.ph...ght=softencode

So you even could support .avs-->.ac3 using Softencodes DVD compilant and correct volume output in Behappy IF stdin input support in Softencode is given.

So the supported arguments of Softencode are:
Quote:
Sonic Foundry Sonic Foundry Soft Encode - Dolby Digital 5.1

-A -o <outputfile> -L <left> -R <right> -C <center> -l <sleft> -r <sright> -e <LFE>

-A Auto Encode
-o Output file encoded
-L Left channel file
-C Center channel file
-R Right channel file
-l Left surround channel file
-r Right surround channel file
-e LFE channel file
-O<channel> to -5<channel> Set channel of given file
e.g. -2L (use second channel of left file)
-c Audio coding mode (default 7 = 3/2 mode)
0 = 1+1 (L, R)
1 = 1/0 (C)
2 = 2/0 (L, R)
3 = 3/0 (L, C, R)
4 = 2/1 (L, R, l)
5 = 3/1 (L, C, R, l)
6 = 2/2 (L, R, l, r)
7 = 3/2 (L, C, R, l, r)
-cr RF overmodulation protection on/off (default 1 = on)
0 = off
1 = on
-f Frame size code (default 14 = 384 kbps)
0 = 32 kbps 7 = 112 kbps 14 = 384 kbps
1 = 40 kbps 8 = 128 kbps 15 = 448 kbps
2 = 48 kbps 9 = 160 kbps 16 = 512 kbps
3 = 56 kbps 10 = 192 kbps 17 = 576 kbps
4 = 64 kbps 11 = 224 kbps 18 = 640 kbps
5 = 80 kbps 12 = 256 kbps
6 = 96 kbps 13 = 320 kbps
-g LFE filter flag (default enabled)
-j DC filter flag (default disabled)
-k Compression characteristic (0..5) (default 0 = off)
0 = no compression
1 = film standard compression
2 = film light compression
3 = music standard compression
4 = music light compression
5 = speech compression
-F Low frequency effects channel on/off (default 1 = on)
-m Perform digital deemphasis (default disabled)
-s Sample rate code (default 0 = 48 kHz)
0 = 48 kHz
1 = 44.1 kHz
2 = 32 kHz
-w Bandwidth filter flag (default disabled)
-9 90 deg phase shift surrounds (default disabled)
-$ Enable 3 dB surround attenuation (default disabled)
-N Store in non-Intel byte order (default 0 = off)
-T Time stamp frames starting at 00:00 (default 0 = off)

Last edited by Inc; 9th March 2006 at 15:31.
Inc is offline   Reply With Quote
Old 9th March 2006, 15:28   #20  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by Inc
Btw. Softencode does support Commandlining directly so you can include its acces in Behappy?(maybe at least this helps)
Nope. I need STDIN support to avoid temporaly WAV files...
Hmm... Seems it's time to lean SoftIce...
dimzon 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 13:29.


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