Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Display Modes
Old 8th May 2002, 05:09   #1  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
open *.D2V (*.AVS) file with VisualBasic

Hi can someone have an idear to help me to open .avs or .d2v file, i want to create an .avs file generatir but in vb, it seems to me there is a lot of exemples in delphi but i have found nothing for vb perhaps someone can help me to find the way to open an .d2v file in a picturebox of visual basic in order to create a tool for generate (and perhaps re-open) the .avs file.

thank u very much if you could answer to my question. Bye
Dark-Cracker is offline   Reply With Quote
Old 13th May 2002, 08:57   #2  |  Link
ciler
Registered User
 
Join Date: Oct 2001
Location: France
Posts: 39
RE : BB and AVS

Hello

I'm not sure I understand clearly what you want to do...
Do you want to playback an AVS file or just create/edit the text it contains.

For the first solution... man, you are not likely to have sleep for a long time, 'cause video playback is something really aweful if you don't use media player components.
For the second one, just open it as a text file...
__________________
Black Rose of the Artist Clan
ciler is offline   Reply With Quote
Old 13th May 2002, 13:49   #3  |  Link
BlackSun
CoreCodec
 
BlackSun's Avatar
 
Join Date: Oct 2001
Location: Toulouse
Posts: 726
Quote:
For the first solution... man, you are not likely to have sleep for a long time, 'cause video playback is something really aweful if you don't use media player components.
PowerDivX did it Ok it took time
__________________
BlackSun
The Concentric Circles of Audio and Video
BlackSun is offline   Reply With Quote
Old 13th May 2002, 14:00   #4  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
@BlackSun:
Do you know much about DirectDraw? DVD2AVI is using DirectDraw & overlay incorrectly...But I dont know enough to fix it (its the reason some people get errors when trying to load vobs)

-Nic
Nic is offline   Reply With Quote
Old 13th May 2002, 16:55   #5  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
i have found the solution by using the avifill32.dll and some api like AviOpenstreamfile.

thank u. bye
Dark-Cracker is offline   Reply With Quote
Old 14th May 2002, 08:14   #6  |  Link
BlackSun
CoreCodec
 
BlackSun's Avatar
 
Join Date: Oct 2001
Location: Toulouse
Posts: 726
Quote:
Originally posted by Nic
@BlackSun:
Do you know much about DirectDraw? DVD2AVI is using DirectDraw & overlay incorrectly...But I dont know enough to fix it (its the reason some people get errors when trying to load vobs)

-Nic
I have just started to learn DirectDraw and the Overlay so it's a bit sooner to help you, too bad that you don't read delphi...
__________________
BlackSun
The Concentric Circles of Audio and Video
BlackSun is offline   Reply With Quote
Old 14th May 2002, 15:32   #7  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,091
Hi Nic -

I'm not a DirectDraw guru but I'd still like to know the source of the problem. And I've done a little DirectX programming in DScaler.

- Tom
trbarry is offline   Reply With Quote
Old 14th May 2002, 15:49   #8  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
Hi Tom

have you ever come across the problem? It occurs in the InitOverlayIfAvailable function in Gui.cpp.

I know some people get the error:
"You video card cannot handle YUV display. Conversion will work, but you will not get any display in YUV mode"
All the time, others only after, for example, playing a movie & then try loading DVD2AVI.

There is probably a better way of getting the overlay that would never cause this problem......But I dont have any idea how to

-Nic
Nic is offline   Reply With Quote
Old 16th May 2002, 13:48   #9  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,091
I've seen it but I'm not sure the message is accurate. I think maybe that is the message for any failure to get the overlay, including:

* Asking for one too big

* Asking for one that violates various alignment (multiple of x size) requirements that some video cards have.

* Overlay not available because another ap has it.

But I don't know which is the usual cause in DVD2AVI. Maybe I was getting it when I ran 2 copies of DVD2AVI. I sorta remember that I once thought I knew why it happened but I sure can't remember now. Sorry. Not much help.

- Tom
trbarry is offline   Reply With Quote
Old 16th May 2002, 13:54   #10  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
No, the error message is definitely not accurate

Can only one app have the overlay at a time? If so I guess theres no way round it... Hmmm...But I cant believe thats the case.

-Nic
Nic is offline   Reply With Quote
Old 17th May 2002, 11:51   #11  |  Link
maven
Registered User
 
maven's Avatar
 
Join Date: Oct 2001
Location: DE
Posts: 122
Nic is right...

Unfortunately, most (if not all) graphics cards can display at most 1 (one) overlay.
If more than one app reuqests one, the later one usually fall back to software yuv->rgb conversion.
__________________
[maven] - Wavelet Image Compression Library
maven is offline   Reply With Quote
Old 29th May 2002, 10:24   #12  |  Link
llemor
Registered User
 
llemor's Avatar
 
Join Date: Feb 2002
Posts: 123
@ dark-cracker:

I hope this is not too late. I've just free time, so I read this forum.

In VB, use API function - "mciSendString". You can open .d2v file using avisynth as frameserver. I already used it on my proggy.

Try this link: http://216.26.161.91/vbapi/ref/index.html


Edit: correct URL
llemor is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:31.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.