|
Ryota
Posts: 12
|
 |
« Reply #2420 on: 26 Apr '12 - 15:58 » |
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: 1373
|
 |
« Reply #2421 on: 26 Apr '12 - 16:52 » |
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 » |
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: 1373
|
 |
« Reply #2423 on: 28 Apr '12 - 08:28 » |
Quote
|
SOmething like this will work  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 » |
Quote
|
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: 1373
|
 |
« Reply #2425 on: 28 Apr '12 - 12:55 » |
Quote
|
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 » |
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: 1373
|
 |
« Reply #2427 on: 28 Apr '12 - 14:46 » |
Quote
|
Try like this: 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 » |
Quote
|
Try like this: 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 
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1373
|
 |
« Reply #2429 on: 28 Apr '12 - 15:13 » |
Quote
|
What bass error it give?
|
|
|
|
|
Logged
|
|
|
|
|
Ryota
Posts: 12
|
 |
« Reply #2430 on: 28 Apr '12 - 16:38 » |
Quote
|
What bass error it give?
Oh, I'm sorry. I was able to change the speed in the previous code  By the way, the audio timing is delayed to the video screen. Ways to improve it is Nothing?
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1373
|
 |
« Reply #2431 on: 28 Apr '12 - 20:11 » |
Quote
|
That happen when you change tempo right?
|
|
|
|
|
Logged
|
|
|
|
|
Ryota
Posts: 12
|
 |
« Reply #2432 on: 28 Apr '12 - 22:54 » |
Quote
|
Good morning, Ionut. Current time is AM 6:54 in Japan  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 » |
Quote
|
StreamCreateURL is supported by streamcreateFile
so nice, it works right out of the box, thanks a million
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1373
|
 |
« Reply #2434 on: 29 Apr '12 - 09:58 » |
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 )
|
|
|
|
Logged
|
|
|
|
|
Ryota
Posts: 12
|
 |
« Reply #2435 on: 29 Apr '12 - 12:26 » |
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 » |
Quote
|
 HELP! Is anybody using DSHOW? And does pausing and SetPosition work correct? (Meaning you can set the position without playing starting on its own) Please! Anybody?  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: 153
|
 |
« Reply #2437 on: 3 May '12 - 17:28 » |
Quote
|
Latest xVideo.dll and VB module how to get it  and more information pls. 
SUBH 
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1373
|
 |
« Reply #2438 on: 3 May '12 - 17:38 » |
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  Latest xVideo.dll and VB module how to get it Smiley
and more information pls. Roll Eyes
http://surodev.com/?page_id=94
|
|
|
|
Logged
|
|
|
|
|
smodilo
Posts: 46
|
 |
« Reply #2439 on: 4 May '12 - 10:47 » |
Quote
|
Try with this update  Still the same 
|
|
|
|
|
Logged
|
|
|
|
|