hi people,
what's the format of .vob file? where can i find details of what is inside .vob file? how can i write a own simple program to read .vob file n extract the subtitle out of it in C#.Net?
Should i use FileStream or StreamReader to open up the vob file? Which is better?
Any ideas?
![]()
+ Reply to Thread
Results 1 to 7 of 7
-
-
Originally Posted by dvdiant
http://www.mpucoder.com/DVD/
http://www.pioneer.co.jp/crdl/tech/dvd/1-2-e.html
http://www.dvd-replica.com/DVD/gprm.php
This last one is a download for vstrip which strips the streams from a dvd. One versions (non-css) contains the source code. With a google search you can probably find the source for the css version. If you can understand the source code it will teach you how to extract the streams from the vob files
http://www.digital-digest.com/dvd/downloads/vstrip.html
Have fun! -
it's not easy to read through other's code... sometimes u dun know what they are actually writing...
one of the website you gave above is very good but it requires me to pay them a memebership fee. -
Originally Posted by dvdiant
Sifting through other people's code is not easy but it's a lot easier than trying to write your own code when you don't know the first thing about a complex subject. It took me many hours of tracking through someone elses free code to understand a so called simple video capture program but afterwards I was able to enhance it and add many features that were not in the original program. Dvd processing is a fairly complex topic it's much easier to follow in someone else's footsteps. If you don't have the willingness to do it then why not just use the existing binaries created by others. In the end they will let you rip your files and extract whatever stream you want with a minimum of effort.
Programming is work and can be frustrating but if you love it , it's fun and very self satisfying. -
I created a simple sub extracting program after using hexeditor and vobedit to work out which bytes I wanted from each sector. The actual formula was rather simple in the end. Even though I can't program, it's nothing like the codes I have seen. This is my attempt at basic code I gave to a coder and he knew what I meant when I gave him the code below. I haven't a clue whether it's legit or not. He created a program with it and it worked for what I needed it for at the time so I wasn't bothered. It split the various subtitle streams into relevant .sup files so I could extract the menu subpictures for editing. This was all part of a process to edit original subpictures and reinsert them back into the DVD and it worked as I said so I was happy
Code:1 - LOOP=0. Set all streams (32-63) to SIZE=0 (LOOP is sector number and Size set to 0 to remember current location in subs file) 2 - read address (LOOP+14) for 4 bytes (get stream type) 3 - if value <> 445 then LOOP = LOOP +2048, goto Line 2 (this checks whether its an audio/subs stream) 4 - read address 22 for 1 byte and store value (TABLE, this is also for the individual STREAM) (collect size of current sub table) 5 - read address (LOOP*2048)+23+TABLE for 1 byte storing value (STREAM) (get stream ID number) 6 - if STREAM <32 or >63 then goto Line 2 (check to see if its a sub) 7 - if TABLE=8, read address (LOOP*2048)+32 for 2 bytes and save as SIZE, CSIZE=SIZE. Read address (LOOP*2048)+34 for 2 bytes and save as INFO (collect size of sub if its a Header and set CSIZE) 8 - if Stream Size > 2024-TABLE copy address (LOOP*2048)+24+TABLE until address (LOOP*2048)+2048 (CSIZE=CSIZE-2024+TABLE). Goto Line 2 (check to see if CSIZE is greater than maximum possible data in sector) 9 - if Stream Size <= 2024-TABLE copy address (LOOP*2048)+24+TABLE until address (LOOP*2048)+23+TABLE+CSIZE. End current stream file. Goto Line 2 (check to see if CSIZE is less than maximum possible data in sector) 10 - Next LOOP
saying that, the $5 for mpucoders site is nothing compared to the info you get access to -
wow thanks... i'll look through the code...
the next diffcult part i'm facing is the conversion to text format... i need to do a OCR ...optical character recognition on the subtitle bitmaps.... i've paid $5 for that site... it's really good! glad i did it...
anyone have any idea that can share?
Similar Threads
-
Programming Software?
By thawizanator in forum ProgrammingReplies: 2Last Post: 11th Dec 2008, 15:46 -
Programming a OneForAll Kameleon 4
By infrance in forum DVD & Blu-ray PlayersReplies: 1Last Post: 25th Jul 2008, 14:30 -
Programming in C...where to get PICO or use on PC?
By Rudyard in forum ComputerReplies: 13Last Post: 14th Mar 2008, 07:29 -
video programming - where to start?
By sanlyn in forum ProgrammingReplies: 13Last Post: 3rd Feb 2008, 09:56 -
programming?
By php111 in forum ProgrammingReplies: 6Last Post: 7th Aug 2007, 07:52