Author Topic: BASS_DSHOW Video Library  (Read 1200234 times)

Erazer

  • Posts: 441
Re: BASS_DSHOW
« Reply #125 on: 10 Nov '09 - 10:06 »
This would be cool! ;)
« Last Edit: 10 Nov '09 - 10:10 by Erazer »

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #126 on: 19 Nov '09 - 15:08 »
Hi all. New version of BASS_DSHOW:
-added function to play DVD's
-some bugs fixed.

http://filezone.ro/public.php?action=viewfile&file_id=21456

Cheers, Sharky.

Erazer

  • Posts: 441
Re: BASS_DSHOW
« Reply #127 on: 19 Nov '09 - 16:37 »
What about ' bass_dshow as a bass plugin'  ::)

SoundMike

  • Posts: 367
Re: BASS_DSHOW
« Reply #128 on: 20 Nov '09 - 04:30 »
Looking forward to using this, Sharky. Two intermittent problems I've found with the latest version, both of which usually occur after playing several video files in one session:
  • Sometimes the audio is muted. In a test program I inserted a call to BASS_ChannelGetAttribute to check BASS_ATTRIB_VOL, and it always returns 1 (which would normally be correct), even when no audio is heard.
  • Sometimes the program crashes with a Microsoft Windows message (eg demo.exe has stopped working).

I can't find any pattern with these errors. For example, I have just run the supplied demo.exe, opened one file, and while it was playing, opened a different file. When the second file started playing, there was no audio - but there should have been. I then opened yet another file, and this one started playing with audio. I then decided to try the second file again, and the program crashed. But another time I would have a different sequence of events, so there's no particular sequence I've found that would definitely cause the sound to be muted or the program to fail.

Is there a debug version of demo.exe that could provide you with some info about these problems? I'm testing this under Vista.

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #129 on: 20 Nov '09 - 15:47 »
Hi. Sorry for late response.

I've uploaded a new version. The bugs that you've mentioned are fixed ;D


+ Added DVD function: nextchapter,previous chapter,title menu and root.

http://filezone.ro/public.php?action=viewfile&file_id=21502

Cheers, Sharky.

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #130 on: 20 Nov '09 - 15:48 »
Quote
What about ' bass_dshow as a bass plugin'  Roll Eyes


Currently i have some problems. I hope that  i will finish it soon.

Cheers, Sharky.

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #131 on: 20 Nov '09 - 17:08 »
BASS_DSHOW 2.4.0.3 is done:

Added:
+BASS_DSHOW_GETERROR:  for better error handling
+BASS_DSHOW_Pause      : to pause a channel
+BASS_DSHOW_SetConfig : BASS_DSHOW settings

http://filezone.ro/public.php?action=viewfile&file_id=21505

Cheers, Sharky.

SoundMike

  • Posts: 367
Re: BASS_DSHOW
« Reply #132 on: 20 Nov '09 - 22:51 »
I've uploaded a new version. The bugs that you've mentioned are fixed ;D

Looking much better, Sharky, but I'm still getting the occasional crash. With demo.exe the program will typically crash at some stage if I keep opening new video files. This sometimes happens after about the 4th or 5th file, but as before, it's not predictable. I also ran my test program, which can play two videos simulataneously to two screens, and sometimes it will crash and other times it will keep going for ages, while I continually change files being played. When the program does crash (whether it be demo.exe or my test program) it's always on opening a new file.

Audio is now fine.

btw, I'm only testing video files, which happen to all be WMV files. I've not tested DVD as I don't need that functionality.

Chris

  • Posts: 2189
Re: BASS_DSHOW
« Reply #133 on: 21 Nov '09 - 08:05 »
Hi
 is it with this version possible to open youtube Videos?
Cheers Chris

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #134 on: 21 Nov '09 - 08:11 »
Quote
Hi
 is it with this version possible to open youtube Videos?
Cheers Chris


Currently is not possible to play youtube files with BASS_DSHOW. I will integrate soon this function.

Cheers, Sharky.

SoundMike

  • Posts: 367
Re: BASS_DSHOW
« Reply #135 on: 23 Nov '09 - 04:01 »
When the program does crash (whether it be demo.exe or my test program) it's always on opening a new file.

Sorry, :( that info was not quite correct. Using my test program I've been able to confirm that when the program does crash it's always on closing a file, not on opening a new file. It is in the call to BASS_DSHOW_ChannelFree that the program sometimes fails.

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #136 on: 23 Nov '09 - 08:06 »
Ok...i will look at it... Thanks for update.

Cheers, Sharky.

diystar

  • Posts: 45
Re: BASS_DSHOW
« Reply #137 on: 28 Nov '09 - 02:00 »
hi,Sharky

How to download the new version from "http://filezone.ro/public.php?action=viewfile&file_id=21505" ?
Can you send me directly?
my E-mail: wang_zm(at)163.com

thanks

update:Already downloaded
« Last Edit: 28 Nov '09 - 02:23 by diystar »

i00

  • Posts: 27
Re: BASS_DSHOW
« Reply #138 on: 4 Dec '09 - 16:42 »
hey this may seem really stupid ... but i am fairly new to BASS I can play a basic file with visualizations (using BASS_SFX) but was just wondering if someone had a test eg for vb.net ... like i said i am a NooB and don't really know where to start with this...

Thanks
Kris

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #139 on: 5 Dec '09 - 07:02 »
Hi. 
I have fixed the bug when the ChannelFree function is called:
http://filezone.ro/public.php?action=viewfile&file_id=22171

Currently is in progress:
-capture devices support
-play only audio from videos

PS: I'll like to hear from you any ideas to be implemented in BASS_DSHOW

radio42

  • Posts: 4836
Re: BASS_DSHOW
« Reply #140 on: 5 Dec '09 - 13:12 »
@Sharky08:
Let me know when your add-on is ready and a real bass plugin, so that I can add it to BASS.NET.
THX

Latch

  • Posts: 90
Re: BASS_DSHOW
« Reply #141 on: 5 Dec '09 - 18:27 »

PS: I'll like to hear from you any ideas to be implemented in BASS_DSHOW


You got it....

1. Most importantly make it a true bass plugin so that videos can be opened and played with the same bass routines as all other audio files.  We're currently using BassVideo, and for every single call (open, play, pause, setposition, getposition, etc..) we have to compensate for video by making separate routines for every single function.  Basically concentrate on the making the audio work, and then simply add automatic routines to keep the video in synch (such as when tempo is changed).  Once you truly integrate the audio into Bass, you won't ever have to worry about making any additional audio functions as they're all included with bass and its long list of plugins.  The only bass effect that would affect the video would be changing the tempo because obviously you'd need to keep the video in synch).

