20 May '13 - 09:46 *
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 ... 117 118 [119] 120 121 ... 135
  Reply  |  Print  
Author Topic: BASS_DSHOW Video Library  (Read 271085 times)
muntablues
Posts: 191


« Reply #2360 on: 27 Feb '12 - 18:52 »
Reply with quoteQuote

The demo is not working?! Is it because of "Unregistered..." message?

I didn't try your releases for long time, so maybe I missed something...
Logged
Ionut Cristea
Posts: 1372


« Reply #2361 on: 27 Feb '12 - 19:48 »
Reply with quoteQuote

  No, no is working, but with the new versions BASS_DSHOW must be registred to remove that nag screen
Logged
muntablues
Posts: 191


« Reply #2362 on: 27 Feb '12 - 20:53 »
Reply with quoteQuote

OK, but YOUR demo is not working. VLC, WMP, etc. can play all the files I have tested with your demo...

Logged
Ionut Cristea
Posts: 1372


« Reply #2363 on: 27 Feb '12 - 21:03 »
Reply with quoteQuote

 Thats very very strange. Can you send me some files?
Logged
muntablues
Posts: 191


« Reply #2364 on: 27 Feb '12 - 21:53 »
Reply with quoteQuote

I've tried Win7 example video (nature.wmv) and some other movies. I can not send you >1GB. Maybe you have "nature.wmv" too...

I think it would be better, if you would make a "debug" version. Maybe a richtext output after every step in your program.
Logged
muntablues
Posts: 191


« Reply #2365 on: 27 Feb '12 - 21:59 »
Reply with quoteQuote

BTW: An older version (04/2011) of "xvideo" is working fine...
Logged
bensam56
Posts: 65


« Reply #2366 on: 28 Feb '12 - 15:44 »
Reply with quoteQuote

The demo is working fine but want to know what is that xvideo built in render and what its using?
Logged
Ionut Cristea
Posts: 1372


« Reply #2367 on: 28 Feb '12 - 18:24 »
Reply with quoteQuote

it's a directdraw renderer and you can use it to retrive video surface and draw on it. Also this new BASS_DSHOW offer possibility to user to create his own video renderer. A Directdraw7 and Direct2D video renderers are available like samples in the new version Smiley
Logged
quickmic
Posts: 248


« Reply #2368 on: 2 Mar '12 - 09:05 »
Reply with quoteQuote

xVideo_Init overwrites...
Call BASS_SetConfig(BASS_CONFIG_BUFFER, 150)
...settings
Logged
Ionut Cristea
Posts: 1372


« Reply #2369 on: 2 Mar '12 - 10:53 »
Reply with quoteQuote

Yes that's true. But in the last version the buffer size is about 1 second.
Logged
quickmic
Posts: 248


« Reply #2370 on: 2 Mar '12 - 11:44 »
Reply with quoteQuote

Yep, and that's not good for my audio-stuff. The latency is much too high. I removed xVideo_Init from my code and bassdshow is still working.
Logged
Ionut Cristea
Posts: 1372


« Reply #2371 on: 2 Mar '12 - 11:59 »
Reply with quoteQuote

  That's because BASS_DSHOW auto initialized itself when trying to create a HSTREAM with it. I will modify it so that it will not set the buffer size . Smiley
Logged
stevenmmm
Posts: 92


« Reply #2372 on: 3 Mar '12 - 19:17 »
Reply with quoteQuote

further to the initialisation issue, i am finding that if i call BASS_Init() with a specific device number that BASS_DSHOW will set the device back to the windows default device.
Also when switching devices, even though i call xVideo_Free() and BASS_Free(), when it comes to reinitialise using BASS_Init() again i fairly often get BASS_ERROR_ALREADY errors returned - this doesnt happen if i am not loading BASS_DSHOW
Logged
Ionut Cristea
Posts: 1372


« Reply #2373 on: 3 Mar '12 - 19:29 »
Reply with quoteQuote

 Yes that's true also, in previous versions the BASS_DSHOW calls BASS_Init, in this new version i've removed this.
Logged
smodilo
Posts: 46


« Reply #2374 on: 7 Mar '12 - 15:00 »
Reply with quoteQuote

Hello all,

I've asked this a few times before, but I am in desperate need of an example of how to play a video in vb.net.
The simpler the better. Just so it is clear how to load bass_dshow, initialize and start a video.

It's hard to keep track with all these changes. Should I 'import', should I 'pluginload', should I start the video with the bass streamcreate or should I use dshow streamcreate?

Anybody? Please?
Logged
Ionut Cristea
Posts: 1372


