18 Jun '13 - 22: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 ... 134 135 [136]
  Reply  |  Print  
Author Topic: BASS_DSHOW Video Library  (Read 295919 times)
subh
Posts: 159


« Reply #2700 on: 1 Jun '13 - 15:35 »
Reply with quoteQuote

I'm using VB6 and always get an runtime error 53 -> xvideo.dll file not found. Has somebody a hint for me to solve this?

thx


Solved... D3DX9_43.dll was missing

sorry to say which version you use to xVideo.dll or vb module?
till now not upgrade VB header
Logged
quickmic
Posts: 251


« Reply #2701 on: 2 Jun '13 - 17:33 »
Reply with quoteQuote

I use the latest? xvideo.dll (2013-03-21) posted from Ionut here. I use the same declares as before but I didn't need much of them. I use it as a plugin.
Some API declarations didn't work after the update. e.g Capture APIs seems to be changed and DVD is not tested right now.
Logged
quickmic
Posts: 251


« Reply #2702 on: 2 Jun '13 - 19:22 »
Reply with quoteQuote

@Ionut

xVideo_ChannelGetBitmap has wrong ratio at height and still wrong border on left side.
Logged
Ionut Cristea
Posts: 1382


« Reply #2703 on: 3 Jun '13 - 08:11 »
Reply with quoteQuote

   New xVideo has a new feature: user video display, meaning that you can create your video renderer(all color space to RGB32 supported) and get a video image.

Ionut
Logged
subh
Posts: 159


« Reply #2704 on: 3 Jun '13 - 16:28 »
Reply with quoteQuote

HI IONUT,

I WANT TO KNOW IN 3D XVIDEO. AND UPLOAD XVIDEO.BAS OR NEW XVIDEO.CHM DOCUMENTATION

SUBH  Angry
Logged
Ionut Cristea
Posts: 1382


« Reply #2705 on: 3 Jun '13 - 17:55 »
Reply with quoteQuote

Sorry but 3D Video is not available for freeware/limited licence.
Logged
subh
Posts: 159


« Reply #2706 on: 4 Jun '13 - 15:45 »
Reply with quoteQuote

Sorry but 3D Video is not available for freeware/limited licence.

OK Sad
Logged
stevenmmm
Posts: 93


« Reply #2707 on: 8 Jun '13 - 09:05 »
Reply with quoteQuote

is there a reliable way to get a thumb image for a file not currently being viewed?
this is the approach i use at the moment but it only works some of the time (most of time i just get black images). It needs to be able to get the thumb image without any video images playing on the screen.
uint streamHandle = Functions.xVideo_StreamCreateFile(filename, 0, IntPtr.Zero, xVideo_StreamFlags.xVideo_STREAM_DECODE | xVideo_StreamFlags.xVideo_UNICODE);
Functions.xVideo_ChannelSetPosition(streamHandle, 2500, xVideo_Position_Modes.xVideo_POS_MILISEC);
Functions.xVideo_ChannelPlay(streamHandle);
IntPtr hBitmap = Functions.xVideo_ChannelGetBitmap((uint)streamHandle, IntPtr.Zero);
Logged
SoundMike
Posts: 255


« Reply #2708 on: 8 Jun '13 - 11:29 »
Reply with quoteQuote

is there a reliable way to get a thumb image for a file not currently being viewed?
this is the approach i use at the moment but it only works some of the time (most of time i just get black images). It needs to be able to get the thumb image without any video images playing on the screen.

I found the same thing (black images) and this is what I've done to get around that:
  • For xVideo_ChannelSetPosition, specify the position in Reference Time (xVideo_POS_REFTIME).
  • After xVideo_ChannelPlay, insert a loop checking xVideo_ChannelGetPosition (with xVideo_POS_REFTIME) until the position is greater than your start position.
  • Now call xVideo_ChannelGetBitmap.
  • Call xVideo_StreamFree.

In the loop I include a delay of 50ms, and I also have an overall timeout of 1500ms in case something goes wrong!

I haven't used xVideo_STREAM_DECODE - mainly because I haven't got around to working out how to use it. So my code is a little more complicated in that I play the video to a hidden control which I first of all resize to the dimensions of the video. This involves using 0 as the window handle in xVideo_StreamCreateFile, getting the dimensions via xVideo_ChannelGetInfo, resizing the hidden control, then calling xVideo_ChannelSetWindow before xVideo_ChannelSetPosition. I also mute the audio before calling xVideo_ChannelPlay. Seems complicated, but it works!
« Last Edit: 8 Jun '13 - 11:31 by SoundMike » Logged
Ionut Cristea
Posts: 1382


« Reply #2709 on: 8 Jun '13 - 13:06 »
Reply with quoteQuote

  Another method is to create a HSTREAM using a own video renderer. Meaning you will get video data to draw. With that video data you can create a bitmap for example.
Logged
SoundMike
Posts: 255


« Reply #2710 on: 9 Jun '13 - 06:25 »
Reply with quoteQuote

How do I determine the best value for xVideo_CONFIG_WindowLessStreams? Is it the maximum number of concurrent videos that may be playing, or the number that may be pre-buffered, or what?
Logged
Ionut Cristea
Posts: 1382


« Reply #2711 on: 9 Jun '13 - 09:20 »
Reply with quoteQuote

Maximum xVideo_CONFIG_WindowLessStreams is 16. Minimum is 0.
Logged
SoundMike
Posts: 255


« Reply #2712 on: 9 Jun '13 - 11:26 »
Reply with quoteQuote

Maximum xVideo_CONFIG_WindowLessStreams is 16. Minimum is 0.
Yes, I know that (except that the documentation actually says 1-15), but how is this setting used in xVideo? I need to know the effect of setting xVideo_CONFIG_WindowLessStreams to small or large values. Will large values give better performance?
Logged
Ionut Cristea
Posts: 1382


« Reply #2713 on: 9 Jun '13 - 11:47 »
Reply with quoteQuote

  Hi,

Adding more streams will make video renderer to create more video pins then when you add new video file, the existing video renderer will be use and not create a new video window for that file.
Logged
Astro29
Posts: 180


« Reply #2714 on: 14 Jun '13 - 11:00 »
Reply with quoteQuote

I don`t think that vb6(15 years old dev language strange)  knows unicode
so change it to

I know Chris but I love VB and my demo project ready is 85% complete, I can't change my language. thanks your advice and I will follow to you Smiley

Hello Ionut,
My Over head Programmer I don't Understand this logic, I totally confused Huh
and I hate copy paste.

see my attachment and please create it for me
thanks

Try updating to a more stable language such as VB.NET, the syntax is the same but you have a lot more power/control with .NET. Microsoft should have burnt VB6 long ago.
Logged
Pages: 1 ... 134 135 [136]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines