|
Ionut Cristea
Posts: 1376
|
 |
« Reply #1200 on: 24 Oct '10 - 09:50 » |
Quote
|
how about add ffmpeg support to make it cross compile.... BASS_DSHOW on other OS except WinCE or Windows because DirectShow is not present there. But i could make a addon that uses gstreamer. Latch, Sharkey,
I have to chime in too. I also felt let down from bassVideo. I agree that we don't need a lot of features other than control over the video windows as part of a "special api".
But latch, you are wrong about a something. Even basswma plugin has stream_create_file method. I think that bass calls those methods on the plugins for you.
I have also wrote a class to "wrap" the bass.net calls, and changing it for video wasn't too hard as the api currently stands. But I am of the opinion that sharkey should stop "adding features" to the DShow plugin and focus on getting what's in there already working spot on with all different types of files playable by directshow.
Sharkey, I for one say "Good job" and keep it up. Let's make Bass DShow a really good video plugin, and nothing more.
Sincerely,
Rick First of all, Rick you have right. So, that i will going to do from now. Making BASS_DSHOW more closer to a BASS addon. Now: a new update +some A/V sync fixed +end of stream sync should be triggered now: DOWNLOAD: http://surodev.com/downloads/BASS_DSHOW.dll
|
|
|
|
|
Logged
|
|
|
|
|
quickmic
Posts: 248
|
 |
« Reply #1201 on: 24 Oct '10 - 19:52 » |
Quote
|
"end of stream sync should be triggered"...works  BASS_StreamFree on decoded channel still have problems thx
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Alpha_
Posts: 70
|
 |
« Reply #1203 on: 26 Oct '10 - 16:34 » |
Quote
|
Hi Sharky, Have you see my last posts concerning bug I've repported ?
|
|
|
|
|
Logged
|
|
|
|
|
quickmic
Posts: 248
|
 |
« Reply #1204 on: 27 Oct '10 - 09:32 » |
Quote
|
Nope, this version is completly unuseable. The sound is stuttering and the video has lags... After a view seconds I got a total crash of the IDE.
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1376
|
 |
« Reply #1205 on: 28 Oct '10 - 13:58 » |
Quote
|
Re: BASS_DSHOW « Reply #1204 on: 27 Oct '10 - 09:32 » Reply with quoteQuote Quote from: Sharky08 on 26 Oct '10 - 07:05 Hello, please try with this one Grin http://surodev.com/downloads/BASS_DSHOW.dllNope, this version is completly unuseable. The sound is stuttering and the video has lags... After a view seconds I got a total crash of the IDE. Sorry for this... Now i'm working on a new Clock that will ensure the A/V sync. Please try with this: http://surodev.com/downloads/BASS_DSHOW.dll
|
|
|
|
|
Logged
|
|
|
|
|
quickmic
Posts: 248
|
 |
« Reply #1206 on: 29 Oct '10 - 10:56 » |
Quote
|
Now it looks good. Streamfree is ok, but there is a next problem. On some videos DShow "plays" the video over the real end of track. So duration of track is e.g. 3:20:10 and the play-position counts on and on, and the end is never reached.... 3:20:11...3:20:12...3:20:13 ... In that case the "end of stream event" is also never fired up. I don't know if this a real DShow-problem... Maybe my codecs are not ok. I will check this again.....
|
|
|
|
« Last Edit: 29 Oct '10 - 16:22 by quickmic »
|
Logged
|
|
|
|
|
quickmic
Posts: 248
|
 |
« Reply #1207 on: 29 Oct '10 - 16:31 » |
Quote
|
I checked again on another PC and the problem still exists.
|
|
|
|
|
Logged
|
|
|
|
|
hellbundy
Posts: 30
|
 |
« Reply #1208 on: 30 Oct '10 - 10:21 » |
Quote
|
Hi, I tried the new version and it seems better. How can I change video windows' height and width during runtime ? I was using the below code with the old plugin, with the new one it's not working. Private Sub frmVideo_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT Or BASSInit.BASS_DEVICE_LATENCY, Me.Handle) Bass.BASS_PluginLoad("BASS_DSHOW.dll") BassDShow.BASS_DSHOW_Init(Me.Handle) BassDShow.LoadMe("BASS_DSHOW.dll") BassDShow.BASS_DSHOW_SetConfig(BASSDSHOWVideoRenderer.BASS_DSHOW_USEVMR) BassDShow.BASS_DSHOW_SetConfig(BASSDSHOWConfig.DSHOW_VMRWINDOW, PictureBox1.Handle)
End Sub
Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlay.Click 'Play button _Stream = BassDShow.BASS_DSHOW_StreamCreateFile(TextBox1.Text, BASSFlag.BASS_DEFAULT) BassDShow.BASS_DSHOW_ChannelSetWindow(_Stream, PictureBox1.Handle) Bass.BASS_ChannelPlay(_Stream, 0)
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Select Case PictureBox1.Height Case 167 PictureBox1.Left = 0 PictureBox1.Top = 0 PictureBox1.Height = 600 PictureBox1.Width = 800 BassDShow.BASS_DSHOW_ChannelResizeWindow(_Stream, PictureBox1.Left, PictureBox1.Top, PictureBox1.Width, PictureBox1.Height) Case 600 PictureBox1.Left = 204 PictureBox1.Top = 4 PictureBox1.Height = 167 PictureBox1.Width = 393 BassDShow.BASS_DSHOW_ChannelResizeWindow(_Stream, 0, 0, PictureBox1.Width, PictureBox1.Height) End Select End Sub Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1376
|
 |
