25 May '13 - 02:12 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 ... 118 119 [120] 121 122 ... 135
  Reply  |  Print  
Author Topic: BASS_DSHOW Video Library  (Read 272076 times)
Ionut Cristea
Posts: 1376


« Reply #2380 on: 9 Mar '12 - 13:40 »
Reply with quoteQuote

  That's very strange. What video renderer you use?
Logged
Jens
Guest
« Reply #2381 on: 9 Mar '12 - 16:43 »
Reply with quoteQuote

Hi,

i'm working with windows 7.
I don't know about renderer, grahic card driver is GMA driver. Where can i look for it ?
The multioutput.exe demo is also crashing. I'm worry to go on testing, because i have to repair windows after the blue screen. I'm working day by day with my computer and never have problems with it.
The bassvideo for example makes no problem, but i cannot decode the audio data the way i want.
any ideas ?

kind regards
Jens
Logged
smoodilo
Guest
« Reply #2382 on: 14 Mar '12 - 10:55 »
Reply with quoteQuote

  BASS_DSHOW is a fully BASS plugin, so you can use BASS function. For other functions like setting video use xVideo_ChannelSetWindow function

So if I understand this correctly, all I need to do now is load BASS_DSHOW with PLUGINLOAD and then my application should be able to play videos with normal bass_streamcreate? Is that correct?


Logged
Ionut Cristea
Posts: 1376


« Reply #2383 on: 14 Mar '12 - 11:48 »
Reply with quoteQuote

  Yes that's correct. Also, with latest BASS_DSHOW uploaded here on site, you'll need bassmix.
Logged
smoodilo
Guest
« Reply #2384 on: 14 Mar '12 - 14:01 »
Reply with quoteQuote

  Yes that's correct. Also, with latest BASS_DSHOW uploaded here on site, you'll need bassmix.

Ok,

I did what you said (import bassmix and bass_dshow) and now the sound of the video plays with no video output window.

So I guess there has to be done something more??? E.g. specify a video window somewhere??
Logged
Ionut Cristea
Posts: 1376


« Reply #2385 on: 14 Mar '12 - 14:15 »
Reply with quoteQuote

  Yep a video window should set.
Logged
smoodilo
Guest
« Reply #2386 on: 14 Mar '12 - 14:17 »
Reply with quoteQuote

  Yep a video window should set.

How??

'Un4seen.Bass.AddOn.DShow.BassDShow.BASS_DSHOW_Init(frmMain.Handle)' throws an exception (dshow_init not found in bass_dshow.dll).



Logged
Ionut Cristea
Posts: 1376


« Reply #2387 on: 14 Mar '12 - 14:33 »
Reply with quoteQuote

http://surodev.com/downloads/BASS_DSHOW.zip

Also i suggest using latest BASS.NET
Logged
bensam56
Posts: 65


« Reply #2388 on: 15 Mar '12 - 11:20 »
Reply with quoteQuote

Hello Ionut, Check your inbox. Thanks!

Regards,
Ben
Logged
smoodilo
Guest
« Reply #2389 on: 15 Mar '12 - 20:44 »
Reply with quoteQuote

http://surodev.com/downloads/BASS_DSHOW.zip

Also i suggest using latest BASS.NET

Using Bass_Dshow from this link gives me a 'incorrect version of Bass_DSHOW loaded. Expected V2.4. This version 0.1'
Logged
Ionut Cristea
Posts: 1376


« Reply #2390 on: 16 Mar '12 - 10:20 »
Reply with quoteQuote

Just bypass the version checking
Logged
DeadIsaac
Posts: 11


« Reply #2391 on: 16 Mar '12 - 11:01 »
Reply with quoteQuote

 @Ionut Cristea hej can you check your inbox
i don't know how initalize the bass_dshow and how can i play a video can you help me please  Cry

in visual basic 2010

thanks DeadIsaac
Logged
ken
Posts: 630


« Reply #2392 on: 16 Mar '12 - 20:35 »
Reply with quoteQuote

Hi,

I cant get "xVideo_STREAM_LOOP" to work. I assume it will loop my video until I call stop. But it only play once and stop.

I use like this (mix mode)

