[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [LUNI] Hexedit Challenge



Wow -- you really like doing things the hard way!

Maybe you could use a hand trying to get that disc mounted instead?  What have you tried?

Have you tried something similar to the following?

# dd if=/dev/cdrom of=/tmp/jpgs.iso
# mount -t iso9660 -o loop /tmp/jpgs.iso /mnt/tmp

(make sure /mnt/tmp is created and empty first...)


From: Herbie <technowombat@yahoo.com>
To: luni@luni.org
Cc: luci-discuss@luci.org
Sent: Friday, February 13, 2009 10:22:49 AM
Subject: [LUNI] Hexedit Challenge

I was given a DVD-R of JPEG's someone took of my band for me.
Unfortunately, I can't mount it on any of the machines in my house, I was
able to use dd to get the raw data into a file, and using hexedit I am
able to extract the data I need.

However there are 180+ images on this disk, so I need to figure out how to
extract the images via a script.

Known Factors:
==============
Each image begins with the following sequence

FF D8 FF E0

and ends with the third occurence of

FF D9

or the first occurence of

FF D9 00 00

What could I use to parse the file, and extract each image into it's own
file.

herbie
--
Linux Users Of Northern Illinois (Chicago) - Technical Discussion
http://luni.org/mailman/listinfo/luni