2. Once it acts like a bass plugin, add other properties to enable 2 separate windows for video as most DJ/KJ apps need one on the main console and one on the secondary display for all to see

3.  For each video (1 and 2), we'd need these properties
   - VideoParentHandle  (can be the handle of a form or a control on a form)
   - DisplaySize (or have it autosize to its parent control)
   - Stretch (when true stretch to fill parent and when false have it keep the original proportions but still fill the parent rectangle and blackout the sides or top and bottom depending on the videos original aspect ratio)
   - VideoSynch (set to zero uses original synch.  setting to negative numbers places video behind audio and positive values set video to be ahead of the audio).  This is needed as some videos don't have the audio and video in perfect synch and allowing the end user to adjust this would be great.  If the value could be in seconds that would be perfect (use single or double values allowing fractions of a second).  No sense in making this property separate for each video as you'd want to do the same to both.  If you truly separate the video from the audio this should be pretty easy at that point.

Planning ahead, you should first map out all the properties and methods you're going to have in the final product and even if you haven't got them all working, and at least send them to radio42 so he can get routines for Bass.Net written.  That way, those of us in the .Net world can at least start playing with it as you're getting the bugs out of it.  Its important not to change the calling methods because everytime you do, he needs to rewrite the Bass.Net to work with it and it creates quite a headache for us who have to then wait for his update as well.  Once you get it working as a true bass plugin and add the properties I mentioned, it really shouldn't be an issue.

I'm sure people could list a hundred little nifty functions but these are the truly needed functions.  If you can get these few basic functions to work perfectly, you could start charging for licensing this plugin and we'd be more than happy to pay it!  AND all of us who were extremely let down by the BassVideo plugin would speak your praises for a long time to come :)  Make some money AND be our hero!  ....no pressure :)



« Last Edit: 5 Dec '09 - 21:02 by Latch »

SoundMike

  • Posts: 367
Re: BASS_DSHOW
« Reply #142 on: 5 Dec '09 - 22:47 »
Hi. 
I have fixed the bug when the ChannelFree function is called:
http://filezone.ro/public.php?action=viewfile&file_id=22171

Do you need to recompile and reissue demo.exe? I find that with the new BASS_DSHOW.dll, demo.exe crashes as soon as I start playing a video.

With my test program, recompiled and using the new BASS_DSHOW.dll, I still get crashes on closing a video after the 3rd or 4th video - although sometimes I can run several more videos before a crash occurs. btw, in these tests I always close the video before it ends as they would otherwise run for a couple of minutes or more. Regarding these crashes, a colleague of mine said "it sounds like a resource is being called after it has been closed". Is there a possibility that some playback or buffering callback in the dll is trying to use a resource after the resource has been closed?

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #143 on: 6 Dec '09 - 08:00 »
Quote
@Sharky08:
Let me know when your add-on is ready and a real bass plugin, so that I can add it to BASS.NET.
THX


OK

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #144 on: 6 Dec '09 - 08:03 »
  Thanks,Latch. I will implement your ideas to BASS_DSHOW.

Quote
Do you need to recompile and reissue demo.exe? I find that with the new BASS_DSHOW.dll, demo.exe crashes as soon as I start playing a video.

With my test program, recompiled and using the new BASS_DSHOW.dll, I still get crashes on closing a video after the 3rd or 4th video - although sometimes I can run several more videos before a crash occurs. btw, in these tests I always close the video before it ends as they would otherwise run for a couple of minutes or more. Regarding these crashes, a colleague of mine said "it sounds like a resource is being called after it has been closed". Is there a possibility that some playback or buffering callback in the dll is trying to use a resource after the resource has been closed?

I've changed some functions so that demo gives errors. I will release new demos today.

Cheers, Sharky.

Chris2009

  • Guest
Re: BASS_DSHOW
« Reply #145 on: 15 Dec '09 - 16:17 »
 Hi Sharky...any news?

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #146 on: 17 Dec '09 - 10:00 »
Hi all. BASS_DSHOW X64 version is available. ;D


Erazer

  • Posts: 441
Re: BASS_DSHOW
« Reply #147 on: 17 Dec '09 - 10:17 »
Cool, but x32 working like a bass plugin is everything I need   ;D
Waht about this  ;)

Ionut Cristea

  • Posts: 1559
Re: BASS_DSHOW
« Reply #148 on: 17 Dec '09 - 10:29 »
Working on it ;D

frozzie

  • Posts: 24
Re: BASS_DSHOW
« Reply #149 on: 17 Dec '09 - 10:31 »
Great!
I'm also waiting for it.

TIA!