_chanV1 = xVideo.Functions.xVideo_StreamCreateFile(@"C:\Videos\SD0058.wmv", 0, IntPtr.Zero, xVideo.xVideo_StreamFlags.xVideo_STREAM_MIX | xVideo.xVideo_StreamFlags.xVideo_UNICODE | xVideo.xVideo_StreamFlags.xVideo_STREAM_LOOP | xVideo.xVideo_StreamFlags.xVideo_NOAUDIO_PROC);

xVideo.Functions.xVideo_ChannelPlay(_chanV1);


Any suggerstions?

/Ken
Logged
smoodilo
Guest
« Reply #2393 on: 17 Mar '12 - 12:23 »
Reply with quoteQuote

Ok, since noone is going to put 5 lines of code together, I am struggling with this for over 2 years now, and there still is no documentation/basic example of how to play a video the right way in vb.net I'm going to post the code I have so far here.

Maybe someone would be so kind to tell me why it is not working?

-----------------
Imports Un4seen.Bass
Imports Un4seen.Bass.AddOn.Fx

Public class FrmMain

Private Sub FrmMain_Load

     initbass  'I put the init in a sub

     Bass.BASS_PluginLoad("bass_aac.dll")
     Bass.BASS_PluginLoad("basswma.dll")
     Bass.BASS_PluginLoad("bass_fx.dll")
     Bass.BASS_PluginLoad("bass_ac3.dll")
     Bass.BASS_PluginLoad("bassmix.dll")
     Bass.BASS_PluginLoad("bass_dshow.dll")

     Un4seen.Bass.AddOn.DShow.BassDShow.BASS_DSHOW_Init(FrmMain.Handle, _
     AddOn.DShow.BASSDSHOWInit.BASS_DSHOW_Default)
End Sub


Public Sub PlayVideo handles button1.click

PL1 = Bass.BASS_StreamCreateFile("c:\test.m4v", 0, 0, _
BASSFlag.BASS_STREAM_AUTOFREE Or OUTPUT)

Bass.BASS_ChannelPlay(PL1, False)
                    
End Class
----------------------------------------------------------------------

I hear sound but see no video.

Please... someone?



Logged
Ionut Cristea
Posts: 1376


« Reply #2394 on: 17 Mar '12 - 15:16 »
Reply with quoteQuote

 Those calls seems right. Anyway, for some files you need the right codec, and to be sure that video from mp4/wmv/m4v load BASS_DSHOW before bass_aac/bass_wma addons
Logged
smoodilo
Guest
« Reply #2395 on: 17 Mar '12 - 15:21 »
Reply with quoteQuote

Of course I have the right codecs. I can play the files fine with any other solution on my system.
I'll give it a try with changing the order.

But what should really happen?
Should there be a videowindow popup, or does the video paint to the main form?
Logged
Ionut Cristea
Posts: 1376


« Reply #2396 on: 17 Mar '12 - 15:24 »
Reply with quoteQuote

By default video will play on the form you specified in the BASS_DSHOW_Init, else will play in the video specified with BASS_DSHOW_ChannelSetWindow.

Anyway, in your code , bass_aac will be used first, that's why you hear only audio
Logged
smoodilo
Guest
« Reply #2397 on: 17 Mar '12 - 16:07 »
Reply with quoteQuote

You're right,

Putting DSHOW on top of the plugins works. I FINALLY see an image,  Grin yeay! Grin

Now for the next question:
Channelsetwindow is not available (anymore) in the bassdshow namespace. It was before. Where can I find it?

(Or is this a question for Bernd maybe?)




Logged
Ionut Cristea
Posts: 1376


« Reply #2398 on: 17 Mar '12 - 17:08 »
Reply with quoteQuote

 
Quote
(Or is this a question for Bernd maybe?)

I believe it is.
Logged
DeadIsaac
Posts: 11


« Reply #2399 on: 19 Mar '12 - 18:15 »
Reply with quoteQuote

[VB.NET]
I have a little problem when i debug my porgramm i got a error incorrect BASSDSHOW version was loaded has anyone a solution.  Undecided



Thanks DeadIsaac
Logged
Pages: 1 ... 118 119 [120] 121 122 ... 135
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines