Author Topic: raw2mlv processing  (Read 2831 times)

cmh

  • Contributor
  • Freshman
  • *****
  • Posts: 64
Re: raw2mlv processing
« Reply #25 on: November 12, 2019, 03:40:13 PM »
Nevermind, 500 files gives the same error (433 is the maximum on my system) if you drag and drop on raw2mlv.exe but it processes the 500 files with a command.
I'll update my previous post to mention that limitation.

@Kharak here's what you can do:
- Copy raw2mlv.exe and all the dll's in the folder countaining your DNGs.
- Open a powershell windows and navigate to your folder (or shift + right clic and open the powershell windows from the folder)
- Type .\raw2mlv.exe *.dng -o output.mlv

cmh

  • Contributor
  • Freshman
  • *****
  • Posts: 64
Re: raw2mlv processing
« Reply #26 on: November 12, 2019, 03:56:01 PM »
Can you test if this runs on your PC: https://drive.google.com/open?id=1SzEU5xDILbE6xMxWMTBUQ3b-TWkWDjA4

I have tried to compile with microsoft msvc and it works for me. Only one DLL needed for this: libraw :P

It's working perfectly fine. Great job.
I'm putting that link in my previous post if you don't mind and will update it as soon as you give another one.
Edit: Oh wait, there's a problem with asterisks.
.\raw2mlv.exe *.CR2 worked previously but gives this error now:
Opening file *.CR2
failed to open file
Can't read file *.CR2

Ilia3101

  • Contributor
  • Hero Member
  • *****
  • Posts: 698
Re: raw2mlv processing
« Reply #27 on: November 12, 2019, 04:22:34 PM »
Ah asterisks, must be to do with mingw, it probably parses the asterisk, turning it in to loads of files before calling main. Windows probably does not support wildcards as much as Unix terminals.

I will try to find a solution.

Also did you call it from powershell? I wonder if normal cmd would work any different.
5D2, MLV App

cmh

  • Contributor
  • Freshman
  • *****
  • Posts: 64
Re: raw2mlv processing
« Reply #28 on: November 12, 2019, 04:30:40 PM »
cmd has the same problem unfortunately:
C:\Users\Windows\Desktop\raw2mlv>raw2mlv.exe *.CR2
Opening file *.CR2
failed to open file
Can't read file *.CR2

Just to be clear *.CR2 isn't a file name, it's a wildcard and it was working in powershell prior to that build. I phrased it poorly, sorry. It works in this one which is compiled with mingw:
https://github.com/cmhamiche/raw2mlv/raw/master/raw2mlv_Win64.zip

I reinstated the previous link in my first post until it's fixed.

Ilia3101

  • Contributor
  • Hero Member
  • *****
  • Posts: 698
Re: raw2mlv processing
« Reply #29 on: November 12, 2019, 04:52:42 PM »
I will have to find a way to support wildcards manually. Windows is not making things easy ☹️

Edit: wildcard support is easy, just needed to add a flag to microsoft linker. New build: https://drive.google.com/file/d/1o6CLtWfm_v9WrxUsorCnkwX8Y21sS45p/view?usp=sharing
5D2, MLV App

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 6900
Re: raw2mlv processing
« Reply #30 on: November 12, 2019, 05:10:34 PM »
IANAP:
https://www.magiclantern.fm/forum/index.php?topic=7139.msg180824#msg180824
According to dcraw's Windows porter it just needed to be compiled with Visual Studio for wildcard support.

Photogs and videographers: Assist in proof reading upcoming in-camera help!. Your input is wanted and needed!

Ilia3101

  • Contributor
  • Hero Member
  • *****
  • Posts: 698
Re: raw2mlv processing
« Reply #31 on: November 12, 2019, 05:12:42 PM »
Thanks. But I just fixed it. Only needed to add "/link setargv.obj" to the link command, no visual studio required.

Source: https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments?view=vs-2019
5D2, MLV App

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 6900
Re: raw2mlv processing
« Reply #32 on: November 12, 2019, 05:17:24 PM »
Great!

Offtopic: Can you give cr2hdr binaries the same medicine? Just asking ...
And dcraw's Windows porter never made it to 9.28 and seems to be offline ...
Photogs and videographers: Assist in proof reading upcoming in-camera help!. Your input is wanted and needed!

cmh

  • Contributor
  • Freshman
  • *****
  • Posts: 64
Re: raw2mlv processing
« Reply #33 on: November 12, 2019, 05:21:00 PM »
I will have to find a way to support wildcards manually. Windows is not making things easy ☹️

Edit: wildcard support is easy, just needed to add a flag to microsoft linker. New build: https://drive.google.com/open?id=1o6CLtWfm_v9WrxUsorCnkwX8Y21sS45p
That link asks for an authorization. I've sent a request.
nvm https://drive.google.com/file/d/1o6CLtWfm_v9WrxUsorCnkwX8Y21sS45p/view works

Edit: yeah wildcards are working now, I'll upload this on my github and update my first post.

Ilia3101

  • Contributor
  • Hero Member
  • *****
  • Posts: 698
Re: raw2mlv processing
« Reply #34 on: November 12, 2019, 05:29:56 PM »
Great!

Offtopic: Can you give cr2hdr binaries the same medicine? Just asking ...
And dcraw's Windows porter never made it to 9.28 and seems to be offline ...

I will try. Where do I find cr2hdr again? Also where was the dcraw Windows porter, was it on this forum?

@cmh Sorry, try the link now.
5D2, MLV App

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 6900
Re: raw2mlv processing
« Reply #35 on: November 12, 2019, 06:16:33 PM »
I will try. Where do I find cr2hdr again?

Not sure ...
https://builds.magiclantern.fm/jenkins/view/Utilities/job/cr2hdr-20bit/
https://bitbucket.org/hudson/magic-lantern/src/tip/modules/dual_iso/cr2hdr.c

Also where was the dcraw Windows porter, was it on this forum?

I found his name and link as first item in Dave Coffin's dcraw page FAQ section:
Quote
Frequently Asked Questions

I don't have a C compiler. Could you send me an executable?
    Sergio Namias has built some current Windows EXE files here. Dcraw has also been ported to Amiga, MorphOS, BeOS, OS/2, and RISC OS.
Link is dead. This is latest Wayback Maschine backup:
https://web.archive.org/web/20190425220511/http://www.centrostudiprogressofotografico.it/en/dcraw/
Photogs and videographers: Assist in proof reading upcoming in-camera help!. Your input is wanted and needed!

garry23

  • Contributor
  • Hero Member
  • *****
  • Posts: 1853
Re: raw2mlv processing
« Reply #36 on: November 12, 2019, 06:39:02 PM »
@Danne

Ouch!

Quote
Sidenote: funny thing I asked for explaining vids of your lua script once but not really happening right ;)?

...and there I have been writing ‘loads of stuff’ on my blog and getting zero feedback  ;)

  :)

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6003
Re: raw2mlv processing
« Reply #37 on: November 12, 2019, 06:42:08 PM »
@Danne

Ouch!

...and there I have been writing ‘loads of stuff’ on my blog and getting zero feedback  ;)

  :)
Sure, but where´s the friggin´mooovie man  :-*

garry23

  • Contributor
  • Hero Member
  • *****
  • Posts: 1853
Re: raw2mlv processing
« Reply #38 on: November 12, 2019, 07:10:11 PM »
Don’t do video; ‘just’ stills   8) :)

Kharak

  • Hero Member
  • *****
  • Posts: 914
Re: raw2mlv processing
« Reply #39 on: November 13, 2019, 02:41:26 AM »
Nevermind, 500 files gives the same error (433 is the maximum on my system) if you drag and drop on raw2mlv.exe but it processes the 500 files with a command.
I'll update my previous post to mention that limitation.

@Kharak here's what you can do:
- Copy raw2mlv.exe and all the dll's in the folder countaining your DNGs.
- Open a powershell windows and navigate to your folder (or shift + right clic and open the powershell windows from the folder)
- Type .\raw2mlv.exe *.dng -o output.mlv

I was narrowing down the exact number before it cracked, guess you found a better way.

Thanks for the fix. Would i go about the same way to create a Windows shortcut command, as a right click menu option?
once you go raw you never go back

IDA_ML

  • Hero Member
  • *****
  • Posts: 657
Re: raw2mlv processing
« Reply #40 on: November 13, 2019, 08:12:15 AM »
CMH,  Ilia1301,

Glad to see you made the miracle happen. Congratulations!

Unfortunately, it does not work for me on my Win7x64 laptop here.  When I drag and drop the CR2 files onto the raw2mlv.exe file, as shown in CMH's demo video, the program stops working with the message:

"The program can't start because VCRUNTIME140_1.dll is missing from your computer.  Try reinstalling the program to fix this problem."


I get the same message when I just klick on raw2mlv.exe to start it.

Can you help me, please?  Thanks.

2blackbar

  • Senior
  • ****
  • Posts: 263
Re: raw2mlv processing
« Reply #41 on: November 13, 2019, 08:53:04 AM »
Download first link with win64 version in this topic, you have all dlls there, newest links dont have them

cmh

  • Contributor
  • Freshman
  • *****
  • Posts: 64
Re: raw2mlv processing
« Reply #42 on: November 13, 2019, 09:09:20 AM »
CMH,  Ilia1301,
Glad to see you made the miracle happen. Congratulations!

Thanks for the kind words but all the credit goes to Ilia1301, I just created a post.

Unfortunately, it does not work for me on my Win7x64 laptop here.  When I drag and drop the CR2 files onto the raw2mlv.exe file, as shown in CMH's demo video, the program stops working with the message:

"The program can't start because VCRUNTIME140_1.dll is missing from your computer.  Try reinstalling the program to fix this problem."


Can you install the Microsoft Visual C++ Redistributable and report if this works ?
If it does work, I'll put a disclaimer and a link in my first post otherwise I'll have to include this dll in the archive and I don't know if Ilia1301 is ok with that.
Quick download: https://aka.ms/vs/16/release/vc_redist.x64.exe

Full link: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
Visual Studio 2015, 2017 and 2019
x64: vc_redist.x64.exe

Download first link with win64 version in this topic, you have all dlls there, newest links dont have them
I removed this link, the executable was compiled with mingw which required those particular libraries but not the visual studio redistributable.
The newest is compiled with visual studio but requires less dlls.

andy kh

  • Hero Member
  • *****
  • Posts: 523
Re: raw2mlv processing
« Reply #43 on: November 13, 2019, 09:15:16 AM »
wow works great on my Win10X64
5D Mark III - 70D

IDA_ML

  • Hero Member
  • *****
  • Posts: 657
Re: raw2mlv processing
« Reply #44 on: November 13, 2019, 10:27:34 AM »
CMH,

I installed vc_redist.x64.exe as suggested but no luck.  RAW2MLV.exe crashes upon an attempt to start.  It generates an output file with 0 bytes of size.

I also tried it on a Win10x64 machine.  It does not work either.

Ilia3101

  • Contributor
  • Hero Member
  • *****
  • Posts: 698
Re: raw2mlv processing
« Reply #45 on: November 13, 2019, 11:04:30 AM »
@cmh please include any DLLs needed! if it helps
5D2, MLV App

cmh

  • Contributor
  • Freshman
  • *****
  • Posts: 64
Re: raw2mlv processing
« Reply #46 on: November 13, 2019, 11:25:38 AM »
CMH,

I installed vc_redist.x64.exe as suggested but no luck.  RAW2MLV.exe crashes upon an attempt to start.  It generates an output file with 0 bytes of size.

I also tried it on a Win10x64 machine.  It does not work either.

Right, I've included vcruntime140_1.dll
Would you please try this one?
https://github.com/cmhamiche/raw2mlv/raw/master/raw2mlv.zip


IDA_ML

  • Hero Member
  • *****
  • Posts: 657
Re: raw2mlv processing
« Reply #47 on: November 13, 2019, 01:12:50 PM »
CMH,

Still no luck!  It crashes in exactly the same way as described above.  It does not even spit out a message indicating which DLL is missing.

cmh

  • Contributor
  • Freshman
  • *****
  • Posts: 64
Re: raw2mlv processing
« Reply #48 on: November 13, 2019, 01:27:39 PM »
Just to be sure we're on the same page, could you follow those two procedures and report back ?

1. Drop the CR2/DNG files on raw2mlv.exe.
You'll find an output.mlv in the folder where your CR2/DNG are located (this method might be limited to a maximum of 433 files).

2. Copy the CR2/DNG in a directory containing raw2mlv.exe (and the dlls).
Open a cmd/powershell window, navigate to you folder (or open one from the current folder using shift + right clic) and use the command line.

Example, this command will open IMG_1687.CR2 create an mlv file named test.mlv:
raw2mlv.exe "C:\Users\SomeDude\Desktop\IMG_1687.CR2" -o "C:\Users\SomeDude\Desktop\test.mlv"


IDA_ML

  • Hero Member
  • *****
  • Posts: 657
Re: raw2mlv processing
« Reply #49 on: November 13, 2019, 05:22:59 PM »
CMH,

Thank you so much for your patience with me.  I am at work right now and tested the software package from your post #46 on my work computer (Q6600 CPU with 8 GB of RAM and Nvidia GTX 750 GPU).  And it works like a charm according to your procedure #1 above.  RAW2mlv.exe does not seem to like my home laptop (Dell Precision M6600 with i7 CPU, 32 GB of RAM and 3000M GPU).  Is there anything I could change in the BIOS maybe to get it to work?