Magic Lantern Forum

Using Magic Lantern => Raw Video => Raw Video Postprocessing => Topic started by: piloui on February 17, 2014, 12:25:15 AM

Title: [WINDOWS] simple right clic menu mlv dump batch
Post by: piloui on February 17, 2014, 12:25:15 AM
Hi there,

I'm trying to create a simple batch, for selecting, right clic and "DNGing" mlv files


@echo off
for %%a in (*.MLV) do ( md "%%~na" 2>nul )&( path_to_mlv_dump\mlv_dump.exe -o %%~na\%%~na_ --dng %%~na.MLV )


It simply creates a directory for each MLV file and then exctracts dngs in it with appropriate names. My .bat file is placed in "C:\Users\NAME\AppData\Roaming\Microsoft\Windows\SendTo"

Then i can right clic my mlvs, in the contextual menu choose sent to > 01_mvl_dum.bat  ( 01 prefix is for placing it at the top of the list )

Works pretty well but :

1: extracts all the mlv present in the folder, i'd like to make it only for selected ones

2: i'd like to add a progress info, like we had with raw2dng, some kind of ( "NAME OF THE MLV" extraction running : current frame / total frames )

Don't know if it's hard to do despite my web research. Any ideas please ?

Thanks ;)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: piloui on February 18, 2014, 01:51:32 PM
I tried again but i realized the progress % probably cannot be achieved in .bat because it's not my .bat progress but mlv_dump.exe progress.
Concerning the option to extract only the slected .MLV, still no success :/

So why am i trying to do a bacth mlv to dng while we can find tons of others exemples here do you ask ?
Just because none of them seems to offer a subfolder creation, which helps a lot, belive me, for mlv + sound.

Why ?

As you may have noticed, .wav extracted from mlv are a bit longer tha dng sequence. Thanks to davinci resolve lite, the option auto sync with time code allows you to cut and attach the sound properly with the corresponding dngs. But you MUST have each corresponding dngs+wav in a different bin.

So extracting your dng+wav in subfolders allows you inside resolve to right clic and "import with subfolders and create bins", and then right clic and "auto sync " on each sub bins. Anyway, i'll make a video to explain this clearer.

EDIT : for selected files only :

@echo off
for %%a in ( %* ) do ( md "%%~na" 2>nul )&( path_to_mlv_dump\mlv_dump.exe -o %%~na\%%~na_ --dng %%~na.MLV )
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: piloui on February 24, 2014, 04:23:19 PM
Updated with progress bar

(http://cinemersion.fr/images/divers/mlv_dump.jpg)

I cannot test mlv_dump.exe progress, so i simply calculate the total frames number divided by the current frames number in subfolder during extraction.

01_mlv_dump.cmd + mlv_dump_progress.cmd

01_mlv_dump.cmd :


@echo off
TITLE MLV dump 1.0
setlocal
setlocal enabledelayedexpansion

for %%a in ( %* ) do (
:subfolders creation
md "%%~na" 2>nul
:index creation
path_to_mlv_dump\mlv_dump.exe -x %%~na.MLV
set filename=%%~na
:total frames number extraction
for /f "tokens=2 delims=;= " %%P in ('path_to_mlv_dump\mlv_dump.exe -x %%~na.MLV ^| find "Processed"') do (
set tframe=%%P
)
:progress bar launch
START path_to_mlv_dump_progress\mlv_dump_progress.cmd
:dng extraction
path_to_mlv_dump\mlv_dump.exe -o !filename!\!filename!_ --dng !filename!.MLV
)
endlocal enabledelayedexpansion
endlocal
exit




mlv_dump_progress.cmd :


@echo off
:window size
mode con: cols=40 lines=6
setlocal enabledelayedexpansion
TITLE Extracting !filename!.MLV
:LOOP
set count=0
for %%B in ( !filename!\*.dng ) do (
:extracted frames counter
set /a count=count+1
)
set /a bar=!count!*20/!tframe!
set /a space=20-!bar!
FOR /L %%C IN (1,1,!bar!) DO (
   set bar=!bar!²
)
FOR /L %%C IN (1,1,!space!!) DO (
   set space=!space!
)
cls
echo.
set /a progress=!count!*100/!tframe!
:progress / total
echo  !count!/!tframe! frames
:progress bar + %
echo           ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo  Progress  ²!bar:~2! !space:~2!  !progress!%%
echo           ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
IF "!count!"=="!tframe!" goto END
goto LOOP
:END
endlocal enabledelayedexpansion
exit


Same process :

Place 01_mlv_dump.cmd in "C:\Users\NAME\AppData\Roaming\Microsoft\Windows\SendTo"
Place mlv_dump_progress.cmd where you want and update the directoy in 01_mlv_dump.cmd

Select all the .mlv you want to extract, right clic, sent to , 01_mlv_dump.cmd. ( it behaves like a "drag and drop" ). Each SELECTED mlv will be extracted one after another in queue rather than all together in a LONG process. DNG are extracted in a subfolder named after the original file.

Next steps :
Existing file check > skip, resume or overwrite
Log file creation

I get what i wanted, some kind of .rar extraction process, simple and efficient.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: piloui on November 09, 2015, 04:06:46 PM
Hi there,

Little up.
Is mlv_dump.exe still a viable solution to extract DNGs please ?
I cant see anything wrong for now but i'd like to have somme feed back.

Thanks.

;)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: g3gg0 on January 14, 2017, 07:47:08 PM
with "--batch" you can get some progress messages

B: blocks
V: video frames
A: audio frames
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on January 15, 2017, 11:22:56 PM
If you use Windows, this is a useful and efficient command to run mlv_dump.  Thanks piloui

From above I use the code:

@echo off
for %%a in ( %* ) do ( md "%%~na" 2>nul )&( path_to_mlv_dump\mlv_dump.exe -o %%~na\%%~na_ --dng %%~na.MLV )


To turn it into command just copy to notepad and save it as cmd. 

Now place it in windows "C:\Users\NAME\AppData\Roaming\Microsoft\Windows\SendTo"

Use it as explained above:

"Select any of the .mlv you want to extract, right clic, sent to , 01_mlv_dump.cmd. ( it behaves like a "drag and drop" ). Each SELECTED mlv will be extracted one after another in queue rather than all together in a LONG process. DNG are extracted in a subfolder named after the original file."

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: ShootMeAlready on January 21, 2017, 08:37:26 AM
Just to to last comment for Windows newbies

path_to_mlv_dump must be replaced with an actual file directory that contains the mlv_dump.exe

Easiest way to do that, is find the folder in file manager, go to top bar box, select the last sub-directory,  right-click on 'copy address'

Example:
"C:\Users\Bubba\Videos\Videos\Projects\Magic Lantern\RAW Converter"

If you have spaces in your directories you'll want to put in double quotes like above.

If you know how to find your system variables, then you probably aren't a newbie, so I wont talk about that.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: garry23 on January 21, 2017, 10:00:11 AM
Hope someone can tell where I'm going wrong, as I haven't played with .cmd files before.

All I wish to do is convert .mlvs to dngs.

I created a .cmd: here it is:

@echo off
for %%a in ( %* ) do ( md "%%~na" 2>nul )&( "C:\Users\Garry\Documents\MLV_Processing\mlv_dump.exe" -o %%~na\%%~na_ --dng %%~na.MLV )


I have a folder in my Docs area (Win 10) called MLV_processing.

I place a test .mlv file there.

I drag that .mlv to the .cmd file above.

The cmd window opens and starts to run.

It stops with an error can't find xxxx.M00 (where xxxx is my .mlv file name).

I get an Win error that .exe has stopped.

As I say, I hope someone can help the really stupid person  :D
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: ShootMeAlready on January 22, 2017, 10:38:00 PM
gary you put double quotes around the EXE file.

double quotes are only for the directory & sub-directories.

mlv_dump.exe cant be in thedouble quote. Look at the example

Example:
"C:\Users\Bubba\Videos\Videos\Projects\Magic Lantern\RAW Converter\"mlv_dump.exe
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: garry23 on January 22, 2017, 11:41:05 PM
@shootmealready

Many thanks. I'll give that a go.

Cheers

Garry
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on January 23, 2017, 03:33:54 PM
@garry: here is my batch command which I put on the "SendTo" directory for quick conversion to dng:
https://drive.google.com/file/d/0B9z8Y0rg-pu8b2FKOEdqb0lGSms/view?usp=sharing

You will need to edit with the correct directory to your mlv_dump directory.  To do so just open it with Notes, change it and then save it.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: garry23 on January 23, 2017, 07:42:49 PM
@RenatoPhoto

Many thanks.

Cheers

Garry
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on January 23, 2017, 08:44:47 PM
Is it only me or does it not work when mlvdump is in C:\Program Files ? After i moved it to C: it worked fine.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: NoCp_Albert on January 24, 2017, 12:56:03 PM
@RenatoPhoto

I still work with MLV-Mystic but would try the MLV-Dumper for Windows now. I use your batch command and try the MLV-Dumper exe. in different folders, C:, E:, the Dumper started and makes all new Subfolders but without DNG.

My command line
- @echo off
for %%a in (*.MLV) do ( md "%%~na" 2>nul )&( "C:\MLV-Dump\"mlv_dump.exe -o %%~na\%%~na_ --dng %%~na.MLV )

I get the attached message out for all Files -  +  MLV Dumper v1.0
-----------------

Mode of operation:
   - Input MLV file: 'M20-0924.MLV'
   - Enforcing 14bpp for DNG output
   - Convert to DNG frames
   - Output into 'M20-0924\M20-0924_'
File M20-0924.MLV opened
File M20-0924.M00 not existing.
File M20-0924.IDX opened (XREF)
XREF table contains 381 entries
Processing...

After I close the Windows Message Dumper continius for all Files with

MLV Dumper v1.0
-----------------

Mode of operation:
   - Input MLV file: 'M20-0958.MLV'
   - Enforcing 14bpp for DNG output
   - Convert to DNG frames
   - Output into 'M20-0958\M20-0958_'
File M20-0958.MLV opened
File M20-0958.M00 not existing.
File M20-0958.IDX opened (XREF)
XREF table contains 772 entries
Processing...
Reached EOF of chunk 248/1 after 2 blocks total. This should never happen or your index file is wrong.
Processed 0 video frames
Done


Help will be gratefully accepted 

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Walter Schulz on January 24, 2017, 01:30:30 PM
Please clarify:
Do you run the command via "Send to ..." in context menu or are you dropping an MLV file onto the cmd?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on January 24, 2017, 01:35:35 PM
@NoCp_Albert

I noticed that in your comand you have "C:\MLV-Dump\"mlv_dump.exe
Why do you use " "
If you have the mlv_dump.exe in the C:\MLV-Dump\ directory then the command line should be:

@echo off
for %%a in (*.MLV) do ( md "%%~na" 2>nul )&(C:\MLV-Dump\mlv_dump.exe -o %%~na\%%~na_ --dng %%~na.MLV )

Also you must leave the command prompt open until it finishes the process.. it should close by itself.

You can use this batch.cmd in two ways.  One is to directly drop the mlv to it or to put in in the "windows send to directory" as explained above.

Hope that helps
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: NoCp_Albert on January 24, 2017, 01:41:40 PM
 @Walter

I use "Send To" in context Menu.  I made a screnshot as png but don´t find the way to insert so I made copy from the message i get.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: NoCp_Albert on January 24, 2017, 01:50:45 PM
@RenatoPhoto

I just change my existing Command Line in Notepad against your new Command Line and if I start the prozess with "Sent to" batch-mlv.cmd  i get the same Message as with the old and Windows stop the App

If I take the MLV File direct to MLV_dump.exe is exactly the same stop
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on January 24, 2017, 02:47:59 PM
... do not close the message window, let the process finish.
It may take a couple of minutes depending on the size of the file and the speed of the computer.
The command window closes by itself. 
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: NoCp_Albert on January 24, 2017, 03:37:25 PM
@RenatoPhoto

I try and wait  more than 10 minutes, nothing is happens. The Message ar in German -

[Main Instruction]
mlv_dump.exe funktioniert nicht mehr

[Content]
Das Programm wird aufgrund eines Problems nicht richtig ausgeführt. Das Programm wird geschlossen und Sie werden benachrichtigt, wenn eine Lösung verfügbar ist.

[Programm schließen]

Edit: Today I try again and with this command Line mlv-dump runs:

C:\Users\alber\AppData\Roaming\Microsoft\Windows\SendTo\batch-mlv,cmd

@echo off
for %%a in (*.MLV) do ( md "%%~na" 2>nul )&("G:\4.0 Magic Lantern Bearbeitung\4.9 MLV-Dump\"mlv_dump.exe -o %%~na\%%~na_ --dng %%~na.MLV )

My System is Windows 10 PRO 64-Bit

Thank you @Renatophoto for your support.


Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on January 31, 2017, 12:45:16 PM
Well it looks like in Windows 10 you need to use the quotation marks "" around the path portion of the command line.
I use it win Windows 7 ultimate and do not use  quotation marks.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Walter Schulz on January 31, 2017, 01:33:03 PM
If there are blanks in your path: Use quotation marks
If there are no blanks in your path: Use quotation marks or not.
Or force use of Short File Names (SFN) instead of LFN.

WX works like W7 in this regard.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on January 31, 2017, 06:42:51 PM
Thanks Walter, now i can use mlv_dump in "C:\Program Files\MLVDump". Will try if it works the same way with mlvfs and the right click option.

EDIT: Works with mlvfs too, thanks again!  :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on February 01, 2017, 01:59:56 AM
Thanks Walter, that explains very well all the problems regarding the quotation marks some people experienced with this command.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on February 06, 2017, 01:07:52 AM
The batch command works well for me.  But sometimes I just want to convert a single file so I tried to create a command file to be added to the "Send To" directory so I can right click on the file and use the send to command to converted to dng in its own directory.

Since I am not a coder I am having a hard time making such command file.  After struggling for hours I got my command to work in creating the directory for the file but always the dng get extrated to the lower directory instead of the new directory.

Here is the code:
@echo off
ECHO "%~1"
set str="%~1"
set dir=%str:.MLV=%
md %dir%
E:\Downloads\00-ML\15-mlv-dump\000000-1-11-2017-utilities\mlv_dump.exe -o "%dir%" --dng %str%
cmd


The output of the mlv_dump indicates that the output is going to the correct directory but the dng do not go to that directory.
Here is the output of mlv_dump:

"F:\00-carol\M04-0953.MLV"

MLV Dumper v1.0
-----------------

Mode of operation:
   - Input MLV file: 'F:\00-carol\M04-0953.MLV'
   - Enforcing 14bpp for DNG output
   - Convert to DNG frames
   - Output into 'F:\00-carol\M04-0953'
File F:\00-carol\M04-0953.MLV opened
File F:\00-carol\M04-0953.M00 not existing.
Processing...


Vertical stripes correction:
  1.00000  0.99428  0.99554  0.98544  0.99348  0.98932  0.99408  1.00008
Cold pixels : 0
Reached end of chunk 1/1 after 352 blocks
Processed 98 video frames
Done

Note:  I tried with and without quotation marks on the dir and str variables but there is not change..
I suspect the problem was solved on the original batch command with the strange addition of  %%~na\%%~na_  just after the -o??
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: g3gg0 on February 06, 2017, 08:16:17 PM
t.b.h i dont know why this shouldn't work...?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on February 06, 2017, 11:03:09 PM
Now it works, I decided to apply the %%~na\%%~na_ as in the original command to my application and changed a couple of things around.  tbh..  I dont know what it does but it works ;)

New command for a single file to create a directory and to dump the dng files to that directory.


@echo off
md "%~n1"
"E:\Downloads\00-ML\15-mlv-dump\000000-1-11-2017-utilities\mlv_dump.exe" -o %~n1\%~n1_ --dng %~n1.MLV


You need to replace the "E:\Downloads\00-ML\15-mlv-dump\000000-1-11-2017-utilities\mlv_dump.exe" with your "path-to-the mlv_dump.exe" file.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RenatoPhoto on February 07, 2017, 02:52:47 PM
Yes the addition of  %~n1\%~n1_ puts some relative directory notation since now mlv_dump reports this as follows:

MLV Dumper v1.0
-----------------

Mode of operation:
   - Input MLV file: 'M07-1616.MLV'
   - Enforcing 14bpp for DNG output
   - Convert to DNG frames
  - Output into 'M07-1616\M07-1616_'
File M07-1616.MLV opened
File M07-1616.M00 not existing.
Processing...


Vertical stripes correction:
  1.00000  1.00545  1.00450  1.00774  1.00655  1.00670  1.00664  1.00230
Cold pixels : 0
Reached end of chunk 1/1 after 342 blocks
Processed 161 video frames
Done


Edit:  so that is the extent of my coding contribution.  :D
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Mefist on April 08, 2017, 12:20:07 AM
Works with dual iso?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: lbigdogg on April 08, 2017, 09:05:51 PM
Total newb to this so I appreciate the help.  Is it possible to add a line so it creates a folder and extracts to a specific location on another drive? That way I can extract it directly from the cf card to the drive/folder where i have my dng files? Thanks.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: piloui on April 17, 2017, 12:17:09 PM
Hi there,

Glad to see this post making his way !

I don't have the time to improve the batch for now but i can assure you that i am not pro at all and it's very easy as finding exemple on web and almost copy/paste what you need.

For the custom path extraction, im sure you can try something like i've done at the time of mlvfs. Some pop up to choose directory like explain here :
http://stackoverflow.com/questions/19734939/folder-chooser-dialog-from-a-windows-batch-script/19736060#19736060

Is there some 14 bit lossless compressed mlvs download somewhere please ? I dont have a 5D MK3 for my part.
;)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on May 30, 2017, 05:39:05 PM
Hey,

I replaced the MLV_dump file with the newest one from 4k Crop Experiements. And after doing so I cannot get it to Batch Convert the selected MLV's. I am not sure if I have overseen something, its quite awhile since I made the original "Send To" 01_mlv_dump.cmd so perhaps I did something different, but all the codes posted in this thread here, are not working for me anymore.

Even though I select 40 MLV's it only converts the first one and then stops, I have to send each MLV individually to 01_mlv_dump.cmd. Thats a lot of manual work and waiting when you have about 400 MLV's to convert.

I also had and issue with the "send to" 01_mlv_dump.com when right clicking would disappear and when I looked in the "send to" folder the .cmd was gone, this happened randomly 3 times yesterday, seemed as if when I went AFK for awhile, the "send to" cmd would delete itself? It has not deleted itself again and works as supposed to except for no batch conversion. But its not deleting itself anymore. But still just converting 1 MLV at a time. Just some FYI incase it has something to do with my issue.

this is the code I use:
@echo off
md "%~n1"
"C:\XXXXXX\Video Program\MLV_Dump on Steroids\mlv_dump.exe" -o %~n1\%~n1_ --dng %~n1.MLV



Can someone chime in on what might be wrong? 

Or any other information needed from my side.

Win 8.1 64 bit
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Walter Schulz on May 30, 2017, 06:24:56 PM
May I ask about the "Send to ..."-gone issue?

You have to recreate the send to item each time?
Or "Send to ..." item is still there and CMD was deleted?

If later: Is CMD thrown into Recycle Bin or infected isolation area of your virus protection suite?

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on May 30, 2017, 07:51:14 PM
No it was gone in Right Click drop down and in the "Send to" Folder.

But it was not everytime. I would be able to convert a few mlv's and then it was gone, I think one time during the meticulous Right Clicking and waiting and after being AFK for awhile not touching the computer.

No, no file in the Recycle bin. And no quarantine.

edit: is the code right? maybe a 'Space' too much some where?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 25, 2017, 10:41:17 AM
I started playing with Renatophotos script a little and came up with something that works with all flavours of mlv files and should also work with DaVinci resolve outputting cdng files. I´m using ml-dng code(dmilligan) mixing g3gg0 code from crop_rec_4k branch and a lot of stuff from Bouncyball.
I am certainly not a windows guy but thanks to dfort really nice cygwin tutorial I got compiling on windows working so I thought we could start off something here.
Please test and report if things are working or not. Be careful :P

There is a howto file in the download but it´s easy. Put MLV files next to batch_mlv. Double click batch_mlv file to start processing. mlv_dump is placed inside the bin folder.
User can put in any mlv_dump in the folder(inluded is the same mlv_dump code as in cr2hdr.app for mac). For example Bouncyball badass mlv_dump for steroids or true original mlv_dump from g3gg0.

batch_mlv(thanks to Renatophoto)
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip

code
https://bitbucket.org/Dannephoto/batch_mlv/src
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: andy kh on June 25, 2017, 03:20:13 PM
Can't wait to try this. Unfortunately im out of station
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on June 26, 2017, 12:24:14 AM
@Danne

I wanna give you one word: Amazing!

I love how the MLV's are put in to the 'Originals' folder when they complete their conversion.

Its fast, I am on a laptop converting on a 2 TB WD external drive and its not hogging the drive down. I can easily preview the other files simultaneously as it is converting. All the other Dumps seemed quite "Drive heavy" as I could barely preview a single DNG in photo viewer. Now I am running MLRawviewer and Photoviewer like it was no tomorrow.

And no Vertical Stripes!

I have not tested how resolve handles the file names.

I'll let you know as I use it more, what my experience is, but so far its the answer to my prayers.

Edit: So far it is eating everything that I throw at it. Vanilla MLV's, lossless mlv's, 3.5k Crop, 5x3 slow mo, 3x3 slow mo, 3x crop.. There is no stopping this!
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: reddeercity on June 26, 2017, 04:14:41 AM
Why re-invent the wheel , how about recycling some old windows programs  ;)
http://www.magiclantern.fm/forum/index.php?topic=19300.msg186028#msg186028
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on June 26, 2017, 06:11:14 AM
@RedDeerCity

I have tried mlvconverter. Unfortunately, in my case if I added a folder with a lot of MLV's, after converting anything between ~5-15 MLV's it would spew out blank folders. In that post you say "update exiftool too", why is that? That is the only step I have not done, is that causing blank folders?

I know you digg Prores, so that seems like a good method for you, but I don't work with intermediates from start. I just want Cinema/DNG's from the get-go and I want it to be straight forward, in batches, no fiddling around and no Vertical Stripes.

And MLVconverter is heavy on the drives, I travel constantly, so I work with a laptop more or less all the time and therefore a lot of my conversions are done on external drives. With MLVConverter I could barely touch anything on the drive while it was running.

I suggest you try this script for its ease and efficiency, it does exactly what its supposed to; batch processes anything you throw at it.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 26, 2017, 10:48:47 AM
Great that it worked out for you Kharak. Remember that if you want to add parameters like compression, chroma smoothing and such you can do this inside the batch_mlv file. There´s a little description how inside.
Now I want to add mlv_dump time metadata to the folder name file and I realise how spoiled I have been with grep, awk on mac which make grabbing file info a breeze compared to how it´s done in windows. If anybody interested maybe I could get some help/hints for windows. On mac it goes something like this
mlv_dump -v INPUT.MLV | grep 'Date' | head -1 | awk '{print $2}' | tr '.' -
Gives me this for example:
18-12-2016

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: bouncyball on June 26, 2017, 07:27:35 PM
Instead of "grep" use "findstr" :)

findstr /? for help

There is also win version of grep (you have to get it separately) but keep closer to the M$ ideology :P
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: bouncyball on June 26, 2017, 07:34:42 PM
Also check "for /?" instead of basic stuff with AWK
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 26, 2017, 07:51:49 PM
Yes. Got that actually working spitting out the numbers like following:
26.06.2017
for /f "tokens=2 delims=;= " %%P in ('mlv_dump.exe -v %%~na.MLV ^| find "Date"') do ( set num=%%P)

Now I want that value to replace dots "." With "-" but that also seems like friggin science ;)
Ideas?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 27, 2017, 02:32:58 AM
batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip

Time stamp in folder name now working. Did some rearranging in mlv_dump code. Much easier than working dos prompt  :P
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on June 27, 2017, 03:20:11 AM
I can not get this latest version of mlv_dump to work, it says "...cygwin1.dll is missing from your computer..."

I run WIN 8.1, maybe something to do with that.

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 27, 2017, 03:47:50 AM
ok, I had those before too when compiling. It´s not compiling as it did before. I will have to revert to the old one again until it´s fixed. Aaah, windows. WHat can go wrong will go wrong...
Thanks for reporting.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 27, 2017, 08:48:24 AM
Ok here we go again. Working build
batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip

If you can´t beat windows, call a friend. "Stubhunter" dfort compiled my latest code and sent me a binary. I did a classic reinstall of windows and somewhere among all the updates the 32bit cygwin version wouldn´t allow for install through the nice scripts in dfort´s cygwin tutorial. Long story short. I failed trying to solve it this time. If I ever get over this shortlived windows rendévouz I might get back up the saddle again but don´t count on it  :P
Please test and report. Maybe someone could open up a sequence in DaVinci resolve?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 28, 2017, 10:02:27 AM
Did another small change to the script.
I wonder if there's any interest in an automated darkframe processing. Could check into some solution for this if so.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: bouncyball on June 28, 2017, 12:27:10 PM
@Danne: Yes please! :D
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on June 28, 2017, 06:22:27 PM
@Danne

yes, please please!

On another note, I am having major connection issues, it drops out constantly, so much that this is the first time I got in on ML forum since yesterday morning. I cannot download any of your new builds as it drops out and cancels.

I did put DNG's from your first version in Resolve and they all came in, in the right order! I never had that from any other converter, so for me that seems to be A-ok. But I don't know if you are aiming more for correct TC.

edit: Got the new build! 8)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on June 28, 2017, 06:46:20 PM
I see what I can do about darkframe automation. With imagemagick(convert) it should be possible to fully automate the processing as in cr2hdr.app only I suck at dos scripting so I will start off rather simple.
There is tc in the dng file. Starts at 00.00.00.00.
Cool that it works in resolve. Metadata in wav file exists thanks to bouncyball.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 04, 2017, 09:23:31 PM
New version
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip

- Darkframe automation added
- Minor fixes

Fiddled around with commands and glued together a darkframe automation workflow in batch_mlv.cmd
code
https://bitbucket.org/Dannephoto/batch_mlv/src/a051f82a362599e5519d13457e9ab7249997e64b/batch_mlv.cmd?at=batch_mlv_darkframes&fileviewer=file-view-default

Howto
As Before it´s all a matter of double clicking the batch_mlv.cmd file. If you leave darkframes folder empty or erase it batch_mlv.cmd will work just as before and simply process MLV footage into folders with dng files.
If you want to start working with darkframes it works as follows:
1 - Record darkframe sequences(about 1-5 second clips with your lens cap on) and put them all inside your darkframes folder

2 - Include MLV footage recorded outside the darkframes folder

3 - Double click batch_mlv.cmd and the script will first average your darkframe files then check for matching features between footage in darkframes folder and your regular MLV footage. If matching it will apply darkframe subtraction or else process your files as usual. In the process your darkframes will be renamed and prefixed with avg_

The philosophy around this is to build upon your darkframes folder to create a full storage with averaged darkframe files for your camera. You can at any time add new MLV darkframes as it will average and rename your darkframes with the prefix avg_ and use them whenever there is a match.


Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on July 05, 2017, 12:47:26 PM
Cant wait to try this out!

Thank you, Danne!
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: pc_bel on July 05, 2017, 07:00:01 PM
Hi Danne,
I'm using your batch file following your instructions. I add the mlv file in the same directory where the batch file is and then double clicking in it. It creates two new folders, one named ORIGINALS where I can find the original mlv file and another with a long name where dng's is supposed to be, but this folder is empty. I can't convert to dng's.
I'm using the last 4k crop rec (jun19) for 5Dmk3 1.1.3 and the file is recorded in 1920x960 50p 3x3.
Thanks.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 05, 2017, 07:25:25 PM
Hi pc_bel. Let's see if we can narrow down the issue.
You also have the bin folder in there? That is where mlv_dump lies. If so I would like to know what the command prompt is saying. Do following.
1 - open up batch_mlv.cmd file by right clicking it and select edit.
2 - at the bottom of the script write the word pause. This will make the command prompt hang. Copy the output and paste it here.

Oh yea. Don't forget to double click with the troubling file inside :).

You can also test to enable the --relaxed setting inside the script. Write --relaxed right after the word --dng.

*UPDATE
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip

Added --relaxed mode as default in the script for footage that otherwise might not be working with mlv_dump.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: pc_bel on July 05, 2017, 09:40:01 PM
Thnks for your interest Danne,

The out put:
MLV Dumper
-----------------

Mode of operation:
   - Input MLV file: 'M25-2023.MLV'
   - Decompressing before writing DNG
   - Enforcing 14bpp for DNG output
   - Convert to DNG frames
   - Output into 'M25-2023_1_2017-06-25_0001_C0000\M25-2023_1_2017-06-25_0001_C0000_'
File M25-2023.MLV opened
File M25-2023.M00 not existing.
Processing...
[ERROR]     LJ92: Failed (-1)
Processed 0 video frames at 50.00 FPS (0.00 s)
Done

Finally I have been able to convert the mlv to dng with a older version of mlv_dump and the first frame is corrupted. Maybe this is the problem...
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 05, 2017, 09:44:26 PM
Can you download batch_mlv again. I added the setting --relaxed. Should fix your issue.

From answer above

*UPDATE
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip

Added --relaxed mode as default in the script for footage that otherwise might not be working with mlv_dump.

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: pc_bel on July 05, 2017, 09:53:37 PM
Yes!!!

I saw that. Thank you very much!!!!
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 05, 2017, 10:05:51 PM
No problem. And thank g3gg0 Who implemented the --relaxed  8) mode :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 07, 2017, 06:02:06 PM
New version of batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip

Code
https://bitbucket.org/Dannephoto/batch_mlv/src/3f76a61ebf930872906b517dba36698d207cb7f2/batch_mlv.cmd?at=batch_mlv_menu_selector&fileviewer=file-view-default

This thing kind of took off and I spent a few hours building a menu selection script to be used with mlv_dump. It´s rudimentary but also fast and flexible. You don´t wanna miss out on -c compression or being able to set bits or chroma smooth if that´s needed. Usage is easy. As before, double click the batch_mlv.cmd file and out pops the menu. If you see something you like add it. If you want to undo just reselect the parameter in question. Or select (E) to erase all parameters. When done or if you want to skip changing of parameters simply select (R) to start processing.

Hit (R) when ready to roll.
(https://s17.postimg.org/psnd35pf3/Screen_Shot_2017-07-07_at_17.53.18.png)


I started out with a ml-dng mlv_dump version I use in cr2hdr.app but then I thought of why not use mlv_dump for steroids by Bouncyball so here we go. The best from a1ex, g3gg0, dmilligan, put together by  Bouncyball presented in this little dos script.
Since I don´t work on a windows machine myself it would be nice to hear about what works or not.

Menu
(https://s17.postimg.org/op38r74rz/Screen_Shot_2017-07-07_at_17.52.45.png)

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on July 21, 2017, 06:24:51 PM
Been awhile.

I can not get the Automation to work, I added Vanilla MLV's and Compressed MLV's to the Darkframes folder, but neither of them work for me. When I use the versions that are supposed to do DarkFrame Automation, they make the new avg_... Darkframes but after that it just outputs empty folders.

This is with the Version before Menu and with Menu.

Maybe you need more information on what exactly I am doing, so far I have not tested extensively what might be wrong. I also had this random issue where if .MRX files were in the same folder as the MLV's, then MLV_dump/batch script would crash completely. Removed the MRX files and it worked again, tried to replicate and could not ??

With the Menu version, sometimes, it seems MLV_dump either "sees" the same file it is converting "again" or it does duplicate it, cause in the CMD window I get a few reports here and there "duplicate file found etc.." think it says something about moving the file or something, not a big deal, it goes on, but it does seems to freeze up for quite awhile while this is going on, so long I almost quit it yesterday but it just started before I hit X.

Please let me know if I can do more testing and stuff, got a bit more time for this stuff again now.

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 21, 2017, 07:03:08 PM
Add only darkframes into darkframes folder. The other footage outside the darkframes folder.
Not certain darkframe averaging works with compressed footage. If not you need to decompress footage first.
Darkframes folder works with latest version.
mrx files. Sure it wasn't idx files?

About the hanging issue. Try running the latest version and see if the problem goes away.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on July 22, 2017, 01:32:23 PM
Ah yes, probably was idx files.

Can i batch decompress with your latest version. There is a 'compress' field if memory serves me right, the 2nd or 3rd option in the menu, i beleive it was.I am not at home at the moment, so running from memory, could that do the trick for me?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 22, 2017, 01:41:16 PM
Only compressing atm. It needs some some roundtripping here. Creating a new mlv file and so on. Can you try with compressed first. Maybe it works :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on July 22, 2017, 01:55:34 PM
Might be that I had the wrong frame size of the Darkframes, I have Darkframe MLV's for 3x3 1080p, 1280p, 800p(60p). Think I mixed up the size.

I'll let you know when I've tried with decompressed,uncompressed and compressed etc..
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on July 22, 2017, 02:02:13 PM
Yes, very picky about size, fps, iso :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on August 02, 2017, 10:08:14 PM
When i process 10Bit MLV files from my 100D i get wrong blacklevels on the output DNG files. If i use dark frames, the blacklevel is correct, but there are other artifacts and stripes present. Is there any way to avoid this? I tried both the provided mlv_dump and mlv_dump on steroids.

Should i upload my MLV file and/or the DNGs ?

Edit: I use the January 100D experimental build from nikfreak
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 02, 2017, 10:17:28 PM
Did you try setting levels through the menu?
Always good with uploaded files so upload if you can.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: DeafEyeJedi on August 03, 2017, 03:44:27 AM
Any particular reason why you are using the Jan build instead of the latest from experimental page for the 100D @canneloni?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on August 03, 2017, 07:53:22 AM
@Danne: I tried to set blacklevel to 2048 trough the menu but it did not help. Honestly i'm not sure wich levels are correct for the 100D in 10 Bit. I'll upload my file later.

@DeadEyeJedi: As far as i've read, the latest build from the experimantal page has problems with live view freezing due to CONFIG_EDMAC_RAW_SLURP not beeing configured right? Didn't try it yet though.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: reddeercity on August 03, 2017, 08:46:52 AM
@ cannelloni  have you tried MLVProducer (http://www.magiclantern.fm/forum/index.php?topic=15271.msg148538#msg148538) yet ?
black level @ 10bit should be around 111 at least on my 5D2 & 12bit is 448 for black level --2048 is for 5d3 @ 14bit
mlvproducer can adjust black levels on the fly export cdng's , ffmpeg prores in fact you can process raw just like A.E. ACR
only thing that's no supported is Compressed Raw from the 5D3 --all other bit rates & cams are supported ,  look at the left hand side of the image below
for black level info .

(https://farm5.staticflickr.com/4167/33878844593_581677aa1c_z.jpg) (https://flic.kr/p/TBKWbe)
Old-ML-Core10bit_black level 111 (https://flic.kr/p/TBKWbe) by RedDeerCityTV (https://www.flickr.com/photos/67942440@N06/), on Flickr

(http://image.ibb.co/d2Y8Uv/10bit_raw_mlvproducer_info_tab.png) (http://imgbb.com/)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 03, 2017, 09:58:29 AM
@canneloni
If you can upload the file it would help, or even just dng file. If the file is corrupt we will probably find out looking at the dng.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on August 03, 2017, 01:16:15 PM
@reddeercity: Yes I tried MLVProducer but i alway get some greent lines at the bottom of the image. Also most of the time the exposure is way down, i'm not sure why. But I will give it another try and reply in the right thread when i have further qustions, thank you ! :)

@Danne: I uploaded the MLV File (https://we.tl/NlEASyW46e) and here the outcome DNG (https://we.tl/KLLKTlssmZ)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 03, 2017, 01:35:51 PM
The file seems corrupt. I´d say it´s something with recording (mlv_rec, or elsewhere) in camera that needs checking. Is it happening to all 10bit files? Is 12bit 14bit working?
I think @Nikfreak should take a look.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on August 03, 2017, 02:23:52 PM
It happened to all 10Bit files i recorded so far, as long as i don't use darkframe substruction. 12 and 14 Bit work perfectly with and without darkframes.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 03, 2017, 03:26:53 PM
There you go. 10bit needs some caretaking then.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: tonij on August 04, 2017, 06:04:20 AM
Just tried this script
Threw in a 5 second clip (120 frames of 1728x972 14bit) along with option 12 and the process took 4.5mintues is that right? Seems really really slow
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: reddeercity on August 04, 2017, 08:12:58 AM
Quote from: canneloni on August 03, 2017, 01:16:15 PM
@reddeercity: Yes I tried MLVProducer but i alway get some green lines at the bottom of the image.
That's from the focus pixel map , there one line at the top & bottom but only in the center of image
I turn off the focus pixel map in MLVProducer to show the green line at the top & bottom with focus pixel
(http://image.ibb.co/cEHgXF/Small_NON_Focus_Pixel_Map.png) (http://imgbb.com/)

Same image but I enable Focus Pixel Map in MLVProducer

(http://image.ibb.co/jszEKv/Small_Focus_Pixel_Map_Enable.png) (http://imgbb.com/)

So I would just crop out the top & bottom green line to get rid of it , that's the limitation of the 100D with focus pixels.

Exported from mlvproducer prores444 with corrected blacklevels to 125 with some color correction
https://drive.google.com/file/d/0BxNY4d4Aa7KuNmJLbjZJUUowQkU/view?usp=sharing

Quote from: Danne on August 03, 2017, 01:35:51 PM
The file seems corrupt.

No  --just the black level is off the file reports as 10bit with black level of 456 and white level of 937 , I adjusted black level to 125 which is close to the 5D2 10bit of 111.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 04, 2017, 09:27:22 AM
Great Redeercity. 125 is the magic black level number. Confirmed working.
You should be able to set that black level number in the batch_mlv menu and it will also use dfort´s pixel map automatically to get rid of your focus pixels. Just tried it in Switch for mac.
You can even set chroma smooth to 2x2 for even better results.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on August 04, 2017, 09:52:21 AM
Thanks @reddeercity, i'll give MLVProducer another try :)

@Danne: When i try to use cumstom blacklevel it somehow won't accept my input. You can see it in the screenshot below
(http://thumb.ibb.co/iHpL9v/Blacklevelfix.jpg) (http://ibb.co/iHpL9v)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 04, 2017, 10:30:11 AM
Yes, some bug. I tried it over here. I am not a windows guy so can´t see at all why this is happening. What is even stranger is that if you deselect manually written black level 125 by reselecting (15) in the menu it seems to work after this, deleting the input. Very fishy.

Think I got a fix. Hold on.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 04, 2017, 11:17:39 AM
@canneloni
Issue should be fixed now
batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: canneloni on August 04, 2017, 11:39:34 AM
Downloaded and testet it: It works! :) Thank you guys very much!
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 08, 2017, 11:40:09 PM
I cannot find the mlv_dump on steroids thread.

Am I blind or? I searched the entire forum, but I only get references to mlv_dump on Steroids, no thread??


Found it under " Re: ong class="highlight">mlvong>_ong class="highlight">dumpong> on steroids"

@Danne

I've been on vacation and returned home to my other home without any computer, so I have not been able to do anz more testing on the Batch. I'll return to my other home and work on the 19th and have a ton of Post-Processing waiting for me, and I really wanna go with the batch automation for the two projects I have. I am sorry I couldn't do more testing as I told you I would, but having a family and shooting and processing, everything is so time consuming and I really had to spend time with the family. I hope you understand and keep believing in this "app" :)

My biggest curse is I can't stop shooting micro projects on the side and I am accumulating a s*** load of footage to process :/
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 09, 2017, 12:21:55 AM
No worries Kharak.
By the way. I´m about to port "Switch" over to windows through linux subsystem. If you have that on your windows 10 You might aswell try that out when it´s ready :).

By the way. Don´t forget to download the latest batch_mlv. Fixed a small error.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 09, 2017, 01:46:49 PM
My station runs 8.1 with Shell Extension (privacy concerns). But my gf's laptop has win 10, albeit its no workhorse. I will be trying some proxy stuff on her computer to see if i can finish some side project while I am here. Yesterday I had a quick go with your latest batch version on her comp, but only got blanks. I need to a bit more reading on what her computer is missing for it to work. Does the batch require Net Framework to work?


Oh, Switch is CR2HDR! Thought it was something entirely new. Well I cant wait!
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 11, 2017, 04:07:15 PM
@Danne

I cannot get this computer to convert any lossless MLV with the Batch Menu.


I saved all the codes for mlv_dump on my computer, that you had in the How To - Notepad and all the others you posted to me later on, like cutting MLV's and so on.

It seems you replaced the How To - Readme with the latest one, I want to try the old fashion way with the code or maybe if you still have it around, the version right before Darkframe Automation, I have some MLV's from our Vacation that I'd like to see.

I also took only MLV_dump on Steroids and dragged and dropped MLV's on it and it says processing, but then just quits and doesnt even generate a folder..

What do I need to convert? mlv_dump should be enough, right? is there some backend missing, I can't remember what I had on my station, it has pretty much everything ever released on ML forums.

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 11, 2017, 04:25:33 PM
Can you send me a sample MLV file that do not convert?
You can reach any version of batch_mlv from source tree on bitbucket. Download source tree and double click from the desired place in source tree and enter your folder.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 11, 2017, 10:06:52 PM
Yes ofcourse.

Uploading 800 MB one. Too much?

Or you can tell me the code again to cut the MLV's, I can't find where you posted it for me last time. :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 11, 2017, 10:35:41 PM
800mb is fine :).
Or:
Mlv_dump -f 10 -o OUT.MLV IN.MLV
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 11, 2017, 11:57:36 PM
The 800 MB file Refused to complete the upload. Don't know why.

The cutting of the MLV is the first "ML" thing I got to work on this laptop.

Link:
https://mega.nz/#!scoTRQIb!pxUjJVc2MmLinzutUxwH232oUe4b1r4JlRv072SeJXw
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 12, 2017, 12:51:08 AM
Well, it´s working over here. What is your workflow? Everything must be inside the folder. The bin, the batch_mlv.cmd script etc.
Just put your MLV files next to the script and double click then select (r) from the menu to run it. Is that what you do? If so. Can you delete the last occurrence of the word cls in the script and run it and see what the script is saying? Any error messages?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 12, 2017, 01:11:21 AM
Yes, everything is together. Though I don't have any darkframe MLV's in the folder. Thought it would just skip the DF process if nothing was there. Starting to think otherwise now?
I never got the DF automation to work on my comp in July, didn't get to try out all the possible solutions you posted in July, decompressing the DF's and so on, also could you post the code for that btw? "-d something".

So I will make new DF MLV's and try the cls thing tomorrow. Getting a bit late for me now.

Thanks for the help, Danne.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 12, 2017, 01:15:07 AM
Just make it work without any darkframes first. Could you check and see what terminal is saying by erasing cls as I suggested?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 12, 2017, 01:47:22 PM
Ok, two problems. My gf's computer has german language, so technical computer terms are pretty hard for me to understand. I only speak basic german. 2nd, I can't figure out how to open the script in notepad. I don't get any "öffnen mit" when I right click it. Do I need a hex editor or something like that? I can't edit the .cmd to txt in Properties or by renaming.

Any Win10 user with more experience than me?


Also added DF's, but same blank output after it has converted the DF's to the "avg..14bit.." etc.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 12, 2017, 02:29:08 PM
Do geöffnet with notepad I think :). No hex.
Darkframes need to decompressed MLV files to work.
HEre is an older build you can try but I really like to narrow down your issue on the latest version so please keep on lucking even if this works.
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_old.zip
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 12, 2017, 06:13:55 PM
It was "Bearbeiten" - "Edit" :)

I found this cls part.

This is the surrounding thing, what exactly should I delete?

...

cd..
cd..
) else (
@echo -c> bin/mlv_dump_settings/CMPRS
)
cls
GOTO MENU

...

The @echo part?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 12, 2017, 06:21:37 PM
Not sure. Away atm. It's the last cls at the bottom part of the script.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 13, 2017, 03:55:30 AM
Fixed an issue when naming folders with spaces. Should work with and without darkframes.
batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv.zip
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 13, 2017, 11:21:39 AM
Your fix seems to have fixed it :)

So far so good, converting as we speak with Darkframe Automation. I just know that some of the MLV's are 24p and a greater frame size than the 60p, will see how it handles those. The DF's are 1920x800.


I suggested this before, but shouldn't this script have a Thread by its own? For other users looking for a windows script. So they won't have to read through first 2 pages of a botched script that doesn't function properly.

Now that there is a Menu, this is almost an App in itself.

Just a suggestion to keep the forum more clear for the not so Hardcore ML'ers.

Thank you for being so dedicated to us Win users, you being a Mac man and all ;)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 13, 2017, 11:45:39 AM
Great. Might be worth a thread on its own. Or if the original poster could update the first post.
Anyway. I was thinking of putting in a possibility to assign another output folder, an external drive for instance. I'll see what I can do.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 13, 2017, 11:52:39 AM
Assigning a different output folder would be very nice. Conversion could be done on internal SSD's for greater speed and the output moved to externals. Only bottleneck would be transfer speed, but if a normal external drive has more than 50% space available, the speed should be fine. ~80-90 MB/s.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 13, 2017, 11:59:56 AM
Yes bottlenecks. Anyway. If it's not too hard to do(combine with powershell script for instance) I 'll smack it into the menu.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 15, 2017, 04:12:56 PM
batch_mlv
https://bitbucket.cc/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip

Code(branch) here:
https://bitbucket.cc/Dannephoto/batch_mlv/commits/710151b296a35e0eec85e254f37cdd5d9576a88a?at=batch_mlv_in-out

I focused on setting an input folder instead of having to put all MLV files inside a folder next to the batch file. It is pretty straight forward using powershell combined with cmd.exe scripting.

1 - Double click the batch_mlv.bat file from inside it´s folder. Select a folder with MLV files when prompt opens. Press OK.
(https://s27.postimg.cc/56cuiyc4j/Screen_Shot_2017-08-15_at_16.09.34.png)

Some additional stuff. If you like to set a new output location of the dng folders you can do so by selecting O from the menu.
2 - Select O and choose an output folder. Press OK.
(https://s27.postimg.cc/xkia2tzoj/Screen_Shot_2017-08-15_at_16.09.59.png)

output prompt
(https://s27.postimg.cc/js3v778wz/Screen_Shot_2017-08-15_at_16.10.13.png)

Now just select stuff from the main menu and when ready press r to run processing.

Note. If you´re into darkframes it still works even when exporting to new output folders etc. Simply keep your darkframes stashed next to the bin and batch_mlv.bat file like before and any matching darkframes will be applied to the footage.

Thanks Kharak for helping testing giving feedback. Needed and appreciated.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: mothaibaphoto on August 16, 2017, 06:36:13 PM
Hello, Danne!!! Thank you for your efforts to make command line applications more user friendly :)
I want to make clear what versions of mlv_dump exists and what is the difference.
So, we have "vanilla", "steroids" and yours, right? Or no?
First you wrote: "I´m using ml-dng code(dmilligan) mixing g3gg0 code from crop_rec_4k branch and a lot of stuff from Bouncyball."
Then: "I started out with a ml-dng mlv_dump version I use in cr2hdr.app but then I thought of why not use mlv_dump for steroids by Bouncyball so here we go."
But, mlv_dump.exe in batch_mlv_in-out.zip is something different (at least in byte size) than i download from "steroids" thread. So, if you still include your own binary, please, explain what is the difference and why.
Thank you.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 16, 2017, 07:33:14 PM
New version up
batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip

There were issues before when going from one drive to another. Hopefully fixed now. If somebody could test the behaviour I would be greatful. Kharak noticed this one.


@mothaibaphoto. I´m using Bouncyball version of mlv_dump here_
http://www.magiclantern.fm/forum/index.php?topic=18975.0

Like the name suggests he beefed up this version with a lot of code from mlvfs for instance. He also put in some of his own stuff in there. Exactly what you´ll find out in the link provided. batch_mlv don´t know how to use all of it but I think I got the most important stuff in the menu.
About the size difference I can´t say why. If you like you can just change my version to the one from Bouncyball thread and rename it to mlv_dump. Should work the same.

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 16, 2017, 09:12:24 PM
Still having issues with this latest IN OUT version on Win 10.

Would be nice if someone else on Win 10 could test, to see if it is this machine or something else. The Beta or Alpha version of this was working.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 16, 2017, 09:20:19 PM
Just checked. Works but when spaces in the script folder it will break. Will check into it.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 16, 2017, 10:19:04 PM
Hopefully whitespace issues fixed
batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 16, 2017, 10:26:49 PM
Works on Win 10 now :)

This is basically an app now. No need for keeping batch.cmd, Bin files and Darkframes in same folder as MLV. Just add a shortcut to Batch.cmd on desktop run it like any other processing app.

Thank you, Danne. This was much needed for Windows user looking for batch processing together with Darkframe Automation! Can't wait to really put this to work on my current projects!
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 16, 2017, 10:37:35 PM
Great Kharak. Hopefully all works otherwise keep me posted :).
Now let's see if we can narrow down that strange corruption thingy in the steroid thread.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: GianlucaM83 on August 18, 2017, 07:39:05 AM
I have a problem with 10 bit raw. In windows 10 x64, with last version of batch_mlv
If i chose --black-fix=2048 (even with other black values), all my output dng are completely black and if i try to open these files in after effect it gives me an error.
no problems with 14 bit raw.
Same  thing with this version of mlv_dump.exe used in command line Instead no problem with another version of mlv_dump 1.0

I do not know if it is useful but I share two dng files processed with  batch_mlv So you can analyze it.
Sorry for my bad english

https://drive.google.com/open?id=0BxlbVKE4BR0rQVBPdFkzVTlleXc (https://drive.google.com/open?id=0BxlbVKE4BR0rQVBPdFkzVTlleXc)
https://drive.google.com/open?id=0BxlbVKE4BR0rRjFsV2ZOcGs4bG8 (https://drive.google.com/open?id=0BxlbVKE4BR0rRjFsV2ZOcGs4bG8)




Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 18, 2017, 08:13:02 AM
Try set it to blacklevel 125.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: GianlucaM83 on August 18, 2017, 09:07:00 AM
Quote from: Danne on August 18, 2017, 08:13:02 AM
Try set it to blacklevel 125.
thank you @Danne
with 125 as a value it seems to work, but image have some magenta cast, with 250 as value,The picture returns completely black.
I think I must find the sweet spot with black value.

Thanks again :)

EDIT:
without --black-fix parameter picture look good.. Perhaps fix black  was useless with this my mlv file. Sorry but I'm a novice :\
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 18, 2017, 10:17:07 AM
New version:
batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip

Tested with wav included and for some reason the for loop wants to reloop files over and over. I don´t really know what is going on but to simply break the loop after conversion I move the MLV files to a ORIGINALS folder. This wasn´t the case before when assigning a new output location ((O) from the menu). So now MLV files are moved to an ORIGINALS folder for all processing modes.



@GianlucaM83
Yes, black level should be left alone if nothing wrong with it.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: mothaibaphoto on August 20, 2017, 06:15:43 PM
I added --force-stripes to your script, Danne. For me it's mast have: my camera have strong stripes and black frames didn't help with that.

:: This program is free software; you can redistribute it and/or
:: modify it under the terms of the GNU General Public License
:: as published by the Free Software Foundation; either version 2
:: of the License, or (at your option) any later version.
:: This program is distributed in the hope that it will be useful,
:: but WITHOUT ANY WARRANTY; without even the implied warranty of
:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
:: GNU General Public License for more details.
:: You should have received a copy of the GNU General Public License
:: along with this program; if not, write to the
:: Free Software Foundation, Inc.,
:: 51 Franklin Street, Fifth Floor,
:: Boston, MA  02110-1301, USA.

::Freely worked upon. First scripts here(Renatophoto)
::http://www.magiclantern.fm/forum/index.php?topic=10526.msg179631#msg179631

:: add any other additional mlv_dump setting by adding setting switches after --dng(e.g --dng -c for compressed dng output) Drag mlv_dump to cmd and hit enter to check parameters
:: HOWTO - Double click the batch_mlv file and see your MLV files process into folders with dng files. When done the original file will be moved to A_ORIGINALS folder
:: darkframe automation included. Put vanilla MLV darkframes into the darkframes folder and the regular MLV footage outside the darkframes folder and double click
:: the batch_mlv.cmd file. Darkframe MLV files will be averaged and renamed with matching info and the prefix avg_. If regular MLV footage and darkframe footage match
:: darkframe subtraction will take place, otherwise footage will be processed a usual. You can at any time erase or fill the darkframes folder with additional vanilla MLV files
:: to add to your darkframe storage. If no darkframes exists in the folder or if darkframes folder is erased batch_mlv will process with mlv_dump as usual.

::Thanks Bouncyball for mlv_dump(steroid version)
::Thanks to dfort for fpm pixel fixing lists in bin folder.



@Echo Off
::My selected input path
set /p path_in=<bin/mlv_dump_settings/path_in
set /p path_base=<bin/mlv_dump_settings/path_base
if exist bin/mlv_dump_settings/path_out set /p path_out=<bin/mlv_dump_settings/path_out
if exist bin/mlv_dump_settings/path_out if not exist "%path_out%" mkdir "%path_out%"

SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do     rem"') do (
  set "DEL=%%a"
)
ECHO OFF
CLS
mode con: cols=100 lines=50
:MENU

