19 May '13 - 15: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 ... 120 121 [122] 123 124 ... 135
  Reply  |  Print  
Author Topic: BASS_DSHOW Video Library  (Read 270861 times)
Ryota
Posts: 12


« Reply #2420 on: 26 Apr '12 - 15:58 »
Reply with quoteQuote

Quote
Nope is not available , but you can use BASS_FX addon for that.

Thanks, Ionut.
For using BASS_FX addon with BASS_DSHOW, use xVideo_LoadPlugin?
Logged
Ionut Cristea
Posts: 1372


« Reply #2421 on: 26 Apr '12 - 16:52 »
Reply with quoteQuote

Quote
Thanks, Ionut.
For using BASS_FX addon with BASS_DSHOW, use xVideo_LoadPlugin?

Nope,

Just use BASS_PluginLoad("BASS_DSHOW.dll",0) and fallow bass_fx samples.
Logged
Ryota
Posts: 12


« Reply #2422 on: 28 Apr '12 - 08:06 »
Reply with quoteQuote

Quote
Nope,

Just use BASS_PluginLoad("BASS_DSHOW.dll",0) and fallow bass_fx samples.
Thanks, Ionut.

I tried the code below, it can playing a video but can not change the speed of the video.
My code is wrong?

----
m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd, xVideo_UNICODE);
xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen);
BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE);
BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f);
xVideo_ChannelPlay(m_hStream);
Logged
Ionut Cristea
Posts: 1372


« Reply #2423 on: 28 Apr '12 - 08:28 »
Reply with quoteQuote

SOmething like this will work Smiley
Quote
m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE);
xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen);
m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE);
BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f);
xVideo_ChannelPlay(m_hStream);
Logged
Ryota
Posts: 12


« Reply #2424 on: 28 Apr '12 - 10:47 »
Reply with quoteQuote

Thanks, Ionut. But the code does not work well.

First, when adding BASS_STREAM_DECODE flag, the video is played very slowly.
m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE);
xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen);
xVideo_ChannelPlay(m_hStream);

Next, I tried the code below. But the video is not played. Something wrong?
m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE);
xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen);
m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE);
BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f);
xVideo_ChannelPlay(m_hStream);
Logged
Ionut Cristea
Posts: 1372


« Reply #2425 on: 28 Apr '12 - 12:55 »
Reply with quoteQuote

 First code will not play, you only can extract audio data.

2nd code, do you have any error code?
Logged
Ryota
Posts: 12


« Reply #2426 on: 28 Apr '12 - 14:43 »
Reply with quoteQuote

Quote
First code will not play, you only can extract audio data.

2nd code, do you have any error code?
Error code '1' ( xVideo_INVALIDCHAN ) is returned.
Logged
Ionut Cristea
Posts: 1372


« Reply #2427 on: 28 Apr '12 - 14:46 »
Reply with quoteQuote

 Try like this:

Quote
m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE);
xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen);
m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE);
BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f);
BASS_ChannelPlay(m_hStream,false);
Logged
Ryota
Posts: 12


« Reply #2428 on: 28 Apr '12 - 14:59 »
Reply with quoteQuote

Quote
Try like this:

Quote
m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE);
xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen);
m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE);
BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f);
BASS_ChannelPlay(m_hStream,false);
It can play the video, but can not change the speed Cry
Logged
Ionut Cristea
Posts: 1372


« Reply #2429 on: 28 Apr '12 - 15:13 »
Reply with quoteQuote

  What bass error it give?
Logged
Ryota
Posts: 12


« Reply #2430 on: 28 Apr '12 - 16:38 »
Reply with quoteQuote

  What bass error it give?
Oh, I'm sorry. I was able to change the speed in the previous code Smiley

By the way, the audio timing is delayed to the video screen.
Ways to improve it is Nothing?
Logged
Ionut Cristea
Posts: 1372


« Reply #2431 on: 28 Apr '12 - 20:11 »
Reply with quoteQuote

  That happen when you change tempo right?
Logged
Ryota
Posts: 12


« Reply #2432 on: 28 Apr '12 - 22:54 »
Reply with quoteQuote

Good morning, Ionut. Current time is AM 6:54 in Japan Smiley

Even if setting the speed to 0%(no change), the audio timing is delayed to the video screen.

Test code:
m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE);
xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen);
m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE);
BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 0.0f);
BASS_ChannelPlay(m_hStream,false);
Logged
ElCamino
Posts: 2


« Reply #2433 on: 29 Apr '12 - 07:59 »
Reply with quoteQuote

Quote
StreamCreateURL is supported by streamcreateFile

so nice, it works right out of the box, thanks a million
Logged
Ionut Cristea
Posts: 1372


« Reply #2434 on: 29 Apr '12 - 09:58 »
Reply with quoteQuote

Quote
Good morning, Ionut. Current time is AM 6:54 in Japan Smiley

Even if setting the speed to 0%(no change), the audio timing is delayed to the video screen.

Have you tried latest version also?(note you'll need bassmix also )


* BASS_DSHOW.rar (113.66 KB - downloaded 9 times.)
Logged
Ryota
Posts: 12


« Reply #2435 on: 29 Apr '12 - 12:26 »
Reply with quoteQuote

Quote
Have you tried latest version also?(note you'll need bassmix also )
Yes, I use BASS_DSHOW.DLL(102KB) version 1.2.2.0 with bassmix.dll version 2.4.6.0.

And I tried using BASS_DSHOW.DLL(275KB) you have uploaded, but 0xC0000005 Access Violation error occurs when calling xVideo_StreamCreateFile function.
Logged
smodilo
Posts: 46


« Reply #2436 on: 2 May '12 - 17:16 »
Reply with quoteQuote

Huh
HELP!

Is anybody using DSHOW? And does pausing and SetPosition work correct?Huh
(Meaning you can set the position without playing starting on its own)


Please! Anybody?
 Huh



  I;m sorry but i can;t reproduce the problem.

I'm sorry, but what's not to reproduce? I tested with a simple test application with one small form and only this code:

-------
Imports Un4seen.Bass
Imports System.Net


Public Class Form1
    BASS_PluginLoad("bass_dshow.dll")
    BassDShow.BASS_DSHOW_Init(FrmMain.MyPicturebox1.Handle, _       
    AddOn.DShow.BASSDSHOWInit.BASS_DSHOW_Default)

    Dim testvideo As Integer

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        testvideo = BASS_StreamCreateFile("c:\test.flv", 0, 0, BASSFlag.BASS_SPEAKER_PAIR1)
        BassDShow.BASS_DSHOW_ChannelSetWindow(testvideo, MyPicturebox1.Handle, 1)
    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        BASS_ChannelPlay(testvideo, False)
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        BASS_ChannelPause(testvideo)
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        BASS_ChannelSetPosition(testvideo, 1)
    End Sub
End Class

-----------------------------------------------------------------


If I run the video and pause it, the video starts playing when I press Button 2. Why???

Logged
subh
Posts: 151


« Reply #2437 on: 3 May '12 - 17:28 »
Reply with quoteQuote

Latest xVideo.dll and VB module how to get it Smiley

and more information pls.  Roll Eyes



SUBH  Embarrassed
Logged
Ionut Cristea
Posts: 1372


« Reply #2438 on: 3 May '12 - 17:38 »
Reply with quoteQuote

Quote
   
   
Re: BASS_DSHOW Video Library
« Reply #2436 on: 2 May '12 - 17:16 »
   Reply with quoteQuote
Huh
HELP!

Is anybody using DSHOW? And does pausing and SetPosition work correct?Huh
(Meaning you can set the position without playing starting on its own)


Please! Anybody?
 Huh

Try with this update Smiley

Quote
Latest xVideo.dll and VB module how to get it Smiley

and more information pls.  Roll Eyes

http://surodev.com/?page_id=94

* BASS_DSHOW.zip (112.73 KB - downloaded 12 times.)
Logged
smodilo
Posts: 46


« Reply #2439 on: 4 May '12 - 10:47 »
Reply with quoteQuote

Try with this update Smiley


Still the same  Sad
Logged
Pages: 1 ... 120 121 [122] 123 124 ... 135
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines