22 May '13 - 00:49 *
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 ... 38 39 [40] 41 42 ... 45
  Reply  |  Print  
Author Topic: BassVideo  (Read 215032 times)
GygaMan
Posts: 9


« Reply #780 on: 25 May '09 - 08:48 »
Reply with quoteQuote

No Worrys m8,

It can be vb6 Or any other language.

Cheers

Gyga
Logged
kenshin1101
Posts: 543


« Reply #781 on: 25 May '09 - 09:43 »
Reply with quoteQuote

No Worrys m8,

It can be vb6 Or any other language.

Cheers

Gyga

check the simple example & replace BassVideo_StreamCreateFile with BassVideo_StreamCreateURL
Logged
Erazer
Posts: 435


« Reply #782 on: 31 May '09 - 17:07 »
Reply with quoteQuote

Hi, kenshin1101, had you fix this:
Bass_SetConfig(BassVideo_Config_Renderer, BassVideo_NoVideo);
before
Chan := BassVideo_StreamCreateFile(PChar(SourceFileName),Bass_Stream_Decode or BASS_UNICODE, 0, 0);
really hides video output! Thank you. But I continue to get strange things  Undecided
Chan :=BASS_StreamCreateFile(FALSE, PAnsiChar('D:\Films\test.avi'), 0, 0, BASS_STREAM_DECODE);
still gives Chan=0. Further,perhaps because i still have to use
BassVideo_StreamCreateFile
 if I try to extract sound track and encode it for eaxmple to speex(or something else where I use bassmix to resample sor example) 1-st time after start, I get good audio file, it I try to reapeat it I get bad audio file. What mean bad: next audio file is shorter (53 second opposite 83 second) than original sound track and sound after 45 second is trebling. If I extract audio close application open it and extract again everything works  Grin but simetimes I get wrong audio file even during 1-st try to extract sound to spx or mp3 with using of bassmix, but always get goot wav (to make wav I do not use bassmix ever). Of course I do not have such problem with conversion of any audio file any times. So I feel something wrong in  co-operation of bassvideo and bassmix  Smiley
Also sometimes I have to see Window with video,even using
Bass_SetConfig(BassVideo_Config_Renderer, BassVideo_NoVideo);
 Huh
?
Logged
kenshin1101
Posts: 543


« Reply #783 on: 1 Jun '09 - 02:44 »
Reply with quoteQuote

Hi, kenshin1101, had you fix this:
Bass_SetConfig(BassVideo_Config_Renderer, BassVideo_NoVideo);
before
Chan := BassVideo_StreamCreateFile(PChar(SourceFileName),Bass_Stream_Decode or BASS_UNICODE, 0, 0);
really hides video output! Thank you. But I continue to get strange things  Undecided
Chan :=BASS_StreamCreateFile(FALSE, PAnsiChar('D:\Films\test.avi'), 0, 0, BASS_STREAM_DECODE);
still gives Chan=0. Further,perhaps because i still have to use
BassVideo_StreamCreateFile
 if I try to extract sound track and encode it for eaxmple to speex(or something else where I use bassmix to resample sor example) 1-st time after start, I get good audio file, it I try to reapeat it I get bad audio file. What mean bad: next audio file is shorter (53 second opposite 83 second) than original sound track and sound after 45 second is trebling. If I extract audio close application open it and extract again everything works  Grin but simetimes I get wrong audio file even during 1-st try to extract sound to spx or mp3 with using of bassmix, but always get goot wav (to make wav I do not use bassmix ever). Of course I do not have such problem with conversion of any audio file any times. So I feel something wrong in  co-operation of bassvideo and bassmix  Smiley
Also sometimes I have to see Window with video,even using
Bass_SetConfig(BassVideo_Config_Renderer, BassVideo_NoVideo);
 Huh
?

This problem will not be fixed in this version. I'll fix in the C++ version
Just wait, i'll show the demo as soon as possible
Logged
Erazer
Posts: 435


« Reply #784 on: 1 Jun '09 - 08:36 »
Reply with quoteQuote

Thank you, will wait  Wink
Logged
Latch
Posts: 89


« Reply #785 on: 5 Jun '09 - 12:56 »
Reply with quoteQuote

Thank you, will wait  Wink


I'll second that.  Kenshin, we are all being patient.



....now get off your butt and get some work done!

Smiley


Logged
papsot01
Posts: 40


« Reply #786 on: 7 Jun '09 - 00:13 »
Reply with quoteQuote

Hi, kenshin1101, had you fix this:
Bass_SetConfig(BassVideo_Config_Renderer, BassVideo_NoVideo);
before
Chan := BassVideo_StreamCreateFile(PChar(SourceFileName),Bass_Stream_Decode or BASS_UNICODE, 0, 0);
really hides video output! Thank you. But I continue to get strange things  Undecided
Chan :=BASS_StreamCreateFile(FALSE, PAnsiChar('D:\Films\test.avi'), 0, 0, BASS_STREAM_DECODE);
still gives Chan=0. Further,perhaps because i still have to use
BassVideo_StreamCreateFile
 if I try to extract sound track and encode it for eaxmple to speex(or something else where I use bassmix to resample sor example) 1-st time after start, I get good audio file, it I try to reapeat it I get bad audio file. What mean bad: next audio file is shorter (53 second opposite 83 second) than original sound track and sound after 45 second is trebling. If I extract audio close application open it and extract again everything works  Grin but simetimes I get wrong audio file even during 1-st try to extract sound to spx or mp3 with using of bassmix, but always get goot wav (to make wav I do not use bassmix ever). Of course I do not have such problem with conversion of any audio file any times. So I feel something wrong in  co-operation of bassvideo and bassmix  Smiley
Also sometimes I have to see Window with video,even using
Bass_SetConfig(BassVideo_Config_Renderer, BassVideo_NoVideo);
 Huh
?

This problem will not be fixed in this version. I'll fix in the C++ version
Just wait, i'll show the demo as soon as possible
How can i BassVideo_CaptureBitmap  but i want to get the bitmap on TBitmap or to save to jpg format ?
Logged
diystar
Posts: 23


« Reply #787 on: 9 Jun '09 - 04:45 »
Reply with quoteQuote

to kenshin1101:
post a bug:when play a next video,the virtual memory always change largger(the lastest ver)

can you send me the all old versions(below 2.4.1.2 ,only the dlls)?
my e-mail: wang_zm@163.com
Logged
kenshin1101
Posts: 543


« Reply #788 on: 9 Jun '09 - 05:03 »
Reply with quoteQuote

How can i BassVideo_CaptureBitmap  but i want to get the bitmap on TBitmap or to save to jpg format ?

Use BassVideo Video Effect, got the dc of current image & draw to TBitmap use BitBlt

to kenshin1101:
post a bug:when play a next video,the virtual memory always change largger(the lastest ver)

can you send me the all old versions(below 2.4.1.2 ,only the dlls)?
my e-mail: wang_zm@163.com

i don't keep the old DLL, but problem of memory grow can fixed (eg : try minimize your app :p , heee)
Logged
papsot01
Posts: 40


« Reply #789 on: 9 Jun '09 - 10:58 »
Reply with quoteQuote

How can i BassVideo_CaptureBitmap  but i want to get the bitmap on TBitmap or to save to jpg format ?

Use BassVideo Video Effect, got the dc of current image & draw to TBitmap use BitBlt

to kenshin1101:
post a bug:when play a next video,the virtual memory always change largger(the lastest ver)

can you send me the all old versions(below 2.4.1.2 ,only the dlls)?
my e-mail: wang_zm@163.com

i don't keep the old DLL, but problem of memory grow can fixed (eg : try minimize your app :p , heee)
I am new with bassvideo.
I isn't difficult for you please write a small example how can i do it. I want to capture every 5 secs a picture to hard disk in jpg format, or to draw on tbitmap. I must use callback function ?
 

Logged
jeffdavis
Posts: 293


« Reply #790 on: 11 Jun '09 - 19:00 »
Reply with quoteQuote

Is it possible to change the video window on the fly?

If I use BassVideo_SetVideoWindow(inHandle,VideoPIC.hwnd,rRect,0)

and I want to change the window handle to another window while playing video how do I do that?


