Magic Lantern Forum

Using Magic Lantern => Raw Video => Raw Video Postprocessing => Topic started by: christaylor on June 02, 2013, 12:34:31 PM

Title: ML RAW pipeline in Linux
Post by: christaylor on June 02, 2013, 12:34:31 PM
Hello all,

I'm trying to set up a ML RAW pipeline in linux. I work for a small company which works with video, 3D and vfx exclusively in Linux, but I've only been using Linux for a bit more than a year with them, and mostly as an end-user artist, not as an experienced programmer. They're OK with me testing out ML RAW on a 600D, not on one of their 5D III's yet because they're a little scared off by all the warnings. This isn't for commercial projects yet, just to explore some of the potential, they like to play with this sort of thing before it hits a stable release to keep as up to date as possible (and so do I!).

Only issue is I'm hitting a bottleneck: I installed ML and RAW no problem, I have a few pipeline tests laid out after this stage, but I can't seem to get raw2dng working in Linux! (I'm using Mint)... I saw raw2avi in linux but that doesn't really interest me, I really want the DNG's..

If anyone could outline the process I need to follow to convert my RAW to DNG in a linux OS I'll be really grateful...
Title: Re: ML RAW pipeline in Linux
Post by: scrax on June 04, 2013, 08:21:57 AM
raw2dng [raw file to convert]
Title: Re: ML RAW pipeline in Linux
Post by: christaylor on June 04, 2013, 07:53:53 PM
that's sort of my problem, it isn't working :(
Title: Re: ML RAW pipeline in Linux
Post by: scrax on June 05, 2013, 12:23:03 AM
Quote from: christaylor on June 04, 2013, 07:53:53 PM
that's sort of my problem, it isn't working :(

did you get any error?
Title: Re: ML RAW pipeline in Linux
Post by: Murphy on June 05, 2013, 01:12:22 AM
What about using the windows exe version under wine? Not ideal, but it could work.
Title: Re: ML RAW pipeline in Linux
Post by: christaylor on June 05, 2013, 01:33:39 PM
scrax: yes I did, it just  says "command not found"... I compiled using the compile instructions, and didn't get any unexpected errors.

and I used a windows machine to  convert them in the time being, I have the rest of my pipeline sorted out fine, I just can't seem to get the RAW2DNG part working...
Title: Re: ML RAW pipeline in Linux
Post by: deleted.account on June 05, 2013, 02:33:57 PM
Windows exe of raw2dng works fine with Wine.

You don't explain how you're trying to use it but here's a test:

If you put a copy of the raw2dng.exe into the same folder as the RAW files, then open a terminal, change directory, ie: cd to the folder with the RAWs and then type wine ./raw2dng.exe M000001.RAW or whatever your RAW's called then it should work for you.

If not post your error message.
Title: Re: ML RAW pipeline in Linux
Post by: christaylor on June 05, 2013, 05:39:46 PM
yup, works fine in wine... if I can't find a way of making it work without, will just go through wine then..
Title: Re: ML RAW pipeline in Linux
Post by: scrax on June 05, 2013, 10:00:02 PM
I don't know how much you are familiar with terminal, be sure of the positions. use
pwd
or
ls to check that you are in the same dir were you have raw2dng. then first try:
./raw2dng
if it gives you same error, post what you get from "ls"
if it load and puts the usage message then you can just add the file after it and should work
Title: Re: ML RAW pipeline in Linux
Post by: christaylor on June 07, 2013, 03:53:21 PM
I just recompiled- for a third time, and now it works... I don't think I did anything differently this time- it's a little odd..

problem solved, although strangely so!
Title: Re: ML RAW pipeline in Linux
Post by: revast on June 23, 2013, 09:49:10 PM
wtf?
Normally I would get the sources and compile myself, but I failed so far... What do I have to do to get the raw2dng tool sources? I mean, the .c files are not enough. and when I download the whole ml mercurial tree as a zip folder, the makefile says it does not find the .mercurial folder, and when I hg clone the ml, it does not get the whole folder structure??? :o
Title: Re: ML RAW pipeline in Linux
Post by: darethehair on July 11, 2013, 05:08:12 PM
Quote from: christaylor on June 07, 2013, 03:53:21 PM
I just recompiled- for a third time, and now it works... I don't think I did anything differently this time- it's a little odd..

christaylor, can you elaborate on how you successfully compiled 'raw2dng' for Linux, or point to where the compile instructions are located?  I have done some searching and not (yet) found anything...

Thanks!

EDIT: From a more-convoluted-solution-than-I-thought-it-would-be, I think I managed to figure this out (though I am looking for a simpler solution, since my own seems unnecessarily complex):

http://www.magiclantern.fm/forum/index.php?topic=6457.msg58739#msg58739 (http://www.magiclantern.fm/forum/index.php?topic=6457.msg58739#msg58739)