VideoHelp Forum




+ Reply to Thread
Results 1 to 15 of 15
  1. Hi, I'm doing a project and need help to get the code from the dvd (movie) and convert the binary to a printable form. Suggestions are appreciated.
    Quote Quote  
  2. Printable form? You mean extract frames as PNG or JPG images?
    Quote Quote  
  3. Mod Neophyte redwudz's Avatar
    Join Date
    Sep 2002
    Location
    USA
    Search Comp PM
    If you mean to print out the binary of the pits and lands on a DVD disc, you better have a lot of paper handy.

    Here's a bit of info about CDs that is similar: http://www.laesieworks.com/digicom/Storage_CD.html

    Click image for larger version

Name:	LandAndPits.JPG
Views:	631
Size:	36.1 KB
ID:	4767
    Quote Quote  
  4. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Maybe you simply mean the binary of the instruction set in the ifos?

    Several programs can decode that for you - pgcedit, dvdremake etc but none have a direct print-out so you would need to do a far amount of copy/pasting.
    Quote Quote  
  5. This wont win the Turner prize you know? 8gb @ 1 page per k = 8,388,608 pages possibly even more, if my maths is wrong.
    Corned beef is now made to a higher standard than at any time in history.
    The electronic components of the power part adopted a lot of Rubycons.
    Quote Quote  
  6. Hi, thanks to everyone for the responses. I apologize for my low literacy in this matter and do appreciate your help.

    To clarify, taking your feedback into account:
    I want to work with a single frame-grab image from a dvd, and then extract the code so that the binary is printable as numerals.
    ( I don't want to print 8,388,608 pages! -- but that is awesome information to know, that it translates into so much type info)

    If dvdremake allows that, I will have a look.
    If another program is suitable please tell me about it.
    Cutting and pasting is okay, as long as I can access the binary. Does dvdremake allow cut and paste into word, etc?

    Also, I am interested in how to calculate how many pages of binary would result from decoding a 1/2 hour tv show (minus commercials). That's something like twenty minutes of play. RabidDog mentioned "8gb @ 1 page per k = 8,388,608", is 8gb the amount of data for an average length movie?

    Best wishes
    Quote Quote  
  7. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    I must withdraw my earlier comments now as the programs I mention can not do what you require.

    I would be surprised if anything can given the compexity of mpeg2 compression etc.

    And you could not simply take a screen grab and print that out as the process of creating the image would actually alter the image at binary level.
    Quote Quote  
  8. Mod Neophyte redwudz's Avatar
    Join Date
    Sep 2002
    Location
    USA
    Search Comp PM
    You might try this: I opened a VOB from a DVD in MPC-HC and paused the video, then used 'File>Save Image' to grab one frame of MPEG-2 video to make a .jpg:


    Click image for larger version

Name:	VTS_01_3.VOB_snapshot_02.46_[2010.12.19_13.36.45].jpg
Views:	258
Size:	81.6 KB
ID:	4780

    Then I opened the .jpg in Virtual Dub (Or VD Mod) Hex Editor, 'Tools>Hex Editor'. That may not be a true representation of the actual frame data, but it is representative of what a hex editor can do. There are about 14,600 lines of data from that image. If you figure about a two hour video, 7200 seconds X 29.97 frames per second, that would be about 2,157,884 frames of video. Times 14,600 would give you a rough idea of how much data is there, at least looking at it from the hex editor.

    This is line 190 (w) converted to binary. (I think. I haven't worked with binary in quite a while. Hex is a lot more convenient for large amounts of data.)
    0010 0100 0100 0011 0100 0111 0101 0100 - 0100 0000 0001 0010 01110111 0000 0001 0010

    Click image for larger version

Name:	hex.jpg
Views:	840
Size:	385.9 KB
ID:	4781
    Last edited by redwudz; 19th Dec 2010 at 15:28.
    Quote Quote  
  9. Originally Posted by Hellohello View Post
    I want to work with a single frame-grab image from a dvd, and then extract the code so that the binary is printable as numerals.
    That's still unclear. Do you want YV12 values printed out? RGB? What subsample order? 8 bits of red, 8 bits of green, 8 bits of blue. A line of red bits, a line of green bits, a line of blue bits? An entire plane of red bits, an entire plane of green bits, an entire plane of blue bits? What order? Top left to right, to bottom? Bottom left to right, to top? Formatted in an easy to read manner? Just a huge string of ones and zeros?

    A single frame of NTSC DVD is 8,294,400 bits as RGB (720 * 480 * 3 * 8). Printed as ones and zeros with no spaces on 8.5x11 pages, with a moderate sized font will be something like 80 characters per line, 60 lines per page -- about 1728 pages. A half hour TV show would be about 93 million pages (1728 * 30 fps * 60 seconds per minute * 30 minutes).

    A starting point would be to open a VOB file in VirtualDubMod then export a frame as a TGA file. VirtualDub's TGA files are uncompressed. TGA files have a 18 byte header at the start. Followed by all the RGB data, top left to right to bottom (or bottom left to right to top), one byte of blue, one byte of green, one byte of red. There are lots of hex dump utilities but I've never seen a binary dump utility. It would be easy to write one.
    Last edited by jagabo; 19th Dec 2010 at 17:35.
    Quote Quote  
  10. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by jagabo View Post
    There are lots of hex dump utilities but I've never seen a binary dump utility. It would be easy to write one.
    I don't think the OP necessarily wants a binary (0's and 1's) dump, although it's still not clear what he really wants (or why).
    Originally Posted by Hellohello View Post
    I want to work with a single frame-grab image from a dvd, and then extract the code so that the binary is printable as numerals.
    A hex dump still shows the binary data 'as numerals' (and in a quarter of the space of a binary dump).
    Quote Quote  
  11. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Binary will look something like this anyway. Do you think anyone is able to tell the real thing from a fake random string?

    01000110001011010011110000001111010000011000100100 10011011111100011100100010001100
    10110110000001100000001001100000001100001100010110 01001101111000000111101000100101
    00000000111101010101011111110011010101101110111101 10010100100110000000101111100001
    00000011111010010011111101101010011110101100110000 11000010100100100100101111101010
    11010110110101000100010101100011011000000010111110 00110000011111111001001110110011
    11110011111001000000110110110010001110100000100110 00011011101100100000011111011111
    01000111110101000100011001011011110011101101000101 10110110001111101000100010100111
    01110110000100111001000010111100101111101101001100 00100110110010101110100000000110
    11110001000101111010100111110101101001101011000010 01101101001111100110101011001100
    10110100101000011000111010100111010011101011000100 10111000110110011011001010000101
    01010011110100010001100000101111010100010011011100 01000010101001000011110111010011
    11101010001000101011011101000110110000111010011010 01011110101101100111011000010011
    00100100100111110010101011010010011100111100011001 01100011001111011011011011100110
    Quote Quote  
  12. If I was hired to create the program I'd suggest something like this:

    Click image for larger version

Name:	bindump.png
Views:	317
Size:	1.3 KB
ID:	4783

    Where YYYY is a four digit row number, XXXX is a four digit column number, and the RRRRRRRR, GGGGGGGG, BBBBBBBB are 8 columns of 8 digit binary values of each pixel. That would make it easy to locate any particular pixel.

    Or:

    Click image for larger version

Name:	BinDump2.png
Views:	302
Size:	1.4 KB
ID:	4784

    where dec is the three digit decimal value of each sub-pixel.

    Why am I wasting my time with this?!
    Last edited by jagabo; 19th Dec 2010 at 19:55.
    Quote Quote  
  13. Hi to everyone who has replied. This is great help.

    In response to Gavino, (" don't think the OP necessarily wants a binary (0's and 1's) dump, although it's still not clear what he really wants (or why).") I do actually want 0's and 1's, and want to represent a glimpse of the enormity of data flying around.

    In response to Case, you are right -- most people won't know, but part of the appeal for me is to trace the problem back to the source (sort of, I'm not going to extract raw minerals to build my own computer from scratch!)

    Jagabo -- thanks, it's not a waste in as much as you're lending a hand and I appreciate it.

    Redwudz -- that is awesome. Now, is the DVD coded in hex, or is that just how the hex editor deals with the data? Binary remains my goal...

    A friend has suggested that opening the video in BBEdit Pro to reveal the ASCII code, and then pasting it into an ASCII to Binary converter would work. I just heard this today and haven't had time to wrap my head around it. Any opinions on this?

    Thanks for your time!
    Quote Quote  
  14. Originally Posted by Hellohello View Post
    Now, is the DVD coded in hex, or is that just how the hex editor deals with the data? Binary remains my goal...
    Hex, binary, octal, decimal -- are all just ways if displaying numbers. For example the following four representations are all equivalent:

    binary: 10100101
    octal: 245
    hex: A5
    decimal: 165
    roman: CLXV
    upside down apples: QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ QQQQQQQQQQQQQQQ
    Last edited by jagabo; 20th Dec 2010 at 20:15.
    Quote Quote  
  15. Member
    Join Date
    Mar 2004
    Location
    Texas, USA
    Search Comp PM
    You could just make a random binary stream. It's not like anybody (other than you) would ever know the difference. (Edit: Oops, Case, I guess you already suggested this; I missed it.)

    Hellohello, can you explain anything about WHY you want to do this?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!