Author Topic: [UNMAINTAINED] mlv2dng - A converter for the Magic Lantern RAW Video format v2.0  (Read 93411 times)

gnarr

  • New to the forum
  • *
  • Posts: 44
Since I don't want to hijack g3gg0's thread, I decided it was time to move this to a seperate topic.

Here is my mlv2dng converter. It is still work in progress, so there are features missing and it might be unstable.

What doesn't work / todo:
converting non 14 bit mlv to dng.
converting LZMA compressed files to dng.
converting dual iso mlv to dng.
more detailed error logging.
extracting audio.
exact frame time.

Usage is the same as with raw2dng for the moment:
mlv2dng.exe file.mlv [prefix]
=> will create prefix000000.dng, prefix000001.dng and so on.

Windows version:
https://dl.dropboxusercontent.com/u/3181048/mlv2dng.zip

Mac version:
https://dl.dropboxusercontent.com/u/3181048/mlv2dng_osx.zip

Linux version:
https://dl.dropboxusercontent.com/u/3181048/mlv2dng_linux.zip

Please report any errors here.


Source:
https://www.bitbucket.org/gnarr/mlv2dng

guentergunter

  • Member
  • ***
  • Posts: 144
  • 5D2
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #1 on: August 20, 2013, 10:31:05 PM »
Great! And many thanks!

Can't wait to switch completely to the new format.
5D2 ML RAW + VAF-5D2b: http://vimeo.com/69350650

Danne

  • Hero Member
  • *****
  • Posts: 3105
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #2 on: August 20, 2013, 10:42:04 PM »
Nicely done. Works with older files as well. Saw your post in the other thread. Would be nice to have each rawfileconversion collected to separate folders rather than straight out next to the converter. You probably on it already. Good progress Gnarr

Canon eos m

  • Hero Member
  • *****
  • Posts: 562
  • 5D Mark III, Canon EOS M
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #3 on: August 21, 2013, 01:59:42 AM »
Nice work. Will try out tonight.
Canon 5D Mark III, Gopro Hero Blacks with 3D Casing, A Few Lenses, Adobe CC 2014, MacBook Pro, Windows 8 PC, Lots of Video Rig!

Started Nuke. Loved it but then the 15 day trial ran out. Back to After Effects and loving it :-)

RenatoPhoto

  • Moderators
  • Hero Member
  • *****
  • Posts: 1509
  • 5DM3 / 7D
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #4 on: August 22, 2013, 11:04:57 PM »
Great contribution gnarr! 

Used it today without problems on:
1920x1080 at 29.97 fps
cropped video 1920x1080  29.97 fps
1600x560 at 60 fps
http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

gnarr

  • New to the forum
  • *
  • Posts: 44
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #5 on: August 24, 2013, 02:51:58 AM »
osx is here.

AnotherDave

  • Senior
  • ****
  • Posts: 348
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #6 on: August 24, 2013, 05:00:42 AM »
Yay!  Can't wait!

Danne

  • Hero Member
  • *****
  • Posts: 3105
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #7 on: August 24, 2013, 07:38:23 AM »
Awesome :)

gnarr

  • New to the forum
  • *
  • Posts: 44
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #8 on: August 24, 2013, 10:14:01 PM »
So, how is mlv2dng working for everyone so far?
No bugs or crashes with current version? Is there something missing from the program that you need?

Danne

  • Hero Member
  • *****
  • Posts: 3105
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #9 on: August 25, 2013, 01:24:09 AM »
How do I use the macversion? Drag and drop would be sweet :)

Toffifee

  • Member
  • ***
  • Posts: 104
  • 5D Mark III Happy tester
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #10 on: August 26, 2013, 02:40:44 PM »
Awesome!
Can't wait to try it out when I get home  :)

crwn_schlr

  • New to the forum
  • *
  • Posts: 14
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #11 on: August 26, 2013, 10:31:25 PM »
Anyone ever received this error message?

XXXX-iMac:~ username$ /Applications/mlv2dng /Users/username/Desktop/M26-0003.MLV
Illegal instruction: 4


gnarr

  • New to the forum
  • *
  • Posts: 44
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #12 on: August 27, 2013, 01:27:14 AM »
Anyone ever received this error message?

XXXX-iMac:~ username$ /Applications/mlv2dng /Users/username/Desktop/M26-0003.MLV
Illegal instruction: 4

I will look into it. Can you try converting to legacy raw with mlv_dump and see if that works?

crwn_schlr

  • New to the forum
  • *
  • Posts: 14
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #13 on: August 27, 2013, 02:29:43 AM »
I will look into it. Can you try converting to legacy raw with mlv_dump and see if that works?

I'm on a mac, i tried mlv_dump through a VM but didn't have any success there either.

I think it's because I'm using OSX 10.7.5.

'Illegal instruction: 4' seems to be a terminal error where whatever tool your attempting to use isn't understood by the terminal, or something like that.

I could partition my drive and run osx 10.8 from it (with out having to pay) but I only wanna do that if it's a last resort.

Thanks for looking into it.

dubzeebass

  • Senior
  • ****
  • Posts: 360
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #14 on: August 27, 2013, 04:53:18 AM »
I just renamed a segmented (SD-card) file from .M00 to .MLV and when I try to render with both MLV2DNG I get Segmentation Fault: 11.

Ignore that - I just saw that it rendered .MLV and .M00 at the same time.

GREAT WORK!

Sky_cleaner

  • New to the forum
  • *
  • Posts: 9
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #15 on: August 27, 2013, 03:23:38 PM »
What  about mlv2dng WITH conversion to Apple Prores? It is possible?

jsoucy

  • New to the forum
  • *
  • Posts: 8
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #16 on: August 27, 2013, 06:15:19 PM »
i got this error too on a mac: "Illegal instruction: 4". and can we get a drag n drop application it will be simple :)

Toffifee

  • Member
  • ***
  • Posts: 104
  • 5D Mark III Happy tester
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #17 on: August 27, 2013, 08:45:59 PM »
@Sky

Do you mean like a proxy?
Why would you want to make a ProRes proxy?

And if you're thinking of it as a main conversion, doesn't that kind of defeat the purpose of shooting RAW as you cannot access any of the data without programs such as ACR or Resolve?

Sky_cleaner

  • New to the forum
  • *
  • Posts: 9
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #18 on: August 28, 2013, 02:44:24 AM »
@Toffifee
I mean like a "raw2dng.app for Mac" - it make a .mov file in ProRes 444.  For my purpose it`s very good

fpena06

  • New to the forum
  • *
  • Posts: 42
  • 7D
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #19 on: August 28, 2013, 04:54:39 AM »
Worked fine before. Not sure what happened but now I get this error on both windows and osx :S

./mlv2dng M27-2212.MLV test
...std::exception


fpena06

  • New to the forum
  • *
  • Posts: 42
  • 7D
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #20 on: August 28, 2013, 03:40:56 PM »
Here's a file if anyone wants to see if its a file issue.

https://dl.dropboxusercontent.com/u/28674787/M27-2212.MLV

Thanks.

arrinkiiii

  • Hero Member
  • *****
  • Posts: 1096
  • ML ADDICTED 7D
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #21 on: August 28, 2013, 03:56:39 PM »
So, how is mlv2dng working for everyone so far?
No bugs or crashes with current version?

For me everything works good in windows7 64bits / 7D

Is there something missing from the program that you need?

Out put folder, absolutely sure of that, translated in GUI  :D

gnarr

  • New to the forum
  • *
  • Posts: 44
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #22 on: August 29, 2013, 01:34:26 AM »
A new version is up for all platforms.

What is fixed:
Exact frame times (exact to a microsecond).
Exception handling improved.
all meta-data is now read and sorted before any dng's are written.

links are in first post.


Worked fine before. Not sure what happened but now I get this error on both windows and osx :S

./mlv2dng M27-2212.MLV test
...std::exception

Thanks for providing the file :) It made debugging very easy.
What was happening is that your camera has electric leveling and it seems that g3gg0 has already implemented it into MLV. I have yet to include this in mlv2dng, and because I was handling missing headers in a stupid way, the program exited without printing the right error message.
Now the error handling has been fixed so that it should notify of missing headers and what the header ID is, without stopping conversion.

How do I use the macversion? Drag and drop would be sweet :)
The "drag'n'drop" feature in windows is just windows being clever and automatically opening a terminal with correct parameters to run. On OsX you will have to use the terminal for now (or some Mac nerd can maybe help you.. I don't know anything about OsX).
on the terminal write:
./mlv2dng inputfile.mlv


I'm on a mac, i tried mlv_dump through a VM but didn't have any success there either.

I think it's because I'm using OSX 10.7.5.

'Illegal instruction: 4' seems to be a terminal error where whatever tool your attempting to use isn't understood by the terminal, or something like that.

I could partition my drive and run osx 10.8 from it (with out having to pay) but I only wanna do that if it's a last resort.

Thanks for looking into it.
This sounds like a corrupted file since mlv_dump does not work either. Could you by any chance upload the file for me, so I can debug this?

What  about mlv2dng WITH conversion to Apple Prores? It is possible?
Everything is possible :) For now, it will be dng only.

i got this error too on a mac: "Illegal instruction: 4". and can we get a drag n drop application it will be simple :)
Have you tried converting to legacy raw with mlv_dump?

fpena06

  • New to the forum
  • *
  • Posts: 42
  • 7D
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #23 on: August 29, 2013, 03:45:12 PM »
A new version is up for all platforms.

What is fixed:
Exact frame times (exact to a microsecond).
Exception handling improved.
all meta-data is now read and sorted before any dng's are written.

links are in first post.


Thanks for providing the file :) It made debugging very easy.
What was happening is that your camera has electric leveling and it seems that g3gg0 has already implemented it into MLV. I have yet to include this in mlv2dng, and because I was handling missing headers in a stupid way, the program exited without printing the right error message.
Now the error handling has been fixed so that it should notify of missing headers and what the header ID is, without stopping conversion.

Thank you very much. Program is working like a charm after disabling electronic leveling :)

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3016
Re: mlv2dng - A converter for the Magic Lantern (RAW) Video format v2.0
« Reply #24 on: August 29, 2013, 08:18:54 PM »
What was happening is that your camera has electric leveling and it seems that g3gg0 has already implemented it into MLV. I have yet to include this in mlv2dng, and because I was handling missing headers in a stupid way, the program exited without printing the right error message.
Now the error handling has been fixed so that it should notify of missing headers and what the header ID is, without stopping conversion.

hehe thats why i recommend just skipping unknown headers. (and printing a warning message at maximum)
there may come more stuff in future, like keypresses for tags or anything we dont know yet.
in this case the processing software should work just as it is designed for - with the known tags.

but thanks for providing this tool.
can you make the source code public? i.e. on bitbucket and we can merge it into ML source base with you as maintainer.