20 Jun '13 - 00:43 *
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 ... 60 61 [62] 63 64 ... 136
  Reply  |  Print  
Author Topic: BASS_DSHOW Video Library  (Read 296078 times)
quickmic
Posts: 251


« Reply #1220 on: 11 Nov '10 - 09:13 »
Reply with quoteQuote

Call BASS_DSHOW_ChannelSetOption(.StreamDecode, 1009, .Stream, 0) doesn't work by latest version.
Stream-Pause on a decoded channel has no effect to the video. Only audio is stopped.
Logged
Astro29
Posts: 180


« Reply #1221 on: 12 Nov '10 - 23:58 »
Reply with quoteQuote

I'm getting AccessViolationException in both

BASS_DSHOW_ChannelGetInfo

and Bass.BASS_StreamFree (older version of dll doesn't cause an exception here)

VS2008 Windows 7 32bit

Private Structure PBASS_DSVIDEOINFO
Dim AvgTimePerFrame As Double
Dim Height As Integer
Dim Width As Integer
End Structure

Private Declare Sub BASS_DSHOW_ChannelGetInfo Lib "Bass_DSHOW.dll" (ByVal chan As Integer, ByVal value As PBASS_DSVIDEOINFO)

Dim vi As New PBASS_DSVIDEOINFO
BASS_DSHOW_ChannelGetInfo(stream, vi) [exception here]
Debug.Print("video: " & vi.Width & ":" & vi.Height)
Logged
Astro29
Posts: 180


« Reply #1222 on: 13 Nov '10 - 00:00 »
Reply with quoteQuote

never mind, value should have been byref not byval lol
Logged
hellbundy
Posts: 30


« Reply #1223 on: 14 Nov '10 - 04:35 »
Reply with quoteQuote

Sharky,

I think "setconfig" method doesn't work with vb.net.

Code:
Imports Un4seen.Bass
Imports Un4seen.Bass.AddOn.DShow
Imports Un4seen.Bass.AddOn.DShow.BASSDSHOWConfig
Public Class Form1
    Dim ret As Long
    Dim chan As Long
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ret = Bass.BASS_Init(-1, 44100, 0, Me.Handle)
        ret = Bass.BASS_PluginLoad("BASS_DSHOW.dll")
        BassDShow.BASS_DSHOW_Init(Me.Handle)
        BassDShow.BASS_DSHOW_SetConfig(BASS_DSHOW_VideoRenderer)
        BassDShow.BASS_DSHOW_SetConfig(DSHOW_VMRWINDOW, PictureBox1.Handle)
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        chan = BassDShow.BASS_DSHOW_StreamCreateFile(TextBox1.Text, 0)
        BassDShow.BASS_DSHOW_ChannelSetWindow(chan, PictureBox1.Handle)
        Bass.BASS_ChannelPlay(chan, 0)
    End Sub

    Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
        MsgBox("ok")
    End Sub
End Class

I can't change renderer and still can not click picturebox.
Am I the only one using vb.net with dshow here...
Logged
trook
Posts: 1


« Reply #1224 on: 15 Nov '10 - 19:16 »
Reply with quoteQuote

Hi,

i'm developing in RAD studio 2010 and I always get chan (HSTREAM) to be 0.
i use your demopackage from: http://surodev.com/?page_id=22
When I use the demos included in the zipfile, it works.
But after I compile it myself it doesn't work.
I also have delphi 7. No problem in here with thesame code.

Please help me.

Thomas
Logged
Ionut Cristea
Posts: 1382


« Reply #1225 on: 16 Nov '10 - 07:03 »
Reply with quoteQuote

  I think you forgot the BASS_UNICODE flag when loading plugin/create a stream.
Logged
davidpn
Posts: 6


« Reply #1226 on: 17 Nov '10 - 06:08 »
Reply with quoteQuote

I'm having problems using:

  BASS_DSHOW_ChannelSetWindow(Channel, Handle)

When the control resizes. It works the first 3 or 4 times, then totally locks up the application.
Logged
Ionut Cristea
Posts: 1382


« Reply #1227 on: 17 Nov '10 - 06:56 »
Reply with quoteQuote

Quote
I'm having problems using:

  BASS_DSHOW_ChannelSetWindow(Channel, Handle)

When the control resizes. It works the first 3 or 4 times, then totally locks up the application.

  This happen with the latest 2.4.2 ?
Logged
davidpn
Posts: 6


« Reply #1228 on: 18 Nov '10 - 00:53 »
Reply with quoteQuote

Yes, it happens with 2.4.2
Logged
smodilo
Posts: 47


« Reply #1229 on: 21 Nov '10 - 19:27 »
Reply with quoteQuote

hi All,

Because of the many many problems I did not take a look at DSHOW for a few months. This week I thought I give it a try, replaced the old dll with the latest, but I can't get a video to run anymore.

Is there somebody with a little VB.NET code-snippet that explains me how to simply play a video on a window?
How is the dll initialized/loaded at the moment? And how is a stream created?

Smodilo





Logged
Astro29
Posts: 180


« Reply #1230 on: 22 Nov '10 - 11:18 »
Reply with quoteQuote

There seems to be a problem with the dll not allowing double click of the picturebox handle (setconfig doesn't appear to do anything) and it won't play mpeg 2 without crashing vhost.exe (debug mode VS2008). I have the K-Lite codecs installed (latest version Win7 32 bit).

Other problem is it plays MP4 and FLV but very slow and jittery and the audio sounds terrible. With DECODE flag set it plays the video properly but of course with no sound. Anyone, or Sharky, know of a way around this?

Thanks
@Smodilo

BassDShow.BASS_DSHOW_Init(frmVideo.pVideoWND.Handle)
stream = BassDShow.BASS_DSHOW_StreamCreateFile(FileName, BASSFlag.BASS_DEFAULT)
BassDShow.BASS_DSHOW_ChannelSetWindow(stream, frmVideo.pVideoWND.Handle)
Bass.BASS_ChannelPlay(stream, False)
Logged
Astro29
Posts: 180


« Reply #1231 on: 23 Nov '10 - 15:00 »
Reply with quoteQuote

lol, now I get a crash when trying to play FLV or MP4 (vhost.exe)
Logged
Astro29
Posts: 180


« Reply #1232 on: 23 Nov '10 - 15:08 »
Reply with quoteQuote

oh, one other thing Sharkey, latest version BASSDSHOW (2.4.2.0) BassDShow.BASS_DSHOW_ChannelGetInfo, the .NET API returns a null for BASS_DSHOW_VIDEOINFO, and when using:

Private Declare Sub BASS_DSHOW_ChannelGetInfo Lib "Bass_DSHOW.dll" (ByVal chan As Integer, ByRef value As PBASS_DSVIDEOINFO)

returns 0 for width and a huge number for height, where as previous version (2.4.1.0) works fine with old API and returns correct height/width (the .NET API still returns null)
Logged
smodilo
Posts: 47


« Reply #1233 on: 23 Nov '10 - 15:51 »
Reply with quoteQuote

There seems to be a problem with the dll not allowing double click of the picturebox handle (setconfig doesn't appear to do anything) and it won't play mpeg 2 without crashing vhost.exe (debug mode VS2008). I have the K-Lite codecs installed (latest version Win7 32 bit).

Other problem is it plays MP4 and FLV but very slow and jittery and the audio sounds terrible. With DECODE flag set it plays the video properly but of course with no sound. Anyone, or Sharky, know of a way around this?

Thanks
@Smodilo

BassDShow.BASS_DSHOW_Init(frmVideo.pVideoWND.Handle)
stream = BassDShow.BASS_DSHOW_StreamCreateFile(FileName, BASSFlag.BASS_DEFAULT)
BassDShow.BASS_DSHOW_ChannelSetWindow(stream, frmVideo.pVideoWND.Handle)
Bass.BASS_ChannelPlay(stream, False)

Hmmm... thanks... so I have everything as it should be. Strange, I can't play MP4 anymore. Well, I'm gonna leave it alone for another few months then.

Logged
Ionut Cristea
Posts: 1382


« Reply #1234 on: 25 Nov '10 - 09:34 »
Reply with quoteQuote

  Hmmm...

 I realize that 2.4.2 is a total failure...so i better work on the new version.

 Btw... the new BASS_DSHOW it will be based on this:

http://surodev.com/downloads/xVideo.zip
Logged
smodilo
Posts: 47


« Reply #1235 on: 25 Nov '10 - 16:34 »
Reply with quoteQuote

  Hmmm...

 I realize that 2.4.2 is a total failure...so i better work on the new version.

 Btw... the new BASS_DSHOW it will be based on this:

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


So why is this version working pretty good and stable? This does all I need it to do: Play a video correct.
Is it the combination with bass that's not working out ok?
Logged
charkow8
Posts: 1


« Reply #1236 on: 25 Nov '10 - 18:38 »
Reply with quoteQuote

Hi,
I tried to link to the following
http://suamp.hi2.ro/DOWNLOADS/BASS_DSHOW_FFAudio.dll
You don't have permission to access /DOWNLOADS/BASS_DSHOW_FFAudio.dll on this server.
 
How do I access thid site?

     Thanks
       Ken
and received the following message:
Logged
Astro29
Posts: 180


« Reply #1237 on: 25 Nov '10 - 22:38 »
Reply with quoteQuote

I agree, xVideo.dll works fine on most video formats (FLV, MP4, MP2) so why is it not working with bass and causing crashes in some case?
The only thing i noticed that didn't work on the demo was the width & height part (no information updated)
Logged
Astro29
Posts: 180


« Reply #1238 on: 26 Nov '10 - 01:52 »
Reply with quoteQuote

Another thing with DSHOW is that the screen capture

BassDShow.BASS_DSHOW_ChannelSetOption(stream, BASSDSHOWOption.DSHOW_GETBITMAP, Filename)

the filename just outputs "E" as the filename in the directory folder, rather than "test.bmp" as I specified lol, unless im doing something wrong of course
Logged
Ionut Cristea
Posts: 1382


« Reply #1239 on: 26 Nov '10 - 08:33 »
Reply with quoteQuote

Quote
So why is this version working pretty good and stable? This does all I need it to do: Play a video correct.
Is it the combination with bass that's not working out ok?

  xVideo is fully rewritten version of BASS_DSHOW, and also have many improvements.
The new BASS_DSHOW it will be based on xVideo and it will have same functionalities as xVideo and also it will work with BASS.

Quote
I agree, xVideo.dll works fine on most video formats (FLV, MP4, MP2) so why is it not working with bass and causing crashes in some case?The only thing i noticed that didn't work on the demo was the width & height part (no information updated)

   The video information from xVideo is returned correctly, but isn't refresh from the application.

Quote
Hi,
I tried to link to the following
http://suamp.hi2.ro/DOWNLOADS/BASS_DSHOW_FFAudio.dll
You don't have permission to access /DOWNLOADS/BASS_DSHOW_FFAudio.dll on this server.
 
How do I access thid site?

     Thanks
       Ken
and received the following message:

 Please retry the link. If still don't work send me a email and i will send to you.

Logged
Pages: 1 ... 60 61 [62] 63 64 ... 136
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines