raw2mlv processing

Started by Danne, November 10, 2019, 03:45:44 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cmh

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

Quote from: Ilia3101 on November 12, 2019, 03:30:42 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

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.

cmh

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

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

Walter Schulz

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.


ilia3101

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

Walter Schulz

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 ...

cmh

Quote from: Ilia3101 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/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

Quote from: Walter Schulz 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 ...

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.

Walter Schulz

Quote from: Ilia3101 on November 12, 2019, 05:29:56 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

Quote from: Ilia3101 on November 12, 2019, 05:29:56 PM
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/

garry23

@Danne

Ouch!

QuoteSidenote: 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

Quote from: garry23 on November 12, 2019, 06:39:02 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

Don't do video; 'just' stills   8) :)

Kharak

Quote from: cmh 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

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

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

Download first link with win64 version in this topic, you have all dlls there, newest links dont have them

cmh

Quote from: IDA_ML on November 13, 2019, 08:12:15 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.

Quote from: IDA_ML on November 13, 2019, 08:12:15 AM
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

Quote from: 2blackbar 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
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

wow works great on my Win10X64
5D Mark III - 70D

IDA_ML

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

@cmh please include any DLLs needed! if it helps

cmh

Quote from: IDA_ML 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.

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


IDA_ML

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

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

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?