« Reply #2375 on: 7 Mar '12 - 20:48 »
Reply with quoteQuote

  BASS_DSHOW is a fully BASS plugin, so you can use BASS function. For other functions like setting video use xVideo_ChannelSetWindow function
Logged
Jens
Guest
« Reply #2376 on: 8 Mar '12 - 10:40 »
Reply with quoteQuote

Hi,
yesterday i tried to receive audio data from a video file, but all i got was white noise which was in time with the real audio data. I use the floating-point option.
Do you have a test application which does the same job ? ( wavewriter example doesn't use floating-points )

here my code:

// video playback ( without audio, using xVideo_NOAUDIO_PROC has no effect )
videochan_=xVideo_StreamCreateFile( videofile, 0, videohandle, xVideo_STREAM_AUTOFREE | xVideo_NOAUDIO_PROC );
xVideo_ChannelSetAttribute( videochan_, xVideo_ATTRIB_VOL, 0 );

// audio decoder
videochan_audio=xVideo_StreamCreateFile( videofile, 0, videohandle_audio, xVideo_STREAM_DECODE | xVideo_DATA_FLOAT );

my callback proc:
xVideo_ChannelInfo vinfo; vinfo.nChannels=0; if ( ch==videochan ) xVideo_ChannelGetInfo( videochan_audio, &vinfo );
if ( vinfo.nChannels>0 ) xVideo_ChannelGetData( videochan_audio, (BYTE*)myFloatingBuffer, length );


I believe my code is o.k., because video is playing, i get no errors and the other audio streams ( using bass lib ) are in the same callback and decode like they should.

thank you very much
Jens


Logged
Ionut Cristea
Posts: 1372


« Reply #2377 on: 8 Mar '12 - 13:11 »
Reply with quoteQuote

xVideo_NOAUDIOPROC flag is only available on XvIDEO and not in BASS_DSHOW. about floating point, BASS_DSHOW always create a floating point audio channel so you don't need to set that flag.
Logged
Jens
Guest
« Reply #2378 on: 8 Mar '12 - 22:18 »
Reply with quoteQuote

Hi again,
i now understand how it works, thank you.

I'm loading BASS_DSHOW.dll as a bass plugin and it's playing perfect, but i get a BLUE SCREEN, when opening the task manager while playing. Even when i open thunderbird the playback is freezing for a moment. So what's happening here ? I never had a blue screen before with other video libraries.


MINIDUMP:

FAULTING_MODULE: 82c4e000 nt

DEBUG_FLR_IMAGE_TIMESTAMP:  4aba7471

FAULTING_IP:
igdkmd32+11f20
9004cf20 55              push    ebp

DEFAULT_BUCKET_ID:  GRAPHICS_DRIVER_TDR_FAULT

CUSTOMER_CRASH_COUNT:  1

BUGCHECK_STR:  0x116

CURRENT_IRQL:  0

STACK_TEXT: 
WARNING: Stack unwind information not available. Following frames may be wrong.
8e3b2b74 905d092c 00000116 84f3e458 9004cf20 nt+0xd1574
8e3b2b98 905d174b 9004cf20 c00000b5 0000000a dxgkrnl+0x8c92c
8e3b2bbc 9060192c c00000b5 00000102 87591008 dxgkrnl+0x8d74b
8e3b2c34 9062ba32 fffffcfb 02a25647 00000000 dxgmms1+0x692c
8e3b2c5c 9062c153 00000000 00000000 00000000 dxgmms1+0x30a32
8e3b2c98 906088f0 8e3b2c90 854a3bd8 852c1008 dxgmms1+0x31153
8e3b2d28 9062d4b7 87591008 82c7cebf 87591008 dxgmms1+0xd8f0
8e3b2d3c 9062d573 87591008 00000000 875c9850 dxgmms1+0x324b7
8e3b2d50 82e35d16 87591008 93842b5e 00000000 dxgmms1+0x32573
8e3b2d90 82cd7159 9062d4f4 87591008 00000000 nt+0x1e7d16
00000000 00000000 00000000 00000000 00000000 nt+0x89159


STACK_COMMAND:  .bugcheck ; kb

FOLLOWUP_IP:
igdkmd32+11f20
9004cf20 55              push    ebp

SYMBOL_NAME:  igdkmd32+11f20

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: igdkmd32

IMAGE_NAME:  igdkmd32.sys

BUCKET_ID:  WRONG_SYMBOLS

Followup: MachineOwner
Logged
Jens
Guest
« Reply #2379 on: 8 Mar '12 - 22:32 »
Reply with quoteQuote

Hi again,
i remember that windows changes the color theme before crashing ..

best wishes
Jens
Logged
Pages: 1 ... 117 118 [119] 120 121 ... 135
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines