It is currently Fri Dec 13, 2019 5:50 am



Reply to topic  [ 38 posts ] 
 MPO2JPS: Convert Fujifilm MPO files to JPS stereo images. 
Author Message
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
I have made a new version of my MPO2Stereo application called MPO2JPS and it does what you think: converts an MPO file into a standard JPS file which can be viewed in full quality stereo 3d with the NVIDIA 3D Vision Photo viewer and other 3D applications. Unlike the MPO2Stereo app, this version must recompress the source image, however I did not notice any loss in quality (although file size is a lot less). Same as before, just drag-and-drop as many MPOs as you like and it will convert them all. Since full quality MPO files can be as much as 10MB is size, the program may take some time when converting a large number of files but probably not more than 10 seconds per file on a decent computer. If you wish to resize the image or further compress it for the web you will need to use another program. MPO2JPS just handles the full-res conversion and there isn't any functionality otherwise. If you wanted to use Photoshop, for example, to resize the images for the web you would need to rename the JPS files to JPEG files before you imported them. Anyway, here is the link, hope some people find this useful.

MPO2JPS download link:
Attachment:
MPO2JPS.zip


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

_________________
check my blog - cybereality.com


Sun Sep 20, 2009 1:29 pm
Profile
Petrif-Eyed
User avatar

Joined: Mon Feb 04, 2008 12:35 pm
Posts: 2466
Location: Kiev, ukraine
Reply with quote
splendid!! people with fujifilm 3d cameras like Neil Schneider will find this very useful :mrgreen:

_________________
Oculus Rift / 3d Sucks - 2D FTW!!!


Sun Sep 20, 2009 2:11 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Wed Dec 31, 1969 6:00 pm
Posts: 5723
Reply with quote
Indeed!

I'm going to try it out. The more automatic, the better. Will it let me pick custom resolutions, etc.?

Regards,
Neil


Sun Sep 20, 2009 5:59 pm
Profile WWW
Petrif-Eyed
User avatar

Joined: Mon Feb 04, 2008 12:35 pm
Posts: 2466
Location: Kiev, ukraine
Reply with quote
Neil wrote:
Indeed!

I'm going to try it out. The more automatic, the better. Will it let me pick custom resolutions, etc.?


no

_________________
Oculus Rift / 3d Sucks - 2D FTW!!!


Sun Sep 20, 2009 6:19 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Neil wrote:
Will it let me pick custom resolutions, etc.?

Currently it just does a full-resolution conversion but it may be possible to make a version with more options.

_________________
check my blog - cybereality.com


Sun Sep 20, 2009 8:44 pm
Profile
One Eyed Hopeful

Joined: Tue Oct 06, 2009 10:21 am
Posts: 2
Reply with quote
Unfortunately it's not working for me.... and the FinePix Viewer software is more horrible than I could have imagined...:o

I get this error when using drag+drop or a "Run" command:
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

Any clues would be greatly appreicated! BTW I'm trying to run this under XP.

Thank you!


Tue Oct 06, 2009 6:29 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
salsa wrote:
Unfortunately it's not working for me.... and the FinePix Viewer software is more horrible than I could have imagined...:o

I get this error when using drag+drop or a "Run" command:
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

Any clues would be greatly appreicated! BTW I'm trying to run this under XP.

Thank you!

Interesting. Its possible it doesn't work on Windows XP, but I wouldn't see why not. Unfortunately both my machines are running Vista so I cannot verify this. Can someone that is using XP test out the program with the following MPOs? These are what I used for testing so they should work no problem.

Attachment:
MPO.zip

Also, you might want to try the version that just outputs two JPEGs. That should surely work on XP:
viewtopic.php?f=3&t=4124

If you need more robust functionality try Stereo Photo Maker, which now supports MPO:
http://stereo.jpn.org/eng/stphmkr/


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

_________________
check my blog - cybereality.com


Tue Oct 06, 2009 7:14 pm
Profile
One Eyed Hopeful

Joined: Tue Oct 06, 2009 10:21 am
Posts: 2
Reply with quote
Thanks for the info! I will try splitting to jpegs when I get some time this weekend.

I found some other ways to split the mpo files on the Mac (which is my primary platform), but it seems most software is Windows-based, so I will explore different Windows tools for stereo adjustment in the coming weeks-- so glad to stumble on this forum after receiving my W1 last week!


Wed Oct 07, 2009 1:32 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
If you are on Mac, try this program (SplitMPO):
viewtopic.php?p=30513#p30513

You will still need Photoshop or another editor to convert to a JPS, but at least you will have the JPEGs.

_________________
check my blog - cybereality.com


Thu Oct 08, 2009 7:13 pm
Profile
One Eyed Hopeful

Joined: Tue Jan 12, 2010 3:08 pm
Posts: 6
Reply with quote
Hi,

On Windows XP, when dropping the MPO files onto the .exe, the output files end up in a weird place, not in he same directory where the .exe and the .mpo files are, but in C:\Documents and Settings\Username
That is not right...
Also it does not support wildcards? *.mpo?

I found your 3 homepages via Google, but no download options on there?

Thanks for the work, I am expecting my Fuji camera any moment :)

Bart


Tue Jan 12, 2010 3:40 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
At least on Vista it will produce the JPS file into the same directory as the MPO files are in. The EXE can be anywhere you like. Unfortunately it does not support wildcards, however you can drag and drop any number of MPO files at one time. I hope that helps.

_________________
check my blog - cybereality.com


Tue Jan 12, 2010 6:48 pm
Profile
One Eyed Hopeful

Joined: Tue Jan 19, 2010 9:47 pm
Posts: 1
Reply with quote
Dear all, JPS is an interesting topic.
i can how to find the JPS standard?


Tue Jan 19, 2010 10:43 pm
Profile
One Eyed Hopeful

Joined: Tue Sep 08, 2009 10:29 am
Posts: 1
Reply with quote
What i would like to do is to be able to convert 2 jpg images (l/r) into a MPO format that can be displayed on the fuiji 3d viewer. The blurb with the photo-viewer says only 3d pics taken with a fuiji 3d camera can be displayed. After shelling out 350 uk pounds for the viewer, i am disappointed thet made it such that only 'their' images can be viewed. I am an artist and i manipulate the left/right image with daz3d content inserted, but then I cannot convert them back to fuiji mpo file format.

Anyone know how to trick the header on a standard mpo so it looks like a fuiji mpo?

mol


Sun Jan 24, 2010 5:38 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
You should be able to use Stereo Photo Maker to create MPOs for use on the V1 viewer:
http://stereo.jpn.org/eng/stphmkr/

_________________
check my blog - cybereality.com


Sun Jan 24, 2010 6:24 pm
Profile
One Eyed Hopeful

Joined: Tue Oct 05, 2010 7:09 pm
Posts: 1
Reply with quote
Hello Cyberreality,

I am trying to write a C++ parser for mpo file, do you actually parse the full file before extracting the 2 jpeg files ? could you share the source ?

Thanks.


Tue Oct 05, 2010 7:19 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Hey vertuman,

All I am doing is breaking the MPO file into 2 parts. The MPO container is nothing more than multiple JPEGs concatenated together. So I search through the hex of the file and look for the marker for the start of a JPEG image. Everything before that part is considered one image, and everything after that the next image. Technically the MPO container can hold more than 2 images but for the W1/W3 it only uses 2 images for the 3D pictures. You can get the source for that process here:

viewtopic.php?p=32767#p32767

In MPO2JPS I basically extract the 2 images, same as before, and then I simply combine them into one JPEG. I haven't released the source for that yet, but let me know if you need it and I can post it up. If you are just doing a parser then the original code should be enough to get you started. At that point you will have standard JPEG files so you can manipulate them with any number of libraries.

_________________
check my blog - cybereality.com


Tue Oct 05, 2010 7:50 pm
Profile
One Eyed Hopeful

Joined: Mon Oct 25, 2010 10:15 am
Posts: 1
Reply with quote
Thank you, that's exactly whta I was looking for. :)


Mon Oct 25, 2010 10:24 am
Profile
One Eyed Hopeful

Joined: Thu Jan 27, 2011 6:07 pm
Posts: 1
Reply with quote
Thanks for the MPO split tool, it works fine. In fact I have a use for both the original stereo-pair and updated split-pair versions. The update saves me time (just a little) in Photoshop.

The next challenge, which I have to try, is getting the images on screen via my new JVC 3D projector.


Thu Jan 27, 2011 6:41 pm
Profile
One Eyed Hopeful

Joined: Mon Jul 25, 2011 3:21 am
Posts: 2
Reply with quote
Nice tool. I tried it out using my HTC EVO 3D. With some of the files it created a L and R file with content in them, with other files it generated one L file with an image and a R file that is empty. Image17 worked file image18 did not. I hope to attach a zip file with the two sample images.
Thanks for the tool.
Fant


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


Mon Jul 25, 2011 4:04 am
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Yes, I need to update this utility. It doesn't work with newer MPO files (like from Nintendo 3DS, etc.). I had only tested it will images from the original W1. I will look into it when I get a chance. In the meantime, you should be able to convert to and from MPO files using Stereo Photo Maker.

_________________
check my blog - cybereality.com


Mon Jul 25, 2011 11:00 pm
Profile
One Eyed Hopeful

Joined: Mon Jul 25, 2011 3:21 am
Posts: 2
Reply with quote
Thanks for the utility. I mostly am looking to extract to jpegs but the utility is very cool. I hope perhaps my mpo files will be useful to you when you find time to check into updates.
Fant


Tue Jul 26, 2011 1:57 pm
Profile
One Eyed Hopeful
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 23
Reply with quote
anyone tried creating an animated gif automatically ?
Then you can easily upload photo's create with your camera (Evo3d for me) to be viewed by the rest of the world.

_________________
---------------------------------
What a strange username..
1140 <=> ETA


Thu Aug 04, 2011 6:41 am
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
I haven't tried that, but that might be worth looking into.

_________________
check my blog - cybereality.com


Thu Aug 04, 2011 10:18 pm
Profile
One Eyed Hopeful
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 23
Reply with quote
It really gives some cool effect. Check out the website some created (read in a different thread here):
My Photos:
http://www.3dporch.com/users/eta76

_________________
---------------------------------
What a strange username..
1140 <=> ETA


Fri Aug 05, 2011 12:28 am
Profile
One Eyed Hopeful

Joined: Thu Feb 02, 2012 2:44 pm
Posts: 1
Reply with quote
Hi cybereality... I ve a question for you:
sometimes you will find inside an MPO, an Individual Image which has not the "MPO" marker inside APP2 section... such as, many MPO has an Flash Pix-Ready in APP2 section, conforming with Exif standard... so how do you handle this event?
Thanks for answer (and sorry for my english)


Sat Feb 04, 2012 10:08 am
Profile
Petrif-Eyed
User avatar

Joined: Sat Apr 07, 2007 4:34 pm
Posts: 2909
Location: Sweden
Reply with quote
I think you can read the actual total length of the first file from information in the header (mpo=jpg in this matter). Since mpo-files supports even more than two separate images you have to read each header in turn until you reach the end of the file. With stereo-.mpo's it's of course only two images.

_________________
Mb: Asus P5W DH Deluxe
Cpu: C2D E6600
Gb: Nvidia 7900GT + 8800GTX
3D:100" passive projector polarized setup + 22" IZ3D
Image


Sat Feb 04, 2012 5:48 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
My program is actually pretty simple, it just assumes there are 2 images and breaks them apart. Also, it only works with the Fujifilm MPOs (from W1 or W3). I know it has problems with the 3DS and probably other devices. Not sure I will bother updating this, since you can do way more with Stereo Photo Maker.

_________________
check my blog - cybereality.com


Mon Feb 06, 2012 8:54 pm
Profile
Petrif-Eyed
User avatar

Joined: Mon Feb 04, 2008 12:35 pm
Posts: 2466
Location: Kiev, ukraine
Reply with quote
Guys, you are aware that stereo photo maker's batch convert feature does all this already right??
http://stereo.jpn.org/eng/stphmkr/
I've already used it to convert large amounts of MPO files

_________________
Oculus Rift / 3d Sucks - 2D FTW!!!


Sun Mar 04, 2012 5:06 am
Profile
Petrif-Eyed
User avatar

Joined: Sat Apr 07, 2007 4:34 pm
Posts: 2909
Location: Sweden
Reply with quote
Yeah. I use spm all the time when adjusting stereophotos. I guess the talk is about for those who want's to put together own software for the fun of it.

_________________
Mb: Asus P5W DH Deluxe
Cpu: C2D E6600
Gb: Nvidia 7900GT + 8800GTX
3D:100" passive projector polarized setup + 22" IZ3D
Image


Sun Mar 04, 2012 7:47 am
Profile
One Eyed Hopeful

Joined: Thu Mar 06, 2014 3:19 am
Posts: 3
Reply with quote
cybereality wrote:
Hey vertuman,

All I am doing is breaking the MPO file into 2 parts. The MPO container is nothing more than multiple JPEGs concatenated together. So I search through the hex of the file and look for the marker for the start of a JPEG image. Everything before that part is considered one image, and everything after that the next image. Technically the MPO container can hold more than 2 images but for the W1/W3 it only uses 2 images for the 3D pictures. You can get the source for that process here:

viewtopic.php?p=32767#p32767" onclick="window.open(this.href);return false;

In MPO2JPS I basically extract the 2 images, same as before, and then I simply combine them into one JPEG. I haven't released the source for that yet, but let me know if you need it and I can post it up. If you are just doing a parser then the original code should be enough to get you started. At that point you will have standard JPEG files so you can manipulate them with any number of libraries.


Thanks for the great work on this! Any chance you can post the source to combine the JPEG's into a JPS? Thanks again!


Thu Mar 06, 2014 4:22 am
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Wow! A blast from the past. Here is the source code.


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

_________________
check my blog - cybereality.com


Fri Mar 07, 2014 1:45 am
Profile
One Eyed Hopeful

Joined: Thu Mar 06, 2014 3:19 am
Posts: 3
Reply with quote
Thanks - really appreciate the quick reply on an old thread!

I've been working on a Nintendo 3DS photo related application, and have been trying to figure out the x-alignment (i.e., the number of pixels to crop) between the stereo left and right images so they can be aligned. I don't seem to be able to find it in the EXIF information, but I know it's available because Stereo Photo Maker displays the value (usually between around -76 to -86 pixels).

Do you have any idea how to locate or determine this from a Nintendo 3DS MPO file?

Many thanks!


Mon Mar 10, 2014 4:20 am
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Sorry, I didn't work with the Nintendo MPO file format too much.

Maybe if you make a copy of the same photo, change the alignment slightly, and then do a diff of the file and see what changed.

_________________
check my blog - cybereality.com


Mon Mar 10, 2014 9:53 pm
Profile
One Eyed Hopeful

Joined: Thu Mar 06, 2014 3:19 am
Posts: 3
Reply with quote
Thanks for the suggestion. I think it's stored in the "3D Parallax" tag here:

http://3dbrew.org/wiki/MPO

I just can't seem to extract it with ExifTool. If I figure out anything more, I'll post it here just in case someone else might happen upon this. Or maybe someone else might be able to shine some light on how to align the stereo images in a 3DS MPO.

Cheers!


Mon Mar 10, 2014 10:01 pm
Profile
Petrif-Eyed
User avatar

Joined: Sat Sep 01, 2012 10:47 pm
Posts: 2708
Reply with quote
I wonder how this will work with the HTC EVO 3D camera/smartphone .MPO files. I will try that soon and post the results back here.

EDIT: Yes, it works fine. Thanks. I may still use Stereo Photo Maker though, because it has automatic vertical alignment options, and it can also resize my 10MP Fuji W3 images down to 1080p more suitable for web publication.

_________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. Image


Sun Jun 08, 2014 7:34 am
Profile
One Eyed Hopeful
User avatar

Joined: Mon Dec 29, 2014 6:51 pm
Posts: 3
Reply with quote
I compiled a version of MPO2JPS for mac. It should work on any intel mac 10.6 or later.


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


Mon Dec 29, 2014 7:16 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Nice one!

_________________
check my blog - cybereality.com


Mon Dec 29, 2014 9:25 pm
Profile
One Eyed Hopeful
User avatar

Joined: Mon Dec 29, 2014 6:51 pm
Posts: 3
Reply with quote
Thank you for your comment. I compiled a version of MPO2JPS for ubuntu linux. I highly recommend that you use anabuilder http://anabuilder.free.fr/welcome.html for cross platform processing of the .jps files. You can download the multi-platform version here http://anabuilder.free.fr/anabuilderJava.zip .


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


Tue Dec 30, 2014 2:39 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 38 posts ] 

Who is online

Users browsing this forum: No registered users and 3 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® Forum Software © phpBB Group
Designed by STSoftware.