BASS_DSHOW Video Library

Started by Ionut Cristea,


Erazer

Of course work with writewav.exe sample.

Ionut Cristea

 Sorry,but i don't understand you.


jeffdavis

I tried the latest plugin version on the first post.  I get a valid handle when loading the plugin but when I call BASS_StreamCreateFile it returns 0.  I have tried with MPG file and AVI file.

I am doing

BASS_Init(-01,48000,0,hWnd,0)
PluginHandle = BASS_PluginLoad("BASS_DSHOW.DLL")
outHandle = BASS_StreamCreateFile(BASSFALSE,ptr(filename),0,0,0)

I am creating a demo for you in VB.  The VB BAS file you have has errors that I have fixed. 

quickmic

Jep... VB6 APIs are wrong.... They should be like this:

Declare Function BASS_DSHOW_ChannelSetWindow Lib "Bass_DSHOW.dll" (ByVal chan As Long, ByVal handle As Long) As Long
Declare Function BASS_DSHOW_ChannelSetFullscreen Lib "Bass_DSHOW.dll" (ByVal chan As Long, ByVal value As Long) As Long
Declare Function BASS_DSHOW_ChannelResizeWindow Lib "Bass_DSHOW.dll" (ByVal chan As Long, ByVal left As Long, ByVal top As Long, ByVal right As Long, ByVal bottom As Long) As Long

Ionut Cristea

 
QuoteBASS_Init(-01,48000,0,hWnd,0)
PluginHandle = BASS_PluginLoad("BASS_DSHOW.DLL")
outHandle = BASS_StreamCreateFile(BASSFALSE,ptr(filename),0,0,0)

Thanks...please sent it to me at sharky_boy_07@yahoo.com. I will include the demo in the next release.

Cheers, Sharky.

Ionut Cristea

QuotePluginHandle = BASS_PluginLoad("BASS_DSHOW.DLL")

i'm not a vb user but the loading should be like this:
PluginHandle = BASS_PluginLoad(applicationdir+"BASS_DSHOW.DLL")

quickmic

I use BassDShow as plugin. Here a bug:

"Call BASS_ChannelPlay(Stream, 0)" starts audio and video correct (for the first time).
"Call BASS_ChannelPause(Stream)" only stops the audio. Video is still running.

If I use additionally BASS_DSHOW_ChannelPause and BASS_DSHOW_ChannelPlay it works as it should, but imho that's not the correct way.



Ionut Cristea

QuoteI use BassDShow as plugin. Here a bug:

"Call BASS_ChannelPlay(Stream, 0)" starts audio and video correct (for the first time).
"Call BASS_ChannelPause(Stream)" only stops the audio. Video is still running.

If I use additionally BASS_DSHOW_ChannelPause and BASS_DSHOW_ChannelPlay it works as it should, but imho that's not the correct way.

Yes i know about those bugs...i will release today a version that will work correctly.

Cheers, Sharky.

Ionut Cristea

Hi...did anyone found any bugs at bass_dshow and want to me to fix them?

PS: the new BASS_DSHOW version will have integrated aac decoding.

Erazer

Does it work like bass plugin with writewav example ? ;)

Ionut Cristea

Yep...check the first post->first link. It has now integrated mpeg2 decoding and functions to add text or images to video.


Cheers, Sharky.

quickmic


Ionut Cristea

 Yes...i see...it it's a mpg movie with vorbis audio...so if you don't have a codec installed bass_dshow it will not play it. Can i ask from where do you have that movie?

Cheers, Sharky.

Erazer

Quote from: Sharky08Yes...i see...it it's a mpg movie with vorbis audio...so if you don't have a codec installed bass_dshow it will not play it. Can i ask from where do you have that movie?

Cheers, Sharky.

It does not understand stream from bass.dll ?  ;) Is it bass plugin ?

Ionut Cristea

QuoteIt does not understand stream from bass.dll ?  Wink Is it bass plugin ?

BASS_DSHOW uses directshow for playing...so if the necesary codec is not installed then your file will not play.

Erazer

Why it does not use bass plugins to play audio ?

Ionut Cristea

For that i need to write a directshow filter that use bass for decoding...That is not so hard...so i will implement this feature to bass_dshow.

quickmic

The video is from Nero9 templates. "D:\Nero 9\Nero 9\Templates\MovieWizard\BlueHorizon".

Ionut Cristea

QuoteThe video is from Nero9 templates. "D:\Nero 9\Nero 9\Templates\MovieWizard\BlueHorizon".

What about the audio?

Erazer

Quote from: Sharky08For that i need to write a directshow filter that use bass for decoding...That is not so hard...so i will implement this feature to bass_dshow.

Sure it's better than implementation decoders which are implemented in bass plugins in bass_dshow...  ;)

And most interesting for me question when at last bass_dshow will work like bass plugin ?  ::)

Ionut Cristea

QuoteAnd most interesting for me question when at last bass_dshow will work like bass plugin ?  Roll Eyes

Why do you say that...write wav example doesn't work for you?

quickmic

I have no audio even I play it with Mediaplayer.
I have K-Lite-Codec Pack installed, but I will look for another codecs. Did you hear audio?
I thought, the video is anyway without audio.

Erazer

Check it by MediaInfo of Gspot  ;)