Jeff
Logged
jeffdavis
Posts: 293


« Reply #791 on: 12 Jun '09 - 17:21 »
Reply with quoteQuote

Maybe I should be  more specific.   I am using a small preview window for video in our application.  I have created a button that will make the video go full screen.  The full screen window is a separate window with a different handle.  If the user is playing video in the preview window and then presses the full screen button I the video should go full screen.  When I try changing the handle for the BassVideo_SetVideoWindow the new full screen window is blank and when I go back to the preview window it is blank too.  What should the process be for changing the videowindow?  Is there a better way to create a full screen window?

Logged
kenshin1101
Posts: 543


« Reply #792 on: 17 Jun '09 - 05:14 »
Reply with quoteQuote

i never test that before Cheesy

The video window is a normal window, the BassVideo_SetVideoWindow function it just set the video window as child window of the owner
Logged
jeffdavis
Posts: 293


« Reply #793 on: 17 Jun '09 - 05:25 »
Reply with quoteQuote

So if I call BassVideo_SetVideoWindow(stream,Picturebox1.hwnd,rRect,0) and then start playing video can I call BassVideo_SetVideoWindow() again with a different handle and will the video start playing in the new window?  There is no limitation on calling this function multiple times while the video is playing?

Since all I am trying to do is go full screen is there a better way to do full screen besides switching the window handle to a window that can be sized to the full screen?

Logged
kenshin1101
Posts: 543


« Reply #794 on: 17 Jun '09 - 07:45 »
Reply with quoteQuote

So if I call BassVideo_SetVideoWindow(stream,Picturebox1.hwnd,rRect,0) and then start playing video can I call BassVideo_SetVideoWindow() again with a different handle and will the video start playing in the new window?  There is no limitation on calling this function multiple times while the video is playing?

Since all I am trying to do is go full screen is there a better way to do full screen besides switching the window handle to a window that can be sized to the full screen?

As i said , i never test it before :p
You can set the Owner to a Form instead of PictureBox and then change size of that form to fullscreen
Logged
drloakes
Posts: 4


« Reply #795 on: 20 Jun '09 - 00:16 »
Reply with quoteQuote

Hi, i'm sort of new to this forum so got what may be a silly question but here goes:-

I've written a front end for my CarPuter project ( plays MP3's, AVi's ) and im using Bass & Bassvideo but i would also like to have a rear camera ( cheapy webcam ) displayed on a seperate screen and this is the problem im having...

How do you open a webcam viabassvideo, im guessing you have to convert the device name into a file name which is used inthe createstream 'file' name but i've got no ideas how and searching google didnt help much either...

Its a basic USB Video Device with a USB id of 'USB\VID_0F35&PID_FAF5&MI_00\6&4688848&0&0000'

Any help would be greatly appreciated....

Cheers...
Logged
drloakes
Posts: 4


« Reply #796 on: 20 Jun '09 - 00:20 »
Reply with quoteQuote

Hi, silly me - forgot to say i'm writing this front end in VC++ 6 but can also use the newer Visual Studio 2008 if needs be but i prefer V6 for size of code and no .net overheads...

Cheers again.
Logged
kenshin1101
Posts: 543


« Reply #797 on: 20 Jun '09 - 01:05 »
Reply with quoteQuote

Have you try Capture demo ?
Logged
jeffdavis
Posts: 293


« Reply #798 on: 20 Jun '09 - 02:43 »
Reply with quoteQuote

has any had any luck getting the BassVideo_Effect_AddText to work with BassVideo beta 3 since it is now a plugin?

I am using VB6.   

Is there a simple code example?

Jeff
Logged
kenshin1101
Posts: 543


« Reply #799 on: 20 Jun '09 - 03:37 »
Reply with quoteQuote

has any had any luck getting the BassVideo_Effect_AddText to work with BassVideo beta 3 since it is now a plugin?

I am using VB6.   

Is there a simple code example?

Jeff


I had stoped continue to this beta, got too many bug make it become a plugin. But the Text Effect still work, show your code & i'll see what wrong
Logged
Pages: 1 ... 38 39 [40] 41 42 ... 45
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines