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 Search this Thread Display Modes
Old 9th February 2005, 20:06   #1  |  Link
nasedo
Registered User
 
Join Date: Jan 2005
Posts: 13
vob's bad duration

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?

Regards,

Nasedo
nasedo is offline   Reply With Quote
Old 10th February 2005, 10:18   #2  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
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
Nic is offline   Reply With Quote
Old 10th February 2005, 13:17   #3  |  Link
nasedo
Registered User
 
Join Date: Jan 2005
Posts: 13
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
nasedo is offline   Reply With Quote
Old 12th February 2005, 10:27   #4  |  Link
Dmitry Vergheles
Registered User
 
Dmitry Vergheles's Avatar
 
Join Date: Dec 2004
Location: Hamburg, Germany
Posts: 332
Hi nasedo,
Try to use your VOB file with Moonlight-Elecard MPEG-2 Demultiplexer.
http://www.elecard.com/download/
__________________
Regards,
Dmitry Vergeles
Solveig Multimedia - Video Editing Software
Dmitry Vergheles is offline   Reply With Quote
Old 13th February 2005, 13:03   #5  |  Link
nasedo
Registered User
 
Join Date: Jan 2005
Posts: 13
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
nasedo is offline   Reply With Quote
Old 14th February 2005, 09:11   #6  |  Link
Dmitry Vergheles
Registered User
 
Dmitry Vergheles's Avatar
 
Join Date: Dec 2004
Location: Hamburg, Germany
Posts: 332
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
__________________
Regards,
Dmitry Vergeles
Solveig Multimedia - Video Editing Software
Dmitry Vergheles is offline   Reply With Quote
Old 26th February 2005, 02:03   #7  |  Link
jeanl
Registered User
 
jeanl's Avatar
 
Join Date: Sep 2004
Location: California, USA
Posts: 2,079
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
__________________
A few PgcEdit guides.
DVDSubEdit a free tool to edit subtitles directly inside the vob.
jeanl is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 13:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.