View Full Version : VB, vob player??? Got any Tips?
DoC hEx
16th February 2003, 12:45
I’m experimenting with VB and trying to get it to play a video stream from a list of VOB files. I’ve also used AviSynth to generate a script.avs file to play under the Media Player OCX. But this sucks, I’m looking for something a little more robust.
Does anybody have tips on how to play VOB’s within VB? Or some good programming sites about this stuff. I understand c, and c++ if these are the only types of examples available. I don’t really want to go too the troubles of writing my own MPEG decoder, unless I really have too. What I’m looking for is a good place to start as it’s all new.
Cheers
dOc hEx
Prettz
28th February 2003, 02:12
PowerDVD can play VOB files (not sure if they must be decrypted to play in this mode but I doubt it), including being able to add them to a playlist. I think Zoom player can do it too.
stax76
28th February 2003, 03:08
I would use .NET SDK, DX9 SDK which features DirectShow .NET API and SharpDevelop if you don't want to pay for a IDE. VB6 is not a good language compared to .NET or Delphi imho
DoC hEx
28th February 2003, 23:10
Thanks for the info. I’ve been looking at the MPEG2DEC.DLL, but I haven’t yet made it work with VB6. I’m thinking of just dropping the VB6 all together and doing it completely VC++, or the other idea I had was to make an OCX rapper for the DLL in VC++, so as I can import it easily into VB.
NiTroGen
2nd March 2003, 19:45
I'm also trying to find information on using MPEG2DEC.DLL with Visual Basic. Please, if you make it work, could you post the code in this thread? If I make it work first, be sure that I'll post the code here.
DoC hEx
3rd March 2003, 04:54
Originally posted by NiTroGen
I'm also trying to find information on using MPEG2DEC.DLL with Visual Basic. Please, if you make it work, could you post the code in this thread? If I make it work first, be sure that I'll post the code here.
Sure I'm still working on it. But I've been busy with my real life contract work, so as soon as I get it working I'll post the code.
DH
VidHack
7th March 2003, 19:49
I would visit, http://www.remotesoft.com/salamander/ before you jump on the .NET platform. I switched back to VB 6.0 SP5, after playing with some .NET apps. You can easily decompile the project. Unless your going to make a completely open source project, then go for it. But if any type of application hardening is planned, please think about it.
VidHack
Alain_French
2nd April 2003, 13:04
hi, (i'm french so excuse me for my bad english :( )
If i understand your problem, you try to open VOB into a mediaplayer ocx. And mediaplayer can't open the format ?
I make TV acquisition with my ATI and i have a MPEG2 format at the end. I must seek the frame to localise advertisement...and make my avs with the TRIM function.
So in my VB6 program, i open my MPEG2 file with mediaplayer and i works. But the problem is : i can't show the slected frame.
I use : MediaPlayer1.CurrentPosition = MediaPlayer1.CurrentPosition - 1
But this doesn't return the frame into the player. I must do play to show the image.
Do you know how to show frame without use the play function ? To make as GKnot.
If not, i will use your test program with mpeg2dec.dll
Thanks
Alain
DoC hEx
2nd April 2003, 14:40
Now that I think about it, I really should have but this file into this thred, and not start another.
http://forum.doom9.org/showthread.php?s=&threadid=49952
The above link is to a VB project that uses mpeg2dec.dll to get d2v project info, and then display selected frames. But it's slow, as the SetPixelV function is not great. I'm currently learning Delphi, as VB is isn't good at fast GFXs, and VC++ is just crap for RAD development. While .Net look promissing, I don't know, I'd sooner go with Java then .Net. As the download for .Net SDK is about 130Mb! I might wait for VS.Net 2003, as I'm due to upgrade my VS soon.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.