« Reply #1209 on: 4 Nov '10 - 13:46 » |
Quote
|
Can you check with other video renderer if problem persist?
|
|
|
|
|
Logged
|
|
|
|
|
hellbundy
Posts: 30
|
 |
« Reply #1210 on: 6 Nov '10 - 09:45 » |
Quote
|
Hi Sharky,
I can't change the renderer.. will you upload an updated help file ? or maybe you can send a demo (setconfig, windowresize etc.) in delphi. I'll try to convert it to vb.net. Thank you.
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1376
|
 |
« Reply #1211 on: 6 Nov '10 - 09:56 » |
Quote
|
Here is it:)
case combobox1.ItemIndex of 0: BASS_DSHOW_SetConfig(BASS_DSHOW_VideoRenderer,BASS_DSHOW_USEDefault); 1: BASS_DSHOW_SetConfig(BASS_DSHOW_VideoRenderer,BASS_DSHOW_USEOverlay); 2: begin BASS_DSHOW_SetConfig(BASS_DSHOW_VideoRenderer,BASS_DSHOW_USEVMR); BASS_DSHOW_SetConfig(DSHOW_VMRWINDOW,panel1.Handle); end; 3: BASS_DSHOW_SetConfig(BASS_DSHOW_VideoRenderer,BASS_DSHOW_USENONE ); end;
|
|
|
|
|
Logged
|
|
|
|
|
hellbundy
Posts: 30
|
 |
« Reply #1212 on: 6 Nov '10 - 10:52 » |
Quote
|
I use;
BassDShow.BASS_DSHOW_SetConfig(BASSDSHOWVideoRenderer.BASS_DSHOW_USEVMR) BassDShow.BASS_DSHOW_SetConfig(BASSDSHOWConfig.DSHOW_VMRWINDOW, PictureBox1.Handle)
During runtime I can not click the picturebox1 area, it's not accessible so I can't resize the video window.
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1376
|
 |
« Reply #1213 on: 6 Nov '10 - 11:01 » |
Quote
|
You can use BASS_DSHOW_ChannelSetWindow function when resize.
The video window will be automaticaly resized.
|
|
|
|
|
Logged
|
|
|
|
|
hellbundy
Posts: 30
|
 |
« Reply #1214 on: 6 Nov '10 - 11:19 » |
Quote
|
Sharky thank you. I don't want to be a pain in the ass.. But the problem is: I want to control the video window size by clicking the picturebox .. unfortunately when the video begins to play (in the picturebox) picturebox1_click event is not accessible.
|
|
|
|
|
Logged
|
|
|
|
|
hellbundy
Posts: 30
|
 |
« Reply #1215 on: 8 Nov '10 - 20:47 » |
Quote
|
Is there anybody who can help me with windowresize (vb.net) ? thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1376
|
 |
« Reply #1216 on: 9 Nov '10 - 08:13 » |
Quote
|
Hello, A VMR 9 WindowsLess renderer should do the trick. Note that, Window Mode Video Renderer are creating own window to display the video, and when you call channelsetwindow function that window will be placed as child on the targeting window. PS: you are not a pain in the ass... I like to help. I will see what i can do 
|
|
|
|
|
Logged
|
|
|
|
|
hellbundy
Posts: 30
|
 |
« Reply #1217 on: 9 Nov '10 - 18:15 » |
Quote
|
Sharky, I'm confused..
Please check the screenshots... What am I doing wrong ? with version 2.4.1.0 I can manage the window but can't do it version 2.4.2.0
|
|
|
|
Logged
|
|
|
|
|
aaaronmy24
Posts: 11
|
 |
« Reply #1218 on: 9 Nov '10 - 20:01 » |
Quote
|
I've been wondering a little about this:
BassDShow.BASS_DSHOW_StreamCreateDVD()
Everything states that it renders the first DVD found. I keep a collection of any optical drive that returns a state of ready. Would it be too hard to add one optional argument to it that will render a certain optical drive.
Think of it maybe like this:
BassDShow.BASS_DSHOW_StreamCreateDVD(0)
where 0 = the first drive optical drive. Maybe this is too integrated with BassCD as that is what I use to get the collection of optical drives that are ready?
|
|
|
|
|
Logged
|
|
|
|
|
Ionut Cristea
Posts: 1376
|
 |
« Reply #1219 on: 10 Nov '10 - 12:53 » |
Quote
|
Sharky, I'm confused..
Please check the screenshots... What am I doing wrong ? with version 2.4.1.0 I can manage the window but can't do it version 2.4.2.0 Please trey do something like this: BASS_DSHOW_SetConfig(BASS_DSHOW_VideoRenderer,6); BASS_DSHOW_SetConfig(DSHOW_VMRWINDOW ,yourhandle); I've been wondering a little about this:
BassDShow.BASS_DSHOW_StreamCreateDVD()
Everything states that it renders the first DVD found. I keep a collection of any optical drive that returns a state of ready. Would it be too hard to add one optional argument to it that will render a certain optical drive.
Think of it maybe like this:
BassDShow.BASS_DSHOW_StreamCreateDVD(0)
where 0 = the first drive optical drive. Maybe this is too integrated with BassCD as that is what I use to get the collection of optical drives that are ready? Ok...i will 
|
|
|
|
|
Logged
|
|
|
|
|