cd /d "%path_base%"/
::bin path
set PATH=%PATH%;%cd%/bin

ECHO.
ECHO                                         ..........
ECHO                                          MLV_DUMP
ECHO         ..........
ECHO.
if not exist "bin/mlv_dump_settings" mkdir "bin/mlv_dump_settings"
ECHO mlv_dump parameters. Reselect the same parameter to erase:

if exist bin/mlv_dump_settings/path_out set /p path_out=<bin/mlv_dump_settings/path_out
ECHO.
echo INPUT:  "%path_in%"
if exist bin/mlv_dump_settings/path_out (echo OUTPUT: "%path_out%" ) else ( echo OUTPUT:  "%path_in%")
ECHO.

if exist bin/mlv_dump_settings/CMPRS (call :colorEcho 0a "(1)  -c"
ECHO.)
if exist bin/mlv_dump_settings/DECMPRS (call :colorEcho 0a "(2)  -d"
ECHO.)
if exist bin/mlv_dump_settings/PASS (call :colorEcho 0a "(3)  -p"
ECHO.)
if exist bin/mlv_dump_settings/BDEPTH set /p bits=< bin/mlv_dump_settings/BDEPTH
if exist bin/mlv_dump_settings/BDEPTH (call :colorEcho 0a "(4)  %bits%"
ECHO.)
if exist bin/mlv_dump_settings/VS (call :colorEcho 0a "(5)  --no-stripes"
ECHO.)
if exist bin/mlv_dump_settings/cs2 (call :colorEcho 0a "(6)  --cs2x2"
ECHO.)
if exist bin/mlv_dump_settings/cs3 (call :colorEcho 0a "(7)  --cs3x3"
ECHO.)
if exist bin/mlv_dump_settings/cs5 (call :colorEcho 0a "(8)  --cs5x5"
ECHO.)
if exist bin/mlv_dump_settings/NOPIX (call :colorEcho 0a "(9)  --no-fixcp"
ECHO.)
if exist bin/mlv_dump_settings/FIXSPIX (call :colorEcho 0a "(10) --fixcp2"
ECHO.)
if exist bin/mlv_dump_settings/UNPACK (call :colorEcho 0a "(11) --no-bitpack"
ECHO.)
if exist bin/mlv_dump_settings/PATNOISE (call :colorEcho 0a "(12) --fixpn"
ECHO.)
if exist bin/mlv_dump_settings/EXPCOMP set /p expcomp=< bin/mlv_dump_settings/EXPCOMP
if exist bin/mlv_dump_settings/EXPCOMP (call :colorEcho 0a "(13) %expcomp%"
ECHO.)
if exist bin/mlv_dump_settings/NOAUDIO (call :colorEcho 0a "(14) --no-audio"
ECHO.)
if exist bin/mlv_dump_settings/BLACK set /p black=< bin/mlv_dump_settings/BLACK
if exist bin/mlv_dump_settings/BLACK (call :colorEcho 0a "(15) %black%"
ECHO.)
if exist bin/mlv_dump_settings/WHITE set /p white=< bin/mlv_dump_settings/WHITE
if exist bin/mlv_dump_settings/WHITE (call :colorEcho 0a "(16) %white%"
ECHO.)
if exist bin/mlv_dump_settings/VS_F (call :colorEcho 0a "(17)  --force-stripes"
ECHO.)


ECHO 1  - compress video and audio frames using LJ92.
ECHO 2  - decompress compressed video and audio frames using LZMA or LJ92
ECHO 3  - pass through original raw data without processing, it works for lossless or uncompressed raw
ECHO 4  - convert image data to given bit depth per channel (1-16)
ECHO 5  - disable vertical stripes fixing
ECHO 6  - Chroma smooth 2x2
ECHO 7  - Chroma smooth 3x3
ECHO 8  - Chroma smooth 5x5
ECHO 9  - do not fix cold pixels
ECHO 10 - fix non-static moving cold pixels slow
Echo 11 - write DNG files with unpacked to 16 bit raw data
Echo 12 - fix pattern noise
ECHO 13 - per-frame exposure compensation. value is target median in raw units ex: 3072 (default)
ECHO 14 - DNG output WAV not saved, MLV output WAVI/AUDF blocks are not included
ECHO 15 - set black level to value
ECHO 16 - set white level to value
ECHO 17 - compute stripe correction for every frame
call :colorEcho 0c "O  - Select OUTPUT folder"
ECHO.
call :colorEcho 0c "E  - Erase all parameters"
ECHO.
call :colorEcho 0c "Q  - Quit"
ECHO.
call :colorEcho 0b "R  - run batch_mlv"
ECHO.
ECHO.
SET /P M=Select mlv_dump parameter and press ENTER: 
IF %M%==1 GOTO COMPRSS
IF %M%==2 GOTO DECMPRS
IF %M%==3 GOTO PASS
IF %M%==4 GOTO BDEPTH
IF %M%==5 GOTO VertS
IF %M%==6 GOTO CS2x2
IF %M%==7 GOTO CS3x3
IF %M%==8 GOTO CS5x5
IF %M%==9 GOTO NOCPIX
IF %M%==10 GOTO FIXSPIX
IF %M%==11 GOTO UNPACK
IF %M%==12 GOTO PATNOISE
IF %M%==13 GOTO EXPCOMP
IF %M%==14 GOTO NOAUDIO
IF %M%==15 GOTO BLACK
IF %M%==16 GOTO WHITE
IF %M%==17 GOTO VertS_F
IF %M%==O GOTO OUTPUT
IF %M%==o GOTO OUTPUT
IF %M%==E GOTO RESET
IF %M%==Q GOTO EOF
IF %M%==q GOTO EOF
IF %M%==R GOTO batch_mlv
IF %M%==r GOTO batch_mlv
:COMPRSS
if exist bin/mlv_dump_settings/CMPRS (
cd bin/mlv_dump_settings
del CMPRS
cd..
cd..
) else (
@echo -c> bin/mlv_dump_settings/CMPRS
)
cls
GOTO MENU
:DECMPRS
if exist bin/mlv_dump_settings/DECMPRS (
cd bin/mlv_dump_settings
del DECMPRS
cd..
cd..
) else (
@echo -d> bin/mlv_dump_settings/DECMPRS
)
cls
GOTO MENU
:PASS
if exist bin/mlv_dump_settings/PASS (
cd bin/mlv_dump_settings
del PASS
cd..
cd..
) else (
@echo -p> bin/mlv_dump_settings/PASS
)
cls
GOTO MENU
:BDEPTH
if exist bin/mlv_dump_settings/BDEPTH (
cd bin/mlv_dump_settings
del BDEPTH
cd..
cd..
cls
GOTO MENU)
cls
call :colorEcho 0a "specify bitdepth below(1-16)"
ECHO.
set /p bits=""
echo -b %bits% > bin/mlv_dump_settings/BDEPTH
cls
GOTO MENU
:VertS
if exist bin/mlv_dump_settings/VS (
cd bin/mlv_dump_settings
del VS
cd..
cd..
) else (
@echo --no-stripes> bin/mlv_dump_settings/VS
)
cls
GOTO MENU
:VertS_F
if exist bin/mlv_dump_settings/VS_F (
cd bin/mlv_dump_settings
del VS_F
cd..
cd..
) else (
@echo --force-stripes> bin/mlv_dump_settings/VS_F
)
cls
GOTO MENU
:CS2x2
if exist bin/mlv_dump_settings/cs2 (
cd bin/mlv_dump_settings
del cs2
cd..
cd..
) else (
@echo --cs2x2> bin/mlv_dump_settings/cs2
cd bin/mlv_dump_settings
del cs3
del cs5
cd..
cd..
)
cls
GOTO MENU
:CS3x3
if exist bin/mlv_dump_settings/cs3 (
cd bin/mlv_dump_settings
del cs3
cd..
cd..
) else (
@echo --cs3x3> bin/mlv_dump_settings/cs3
cd bin/mlv_dump_settings
del cs2
del cs5
cd..
cd..
)
cls
GOTO MENU
:CS5x5
if exist bin/mlv_dump_settings/cs5 (
cd bin/mlv_dump_settings
del cs5
cd..
cd..
) else (
@echo --cs5x5> bin/mlv_dump_settings/cs5
cd bin/mlv_dump_settings
del cs2
del cs3
cd..
cd..
)
cls
GOTO MENU
:NOCPIX
if exist bin/mlv_dump_settings/NOPIX (
cd bin/mlv_dump_settings
del NOPIX
cd..
cd..
) else (
@echo --no-fixcp> bin/mlv_dump_settings/NOPIX
cd bin/mlv_dump_settings
del FIXSPIX
cd..
cd..
)
cls
GOTO MENU
:FIXSPIX
if exist bin/mlv_dump_settings/FIXSPIX (
cd bin/mlv_dump_settings
del FIXSPIX
cd..
cd..
) else (
@echo --fixcp2> bin/mlv_dump_settings/FIXSPIX
cd bin/mlv_dump_settings
del NOPIX
cd..
cd..
)
cls
GOTO MENU
:UNPACK
if exist bin/mlv_dump_settings/UNPACK (
cd bin/mlv_dump_settings
del UNPACK
cd..
cd..
) else (
@echo --no-bitpack> bin/mlv_dump_settings/UNPACK
)
cls
GOTO MENU
:PATNOISE
if exist bin/mlv_dump_settings/PATNOISE (
cd bin/mlv_dump_settings
del PATNOISE
cd..
cd..
) else (
@echo --fixpn> bin/mlv_dump_settings/PATNOISE
)
cls
GOTO MENU
:EXPCOMP
if exist bin/mlv_dump_settings/EXPCOMP (
cd bin/mlv_dump_settings
del EXPCOMP
cd..
cd..
cls
GOTO MENU)
cls
call :colorEcho 0a "specify deflicker value below(3072 default)"
ECHO.
set /p expcomp=""
echo --deflicker=%expcomp% > bin/mlv_dump_settings/EXPCOMP
cls
GOTO MENU
:NOAUDIO
if exist bin/mlv_dump_settings/NOAUDIO (
cd bin/mlv_dump_settings
del NOAUDIO
cd..
cd..
) else (
@echo --no-audio> bin/mlv_dump_settings/NOAUDIO
)
cls
GOTO MENU
:BLACK
if exist bin/mlv_dump_settings/BLACK (
cd bin/mlv_dump_settings
del BLACK
cd..
cd..
cls
GOTO MENU)
cls
call :colorEcho 0a "specify black level below(e.g 2048)"
ECHO.
set /p black=""
echo --black-fix=%black% > bin/mlv_dump_settings/BLACK
cls
GOTO MENU
:WHITE
if exist bin/mlv_dump_settings/WHITE (
cd bin/mlv_dump_settings
del WHITE
cd..
cd..
cls
GOTO MENU)
cls
call :colorEcho 0a "specify white level below(e.g 15000)"
ECHO.
set /p white=""
echo --white-fix=%white% > bin/mlv_dump_settings/WHITE
cls
GOTO MENU
:OUTPUT
if exist bin/mlv_dump_settings/path_out (
cd bin/mlv_dump_settings
del path_out
cd..
cd..
cls
GOTO MENU)
batch_mlv_OUT.bat
:RESET
cd bin/mlv_dump_settings
del PASS
del BDEPTH
del DECMPRS
del cs2
del cs3
del cs5
del NOPIX
del FIXSPIX
del UNPACK
del PATNOISE
del EXPCOMP
del VS
del CMPRS
del NOAUDIO
del BLACK
del WHITE
del VS_F
cd..
cd..
cls
GOTO MENU
:batch_mlv
@echo off

::mlv_dump parameters
(for /f "delims== tokens=1" %%G in (bin/mlv_dump_settings/CMPRS) do set cmprs=%%G) 2>nul
(for /f "delims== tokens=1" %%H in (bin/mlv_dump_settings/VS) do set VS=%%H) 2>nul
(for /f "delims== tokens=1" %%W in (bin/mlv_dump_settings/VS_F) do set VS_F=%%W) 2>nul
(for /f "delims== tokens=1" %%Z in (bin/mlv_dump_settings/cs2) do set cs2=%%Z) 2>nul
(for /f "delims== tokens=1" %%J in (bin/mlv_dump_settings/cs3) do set cs3=%%J) 2>nul
(for /f "delims== tokens=1" %%K in (bin/mlv_dump_settings/cs5) do set cs5=%%K) 2>nul
(for /f "delims== tokens=1" %%L in (bin/mlv_dump_settings/NOPIX) do set NOPIX=%%L) 2>nul
(for /f "delims== tokens=1" %%M in (bin/mlv_dump_settings/FIXSPIX) do set FIXSPIX=%%M) 2>nul
(for /f "delims== tokens=3" %%N in (bin/mlv_dump_settings/BLACK) do set BLACK=%%N) 2>nul
(for /f "delims== tokens=3" %%Q in (bin/mlv_dump_settings/WHITE) do set WHITE=%%Q) 2>nul
(for /f "delims== tokens=1" %%R in (bin/mlv_dump_settings/DECMPRS) do set decmprs=%%R) 2>nul
(for /f "delims== tokens=1" %%S in (bin/mlv_dump_settings/PASS) do set pass=%%S) 2>nul
(for /f "delims== tokens=1" %%T in (bin/mlv_dump_settings/BDEPTH) do set bdepth=%%T) 2>nul
(for /f "delims== tokens=1" %%U in (bin/mlv_dump_settings/UNPACK) do set unpack=%%U) 2>nul
(for /f "delims== tokens=1" %%V in (bin/mlv_dump_settings/PATNOISE) do set patnoise=%%V) 2>nul
(for /f "delims== tokens=1" %%Y in (bin/mlv_dump_settings/EXPCOMP) do set expcomp=%%Y) 2>nul
(for /f "delims== tokens=1" %%E in (bin/mlv_dump_settings/NOAUDIO) do set noaudio=%%E) 2>nul

if exist darkframes (
cd darkframes
if not exist "darkf_ORIG" mkdir darkf_ORIG
::Will create averaged darkframes in created folder and move the originals into darkf_ORIG folder
for %%a in ( *.MLV ) do (
(Echo "%%a" | find /I "avg_" 1>NUL) || (
for /f "tokens=2 delims=;= " %%I in ('mlv_dump.exe -v %%~na.MLV ^| find "ISO:"') do (   
for /f "tokens=2 delims=;= " %%B in ('mlv_dump.exe -v %%~na.MLV ^| find "bits_per_pixel"') do (
for /f "tokens=3 delims=;= " %%C in ('mlv_dump.exe -v %%~na.MLV ^| find "FPS   "') do (
for /f "tokens=2 delims=;= " %%R in ('mlv_dump.exe -v %%~na.MLV ^| find "Res:"') do (
for /f "tokens=5 delims='= " %%N in ('mlv_dump.exe -v %%~na.MLV ^| find "Camera "') do (
mlv_dump.exe -o "darkf_ORIG/avg_%%Bbit_%%N_%%C_%%Rres_%%Iiso.MLV" -a %%~na.MLV
if not exist "darkf_ORIG/%%~na.MLV" move %%~na.MLV darkf_ORIG
) ) ) ) )
cd darkf_ORIG
del avg_*.wav
move avg_*.MLV ..\
cd..
) )
cd..
@echo off
::if matched with darkframes in darkframe folder
cd /d "%path_in%"
for %%a in ( *.MLV ) do (
for /f "tokens=2 delims=;= " %%I in ('mlv_dump.exe -v %%~na.MLV ^| find "ISO:"') do (   
for /f "tokens=2 delims=;= " %%B in ('mlv_dump.exe -v %%~na.MLV ^| find "bits_per_pixel"') do (
for /f "tokens=3 delims=;= " %%C in ('mlv_dump.exe -v %%~na.MLV ^| find "FPS   "') do (
for /f "tokens=2 delims=;= " %%R in ('mlv_dump.exe -v %%~na.MLV ^| find "Res:"') do (
for /f "tokens=5 delims='= " %%N in ('mlv_dump.exe -v %%~na.MLV ^| find "Camera "') do (
for /f "tokens=2 delims=;= " %%P in ('mlv_dump.exe -v %%~na.MLV ^| find "Date"') do (
if exist "%path_base%"/bin/mlv_dump_settings/path_out (
md "%path_out%/%%~na_1_%%P_0001_C0000" 2>nul )&(
if exist "%path_base%/darkframes/avg_%%Bbit_%%N_%%C_%%Rres_%%Iiso.MLV" (
cd /d "%path_base%"/bin 
mlv_dump.exe -o "%path_out%/%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_" --dng --relaxed %cmprs% %VS% %VS_F% %cs2% %cs3% %cs5% %NOPIX% %FIXSPIX% %BLACK% %WHITE% %decmprs% %bdepth% %pass% %unpack% %patnoise% %expcomp% %noaudio% "%path_in%/%%~na.MLV" -s "%path_base%/darkframes/avg_%%Bbit_%%N_%%C_%%Rres_%%Iiso.MLV"
cd /d "%path_in%"
if not exist "ORIGINALS" mkdir ORIGINALS
if not exist "ORIGINALS/%%~na.MLV" move %%~na.MLV ORIGINALS
if not exist "ORIGINALS/%%~na.M*" move %path_in%/%%~na.M* ORIGINALS
) else (
cd /d "%path_base%"/bin
mlv_dump.exe -o "%path_out%/%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_" --dng --relaxed %cmprs% %VS% %VS_F% %cs2% %cs3% %cs5% %NOPIX% %FIXSPIX% %BLACK% %WHITE% %decmprs% %bdepth% %pass% %unpack% %patnoise% %expcomp% %noaudio% "%path_in%/%%~na.MLV"
if exist "%path_out%"/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" rename "%path_out%"/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" "%%~na_1_%%P_0001_C0000.wav"
cd /d %path_in%
if not exist "ORIGINALS" mkdir ORIGINALS
if not exist "ORIGINALS/%%~na.MLV" move %%~na.MLV ORIGINALS
if not exist "ORIGINALS/%%~na.M*" move %path_in%/%%~na.M* ORIGINALS
)
) else (
md "%%~na_1_%%P_0001_C0000" 2>nul )&(
if exist "%path_base%/darkframes/avg_%%Bbit_%%N_%%C_%%Rres_%%Iiso.MLV" (
cd /d "%path_base%"/bin 
mlv_dump.exe -o "%path_in%/%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_" --dng --relaxed %cmprs% %VS% %VS_F% %cs2% %cs3% %cs5% %NOPIX% %FIXSPIX% %BLACK% %WHITE% %decmprs% %bdepth% %pass% %unpack% %patnoise% %expcomp% %noaudio% "%path_in%/%%~na.MLV" -s "%path_base%/darkframes/avg_%%Bbit_%%N_%%C_%%Rres_%%Iiso.MLV"
) else (
cd /d "%path_base%"/bin
mlv_dump.exe -o "%path_in%/%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_" --dng --relaxed %cmprs% %VS% %VS_F% %cs2% %cs3% %cs5% %NOPIX% %FIXSPIX% %BLACK% %WHITE% %decmprs% %bdepth% %pass% %unpack% %patnoise% %expcomp% %noaudio% "%path_in%/%%~na.MLV" ) )&(
if exist "%path_in%"/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" rename "%path_in%"/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" "%%~na_1_%%P_0001_C0000.wav" )&(
cd /d "%path_in%"
if not exist "ORIGINALS" mkdir ORIGINALS
if not exist "ORIGINALS/%%~na.MLV" move %%~na.MLV ORIGINALS )&(
if not exist "ORIGINALS/%%~na.M*" move %%~na.M* ORIGINALS ) )
) ) ) ) ) )
) else (
::regular processing no darkframes
@echo off
cd /d "%path_in%"/
for %%a in ( *.MLV ) do (
for /f "tokens=2 delims=;= " %%P in ('mlv_dump.exe -v %%~na.MLV ^| find "Date"') do (
md "%path_out%/%%~na_1_%%P_0001_C0000" 2>nul )&(
cd /d "%path_base%"/bin
if exist mlv_dump_settings/path_out (
mlv_dump.exe -o "%path_out%/%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_" --dng --relaxed %cmprs% %VS% %VS_F% %cs2% %cs3% %cs5% %NOPIX% %FIXSPIX% %BLACK% %WHITE% %decmprs% %bdepth% %pass% %unpack% %patnoise% %expcomp% %noaudio% "%path_in%/%%~na.MLV" 
if exist "%path_out%"/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" rename "%path_out%"/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" "%%~na_1_%%P_0001_C0000.wav"
cd /d %path_in%/
if not exist "ORIGINALS" mkdir ORIGINALS
if not exist "ORIGINALS/%%~na.MLV" move %%~na.MLV ORIGINALS
if not exist "ORIGINALS/%%~na.M*" move %path_in%/%%~na.M* ORIGINALS
) else (
md "%path_in%/%%~na_1_%%P_0001_C0000"
mlv_dump.exe -o "%path_in%/%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_" --dng --relaxed %cmprs% %VS% %VS_F% %cs2% %cs3% %cs5% %NOPIX% %FIXSPIX% %BLACK% %WHITE% %decmprs% %bdepth% %pass% %unpack% %patnoise% %expcomp% %noaudio% "%path_in%/%%~na.MLV" )&(
if exist %path_in%/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" rename %path_in%/"%%~na_1_%%P_0001_C0000\%%~na_1_%%P_0001_C0000_.wav" "%%~na_1_%%P_0001_C0000.wav" )&(
cd /d %path_in%/
if not exist "ORIGINALS" mkdir ORIGINALS
if not exist "ORIGINALS/%%~na.MLV" move %%~na.MLV ORIGINALS )&(
if not exist "ORIGINALS/%%~na.M*" move %path_in%/%%~na.M* ORIGINALS ) )
) )
cls
GOTO MENU

:colorEcho
echo off
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1i



:: Copyright (C) 2017 Danne
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 20, 2017, 06:25:14 PM
Great. I add it and put up a new version. Didn´t think anybody was using it but there you go :).

Did you put it in all the way? Can´t see it in mlv_dump alternatives at the bottom. Will check deeper and fix stuff if needed.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 20, 2017, 06:53:09 PM
Added --force-stripes option to the script. Option (6). Thanks motbathaiphoto.
https://bitbucket.org/Dannephoto/batch_mlv/commits/04d3d5704f3e52f12ef086258cd3d0c82a85e3e9

Batch_mlv
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: mothaibaphoto on August 21, 2017, 08:47:41 AM
I used this script because of experimenting with black frames and you implemented automatic selection of appropriate BF. But need to say that all that shell scripting is real pain. It need a dozen edits to just add one parameter. And all that "Goto" hell to understand. And for you to rearrange that parameter to proper position it takes no less hassle.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 21, 2017, 09:28:35 AM
Be my guest and do something more simple and user friendly. I follow the syntax of cmd.exe. And it works, so I can't really see the problem here.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on September 04, 2017, 05:23:01 PM
I have some Vanilla MLV's that I want to reconvert with DF Averaging. Do I have to record the DF MLV's in Uncompressed 14 bit? Or will Lossless 14 bit DF MLV work with Uncompressed?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on September 04, 2017, 05:34:38 PM
I have no idea. Doesn´t hurt to test :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on September 04, 2017, 06:03:03 PM
Hoped you knew so I didn't have to ;)

But I am also asking because I could imagine that the script will accept both Lossless and Uncompressed, but I am wondering if a Lossless DF-MLV will be as effective to an Uncompressed MLV as an Uncompressed DF would be?

Would be easier if I could play the MLV in MLVrawviewer and compare to the DNG output. So I have to run three times, one without DF, one with Lossless DF and one with Uncom DF. I suppose it is the best method to find out?

Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on September 04, 2017, 07:50:38 PM
I differ 10/12/14bit but didn´t really check into lossless against non compressed in combination. If needed I could probably differ that out as well. It should be easy to check if it works or not. I imagine corruption in image if not working. Just guessing  :P
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on October 29, 2017, 06:38:44 PM
Just found out that I can leave all the different Resolutions of Darkframes e.g. 1330p, 1080p, 950p, 818p etc in the Darkframe folder.. For some reason I thought I had to only keep the suitable resolutions in the darkframe folder. So I have been moving and removing Darkframes from the Darkframe folder depending on the resolutions I shot in.

So for anyone else's information: just fill the folder up with all the Darkframe resolutions you will usually shoot with or all resolutions, if you have time.

@Danne,

I still love this "app" ;)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on October 29, 2017, 06:50:12 PM
Hehe, yes, that's how it'designed. Keep a stash and matching files are used and otherwise not :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on November 30, 2017, 10:23:13 AM
After reports from Kharak about 700D files not responding well to focus pixel fixing I decided to add Bouncyball´s latest version of mlv_dump on steroids and also added a .fpm list which works with the 700D file. Thanks again dfort, Bouncyball for updating cams and focus pixel fix handling. Changes only added to this version:

batch_mlv_in-out.zip
https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: JADURCA on December 21, 2017, 04:02:09 PM
Thanks @Danne, and everyone involved for making this such an amazing app! Just downloaded it and testing with some music video footage 3x3 1080p@60fps we filmed. Some are at ISO 12800 and Darkframes automation is such a great tool for this case, makes a notable difference. IMO darkframes make noise look like organic.

Can someone please tell me, what really does command 13, fix pattern noise?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on December 21, 2017, 04:05:21 PM
It's experimental code from a1ex. As it says it will reduce pattern noise when working but not always working as expected. Slows down processing.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: lureb74 on December 21, 2017, 04:13:32 PM
I have a couple of silly question... :)
Since this batch works fine with latest bleeding edge nightly builds crop_rec lossless compressed mlv's, why the mlv_dump.exe file included is so little compared with the one released in the crop_rec_4k branch?
Exactly, 221kb vs 754kb!!
There are some more features in the (more recent) biggest one?

And also, in last version of the batch there's no "darkframes" folder included. Does it means I just have to create it in the same path as before in order to use the darkframe subtraction workflow?
Thank you guys, you're so clever!!! I'm too dummy to help development with coding, I simply can't understand it! XD
Just keep testing, testing, testing.....
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: JADURCA on December 21, 2017, 04:28:30 PM
Quote from: lureb74 on December 21, 2017, 04:13:32 PM
And also, in last version of the batch there's no "darkframes" folder included. Does it means I just have to create it in the same path as before in order to use the darkframe subtraction workflow?
Thank you guys, you're so clever!!! I'm too dummy to help development with coding, I simply can't understand it! XD
Just keep testing, testing, testing.....

Just create a folder named Darkframes and throw there 5 seconds of MLV with different ISO 1600 and up, all frame rates and resolutions you usually use.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: JADURCA on December 21, 2017, 04:32:34 PM
Quote from: Danne on December 21, 2017, 04:05:21 PM
It's experimental code from a1ex. As it says it will reduce pattern noise when working but not always working as expected. Slows down processing.

Thanks for your quick response! I'm just processing and testing with code 11 and 13 at the same time, to see if it cleans some ISO 12800 footage I'm having problems with.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on December 21, 2017, 05:44:28 PM
Do you have a sample MLV file for testing?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: JADURCA on December 22, 2017, 12:17:41 AM
Yes! Just uploaded it for you! Here https://we.tl/tZG0o2VfQy (MLV and Darkframe included "if necessary")

Found that command 11, fixed red dots on overexposure zones using like a patch clone pattern. For me it did the job because red dots are more noticeable than this patches. Command 13 cleaned DNGs but introduced other dots, think like blue dots.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on December 29, 2017, 10:52:08 AM
@lureb74
QuoteExactly, 221kb vs 754kb!!
There are some more features in the (more recent) biggest one?
I use strip to create a smaller version. Same features. We are talking about mlv_dump on steroids now...

QuoteAnd also, in last version of the batch there's no "darkframes" folder included. Does it means I just have to create it in the same path as before in order to use the darkframe subtraction workflow?
Added back the darkframes folder. Thanks
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: RTI on August 29, 2018, 08:15:10 PM
Doesn't work with the latest 22 July mlv_dump (canon 5D3 1.2.3 4k lossless thread)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 29, 2018, 09:20:48 PM
What happens? Havn't updated this for a while.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: mothaibaphoto on September 07, 2018, 02:40:31 PM
Need to warn that this batch erases all the mlv files but keep only last one renamed to "ORIGINALS"
if executed on media without free space(card recorded till last byte).
It happens because it unsuccessfully tries to create "ORIGINALS" folder
and than commands to move to that folder
just renames files with same name, while the only last one remains :)
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on September 07, 2018, 04:37:44 PM
I didn't know but I never extract files on cf card or filled up my drive. If you or anyone else could create a check trap preventing this it would be awesome.
Maybe it could look for the ORIGINALS folder and if not existing simply exit script. Sorry but got to little time atm.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on September 08, 2018, 01:03:55 AM
Thanks for the heads-up. I do a lot of CF to drive conversion.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on February 07, 2019, 09:01:29 PM
@Danne

I still use this script.

Just wondering if I should be updating the mlv_dump? and if so, to which one?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on February 07, 2019, 09:02:22 PM
Is there any problem with it right now?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on February 08, 2019, 03:23:00 PM
Yes, some lossless 14 bit MLV's (22nd july 2018) when converted to lj92 dng's do not contain sound. The .wav file always comes out but sometimes its only 1 kb.

I tried doing same conversion but to uncompressed dng's and the audio was there.

I should have converted the MLV's one more time to lj92 before i deleted them. To see if it happened randomly or if its the same files affected.

I have some other lossless mlv's i can do a few runs on.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on May 04, 2019, 01:44:50 AM
Newest version of Batch MLV-in-Out-Serial https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip

Danne added:

option [18] (--skip-xref) Use with Lossless MLV to extract all audio. Just leave it ON always, basically.

Under the hood:

Camera Serial Number identification for Darkframe Averaging of MLV's. In case you have 2x 5D MK III you dont need to add and remove Darkframes from your DF folder according to what camera you are converting footage from. You do however have to add all the Original Darkframe MLV's a new. Because now the Darkframes will have your camera serial number added. Without the Serial Number on the DF's, it wont work.

Thanks again, Danne.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on May 04, 2019, 08:00:58 AM
Nice.
One way to use the old darkframes is to manually paste the camera serial to the old files. Think that is the easiest way. It could be automated in script too but seems an unneccessary step.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on March 13, 2020, 11:49:21 PM
This is just a heads up!

Yesterday I got an error message I had not seen before on Batch_mlv. It's a bit of user error combined with design flaw.

Yesterday I found out that I have forgotten to bring my card reader, luckily I found my old Sandisk card reader deep in my laptop bag. The Sandisk reader does not work properly, as it will not finish any Copying or processes past 99.9%. But I'd atleast get 99% of my cards and I'd have to deal with the last 0.1% somewhen.

The bug is in its essence when you have the Output Folder Location set to a drive that is no longer connected to the computer. You would ofcourse not do this on purpose, but when you open Batch_MLV it prompts the window for your Input folder Location, but in the background the Output Location is by default set to the location of your previous conversion process, so if you were exporting to a T5 SSD and then disconnect it and few days later want to export to another location, this bug will most likely occur.
So no matter what Input folder you set, Windows prompts an error message saying "There is no disk in the selected drive". This lead me to believe my Sandisk reader had gone completely bananas. Bought another Card Reader today and experienced same issue and by this time I was thinking my cards had become corrupt.

Not until I noticed the Output Folder was set to a Drive Location not connected anymore.. I changed the Output and set the Input and it was all good.

TL;DR

If you get "There is no disk in the Drive" error message, check that your Output Locations is set to a Drive that is connected or "exists" for that matter.

Just a heads up.

Thanks again Danne for this really nice tool.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on March 14, 2020, 03:06:08 PM
There should be a watch guard erasing the path file if not existing. Been long since I worked in cmd environment so I will most likely not update this myself but anyone with some basic cmd knowledge could fix this. Then again, the error message seems doing this already.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 16, 2021, 02:35:16 PM
The link I posted is dead, do you still have it Danne?
Quote from: Kharak on May 04, 2019, 01:44:50 AM
Newest version of Batch MLV-in-Out-Serial https://bitbucket.org/Dannephoto/batch_mlv/downloads/batch_mlv_in-out.zip

I do have the batch script on another machine. So I could send it to to you at one point.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Walter Schulz on August 16, 2021, 03:33:58 PM
Feed link into Wayback Machine https://archive.org
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 16, 2021, 06:08:29 PM
Thanks for the relink Walter. I´ll check if I can find any back up myself for this script and maybe a reupload at some point.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 16, 2021, 09:27:12 PM
Thank you, I do have the latest version on my other machine. I can send it to you tomorrow.
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Danne on August 17, 2021, 12:33:54 AM
I think wayback machine had the latest? Could you verify against your version?
Title: Re: [WINDOWS] simple right clic menu mlv dump batch
Post by: Kharak on August 18, 2021, 12:00:47 PM
Looking at size, the archived version and my version they match to the byte.

I don't have mlv's from both cams at the moment, but I converted some mlv's with serial numbered DF and it worked.

I assume that the older Pre-Serial number version would not be able to do the darkframe averaging, with Serial DF's.

So yes, same version.