View Full Version : vob's bad duration
nasedo
9th February 2005, 20:06
Hi all
I've made an app which can play vob files :
file source (async)[.vob]->MPEG2 Splitter->ffdshow VideoDecoder->Video Renderer
MPEG2Splitter filter i use is one from gabest ("Universal Open Source MPEG Splitter")
With most of vob files, there is no problem : the duration's ok, and i can navigate in the stream (with IMediaSeeking).
But with some vobs, the duration's wrong (for example 17min instead of 38min) and when i wanna "navigate", it takes a lot of time !!!
So, are these vob files not correct? Or is Gabest'MPEG2Splitter buggy? :confused:
Regards,
Nasedo
Nic
10th February 2005, 10:18
The vob files are not correct. It's very difficult for you to know the exact length of a MPEG-2 file without parsing the whole of it. Some VOBs make it easy by having a continuous GOP timecode and PTS, but many VOBs don't have this.
There's also no one to navigate very accurately thru MPEG-2 files unless you have some sort of indexing like DVD2AVI does.
-Nic
nasedo
10th February 2005, 13:17
First thank you very much for your reply!
Okay, so my vob doesn't have a continuous GOP timecode.
But is there a way to "repair" it? i mean, is there a software that can add this GOP timecode to my vob?
This would be a great solution to my problem...
Bye
Dmitry Vergheles
12th February 2005, 10:27
Hi nasedo,
Try to use your VOB file with Moonlight-Elecard MPEG-2 Demultiplexer.
http://www.elecard.com/download/
nasedo
13th February 2005, 13:03
Thanks for your reply Dmitry!
I tried my vob with elecard demultiplexer, and you were right : it works fine!
But i've got a question : i wanna distribute my app under GPL. Can i use this filter (and include it in setup) ??
Regards,
Nasedo
Dmitry Vergheles
14th February 2005, 09:11
Hi Nasedo,
Actually this question is not clear me from a legal side.
I think it is better to ask this at Elecard techsupport team.
You could do it on through their forum.
http://www.moonlight.co.il/forum/index.php
jeanl
26th February 2005, 02:03
As far as playing a VOB file, PgcEditPreview (based on the DVD2AVI code) does exactly that, but does not use direct-show (DVD2AVI was written absolutely from scratch!). You can check it out if you're interested, as a comparison to your app. It's part of PgcEdit. If you download PgcEdit (free app) and run it, it creates a bin directory where you put it, wich PgcEditPreview in it.
When I wrote PgcEditPreview (packaging DVD2AVI really), I was looking for a VOB file player, and I ran into exactly the same problems you did using direct-show.
Which makes me wonder how DVD Shrink and IFOEdit do it (I seem to remember they're based on direct-show).
jeanl
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.