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.
+ Reply to Thread
Results 1 to 15 of 15
-
-
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
-
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. -
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 -
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. -
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:
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
Last edited by redwudz; 19th Dec 2010 at 15:28.
-
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.
-
-
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 -
If I was hired to create the program I'd suggest something like this:
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:
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.
-
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! -
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 QQQQQQQQQQQQQQQLast edited by jagabo; 20th Dec 2010 at 20:15.
-
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?
Similar Threads
-
Need an OS X binary of mp4creator, anyone ?
By pawzlion in forum MacReplies: 4Last Post: 9th Dec 2012, 08:41 -
mpeg2enc binary not working
By yabastamedia in forum ffmpegX general discussionReplies: 1Last Post: 19th Jan 2011, 12:02 -
FFMPEG Win32 binary
By DEmberton in forum ProgrammingReplies: 3Last Post: 1st May 2010, 09:59 -
Can't install mpeg2enc binary
By cpwhaley in forum ffmpegX general discussionReplies: 3Last Post: 23rd Jul 2008, 13:50 -
Problem with mpeg2enc binary
By lkearl in forum ffmpegX general discussionReplies: 1Last Post: 11th Aug 2007, 03:47