It is currently Fri Sep 03, 2010 7:14 am




Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next
 MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs 
Author Message
Fried Eyed!
User avatar

Joined: Sat Apr 12, 2008 10:18 pm
Posts: 3709
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
jimmydonc wrote:
seriously how does your application work? Is there some long way around? what's the difference between an MPO and a jpeg? I changed the extension to jpeg out of curosity and was able to open it in photoshop. Of course it was the same as the 2 d jpeg. not it's stereo pair. where's that second image hiding in there??

Ok, let me give you a proper response. Basically an MPO file is just two standard JPEG files appended together. All my program does is slice the file into two and save the data with the JPEG extension. There is no conversion going on. The reason renaming the file to JPG works is because it is basically JPEG data. So an image program (like photoshop) will start reading the file as a JPEG and all is fine until it hits the End Of Image marker. The second image is right after that but the program is only expecting one image so it stops there. You can extract this data manually, but it will be time consuming for more than just a couple of pictures at a time. However if you have no other choice, here is how to do it.

- First off, you will need a Hex editor to manipulate the file. This one for Mac looks decent: https://www.ifd.com/product_info.php/products_id/87

- Open the MPO file in the Hex editor. Start a new search, set it to "Hex" and search for this string "FFD8FFE1". That is the Start Of Image marker for a standard JPEG/EXIF file. Your first find will be the beginning of the file naturally, so hit "Find Next". This will be the break point between the image data.

- Select all the data before this point and save it to a file with the extension "JPG", this will be the left image. Most hex editors will let you do something like "Save selection to file" or something similarly named. Now select all the data after the marker (and including the marker) and save this to another JPG file. This is the right image.

- Thats it, you're done. You now have both stereo pairs.

Obviously this is not very practical for a large set of images, but its at least a solution.

I am looking into how I can make my program for the Mac and I found a way to install OS X on my PC. If I can get OS X running it should be fairly simple to just re-compile the program for use on Mac. However this is a whole other can of worms to get into, so its probably going to be another week to two before I could have this done. But I am looking into it. I am also working on a fully featured 3D image editing program (to compete with StereoPhoto Maker) and now that I think of it, it would be nice to have cross-platform support (PC, Mac and maybe Linux). Would help at least to give me an edge. Macs are also popular with the photography crowd so if this Fujifilm camera becomes popular I could see a lot of demand for something like this. I'm not making any promises, but it is on the table.

_________________
Image
Image
Image
Image


Tue Sep 01, 2009 11:24 pm
Profile
One Eyed Hopeful

Joined: Mon Aug 31, 2009 3:19 pm
Posts: 5
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
a week or 2? thats all? hey. I'll wait for you. I'll donate some money for your efforts.

if you are making a program, may I offer a suggestion. a fun thought. I made a template in photoshop that I can put a stereo pair into so I can print out old timey stereoscope cards. That would be a neat plugin. easy enough to do in photoshop but would be awesome to have some automatic program.
Speaking of automatic. Batch features. I constantly use the batch feature in photoshop to apply effects to large numbers of files. A bath feature in your program would be cool too.


Thu Sep 03, 2009 12:31 am
Profile
Fried Eyed!
User avatar

Joined: Sat Apr 12, 2008 10:18 pm
Posts: 3709
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
jimmydonc wrote:
A batch feature in your program would be cool too.

Yeah, it already does that. You can just drag any arbitrary amount of MPOs onto the exe file and it will convert them all.

_________________
Image
Image
Image
Image


Thu Sep 03, 2009 1:51 am
Profile
One Eyed Hopeful

Joined: Sat Sep 05, 2009 7:23 am
Posts: 4
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
I have a Mac and wanted to split some MPO's so built a little java app. Just extract the DMG, run SplitMPO, click "Convert File", Select a file. It writes a filename_l.jpg (left eye image) and filename_r.jpg (right eye image).

http://ssh.scrameta.net/www.scrameta.net/SplitMPO.dmg

I know the program is rubbish, but it does the job for now until someone writes something better...

Mark

Edit:Fixed URL


You do not have the required permissions to view the files attached to this post.


Last edited by scrameta on Mon Sep 07, 2009 7:17 am, edited 1 time in total.



Sat Sep 05, 2009 7:32 am
Profile
Fried Eyed!
User avatar

Joined: Sat Apr 12, 2008 10:18 pm
Posts: 3709
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
scrameta wrote:
I have a Mac and wanted to split some MPO's so built a little java app. Just extract the DMG, run SplitMPO, click "Convert File", Select a file. It writes a filename_l.jpg (left eye image) and filename_r.jpg (right eye image).

Very nice work man.

_________________
Image
Image
Image
Image


Sat Sep 05, 2009 10:33 am
Profile
One Eyed Hopeful

Joined: Sat Sep 05, 2009 7:23 am
Posts: 4
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
I had a quick play to improve this this morning, since viewing them was annoying me! i.e. open left/right, resize windows etc...

Anyway it has some new features:
i) Convert a whole directory
ii) Displays last converted image
iii) Ability to select previously converted images (from current directory)
iv) Crosseyed or straight option

http://ssh.scrameta.net/www.scrameta.net/SplitMPOv2.dmg

I've also attached the jar in case someone wants to try this on a non-Mac. I think I might need to fix directory selection on non-Macs...

Mark

edit: Fixed URL


You do not have the required permissions to view the files attached to this post.


Last edited by scrameta on Mon Sep 07, 2009 7:17 am, edited 1 time in total.



Sun Sep 06, 2009 7:22 am
Profile
Fried Eyed!
User avatar

Joined: Sat Apr 12, 2008 10:18 pm
Posts: 3709
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
This is really great news, now I don't have to bust my balls porting to Mac.

I am in the process of adding support for JPS output and hopefully that will be done soon (almost working now).

_________________
Image
Image
Image
Image


Sun Sep 06, 2009 10:54 am
Profile
One Eyed Hopeful

Joined: Sat Sep 05, 2009 7:23 am
Posts: 4
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
Yes I should add JPS output too. Just jpeg with the images next to each other right? Also I think animated gif for the wiggle style viewing would be good. Have to see how much Java will just do for me for almost free...

I'd offer to do the Mac port of your stuff, but I can't be bothered to learn Objective C and the OSX API right now!

Has anyone with a Mac tried this BTW? In case I messed up the deployment and it only runs on mine...

Mark


Sun Sep 06, 2009 3:06 pm
Profile
One Eyed Hopeful

Joined: Sat Oct 10, 2009 8:31 pm
Posts: 1
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
I just got a FUji W1 today. I almost sent it back until I downloaded your app for the MAC. It works fine for me (IMAC 20" Intel)

Bernard


Sat Oct 10, 2009 8:38 pm
Profile
One Eyed Hopeful
User avatar

Joined: Tue Oct 13, 2009 5:23 pm
Posts: 1
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
I have just updated my 3D slide maker for the Mac to include MPO files.
It's free at:- http://www.thebox.myzen.co.uk/Steroscopic_Site/Software.html
It's a bit of a hack, let me know if it works for you.


Tue Oct 13, 2009 5:29 pm
Profile
Fried Eyed!
User avatar

Joined: Sat Apr 12, 2008 10:18 pm
Posts: 3709
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
I figured I'd post the source in case anyone wants. I compiled using Visual C++ 2008 Express, but it should work with any compiler.

Attachment:
MPO2Stereo.zip


You do not have the required permissions to view the files attached to this post.

_________________
Image
Image
Image
Image


Tue Oct 20, 2009 8:33 pm
Profile
One Eyed Hopeful

Joined: Wed Nov 04, 2009 3:25 am
Posts: 1
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
I am developing C++ class MPOWritter. The goal is to write mpo files which can be opened with Fuji Finepix V1 digital frame. The class is almost complete but it has some issue. I am looking tool that will help me to find that issue. I found Stereo Photo maker program, which has functionality to create MPO files. It also can preview mpo files. When I created mpo file with that program digital frame opens it as mpo file. When I creating mpo file using my class frame doesn't recognize it as MPO file. It opens file as single image. However stereo Photo Maker opens that file as MPO image. When I using your MPO2Stereo tool Left image becomes invalid jpeg while right image becomes valid. I think having your sources I will easily debug and find issue. Could you send it to my email arman.hunanyan@gmail.com. Thanks in advance


Wed Nov 04, 2009 3:45 am
Profile
Fried Eyed!
User avatar

Joined: Sat Apr 12, 2008 10:18 pm
Posts: 3709
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
The source is posted in the post directly above the last one. It should be pretty easy to follow. The MPO is basically just two JPGs in one file, as I'm sure you realized. The left image is first, then the right image. If your left image is getting corrupted then most likely you are not writing the proper end of file marker for the JPEG/EXIF data. Take a look at some real MPO files and split them with my program if necessary. Then use a hex editor to check the last byte of data. That is most likely where the error is.

_________________
Image
Image
Image
Image


Wed Nov 04, 2009 9:24 pm
Profile
One Eyed Hopeful

Joined: Sat Sep 05, 2009 7:23 am
Posts: 4
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
That Slide Maker looks cool. Any chance of a PPC tiger build? :-)


Sun Dec 13, 2009 6:07 pm
Profile
One Eyed Hopeful

Joined: Wed Jan 20, 2010 8:21 am
Posts: 1
Post Re: MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs
There is another way to work with MPO files. Latest version of STOIK Imagic 5.0.4 (http://www.stoik.com/imagic) can split MPO files such as made by FujiFilm FinePix Real 3D W1 into standard JPEGs, generate stereo pairs (JPS, PNS), and anaglyphs. STOIK Imagic is free, but some advanced features will require purchase of activation key after initial 30 days. Splitting of MPO into JPEGs is available in free version.


Wed Jan 20, 2010 8:25 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next


Who is online

Users browsing this forum: Google [Bot], Okta and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.