Magic Lantern Forum

Using Magic Lantern => Raw Video => Raw Video Postprocessing => Topic started by: g3gg0 on September 22, 2013, 01:25:04 AM

Title: [deprecated] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on September 22, 2013, 01:25:04 AM
here (http://magiclantern.fm/modules/modules/MLVViewSharp.zip/MLVViewSharp.zip) is a _very_ simple and hackish MLV viewer to check your footage
it is also available as an OSX-App (http://magiclantern.fm/modules/modules/MLVBrowseSharp_OSX.zip/MLVBrowseSharp_OSX.zip)


it will read uncompressed MLV files and display the frames with just a few frames per second.
this tool was programmed in C# on windows, but it uses nothing windows-specific, so it should run on any OS using mono. (positive reports from linux and mac os x)

please remind:
 - these tools are just a PROOF OF CONCEPT
 - it is not meant as productional tool
 - i used it to check what is necessary to decode and view RAW/MLV files, its just my playground
 - it has bugs!
 - it will most likely not be continued
 - i shared it as a last resort tool in case you need something like that

MLVViewSharp:
(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fupload.g3gg0.de%2Fpub_files%2Fe76d16212357343b54eeac44f2e96002%2FMLV_Viewer.png&hash=1225904ac7c31aada7f7cb5d507b0e97)

notes:
 - just drop the .mlv or .m00, .raw, .r01, ... file into the program window
 - shows the video in full res using bilinear demosaicing
 - other debayering methods (e.g. fast ones) are available (right click onto image)
 - ramps exposure up/down if there is under/overexposure (so it may not be accurate enough for some of you)
 - has no white balance algorithm
 - just tested on 5D3, other cameras have different bayer patterns - didnt check them yet
 - it uses the coefficients from the raw info block, so color weighting should be correct caused trouble, disabled
 - the scene is scaled to TV black and white levels (16..235) for a better looking playback
 - updated to work with files that have less bpp than 14 (e.g. when used mlv_dump to reduce size)
 - supports both .mlv and old .raw file format

it has a white balancing feature:
 - press and hold SHIFT
 - press LEFT mouse button
 - image will get displayed 1:1
 - move to where you have gray level
 - release LEFT mouse button
it will pick a 8x8 pixel area and use this as white balance reference after debayering and kelvin correction.

camera color matrices are also used now, which should result in better colors

to disable all correction post processing:
 - right click to get context menu
 - there is an option to disable color correction

MLVBrowseSharp:
(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fupload.g3gg0.de%2Fpub_files%2F1d1e01133accbd4e07d2ba3d147927a9%2Fmlvbrowser.png&hash=8eda9c9393e02c1d3623cc437a3eb271)

 - just select the folder to browse on the left pane
 - you can select multiple files on the right pane as you are used to (CTRL click etc)
 - the only thing you can do yet, is RIGHT CLICK and choose anything you want
 - for opening using MLV Viewer, please asign the .mlv extension (http://support.microsoft.com/kb/307859) to MLVViewSharp.exe
 - for every file visible, it creates a thread, so this might overload your computer when you have several hundreds of files in one directory (i hope you sort your footage better than this...)
 - selected files play back in maximum speed, unselected play slower (1 fps)
 - selecting a file causes it to play back from the beginning
 - you cannot set WB or debayering in the preview window (its simple to add, but i dont understand why someone would need that)

 - when a file is selected, you can CLICK and HOLD the left mouse button on the icon and DRAG left and right to seek in the file
Title: Re: [experimental] MLV Player to view .mlv files on windows (C#)
Post by: RenatoPhoto on September 22, 2013, 01:34:10 AM
Than must be you playing with EOSM... ;)  Nice looking kid! ;D

The first version seem to run a bit faster..
Not much change in the colors from previous version.  The brightness change seem a bit slower now.
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 22, 2013, 01:35:47 AM
right. here the notes from the other thread:

now it supports resizing and different debayering algorithms.
parts of it are faster now, others are slower.
in the end its about the same speed as the version before ;)

okay maybe it is a bit slower now - default debayering is full size bilinear filtering.
do a right click and select half/quarter etc resolution. then it will be faster ;)
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: RenatoPhoto on September 22, 2013, 02:25:34 AM
All functions tested well.. 1/2 is pretty good compromise between speed and resolution.
In Bilinear mode with windows 7 64 bit 4 cores CPU at 20% max at 45%.  Any way to speed it up?
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 22, 2013, 02:35:40 AM
Any way to speed it up?

yes, not to use C#, but native code and using accelerated 2D.
-> not the focus for this test tool
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: RenatoPhoto on September 22, 2013, 02:49:43 AM
I think it is a great tool.  No post processing required to review the shots and also saves a lot of space needed for all the dngs etc.
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 22, 2013, 03:14:52 AM
4 cores CPU at 20% max at 45%

btw - the CPU load for a task is scaled to the number of cores.
hyperthreading and 4 cores with one core fully utilized gives you 12.5% CPU load for the thread.
without HT the maximum is 25%.
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: Andy600 on September 22, 2013, 12:32:55 PM
Just tried the update with mlv recorded on the 50D. Everything is green ;D and much slower playback. The original player worked well.
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 22, 2013, 04:44:43 PM
Can you dump one frame into a separate frame using 'mlv_dump -f1 - o out.mlv in.mlv' and upload using upload.g3gg0.de?

The default demosaic algorithm is bilinear.  Just right click and select half res to have faster decoding.
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: Andy600 on September 22, 2013, 05:07:17 PM
Uploaded. It should be there now :)
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: Doyle4 on September 22, 2013, 05:54:56 PM
Possible to download the mlv raw module anywhere for latest nightly on 600d/5d2?

Thanks.
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 22, 2013, 10:07:02 PM
i changed these things:

 - disabled camera matrix from raw info, as i dont really understand how to use it
 - added saturation code and pushed colors a bit
 - changed code to use LUT which is a bit faster

so the 50D footage should work. just the colors might not look perfect
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: maxotics on September 22, 2013, 11:26:04 PM
Hi, do you have this as open-source?  Thanks!
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 22, 2013, 11:51:35 PM
not uploaded yet.
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: maxotics on September 23, 2013, 12:17:52 AM
Thanks g3gg0.  Please let me know when it is.  No rush, of course.  I think the MLV format has tons of potential and would love to help out.  Naturally, I'd like to use it with my 50D. 

Another thing that is driving me nuts is the focus pixel problem with the EOS-M (if it can shoot MLV? reliably).  I don't have the time to learn Java and fork PDR.  I'm too old for C :)  C# I can do (barely).  I'm hoping through your code I can figure out some solutions for that. 

Or, maybe I can help you with some domestic UI stuff.  C# is not beneath me :)
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 23, 2013, 01:07:50 AM
focus pixel problem?
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: maxotics on September 23, 2013, 02:39:51 AM
The EOS-M, and other new Canon cameras that use the new hybrid focus system, set aside some pixels for focus.  When ML captures the RAW it captures these pixel values which usually appear as pink dots (because they are mostly red-pixels de-bayered).  Anyway, PDR uses start/end locations, with offsets, to go through a RAW or DNG file to remove them (before bebayering).  Unfortunately, I still see these pixels in my videos, the green and blue ones.  I think I know what the reasons are (there are more pixels than PDR takes care of), but it's a complicated subject and the original PDR devs are not around, though Mixer2 is coming back and Rewind is pretty knowledgeable. 

I believe a better strategy is to use a static sensor map, calibrate it to the crop, or whatever section of the sensor is used, and go through and "deaden" these pixels if they seem to be fired, which also seems to only happen if the camera is focused on the area or there is no detail (over-exposed). 

I started trying to do this through .NET, but there is no RAW library to make it easy for me.  Even DNGs/TIFFs are not easy.  So I'm hoping that by looking at what you did I may be able to modify it to follow this strategy.  Another great thing about MLV is you'll have the crop mode, camera, etc., stuff you need to know before you apply the routine for deadening the focus pixels.

As more Canon cameras are hacked, and the newer models come out, I believe this problem will become more pronounced and I won't seem so crazy to keep going on and on about it :)



Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 23, 2013, 08:49:07 PM
ok, uploaded a version of the viewer that supports LEGACY .RAW files.
so it is useful for the non-mlv builds too ;)
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: g3gg0 on September 23, 2013, 08:57:16 PM
I believe a better strategy is to use a static sensor map, calibrate it to the crop, or whatever section of the sensor is used, and go through and "deaden" these pixels if they seem to be fired, which also seems to only happen if the camera is focused on the area or there is no detail (over-exposed). 

easy to do. i can add support to mlv_dump.
the only question is how to specify the map.
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: maxotics on September 23, 2013, 09:47:59 PM
Found source, thanks.  Will work on static location file.  If you need something specific let me know. 
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: arrinkiiii on September 24, 2013, 12:15:07 AM


"ramps exposure up/down if there is under/overexposure (so it may not be accurate enough for some of you)"

-It's not possible to have a check/uncheck box or in the right key mouse to have te possibility to enable/unable the ramps exposure?

 
Title: Re: [experimental] MLV Viewer to view .mlv files on windows (C#)
Post by: RenatoPhoto on September 24, 2013, 05:01:50 PM
ok, uploaded a version of the viewer that supports LEGACY .RAW files.
so it is useful for the non-mlv builds too ;)
Ohh Yes!  That is sweet!  I tested some raw files, worker very well..
Thank you!
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on September 25, 2013, 01:38:27 AM
Just found that it crashes at 1/8 resolution.. 

Again this is a great tool for quick checking of the video files.
It could be even better if it ran a bit faster, although the slider works fantastic so it is easy to just skip forward!!  <-- Congrats nicely done!!
It could be a bit better if the contrast could be lowered a bit.

Could not get proper playback for multiple spanned raw files, xxx.raw and xxx.r00 and xxx.r01.  It worked well after they got joined but if I play any of the  pieces got lots of pink frames, and off sequence playback.
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bart on September 25, 2013, 09:02:14 AM
Very nice work! Easy quick review now saves so much time
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: tecgen on September 27, 2013, 11:33:36 AM
Nice work. Can you please provide your C# source code? Maybe we can port it to Java and run it on OSX, Linux and Windows.

best regards
Marco
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: tecgen on September 27, 2013, 12:52:18 PM
Hi g3gg0,

Quote
...it uses nothing windows-specific, so it should run on any OS using mono.

I just want you to know, I tried to start the application with the latest mono version from www.go-mono.com on OSX 10.8.4. It hangs and no window is visible.

On OSX 10.8.4 you need to install mono (www.go-mono.com) and (http://xquartz.macosforge.org/trac/wiki). After the installation, you need to log off and log in again. Then start XQuartz and inside the application xterm. In the terminal (xterm) go to the path where you've downloaded g3gg0's application and type mono mlv_view_sharp.exe. Now the window of the MLV Viewer should appear.

best regards,
Marco
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on October 03, 2013, 07:50:44 PM
runs in Linux too using mono

Edgar
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: reddeercity on October 28, 2013, 02:22:48 AM
Just notice about the viewer and boy it sure save me a-lot of time.
Ran it under Windows 2008 Server R2 Enterprise, (it my PC Video Workstation)
Works very well, had  raw file on a Esata Drive viewed files @ 1/2 resolutions.
then converted the files i wanted to use. I used the first version of raw.
I had 160 GB to review.
That's a Must have tool !
thanks g3gg0, For the MLV viewer  :D
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on October 28, 2013, 11:34:44 AM
you are welcome :)
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Levinson on November 02, 2013, 07:39:40 AM
Excellent - thank you G3gg0!  :)

would it be too much to ask for a way to lock the exposure?

regards

Lev
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 02, 2013, 11:04:46 AM

would it be too much to ask for a way to lock the exposure?


That would be fine, indeed. Maybe even with a little slider for manual exposure  :)
I would love such a possibility, because I cannot use mlv_viewer for my recordings of the moon and of the planets (jupiter or saturn) And viewing recordings of the ISS needs a locked exposure too.

Edgar
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 02, 2013, 04:28:13 PM
ok will add
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 02, 2013, 05:10:03 PM
updated: http://upload.g3gg0.de/pub_files/22126d3d0d9320097882049969b81de4/MLVViewSharp.exe

on the right you can choose exposure. center position is for auto-exposure (see tooltip when scrolling).
this is not lightroom where you can expect 99.99% exact results, but i hope i didnt do it totally wrong.

can you check if my EV correction is correct or at least close to reality?


btw, you can now drag MLV files onto the program icon to start and play back directly.
it will also most likely work as default application now.
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: maxotics on November 02, 2013, 05:10:25 PM
Hi g3gg0.  Again, thanks for making public your MLV viewer.  I'm running up against a problem that I hope you can help me with.

How are RAW pixel values saved to the RAW binary stream in the camera?  How can we read/write them?

I'm using this code of your to get pixel values from the RAW data.  The comments are mine.  However, I get lost in all the bit-wise arithmetic.

Code: [Select]
private unsafe static ushort BitExtract(byte* src, int offset, int position, int depth)
        {
           
            // src is a frame
            // offset is starts as 0, but is incremented by pitch 2,240 after every line of x's
            // int position is x
            // depth is usually 14

            // bpp could easily be hardcoded in function at 14bits
            // BitExtract(byte* src, int offset, int position, int depth)
            // dest[y, x] = BitExtract(pSrc, pos, x, bpp);

            // let's pretend x is 5, which would start it in the 5 x 14 = 70th bit or (8.75) 9th byte
            int value = 0;
            int src_pos = position * depth / 16; // or 5 * 14 / 16 = 4.37
            // bits_to_left = ((14 * 5) - (16 * 4.37)) % 16 =
            // 70 - 29.92 = .08
            int bits_to_left = ((depth * position) - (16 * src_pos)) % 16;
            // 16 - 14 - 0 = 2
            int shift_right = 16 - depth - bits_to_left;

            // 0 + 2 * 4.37 = 8.74
            int byteNum = offset + 2 * src_pos;

            // src[8] OR src[9]
            value = (int)src[byteNum] | (((int)src[byteNum + 1]) << 8);

            if (shift_right >= 0)
            {
                value >>= shift_right;
            }
            else
            {
                int val2 = (int)src[byteNum + 2] | (((int)src[byteNum + 3]) << 8);

                value <<= -shift_right;
                value |= val2 >> (16 + shift_right);
            }

            value &= (1 << depth) - 1;

            return (ushort)value;
        }


To write pixel values back I created this, which may be slow, but I can understand it.  I assumed, which is not working ;) for me, that I could just write each pixel's 14-bit value into the binary stream sequentially.  A1ex has tried to help me, but I just don't get it.  How you can pad anything and not run over the buffer.

Code: [Select]
// We want frame size * 14 bits bit array
                // First create boolean template for our bitarray
                bool[] framebool = new bool[Footer.xRes * Footer.yRes * 14];
                // Create BitArray from the array.
            BitArray framebits = new BitArray(framebool);
               
                int frameBitCount = 0;
                //int pixelbitpos = 0;

                // Not replace these bits with each of our 14 bit raw pixel values
                for (int x = 0; x < Footer.xRes; x ++)
                {
                    for (int y = 0; y < Footer.yRes; y++)
                    {
                        // convert our pixel value to a bitarray representation of 0s and 1s
                        //BitArray b = new BitArray(14); //
                        // We only want the 14bits, so create 14bit container

                        //pixelbitpos = 0; // will represent each of 14 bits of number that we write
                        string s = Convert.ToString((ushort)PixelData[y, x], 2);
                        s = s.PadLeft(14, '0');
                        //bool[] bits = new bool[14];

                        for (int bt = 0; bt < 14; bt++)
                        {
                            if (s[bt] == '1')
                            {
                                framebits[frameBitCount] = true;
                            }
                            else
                            {
                                framebits[frameBitCount] = false;
                            }
                            frameBitCount++; // advance to next bit in frame
                        }
                       
                        //bits.Reverse(); // may need
                    }
                }

                // We now need to write all the bits of our frame into bytes
                byte[] framebytes = new byte[framebits.Length / 8]; // + (framebits.Length % 8 == 0 ? 0 : 1)];
                framebits.CopyTo(framebytes,0);
               
                                // and write that frame into our copy of the RAW file
                // and shot that frame
                FileStream writeStream = File.OpenWrite(FileName.ToLower().Replace(".raw", "nodots.raw"));
                BinaryWriter writer = new BinaryWriter(writeStream);


Any help would be greatly appreciated and I'm sure it would help anyone else trying to get involved in this stuff.  THANKS!
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 03, 2013, 11:29:44 AM
Can someone make this thread sticky, please?

Edgar

edit:
manual exposure works fine. ThankYou for adding.

Edgar
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 04, 2013, 01:31:43 AM
http://upload.g3gg0.de/pub_files/5e4147a7af9aa0191050fcf828a05c04/MLVViewSharp.exe

it has a white balancing feature:
 - press and hold SHIFT
 - press LEFT mouse button
 - image will get displayed 1:1
 - move to where you have gray level
 - release LEFT mouse button
it will pick a 8x8 pixel area and use this as white balance reference.
known bug: when switching between debayer algorithms, you will have a green cast - just set WB again.

camera color matrices are also used now, which should result in better colors

to disable all correction post processing:
 - right click to get context menu
 - there is an option to disable color correction
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: maxotics on November 04, 2013, 01:51:56 AM
delete
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on November 04, 2013, 02:03:04 AM
known bug: when switching between debayer algorithms, you will have a green cast - just set WB again.
Or select that same algorithm and the color will be corrected... Double selection cures the bug.
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 05, 2013, 01:18:36 AM
fixed some weird behavior regarding color correction and added simple highlight recovery. (non-linear colorspace mapping)
a bit slower, but you can disable it via right clicking.
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 05, 2013, 01:19:55 AM
Any help would be greatly appreciated and I'm sure it would help anyone else trying to get involved in this stuff.  THANKS!
i am not sure what i could help there.
you want a function to write back pixels in the raw data?
Title: Re: [experimental] MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: maxotics on November 05, 2013, 01:37:58 AM
i am not sure what i could help there.
you want a function to write back pixels in the raw data?

EDIT: Okay, finally got it working.  If you swap each byte, so it's 2,1,4,3,6,5 and read each 14bits you'll get each x,y value.  I'll post code later.  What I didn't realize is I was cycling x within y, instead of y within x.  Not knowing the expected format made debugging that a nightmare.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 06, 2013, 01:58:58 AM
updated download link again.
now it features a kelvin correction :)

this was complex indeed. as a reference if you are interested:
 - http://www.brucelindbloom.com/Eqn_ChromAdapt.html
 - http://www.brucelindbloom.com/Eqn_T_to_xy.html
 - http://www.brucelindbloom.com/Eqn_xyY_to_XYZ.html
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: maxotics on November 06, 2013, 02:42:41 AM
Hi g3gg0.  The Kelvin thing looks complex indeed.  Do you think the quality of the debayering is good in the MLV viewer, or needs to be fast and rough?  Are you planning on putting in any other debayering algos?  I ask because I'm going to try to take a feed from the viewer and create video from it.  I have it working now where I can write pixel data back to the RAW file. So again, thanks for posting the MLV viewer. 

I'm going to post a thread on this whole RAW pixel data subject, so the next guy doesn't go through what I went through.  Here is the code if you're curious.  At some point I hope to write a sister reader version, just for ease of use. 

Code: [Select]
// We want frame size * 14 bits bit array
                // First create boolean template for our bitarray
                bool[] framebool = new bool[(Footer.xRes * Footer.yRes * 14)];
                // Create BitArray from the array.
            BitArray framebits = new BitArray(framebool);
               
                int frameBitCount = 0;
               
                // For swaping bytes
                bool[] bitsbyte1 = new bool[8];

                // Not replace these bits with each of our 14 bit raw pixel values
                for (int y = 0; y < Footer.yRes; y ++)
                {
                    for (int x = 0; x < Footer.xRes; x++)
                    {
                        string s = Convert.ToString((ushort)PixelData[y, x], 2);
                        s = s.PadLeft(14, '0');

                        for (int bt = 0; bt < 14; bt++)
                        {
                            if (s[bt] == '1')
                            {
                                framebits[frameBitCount] = true;
                            }
                            else
                            {
                                framebits[frameBitCount] = false;
                            }
                         frameBitCount++; // advance to next bit in frame
                        }
                    }
                }

                // now swap each bye
                for (int s = 0; s < framebits.Length; s += 16)
                {
                    // save first byte
                    bitsbyte1[0] = framebits[s];
                    bitsbyte1[1] = framebits[s+1];
                    bitsbyte1[2] = framebits[s+2];
                    bitsbyte1[3] = framebits[s+3];
                    bitsbyte1[4] = framebits[s+4];
                    bitsbyte1[5] = framebits[s+5];
                    bitsbyte1[6] = framebits[s+6];
                    bitsbyte1[7] = framebits[s+7];

                    // Now swap second into first (odd)
                    framebits[s] = framebits[s + 15];
                    framebits[s + 1] = framebits[s + 14];
                    framebits[s + 2] = framebits[s + 13];
                    framebits[s + 3] = framebits[s + 12];
                    framebits[s + 4] = framebits[s + 11];
                    framebits[s + 5] = framebits[s + 10];
                    framebits[s + 6] = framebits[s + 9];
                    framebits[s + 7] = framebits[s + 8];
                   
                    // now write our save first byte into second (even)
                    framebits[s + 8] = bitsbyte1[7];
                    framebits[s + 9] = bitsbyte1[6];
                    framebits[s + 10] = bitsbyte1[5];
                    framebits[s + 11] = bitsbyte1[4];
                    framebits[s + 12] = bitsbyte1[3];
                    framebits[s + 13] = bitsbyte1[2];
                    framebits[s + 14] = bitsbyte1[1];
                    framebits[s + 15] = bitsbyte1[0];
                }

                // We now need to write all the bits of our frame into bytes
                byte[] framebytes = new byte[framebits.Length / 8 + (framebits.Length % 8 == 0 ? 0 : 1)];
                framebits.CopyTo(framebytes, 0);

                WriterTarget.BaseStream.Seek(Footer.frameSize * iFrameNumber, SeekOrigin.Begin);
                WriterTarget.Write(framebytes);

Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on November 06, 2013, 05:34:26 AM
Very nice improvement on the kelvin adjustments. Posting here to give thanks and to to track improvements.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on November 06, 2013, 01:35:09 PM
Nicer colors and features.  Thanks!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dsManning on November 10, 2013, 03:09:47 AM
Thank you so much :) Check focus from files off the card before dng conversion is such a time/space saver!

Got it running on my desktop workhorse running in parallels, and through mono on my 'in the field' laptop (a few years old and noticeably slower playback than my new Hackintosh desktop) but both are an amazing new tool to help optimize workflow.  Laptop on 1/4 with other features off is still good enough when scrubbing through to check for focus.  Desktop on 1/2 and messing with some colour features still plays back at a reasonable pace to give the thumbs up/down to a take.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 10, 2013, 09:55:19 PM
here a comparison chart.

left side: monitor showing SMPTE test bars as jpeg in browser.
right side: mlv recorded with 5D3 and displayed with MLV viewer.

i think the color fits quite well :)

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fupload.g3gg0.de%2Fpub_files%2F05cb8de5510805928a8073bb8711518c%2Fsmpte_test_bars_mlv.PNG&hash=17a5ad70403794c8f086c193ffd8943e)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: pilgrim on November 10, 2013, 11:20:31 PM
It's work well on Windows 7 64bit.  :)  Now I can clean the hard disk from low rating RAW easily.  :D  Big thanks.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: jose_ugs on November 11, 2013, 06:35:29 PM
A much needed viewer! 10x g3gg0
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: arrinkiiii on November 11, 2013, 07:05:11 PM

Many thanks =DD
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: kgv5 on November 11, 2013, 11:22:31 PM
Great app, thanks!
I was thinking, that maybe you g3gg0 or someone else in some time could make couple more functionalities like (i dont know if this is possible):

-when checking/viewing files straight from the SD/CF card or external HDD ability to mark files as "good" and "bad" and then copy only the good ones to main HDD (there could be dozens of files with similar names)
- or maybe somehow connect this viewer to dng extracting app like RAWanizer so just after watching the files one could select only some of them to make further dng extraction

However, it is huge a time saver as it is now  :D thanks again
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 11, 2013, 11:55:01 PM
even better.
i spent 4 hours with a bit of C# and windows forms and implemented "MLV Browser", a previewing
folder browser for Magic Lantern .raw and .mlv video files.

just download the package from the first post.

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fupload.g3gg0.de%2Fpub_files%2F1d1e01133accbd4e07d2ba3d147927a9%2Fmlvbrowser.png&hash=8eda9c9393e02c1d3623cc437a3eb271)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on November 12, 2013, 12:12:48 AM
wow, really nice! Ran it in virtual box. Very useful indeed. Thanks a lot g3ggO
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: kgv5 on November 12, 2013, 12:25:06 AM
damn, it is great!!

to make life even easier one can right click on the thumbnail, click "open with" and than choose mlv view sharp to view full screen.
thanks g3gg0

EDIT: does copy/paste already works?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 12, 2013, 12:34:55 AM
damn, it is great!!

to make life even easier one can right click on the thumbnail, click "open with" and than choose mlv view sharp to view full screen.
thanks g3gg0

yep, thats what i meant with default app handler in the main post.
but i already added doubleclicking - when multiple files were selected, only the *doubleclicked* item will get executed. not all.

EDIT: does copy/paste already works?

yep - the gui just wont update itself, you have to reselect the folder to update the icons
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on November 12, 2013, 12:37:20 AM
even better.
i spent 4 hours with a bit of C# and windows forms and implemented "MLV Browser", a previewing
folder browser for Magic Lantern .raw and .mlv video files.
I like it!  The browser gave me quite a jolt when all of the videos started playing at once  ;D ;D ;D
Great work and thanks for sharing!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 12, 2013, 12:37:54 AM
they could play faster, but that wont be that good for the responsiveness of your system ;)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on November 12, 2013, 12:45:54 AM
Found a bug!  When playing spanned files ie  xxx.raw and xxx.R00 I get corrupt views for the first third of the video then it gets corrected.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 12, 2013, 08:03:06 PM
Found a bug!  When playing spanned files ie  xxx.raw and xxx.R00 I get corrupt views for the first third of the video then it gets corrected.

can you redownload and test it?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 12, 2013, 08:22:46 PM
i added a new feature to seek within a video:
 - when a file is selected, you can CLICK and HOLD the left mouse button on the icon and DRAG left and right to seek in the file

just select a file (blue highlight)
click the left mouse button on the image icon and move the mouse a little bit left and right.
the file position is changed according to the mouse position.
left corner of the icon is frame 0, the right border is the file end.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: arrinkiiii on November 12, 2013, 08:37:55 PM

Very good indeed  :D I already can see it...

ML Browser + ML Viewer + MLV2Output = 1 GUI 


Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on November 12, 2013, 09:44:48 PM
Very, very useful. Will shorten workflow a lot. I noticed when dragging all the way to the right and pass the thumbnail it goes into "System.Indexoutof..." You,re probably aware.
Thanks!

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fs13.postimg.org%2Fkx4nag93n%2FSka_rmavbild_2013_11_12_kl_22_07_41.jpg&hash=0d488c0f463c48266b50cc97afd69633) (http://postimg.org/image/kx4nag93n/)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 12, 2013, 10:22:50 PM
Very, very useful. Will shorten workflow a lot. I noticed when dragging all the way to the right and pass the thumbnail it goes into "System.Indexoutof..." You,re probably aware.

nope, wasnt. thanks for reporting.
fixed, can you try?

also the doubleclick behavior is internally different, which should prevent crashes/hangs when using with mono.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on November 12, 2013, 10:43:38 PM
Works!
Important tools created. Really like the flow going from scrolling thumbs straight to the viewer doubleclicking. Both raw and mlv.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gerk.raisen on November 13, 2013, 10:39:07 AM
Hello,

I think a useful feature it's the ability to delete files from within the MLV Browser.
Often there are some files that you recognize as bad/wrong from the beginning.
Now the mouse right click open the context menu but when you try to delete a file, Windows recognize the file as in use and it's not possible.
Be able to stop "rendering" some files (so you can delete them) maybe will also speed up other files.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 13, 2013, 11:01:46 AM
Hello,

I think a useful feature it's the ability to delete files from within the MLV Browser.
Often there are some files that you recognize as bad/wrong from the beginning.
Now the mouse right click open the context menu but when you try to delete a file, Windows recognize the file as in use and it's not possible.
Be able to stop "rendering" some files (so you can delete them) maybe will also speed up other files.

ok, deleting might be an issue, will check tonight.

when you select multiple files using CTRL, the animation stops. (check latest version, maybe you have an older one)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gerk.raisen on November 13, 2013, 11:20:14 AM
I was already using the latest version (downloaded some minutes before posting)

Select multiple file with CTRL play selected files at full speed, not stop the animation  :(

Also have the ability to enlarge a little the animation windows it can became a great feature :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 13, 2013, 01:34:35 PM
Oh then I forgot to upload the latest version.will do tonight.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on November 13, 2013, 01:47:15 PM
can you redownload and test it?
Spanned RAW files now work well!  Thanks

I noticed that the previews in the MLVBrowseSharp do not have pink in overexposed areas so: is it possible to get rid of the pink of the overexposed areas in the MLVViewSharp?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bouncyball on November 13, 2013, 04:53:46 PM
Hi g3gg0. Can you make the simultaneous playback of all clips optional? Adding some switch to turn this on/off.

BB
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 13, 2013, 06:14:43 PM
I noticed that the previews in the MLVBrowseSharp do not have pink in overexposed areas so: is it possible to get rid of the pink of the overexposed areas in the MLVViewSharp?

previews do not use color conversion matrices.
you can disable them in MLV Viewer too. (right click)

advantage of matrices: colors look how they should look
disadvantage: you get pink cast in areas where the green channel is overexposed
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 13, 2013, 06:15:14 PM
Hi g3gg0. Can you make the simultaneous playback of all clips optional? Adding some switch to turn this on/off.

for which reason?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bouncyball on November 13, 2013, 08:02:07 PM
for which reason?

The same reason you mentioned above "stress on a system".  On SSD it's not noticeable on a regular HDD even on 1fps it is pain for 20+ clips in a folder.
Poor magnetic heads are going crazy. Anyway it's an early development (but great) tool so never mind :)

BB
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 13, 2013, 09:11:16 PM
...
fixed, can you try?

also the doubleclick behavior is internally different, which should prevent crashes/hangs when using with mono.

Now I can use the double click without freezing. Works well, but is quite easy to crash mlv_browser on my system. For example: Rightclick in a clip freezes the mlv_browser-window:

Code: [Select]
edgar@linux-lyl7:~/Downloads/MLVViewSharp(1)> wine MLVBrowseSharp.exe
fixme:wincodecs:PngDecoder_Block_GetCount 0x137ba60,0x33eec8: stub
fixme:wincodecs:PngDecoder_Block_GetCount 0x137ba60,0x33eec8: stub
fixme:wincodecs:PngDecoder_Block_GetCount 0x12a86c0,0x33eec8: stub
fixme:wincodecs:PngDecoder_Block_GetCount 0x1396998,0x33eec8: stub
fixme:wincodecs:PngDecoder_Block_GetCount 0x13b2df8,0x33eec8: stub
fixme:wincodecs:PngDecoder_Block_GetCount 0x138c700,0x33eec8: stub
err:seh:setup_exception_record stack overflow 1184 bytes in thread 0018 eip 7bc590ad esp 00240e90 stack 0x240000-0x241000-0x340000

Edgar
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 13, 2013, 09:48:05 PM
The same reason you mentioned above "stress on a system".  On SSD it's not noticeable on a regular HDD even on 1fps it is pain for 20+ clips in a folder.
Poor magnetic heads are going crazy. Anyway it's an early development (but great) tool so never mind :)

its harder to not play the video than to play it :)
which frame should i display? at which brightness?

let me play a bit, maybe i can find a good answer.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bouncyball on November 14, 2013, 08:46:44 AM
its harder to not play the video than to play it :)
which frame should i display? at which brightness?

let me play a bit, maybe i can find a good answer.

ok :)

Regarding the frame to display - 1st frame I  think will be fine with playback mode activated on focus (or maybe not) and FF/REW by mouse drag already is a cool feature. I think this last one should be smoother with all of the playing off.

Brightness? don't know ;) you tell me.

Regards BB
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 14, 2013, 10:36:46 PM
updated browser.
 - added metadata display (popup)
 - experimental grouping (looks ugly)
 - changed autoplay behavior
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: budafilms on November 16, 2013, 01:54:30 AM
Hi, how to delete a raw file in the camera? thanks
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 16, 2013, 02:08:55 AM
until now, using the file manager module. but this thread is about a PC tool.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: reddeercity on November 16, 2013, 06:42:46 AM
I really like the MLVBrowseSharp, what a time saver,
These tools get better and better all the time  :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 16, 2013, 10:31:23 AM
I really like the MLVBrowseSharp, what a time saver,
These tools get better and better all the time  :)
nice to hear :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 16, 2013, 11:29:51 AM
updated binaries again.

 - added preview resizing
 - non-selected previews animate up to frame 10, then they stop
 - grouping works a bit better now, but still the last group gets the maximum size that the window would have if you make it narrow.

this is some sort of windows form issue i dont really understand. i dont calculate the sizes on my own, i configure the controls to do that for me, but not very successful as you can see :)
i also know that it may behave wrong if you change the directory after grouping.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 16, 2013, 04:02:30 PM
another small update to fix some small scrolling bug
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bouncyball on November 18, 2013, 07:21:58 PM
Hi !

Great additions. Grouping feature is cool!
I noticed that after picking another file preview every clip advances 1 frame further. Is it supposed to be this way?

BB
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 18, 2013, 10:01:35 PM
Hi !

Great additions. Grouping feature is cool!
I noticed that after picking another file preview every clip advances 1 frame further. Is it supposed to be this way?

BB

nope, its a bug :)
just not that important to fix imho :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bouncyball on November 19, 2013, 10:11:42 AM
:)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 25, 2013, 11:15:06 PM
I need some more information to be showed in mlv_viewer:

- how many frames has the video
- which frame(number) is actually played

Can this be added to mlv_viewer for both, mlv and raw input files?

Edgar
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 26, 2013, 01:44:23 AM
updated, can you test?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 26, 2013, 01:45:15 AM
nope, its a bug :)
just not that important to fix imho :)
fixed
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 26, 2013, 05:35:14 PM
Tested. Exactly, what I need for my recordings of the ISS (with  a focal lenght of 2000mm). Great!

ThankYou!

Edgar
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 26, 2013, 07:11:08 PM
want to see footage and results :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 26, 2013, 09:21:47 PM
want to see footage and results :)

If you want to see a result, then look here (it´s in german):
http://www.astrotreff.de/topic.asp?TOPIC_ID=154669

Source was a 2.5G RAW-Video with my 600D, a 10´´ RC-Teleskop and a 1.4x TK. All in all 2800mm focal lenght.
It did the tracking of ISS manually. With your mlv_viewer it´s now easy to lokate the very few frames (maybe 50 of 4500), where I can see the ISS.

Edgar  8)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 26, 2013, 09:50:58 PM
really cool shots.
why do you think that with normal video the noise would be better?
denoising is smth that can be done in post much better.

if you used the zoomed mode, then you should get a 1:1 sensor dump iirc (never tried)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 26, 2013, 10:53:33 PM
The 600D with high ISO means much noise and  bunch of big badpixels, if I use RAW-Video. Especially, if the clip is underexposed, which I cannot avoid on ISS. A mov-file is fine here, regarding noise. But not only noise and the badpixels go away with mov, the details dissapear too.

I did a lot of tests and decided for me to use ML-RAW (mlv) and a 1:1 sensordump for getting out as much as details as possible. The noise can be handled, but the badpixels make me crazy. Depending on what I shoot, I work with the highest possible resolution and low fps (moon) or with high fps and low resolution (planets and satellit).

I do not want to hijack this thread with my astronomical stuff. So I finish here. Only one more thing. Some time ago I compared raw-video against mov on saturn. raw-video did win :) . I can show the link to my (german) photo forum, where I uploaded the pics. But you would have to sign in for regarding.

Edgar
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 27, 2013, 11:58:35 PM
i made some usability and visualization updates.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: escho on November 29, 2013, 10:14:49 PM
I played a couple of hours for trying to compile the mlv viewer from sources. Never compiled C# before. And what shall I say? I did succeed  :) :) :).
But here a little question:
What is this Lookup.cs for, which is in the projectfile but not in the sources?

Edgar
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on November 30, 2013, 10:01:25 AM
ah ok. tried to set up a lookup table for faster processing. (esp. in-camera speedup)
but didnt find the ideal combination of per-channel index bit depth and image quality.

so just remove it from the project.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 22, 2013, 12:49:19 AM
update:
 - supports MLV Audio playback
   slow frame rates will cause laggy playback, you can disable video for speedup using right-click context menu
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 24, 2013, 01:35:06 AM
added an EXPORT function to MLV Browser.
you now can export single (just right-click the selected file) or multiple .mlv files (CTRL-click some files, then right-click any) as .raw or .dng plus its .wav.

it will just call mlv_dump which has to be in the same directory as MLVBrowseSharp.exe.
should work on any OS if you place the mlv_dump there. (to be verified)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on December 24, 2013, 07:09:40 AM
g3ggo,

I haven't been abreast with mlv updates lately, only with rawrec, I'd like to ask if the progress in audio recording using mlv is also meant to work with the mkII?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 24, 2013, 09:48:05 AM
Beautiful. Gonna try this tonight.
Thanks for this!
//D
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 25, 2013, 10:46:16 PM
OSX users:
can you try this package?

(see main post)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 25, 2013, 10:49:49 PM
Just tried it. Nothing opens when doubleclick. I,m on 10.9 maverick.


Throwed the binary on terminal, this happens?

Last login: Wed Dec 25 23:12:34 on ttys000
itgusercbook241:~ itguser$ /Users/itguser/Desktop/MLVBrowseSharp.app/Contents/MacOS/MLVBrowseSharp
Assembly: MLVBrowseSharp.exe

Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0
  at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <filename unknown>:0
  at System.Drawing.Font.CreateFont (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000] in <filename unknown>:0
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) [0x00000] in <filename unknown>:0
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, System.String systemName) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Theme..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
  at MLVBrowseSharp.BrowseForm..ctor () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) MLVBrowseSharp.BrowseForm:.ctor ()
  at MLVBrowseSharp.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0
  at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <filename unknown>:0
  at System.Drawing.Font.CreateFont (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000] in <filename unknown>:0
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) [0x00000] in <filename unknown>:0
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, System.String systemName) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Theme..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
  at MLVBrowseSharp.BrowseForm..ctor () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) MLVBrowseSharp.BrowseForm:.ctor ()
  at MLVBrowseSharp.Program.Main () [0x00000] in <filename unknown>:0
itgusercbook241:~ itguser$
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 25, 2013, 10:52:33 PM
i guess you have a recent mono version installed?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 25, 2013, 10:58:37 PM
 unfortunately not.
Could you tell me which package to install? THere are several alternatives. (noob here)

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fs21.postimg.org%2Fbq2qajq3n%2Fmono1.png&hash=acb32df25dc3aaef0591a6f1c7ba96bd) (http://postimg.org/image/bq2qajq3n/)

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fs21.postimg.org%2F4bdei6483%2Fmono2.png&hash=dd36ce267b3c3f368b2a778665117013) (http://postimg.org/image/4bdei6483/)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 25, 2013, 10:59:12 PM
MRE
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 25, 2013, 11:18:11 PM
Thanks!
Installed MRE. Doubleclicking the app gets stuck jumping at the program and cpu starts working but still no browser.
throwing the MLVbrowsesharp in terminal simply says this now.

Last login: Wed Dec 25 23:40:30 on ttys000
itgusercbook241:~ itguser$ /Users/itguser/Desktop/MLVBrowseSharp.app/Contents/MacOS/MLVBrowseSharp ; exit;
Assembly: MLVBrowseSharp.exe

Might be needing updates on other tools maybe?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 25, 2013, 11:21:48 PM
hmm no, should work using that setup.

can you enter the Resources dir in .app and run
'mono MLVBrowseSharp.exe' in a terminal?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 25, 2013, 11:29:20 PM
It worked suddenly! Now I get a browser :) Sweet!
Lacks a system.dll so can,t view thumbs unfortunately so can,t use it though.

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fs2.postimg.org%2Fsz3hnh8xh%2Fbrowse.jpg&hash=c443e70c6efbb2d677d0c18f73ce7679) (http://postimg.org/image/sz3hnh8xh/)

Cool
/D
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 25, 2013, 11:30:24 PM
do audio-less files work better?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 25, 2013, 11:34:55 PM
Yes! Could use the browser and viewer and export to both .raw and to dng,s. But no luck with audiofiles yet.
Beautiful
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 25, 2013, 11:38:07 PM
ok i know what the reason is.
will fix it tomorrow night.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 25, 2013, 11:42:17 PM
Thanks!
Could this work as a batch exporter? Right now I can,t select more than one file at the time? Tried both "ctrl" and "cmd" and "shift".
Thanks a lot for helping now also the macgeeks
//D
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on December 27, 2013, 09:09:46 PM
Works like a charm g3ggo, using a Mac with the latest os.
Audio output working as well

Thanks Again !
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 27, 2013, 09:17:21 PM
wait... audio works on OSX?!!?
ok this suprises me really.
i am using NAudio library for audio output and i wasnt aware that it supports OSX.

i uploaded another update that should also support exporting on OSX now.
can you please try?

if audio isnt supported, it should not crash, just print a warning on the console.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 27, 2013, 09:25:06 PM
Thanks!
Could this work as a batch exporter? Right now I can,t select more than one file at the time? Tried both "ctrl" and "cmd" and "shift".
Thanks a lot for helping now also the macgeeks
//D
HAHA poor mac users..

> tell me one thing PC users can do that my mac can not do?
> uhm right-click?

if you do a CTRL-click that is a simulated rightclick :)
i will add a mac-friendly option to select multiple files


edit: updated. press shift instead.
edit2: now it correctly detects OSX
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on December 27, 2013, 09:39:40 PM
Yes audio is working as well, If you'd like I can post a link if you want to check it out.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on December 27, 2013, 09:44:20 PM
Where would that updated version be? I'm using the one from your (g3ggo) reply # 101
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 27, 2013, 09:47:17 PM
just updated all versions and added a OS X .app that should able to be started directly.
see the main post.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 27, 2013, 09:51:51 PM
Thanks for the update and for the shiftkey :)
Is it suppose to batch-export selected files or do I have to export them one by one? Tried selecting three files but only the first gets exported? This time with audio :). Nice!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 27, 2013, 09:52:47 PM
it should start all exports in parallel if you select more than one.
doesnt do?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 27, 2013, 10:09:50 PM
Nope! Noticed the same behavior in virtualbox before,hmm, will try again
*No luck on the batch-exporter on my computer running mono and in mac. Maybe someone else could try?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: kgv5 on December 27, 2013, 11:36:18 PM
Maybe a bug: when i have some h264 on CF card MLV browser sharp crashes immediatelly after startup. After deleting mov files everything is ok.

- Is there a possibility to have just a list of files without previews (as an option)? When preview size slider is set to minimum we have only squares and no names.
- I often have "system out of memory" text with many apps working in background (that is obvious) so previews are not neccesary all the time.
- When i have a lot of files and they are not fit on one screen when i am trying to slide the window down it goes up again all the time - it is quite annoying.

Thanks
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dubzeebass on December 28, 2013, 06:02:42 PM
just updated all versions and added a OS X .app that should able to be started directly.
see the main post.

Mavericks and the .APP crashes on load, console says:

12/28/2013 11:51:31.711 AM com.apple.launchd.peruser.502[157]: (MLVBrowseSharp.86448[8172]) Exited with code: 127
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dubzeebass on December 28, 2013, 06:15:33 PM
Just installed MRE and now the .APP just bounces in my Dock.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dubzeebass on December 28, 2013, 06:17:01 PM
Console...

12/28/2013 12:05:53.036 PM com.apple.launchd.peruser.502[157]: (MLVBrowseSharp.86448[277]) Exited with code: 143
12/28/2013 12:05:53.039 PM spindump_agent[446]: Unable to create bundle with URL /usr/bin/mono
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 28, 2013, 06:51:04 PM
if you run the exe from the shell, does it work?

cd blah/Resources
mono MLVBrowseSharp.exe
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 28, 2013, 07:16:27 PM
Just installed MRE and now the .APP just bounces in my Dock.
Try a reboot. Had some quirks that solved itself after booting
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dubzeebass on December 28, 2013, 07:18:48 PM
Opening it via command line just opens the "EXEC ICON" on the dock with the title mono-sgen, no GUI.  I've got XQuartz installed as well as latest Java and Mono, and have rebooted.  Any other ideas?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dubzeebass on December 28, 2013, 07:19:54 PM
Activity Monitor is showing mono (not responding) using 95% CPU.  Wack!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dubzeebass on December 28, 2013, 07:24:21 PM
Weird ... I just ran mono-sgen <executable name> and it loaded.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dubzeebass on December 28, 2013, 07:30:43 PM
Last post on this topic ... doesn't work properly on my box, probably would on someone else's ... I'll use MLRawViewer for now.  Cheers!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 28, 2013, 10:50:13 PM
big update.
now MLVBrowseSharp has much better batch processing support.
try it ;)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 28, 2013, 11:14:57 PM
Everything seems to get converted but when looking in selected folder there,s still only the first file converted. Same thing happens when I convert to .raw or dng option.
Close but no cegar :)


* Actually I can see the other files converted through finder but can,t locate it on my mac yet. Damn mac search function.
* I take that back. When looking at the log It seems all files gets the name of the first converted file?

Looks like this.

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fs14.postimg.org%2Fwgzx24yel%2Fimage.png&hash=25cd159c27bb0b2e24db7da74d590c5c) (http://postimg.org/image/wgzx24yel/)

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fs14.postimg.org%2F4flvoft4d%2Fimage.png&hash=fbb8ea944761bf4474893da9ff5a59a8) (http://postimg.org/image/4flvoft4d/)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: rungunshoot on December 29, 2013, 12:18:49 AM
Hi, I'm on Mavericks (10.9.1) and have installed MLV Browser along with Mono MRE.  I'm not too tech savvy with this stuff, so go easy...

But I've gotten it to transcode MLV to DNG with WAV (awesome)! My question is this: when choosing an output directory, MLV Browser doesn't seem to recognize my external hard drives (connected via Thunderbolt).  Is this a limitation of this program, or is there a way for me to output directly to my Thunderbolt drive?

Thanks for all your work! This is really cool.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 29, 2013, 12:22:21 AM
Hey rungunshot, are you able to batchexport .mlv files to a specific folder? WHen I try I only get the first file to convert even when selecting several?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 12:42:52 AM
thanks, didnt notice that.
fixed it hopefully :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 12:45:58 AM
when choosing an output directory, MLV Browser doesn't seem to recognize my external hard drives (connected via Thunderbolt).  Is this a limitation of this program, or is there a way for me to output directly to my Thunderbolt drive?

i dont have a chance to test that as i am running OSX in a VM.
but i guess you have to select the correct folder.

btw - it doesnt auto update if the filesystem changes.
you have to collapse and expand again (or restart) to make changes visible.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: rungunshoot on December 29, 2013, 01:42:44 AM
Batch processing with the latest version is OK now...I did have that same issue earlier.

As for external drives, they show up in the main GUI window, but not when I choose a destination for output. It's not a matter of needing to refresh the folder directory.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 02:11:11 AM
do you know the unix path of this drive?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 29, 2013, 02:41:12 AM
Batch export works!! Thanks a lot :) Of course I have a qiuestion. Would it be possible to have the dng:s exported placed in folders instead of all in the same folder? Anyway. Huge thanks for this. Really cool stuff created.
Thanks
//D
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jakobmen on December 29, 2013, 04:16:43 AM
when exporting selected files as .dng + wav it ends up giving me a wav file and m28-1039.MLV.frame_00lens' file. no Dng files.. not sure if i did something wrong here..

raw+wav works fine tho
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: rungunshoot on December 29, 2013, 04:26:22 AM
do you know the unix path of this drive?

I'm really not Terminal-savvy.  But neither my Thunderbolt nor USB drives appear as output options.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 11:00:18 AM
when exporting selected files as .dng + wav it ends up giving me a wav file and m28-1039.MLV.frame_00lens' file. no Dng files.. not sure if i did something wrong here..

what? "m28-1039.MLV.frame_00lens" uuhhmmm that is weird...
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jakobmen on December 29, 2013, 03:45:02 PM
Here you go g3ggo... (https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fimg.tapatalk.com%2Fd%2F13%2F12%2F29%2Fqequ8u4e.jpg&hash=39f1b37dbe3d08c872603f23cb7d3797) (https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fimg.tapatalk.com%2Fd%2F13%2F12%2F29%2F7eryqute.jpg&hash=9e141035838b34d01c54be8e3581a377)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jakobmen on December 29, 2013, 05:36:50 PM
g3ggo this is happening on my new laptop... do i need to install something to work the MLV browser  maybe thats why im getting this error?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 05:54:09 PM
can you show me the log messages when exporting is done?
i guess you have the latest version, right?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jakobmen on December 29, 2013, 06:04:03 PM
i tried the new and older version on new laptop

logfile https://copy.com/Al4mnBwqZwmZlKYq
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 06:24:00 PM
this looks like a buffer overflow, but i cannot imagine where...
i dont get any buffer overflows here.
and i thought i coded defensively enough...
let me check...
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 06:25:16 PM
meanwhile - can you try a shorter path?

this: D:\CanonXraw\kids for Soulfruit Free MV\MLV files\kids Free soulfruit\m28-1035\M28-1039.MLV.frame_
is quite long :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 06:31:52 PM
ARGH okay i found it.
shame on myself:

                            char fn[100];
                            snprintf(fn, sizeof(fn), "%s%06d.dng", output_filename, block_hdr.frameNumber);


forgot to clean up this quick hack.
redownload please
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jakobmen on December 29, 2013, 06:54:40 PM
ARGH okay i found it.
shame on myself:

                            char fn[100];
                            snprintf(fn, sizeof(fn), "%s%06d.dng", output_filename, block_hdr.frameNumber);


forgot to clean up this quick hack.
redownload please


Yahoo! it worked! thanks! now how do i deal with the thumbnails when they say "System.outof"
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 29, 2013, 08:39:19 PM
Yahoo! it worked! thanks! now how do i deal with the thumbnails when they say "System.outof"

System.OutOfMemoryException
this sounds like you have not enough RAM ;)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on December 30, 2013, 04:55:38 AM
@g3gg0

tested dec 28 version to test extracting multiple files.
I ctrl+selected 7 files, then right clicked to extract dng + wav. Selected directory to extract to then conversion progress window opens to show the progress of 7 files. All indicated success, but in target folder window only 1st file extracted.

Attached screenshot showing the windows.
(https://www.magiclantern.fm/forum/proxy.php?request=https%3A%2F%2Ffbcdn-sphotos-a-a.akamaihd.net%2Fhphotos-ak-prn1%2F893987_417771218353668_531645108_o.jpg&hash=adf1362ec68108b6f82a8602e62c612a)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 30, 2013, 11:54:59 AM
try yesterdays version please.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Francis Frenkel on December 30, 2013, 05:13:21 PM
try yesterdays version please.

Where could I find "yesterday one" ?

 Like ted ramasola when I choose " export selected file as DNG+ wave" with a mlv file it works fine, but when I try it with a RAW file I only have one RAW file of 4k and no DNG files

Here is the Log file :
Exec: 'mlv_dump.exe --batch --dng -v -o "F:\efface\M12-1226.RAW.frame_" "I:\Lingor\Plans 02\DCIM\100EOS5D\M12-1226.RAW"'
 MLV Dumper v1.0
-----------------
Mode of operation:
   - Input MLV file: 'I:\Lingor\Plans 02\DCIM\100EOS5D\M12-1226.RAW'
   - Verbose messages
   - Convert to DNG frames
   - Output into 'F:\efface\M12-1226.RAW.frame_'
File I:\Lingor\Plans 02\DCIM\100EOS5D\M12-1226.RAW opened
Processing...
Block: ”(²Â
  Offset: 0x00000000
    Size: 1277724940
    Time: 2936360571865995.500000 ms
Unknown Block: ”(²Â, skipping
Block: vÐ
  Offset: 0x4c28890c
    Size: 7690013
    Time: 8516620377627640.000000 ms
Unknown Block: vÐ, skipping
Block: 3Ñí
  Offset: 0x4c9de029
    Size: 1360143156
    Time: 8328102807490409.000000 ms
Unknown Block: 3Ñí, skipping
Block: ó/ò
  Offset: 0x9db0035d
    Size: 318963768
    Time: 3454348803487778.000000 ms
Unknown Block: ó/ò, skipping
Block: ÜÅs&
  Offset: 0xb0b30395
    Size: -214137654
    Time: 14531040172131272.000000 ms
Unknown Block: ÜÅs&, skipping
Reached end of chunk 1/1 after 5 blocks
Processed 0 video frames
Done
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on December 30, 2013, 06:39:06 PM
try yesterdays version please.
I downloaded latest MLVViewSharp and now it handles multiple mlv files to the same directory.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 30, 2013, 08:53:25 PM
Where could I find "yesterday one" ?

 Like ted ramasola when I choose " export selected file as DNG+ wave" with a mlv file it works fine, but when I try it with a RAW file I only have one RAW file of 4k and no DNG files

1. download link is in the first post
2. it is only working with .mlv files
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on December 31, 2013, 05:42:16 AM
ok. confirmed dec 29 version now works for multiple clips.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: legreve on December 31, 2013, 11:51:53 AM
Just downloaded the OSx app… it doesn't even start up when clicked.
I also tried dumping the mlv file on the program icon but nothing.

Any tips?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 31, 2013, 12:38:27 PM

You tried this one?
http://www.magiclantern.fm/forum/index.php?topic=9731.msg93741;topicseen#msg93741
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on December 31, 2013, 02:09:34 PM
I cannot figure out why MLVBrowseSharp.exe exports dng files (green cast) with wrong White Balance information.  Basically when I import the dng into ACR the Temperature Slider is all the way to the left (2000) and the Tint is always to the left (-150).  Also my dng thumbnails have the green cast.

MLVViewSharp.exe plays then correctly and show the WB at 5200.

MLVBrowseSharp.exe exports as wav and RAW and then I use raw2dng to export the dngs then all dngs are correct and ACR imports the Temperature and the Tint correctly.

I use windows 7 64 bit, Adobe Camera RAW 8.2, and  FastPictureViewer Codec Pack which provides the codec to windows for thumbnails and incorporates dng view to the windows viewer.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on December 31, 2013, 02:25:27 PM
I get exact same whitebalance settings as renatophoto, 2000, -150. I, m on adobe cs6
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 31, 2013, 02:31:42 PM
yeah i already noticed, mlv_dump is setting camera's wbgain information.
maybe i should just undo that for now.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bumkicho on December 31, 2013, 02:32:17 PM
g3gg0,

would it be possible for MLVBrowseSharp to export multiple mlv files to multiple sub-folders?

Thank you for sharing your work!!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on December 31, 2013, 02:38:03 PM
yeah i already noticed, mlv_dump is setting camera's wbgain information.
maybe i should just undo that for now.

I noticed that this information is not sent to ACR via exif tags.  I assume if wb was sent in exif tag then it should be read by ACR.  Also noticed that raw2dng is not sending wb via exif so it uses another method which is embed in the dng.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 31, 2013, 02:39:44 PM
updated disabled wbgain handling, please try again
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 31, 2013, 02:41:27 PM
g3gg0,

would it be possible for MLVBrowseSharp to export multiple mlv files to multiple sub-folders?

Thank you for sharing your work!!

well, you should be able to select them easily as the names start with the original file name.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on December 31, 2013, 03:21:41 PM
updated disabled wbgain handling, please try again
I compiled new mlv_dump.exe and used it with MLBrowser and dng look good!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bumkicho on December 31, 2013, 06:09:44 PM
well, you should be able to select them easily as the names start with the original file name.

I know it's a little thing, but more often than not, these little things make the program so much better, so I thought I'd just ask.

Thanks again for sharing your work with us.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gary2013 on December 31, 2013, 06:20:43 PM
I am getting all green cast when extracting mlv to dng using the browser and a right click on the mlv. I can quickly get rid of the green using ACR in PS CC, but that takes a lot of extra time and steps and it has to go tif. I wanted to go from dng straight to PPro CC timeline like I used to do with the simple mlv2dng.exe. Why is there a green overlay on the raw mlv using the mlv browser app?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on December 31, 2013, 08:39:25 PM
I am getting all green cast when extracting mlv to dng using the browser and a right click on the mlv. I can quickly get rid of the green using ACR in PS CC, but that takes a lot of extra time and steps and it has to go tif. I wanted to go from dng straight to PPro CC timeline like I used to do with the simple mlv2dng.exe. Why is there a green overlay on the raw mlv using the mlv browser app?

did you try the version from today?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gary2013 on December 31, 2013, 09:22:13 PM
did you try the version from today?
I am not sure. Please give me a direct link to its download and I will bookmark that for future downloads if that is where they all appear. I briefly looked at this app before and now I started to look closer at it since MLV is working pretty good on my M. 
 
Thank you,
Gary.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: bumkicho on December 31, 2013, 09:42:59 PM
I am not sure. Please give me a direct link to its download and I will bookmark that for future downloads if that is where they all appear. I briefly looked at this app before and now I started to look closer at it since MLV is working pretty good on my M. 
 
Thank you,
Gary.

First post of the thread has all the direct links (in big bold font) you need.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gary2013 on December 31, 2013, 10:01:34 PM
First post of the thread has all the direct links (in big bold font) you need.
Got it now. Thanx.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on December 31, 2013, 11:37:01 PM
trying the latest version and I cant get thumbnails or previews on the MLV browser. It has texts saying "System.ArgumentOu" on the thumbnail boxes.
But it will be able to extract with no problems.

Attaching image below.
(https://www.magiclantern.fm/forum/proxy.php?request=https%3A%2F%2Fscontent-a-dfw.xx.fbcdn.net%2Fhphotos-prn1%2F1512783_418898814907575_1311222225_n.jpg&hash=29158b41481618c18842cd7861c1d056)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gary2013 on December 31, 2013, 11:58:37 PM
ted, I also got those same errors, but not on all of my files. most of them worked just fine. I haven't figured out why or what yet for these errors. Usually I think I get problems from files that stopped recording on their own. Like settings that made the camera shoot non continuous. Usually me forgetting to change 30 fps to 24 fps. I am just guessing.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on January 01, 2014, 12:11:03 AM
Yea, I get the errors too with the latest MLVBrowers with 5D3 files and 7D files.

I extracted the 7D files and got sound too!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 01, 2014, 03:59:10 PM
updated:

if you get any exception, just move your mouse over the file icon and you will see the
exception reason in the tooltip - please upload a screenshot of the tooltip.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 01, 2014, 04:13:28 PM
updated:

if you get any exception, just move your mouse over the file icon and you will see the
exception reason in the tooltip - please upload a screenshot of the tooltip.

Thanks G3ggo, it's not quitting anymore but I'm still unable to join the .m00 .m01 clips is there some other software that i'm unaware of to do that ?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 01, 2014, 04:21:52 PM
"i am still unable to join" doesnt help me to fix your problem.
can you please describe whats the problem is?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 01, 2014, 04:53:24 PM
"i am still unable to join" doesnt help me to fix your problem.
can you please describe whats the problem is?

Sorry, when I open MLV Browse Sharp it recognizes say M31-1431.MLV and will convert it to raw or .dng's but in my folder there is also M31-1431.M00 and M31-1431.M01 and won't convert those files to dng's or raw. 

Here's a screenshot https://www.dropbox.com/s/hcq3le30u5l87fb/Screen%20Shot%202014-01-01%20at%2010.39.52%20AM.png

Thanks Again G3ggo and sorry for being vague.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 01, 2014, 05:03:01 PM
updated:

if you get any exception, just move your mouse over the file icon and you will see the
exception reason in the tooltip - please upload a screenshot of the tooltip.
do this please
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 01, 2014, 05:05:59 PM
Here you go:

https://www.dropbox.com/s/z0svmqphybrb6ps/Screen%20Shot%202014-01-01%20at%2010.53.57%20AM.png
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 01, 2014, 05:15:13 PM
updated, please redownload and try again
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 01, 2014, 09:10:58 PM
updated, please redownload and try again

I'm able to see the previews but it still doesn't convert  M31-1431.M00 .M01 etc
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 01, 2014, 09:12:51 PM
it doesnt convert them magically. you have to right-click it.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 01, 2014, 09:15:34 PM
I did right click it, I chose to export as raw + wav I ended up with a 4.29gb raw file when the 3 combined are about 9gb
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 01, 2014, 09:16:15 PM
and did you try dng export.......?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 01, 2014, 09:25:17 PM
I didn't, I will when I get back home later tonight.

Thanks again

Hope you are taking my responses in the light and fun demeanor that's intended.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: pc_bel on January 01, 2014, 10:17:36 PM
"I did right click it, I chose to export as raw + wav I ended up with a 4.29gb raw file when the 3 combined are about 9gb"

Same for me. MLVbrowse doesn't process M00, M01, etc. Only mlv file.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 01, 2014, 10:54:08 PM
did you try .dng exporting?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: RenatoPhoto on January 01, 2014, 11:25:05 PM
There is no problems with windows machine.  This seems to be an OSX issue.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: pc_bel on January 01, 2014, 11:43:50 PM
Quote
did you try .dng exporting?

Yes, same. Did not export frames in M01, M02, etc... Only in MLV file. I have all the files (MLV, M01 and M02) in same place.
When I place cursor in thumbnail I can read this:
Error:Missing frames: 2 frame IDs are missing in the MLV. If this is a multi-chunk video, make sure you have all chunks in the same place.

Sorry for posting this way. I did it without thinking. First of all I must say thanks for all your work. I dont know how can I help if is not just giving feedback. I'm really new here...


Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 02, 2014, 12:21:44 AM
can you post the log of the export job after it was done?
DNG version please
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: pc_bel on January 02, 2014, 12:40:16 AM
Its really long... Do you need all?

This is first part before starting processing:


Exec: 'mlv_dump.exe --batch --dng -v -o "F:\001_PROJECTS\pruebas RAW\Nueva carpeta\M01-2211.MLV.frame_" "F:\001_PROJECTS\pruebas RAW\M01-2211.MLV"'
 MLV Dumper v1.0
-----------------
Mode of operation:
   - Input MLV file: 'F:\001_PROJECTS\pruebas RAW\M01-2211.MLV'
   - Verbose messages
   - Convert to DNG frames
   - Output into 'F:\001_PROJECTS\pruebas RAW\Nueva carpeta\M01-2211.MLV.frame_'
File F:\001_PROJECTS\pruebas RAW\M01-2211.MLV opened
File F:\001_PROJECTS\pruebas RAW\M01-2211.IDX opened (XREF)
XREF table contains 1311 entries
Processing...
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 02, 2014, 01:05:11 AM
yes, all.
pastebin.com
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 02, 2014, 01:48:15 AM
I tried exporting as .dngs and came up with the same results on mlvbrowse both on PC and mac . Please see my log below

http://pastebin.com/embed_iframe.php?i=htUYnxDg
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 02, 2014, 01:51:12 AM
but this wasnt the .dng version, right?
can you first delete the .idx?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 02, 2014, 02:08:29 AM
but this wasnt the .dng version, right?
can you first delete the .idx?

Correct it was the raw version before. Here is the dng version from my pc after I deleted the idx file pertaining to that file. Its performs this way on both my mac and pc fyi.

http://pastebin.com/embed_js.php?i=mRadrkZN
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 02, 2014, 02:19:37 AM
are you sure there are the files
D:\\DCIM\\100EOS5D\\M31-1431.M00
D:\\DCIM\\100EOS5D\\M31-1431.M01 etc?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 02, 2014, 02:26:41 AM
are you sure there are the files
D:\\DCIM\\100EOS5D\\M31-1431.M00
D:\\DCIM\\100EOS5D\\M31-1431.M01 etc?


See screen shot https://www.dropbox.com/s/q9iivsq5uesrdhf/Screenshot.png
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 02, 2014, 02:27:22 AM
plus can you D/L this  (http://upload.g3gg0.de/pub_files/f417ebb9dce85ff27e3a2a000a2bd845/mlv_dump.exe)version and replace the shipped one with that?
want to see the .dng output again.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 02, 2014, 02:27:56 AM
uhmmm.... did you enable spanning and forgot to copy the files from the SD card?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 02, 2014, 02:42:03 AM
uhmmm.... did you enable spanning and forgot to copy the files from the SD card?

ummm I did  :-[  :-[  :-[

I'm really sorry, didn't realize I had that on. Is there a link where I can send you some money for your wasted time ? Again I'm sorry
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 02, 2014, 02:44:19 AM
no problem.
nah, don't need any money. doing that for fun, not for money ;)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Jason Montalvo on January 02, 2014, 02:55:21 AM
Thanks again G3ggo !!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: pc_bel on January 02, 2014, 10:48:04 AM
Ooooohhhh!!! Same for me!!!!  Sorry!!!!
I was learning all that I can in beginners topics and didn't see nothing about this files in SD card.

Now it works OK.

For me all this is a revolution. Thanks MagicLantern and developers!!!
Thank you very much for your time, g3gg0!!!!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on January 04, 2014, 09:38:17 AM
If I point MLVbroswer towards the folder with many footage, say more than 40 MLVs, it would freeze or hang up when I click multiple files.
I was able to select and extract around 12 files then after that freezing would happen If I continue to select more files for extraction of DNGs and WAV.

Some thumbnail would not show and have out of memory text inside.

I would right click on selected MLV clips to export but right click would not work and no option would to extract would show when I right click.

What I did in to extract my files is to "transfer MLVs in batches of 8 into another folder and MLV browser would work  again even when I select all of the 8 files then extract.

Is this a memory issue or a bug? My system has 12 gig ram, win 7 64 bit.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on January 04, 2014, 09:54:15 AM
Slowly increased number of files I placed in a new folder for extract to 20 files. So far no more freezes. Able to extract dng and wav files successfully.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 04, 2014, 08:37:16 PM
fixed a bug in mlv_dump that may have caused problems during export.
updated all binaries now.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ahram on January 05, 2014, 11:06:45 AM
In Mavericks it doesnt work out to me. I also installed Mono. Is there any kind of trick for OS?
thanks
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: kgv5 on January 05, 2014, 10:08:13 PM
I am constantly having problems with MLV Browser stability - it crashes very often after i try to process more than 5-8 mlv files at once (win7 64bit, newest build)
Is it possible to make MLV browser create folders for every processed file? And next question - lets say i put 30 mlv files at once. It is processing all 30 in the same time? Seems that it is, so could we have some kind of queue? And the last thing - please g3gg0, make just a list of files and option to turn on previews. Now previews are on by default which makes it freezes when im opening folder with 250 mlv inside. Ahh... seems that ctrl-a does not work, could you implement "select all" option? Thanks
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 06, 2014, 12:33:05 AM
I am constantly having problems with MLV Browser stability - it crashes very often after i try to process more than 5-8 mlv files at once (win7 64bit, newest build)
something that will for sure suprise you:
without any information what happens, i can not do anything. screenshots, logs, messages....
;)

And the last thing - please g3gg0, make just a list of files and option to turn on previews
already tried unchecking that preview checkbox?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: kgv5 on January 06, 2014, 12:55:03 AM
something that will for sure suprise you:
without any information what happens, i can not do anything. screenshots, logs, messages....
;)
already tried unchecking that preview checkbox?

I know, I will post those messages, i am still testing and still have more than 150 mlv files to process.

Yeah, i have unchecked this. I have just realized that it is possible to switch it off BEFORE entering folder with 350 mlv inside, sorry for that.


EDIT: i am often getting this message (in polish) - but i can contunue after that

System.ArgumentOutOfRangeException: Wartość '-2147483648' nie jest prawidłową wartością dla 'Value'. Wartość 'Value' powinna znajdować się w zakresie od 'minimum' do 'maximum'.
Nazwa parametru: Value
   w System.Windows.Forms.ProgressBar.set_Value(Int32 value)
   w MLVBrowseSharp.ConversionProgressItem.tim_Tick(Object sender, EventArgs e)
   w System.Windows.Forms.Timer.OnTick(EventArgs e)
   w System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Zestawy załadowane **************
mscorlib
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MLVBrowseSharp
    Wersja zestawu: 1.0.0.0
    Wersja Win32: 1.0.0.0
    CodeBase: file:///C:/Users/oem/Downloads/MLVViewSharp/MLVBrowseSharp.exe
----------------------------------------
System.Windows.Forms
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MLVViewSharp
    Wersja zestawu: 1.0.0.0
    Wersja Win32: 1.0.0.0
    CodeBase: file:///C:/Users/oem/Downloads/MLVViewSharp/MLVViewSharp.EXE
----------------------------------------
System.Core
    Wersja zestawu: 3.5.0.0
    Wersja Win32: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms.resources
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------

************** Debugowanie w trybie JIT **************
Aby włączyć debugowanie w trybie JIT (just-in-time), plik .config tej
aplikacji lub komputera (machine.config) musi mieć
wartość jitDebugging ustawioną w sekcji system.windows.forms.
Aplikacja musi być również skompilowana z włączonym
debugowaniem.

Na przykład:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Gdy debugowanie JIT jest włączone, wszystkie nieobsługiwane wyjątki
są wysyłane do debugera JIT zarejestrowanego na komputerze
i nie są obsługiwane w tym oknie dialogowym.


Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: MichaelHeiland on January 06, 2014, 07:02:11 AM
when i right click to make my files into a raw or like raw plus audio as I have seen in other videos I get just the regular drop down menu: open, Open With >, Send To>, Cut, copy etc etc. 

What I am talking about:  At exactly 8:00 minutes on this video
he just right clicks the files and WALA he can get the cdng + audio.  When I right click I get the same menu as I get inside file explorer.

Can someone please just tell me the best way to get my MLV to cinema dng and then an audio track?  Is that to much to ask for?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 06, 2014, 10:22:34 AM
new version:
 - fixed crashes due to the reason reported by kgv5 (#214), still may behave weird (can i get such a file log?)
 - maximum running export tasks set to 4 (do we need to make it configurable?)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on January 06, 2014, 05:08:00 PM

 - maximum running export tasks set to 4 (do we need to make it configurable?)

to be clear, does this mean only 4 clips at a time can be selected and exported simultaneously without crashing ?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: ted ramasola on January 06, 2014, 05:31:18 PM
-ok. I did some export tests and see what you mean.

Even if I select all clips, only four (4) clips will be processed at one time. This is good and fast.

Just a suggestion if this is possible.

Is it doable to queue the process according to clip number or in sequence? So that, in case the export is stopped abruptly by the user it would be easier to continue later by just checking the last clip in the export folder?

Right now I observed that the queue selection is random.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: budafilms on January 07, 2014, 04:28:26 AM
MLV Sharp doesn't work in OSX Mavericks... Any suggestion?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on January 07, 2014, 07:37:52 AM
Try this

http://www.magiclantern.fm/forum/index.php?topic=9731.msg93586#msg93586
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dxotic on January 07, 2014, 10:33:34 AM
I downloaded MLVBrowseSharp_OSX.zip and MonoFramework-MRE-3.2.4.macos10.xamarin.x86.pkg (http://www.go-mono.com/mono-downloads/download.html) I am on ML 10.8.3 Mac Mini 16Gb RAM

FWIW  I do have X11 installed also. this might make a difference

After installing and restarting it worked as per Danne instructions

IT WORKS! I had an issue  with the MLVBrowseSharp crashing  and reinstalled the MonoFramework-MRE and it was back to normal. Hope that helps the Mac users out there.


Thank you to the Magic Lantern community. and g3gg0  Awesome work. Have been using it in production and have been incredibly pleased and want to thank you all for sharing. Much LOVE.

 ;D ;D ;D ;D ;D ;D ;D ;D ;D


Hmm  having issues with the output. But at least i can view it for now.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gary2013 on January 07, 2014, 01:12:09 PM
I downloaded the latest ver from the first post here and I tried a batch extract using just two mlv files I shot on my M. There isn't the green status bar for each clip like I used to see when extracting.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 07, 2014, 02:55:36 PM
I downloaded the latest ver from the first post here and I tried a batch extract using just two mlv files I shot on my M. There isn't the green status bar for each clip like I used to see when extracting.
can you post me the log?
(www.pastebin.com)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: jose_ugs on January 08, 2014, 02:26:46 AM
@g3gg0, i was testing today's mlv_rec and the latest mlv viewer/browser and noticed this inconsistency in the frames #... just check the scrn below:

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fquinox-std.com%2Fml%2Fmlv-export.jpg&hash=f222693fce1eac84b1b99ec313202437)

ps. on that note, multiple export works just fine. fine job's what you did :)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: gary2013 on January 09, 2014, 05:15:05 PM
can you post me the log?
(www.pastebin.com)
I just did a whole new, fresh install of my win 7 computer and the MLV Browser now works properly with the green status bars.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Sthirasukha on January 10, 2014, 01:25:56 AM
I tried the MLVBrowseSharp.app and I can have Raw or dng files but I don't have any audio file. I've a (stupid?) question: how am I sure that the sound is recorded (like it is on a H624 .mov) when I record with the MLV_rec module? Many thanks again.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 10, 2014, 02:30:30 AM
enable mlv_snd and go to audio menu and enable MLV Sound
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Sthirasukha on January 10, 2014, 09:38:13 AM
Thank you g3gg0! I installed your build and removed the other nighly build.
Now I can see the mlv_snd module but when I record (the global draw is ON), the global draw turn to off on the LV and when I stop recording I have a "error -1" on the top left. Did I miss something?

Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Sthirasukha on January 10, 2014, 09:57:25 AM
I just saw there is another topic about the MLV install:
http://www.magiclantern.fm/forum/index.php?topic=7122.1175
I think I'd rather keep on ask my question on this topic...
Thanks!
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: africanmarty on January 11, 2014, 07:34:09 AM
irst off great job everyone for their hard work. i have been on here quite along time and just love the community. i have recently tried the :

Nightly Builds "Updated from 1% repository (https://bitbucket.org/OtherOnePercent/tragic-lantern-6d/commits/all)
http://tl.bot-fly.com"

wich does work well and produce an audio track that is fantastic to sinc up to master audio track, however when i process a  MLV files in  mlvBrowseSharp and set the DNG and .wav option" and get the  DNGs + .wav audio file... but the RAW images are very under exposed and dark.

So i tried the command told "MLV-dump" and was able to extract the audio and DNG files (in which the dng files looked fantastic this time).

is there a setting i can turn off in  mlvBrowseSharp so the raw imaes are left as is and exported from the MLV unchanged. i;m sure uts just a setting im missing thanks in advance guys.

really appreciate it. A big fan from Melbourne Australia saying a big thankyou to the whole community.

- Marty.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on January 11, 2014, 11:21:38 AM
mlv_dump produces the same images as MLVBrowseSharp.
thats because MLVBriwseSharp executes mlv_dump for exporting ;)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Danne on January 11, 2014, 12:20:09 PM
Hi!
Both the recusrsive.command script and the mlv_browser converts spanned files which is really good. I was wondering if the script would apply to raw2dng binary the same way extracting "spanned" files(split files) or is that a totally different story?
Thanks!
//D
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Pidji on January 12, 2014, 08:56:22 PM
Just to say "thanks" to this useful topic. I'am an OSX user (10.7.5), MLVBrowseSharp app seemed not to launch before I installed the mono framework et Xquartz. Now it's OK. I can try this beautiful MLV Xmas gift with sound. See you soon for a short video.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Fringuello on January 25, 2014, 01:31:04 PM
osx 10.9.1 does not work
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Veerle on January 29, 2014, 02:05:42 PM
.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: Pidji on February 12, 2014, 10:15:46 PM
10.7.5 user, so I'm a Lion user.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: reddeercity on February 15, 2014, 08:50:32 AM
@g3gg0  I had a error message From MLVBrowseSharp on PC
See below:
Please contact g3gg0 with this information:
The volume for a file has been externally altered so the opened file is no longer valid.

at System.IO._Error.WinIOError(int32 errorCode, String maybefullpath)
at System.IO.FileStream.WriteCore(Byte[]buffer, Int32 offset, Int32 count)
at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
at System.IO.FileStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.BinaryWriter.Dispose(Boolean disposing)
at System.IO.BinaryWriter.Close()
at mlv_view_sharp.MLVReader.SaveIndex()
at mlv_view_sharp.MLVReader.UpdateIndex()
at mlv_view_sharp.MLVReader..ctor(String fileName,MLVBlockHandler handle)
at MLVBrowseSharp.MLVFileIcon.DisplayFunc()
at System.threading.ThreadHelper.ThreadStart_Context(Object state)
at System.threading.ExecutionContext.run(ExecutionContext excutionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

After that the programs crashed
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on February 15, 2014, 01:31:27 PM
what did you do?
plug the memory card?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: reddeercity on February 15, 2014, 06:28:38 PM
what did you do?
plug the memory card?
yes, run off usb3.0  card reader. Never had a problem before .
Plus had the new feb14th mlv build from A.D.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: jose_ugs on February 20, 2014, 11:24:40 PM
@g3gg0 could you take a look @ this one pls:
Out of memory, system memory that is?

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fquinox-std.com%2Fml%2Fmlv-outofmemory.jpg&hash=172c9bdf51b216621b90423c22e49b05)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on February 20, 2014, 11:37:21 PM
yeah seems so that the memory ran out. does it happen with only that files in the directory too?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: jose_ugs on February 20, 2014, 11:46:26 PM
i think so, that's the first time ever i see the thumbs like that, and also the exception in the details
i'll try to move those specific files to another folder, and what's happening...
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: jose_ugs on February 21, 2014, 01:04:18 AM
i believe that was the issue...
i've moved some files to a separate folder, and now the thumbs look all right...
but here's more, i've done this: i have some files in a folder called e:\folder (about 50GB in 108files/spanned)
i got some more in a sub-folder: e:\folder\Problematic (about 20GB in 18 files/spanned as well)
If i launch MLVBrowseSharp and navigate to e:\folder it'll generate the thumbs as expected and it'll eat up about 1.4GB of RAM
If i then choose the sub-folder from the directory structure inside MLVBS, it'll generate 5 of 9 thumbs, and the rest look like the "Exception of type..." / all messed up, and MLVBS will be eating about 1GB of RAM
In both steps i have enough RAM left, the system has 8GB... i can attach some screenshots if you need some
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: André Normandin on March 15, 2014, 10:41:17 PM
I don't know why, I can't install it on my macbook. My computer recognizes it as a virus. And when I try to install it, I get a code error 13... Any idea what I can do?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: beddy70 on April 05, 2014, 06:08:45 PM
Very nice work !
Unfortunately, it don't want run on my OS X (10.8.5)

Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: _DK_ on April 09, 2014, 04:10:51 PM
Hi
I got an error that the program told me to report:

Code: [Select]

Object reference is not set to an instance of an object.
at mlv_view_sharp.MLVReader.ReadBlock()
at mlv_view_sharp.MLVViewerForm.PlayFile()
at System.Threading.ThreadHelper.ThreadStart_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

This is a translation as my system is set to German the original is here:
(http://s1.directupload.net/images/140409/2uqtebv3.png)

After the error the program crashed.

Some info about my System if needed:
CPU: i7 2600k, 8GB Ram. The data was moved from the SD card to a SSD in a seperate folder
OS: Win 7 Pro 64Bit
Camera: EOS 650D (Maybe thats the problem?)

This happens to all MLV files.


Sorry if that problem has already been reported.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: DesterWallaboo on April 16, 2014, 09:29:31 PM
Been using MLVBrowseSharp on Mac OS X 10.9.2  for some time without any issues. Today I tried to use it and every time I select a folder with the MLV files, it crashes out. I downloaded the latest version to see if there has been any changes, but it appears to be the same Dec 25, 2013 version I'm already using.

Anyone else have this problem or know how to solve it?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on April 16, 2014, 10:01:37 PM
any messages?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: pstutter on April 21, 2014, 04:08:33 AM
I'm having a little trouble using these (MLVViewSharp/BrowseSharp/MLV_Dump) for the first time. I've always used mlv2dng but wanted to try these since the features are great. I also have my first multiple part file and am unsure how to proceed. I have a .IDX, a .MLV, and 9 other files, numbered .M00 to .M08, which are each 0 kb. BrowseSharp sees the entire file, and ViewSharp will preview the entire file, but when I try to extract .dng's, the process stops at 284 and I'm not sure why. The shot is 1380 frames, but is only ever extracts 284. The first time it showed up in BrowseSharp it said there were errors and was missing 25 entries or something. I've heard mlv_dump can sometimes extract these so I tried running that from a command prompt, but cannot get it to work. I only get:

 '.' is not recognized as an internal or external command, operable program or batch file.

I'm not sure where the program needs to be, or how exactly to run it. I saw tutorials for mac, but I'm on a pc, and I'm not sure what I'm doing wrong.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: psantia on May 05, 2014, 08:28:33 PM
The viewer for Mac OS X dose not work on the late Mac OS 10.9.2,at peast for me..it s a shame so no audio,for now
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: rrrmusic on May 08, 2014, 11:52:03 PM
I'm having a little trouble using these (MLVViewSharp/BrowseSharp/MLV_Dump) for the first time. I've always used mlv2dng but wanted to try these since the features are great. I also have my first multiple part file and am unsure how to proceed. I have a .IDX, a .MLV, and 9 other files, numbered .M00 to .M08, which are each 0 kb. BrowseSharp sees the entire file, and ViewSharp will preview the entire file, but when I try to extract .dng's, the process stops at 284 and I'm not sure why. The shot is 1380 frames, but is only ever extracts 284. The first time it showed up in BrowseSharp it said there were errors and was missing 25 entries or something. I've heard mlv_dump can sometimes extract these so I tried running that from a command prompt, but cannot get it to work. I only get:

 '.' is not recognized as an internal or external command, operable program or batch file.

I'm not sure where the program needs to be, or how exactly to run it. I saw tutorials for mac, but I'm on a pc, and I'm not sure what I'm doing wrong.

I have the same problem with some important shots. I tried with mlv_dump, raw2cdng, mlrawviewer and don't extract all the frames. mlv_dump -F 1 --dng ***.mlv without luck. Please help if exist any way to fix this files to extract all the frames.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: DjJuvan on May 10, 2014, 10:28:37 PM
Why doesn't this file manager program have mass export mlv's in to separate folders? It's kinda wrong if it exports all dng's in to one location  :-\
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: budafilms on May 17, 2014, 10:38:03 PM
Doesn't work on OSX Mavericks.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: jimmyD30 on May 25, 2014, 12:32:52 AM
Doesn't work on OSX Mavericks.

Works on OSX 10.9.3, make sure you have latest version Mono MRE installed, you can get it here: http://en.sourceforge.jp/projects/sfnet_mono.mirror/downloads/Mono%203.4.0/MonoFramework-MRE-3.4.0.macos10.xamarin.x86.pkg/ (http://en.sourceforge.jp/projects/sfnet_mono.mirror/downloads/Mono%203.4.0/MonoFramework-MRE-3.4.0.macos10.xamarin.x86.pkg/)

Took a while for it to run the first time after Mono MRE install, just let the wheel spin (still was a little weird, only really kicked in after waiting a while then mousing over app in dock) ... Then it starts very quickly after that, my experience anyway :-)

Also, probably not required, but I restarted computer after install (old PC habits die hard I guess).
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: jwinter on July 24, 2014, 04:28:51 AM
Hi,

Apologies in advance, as I am new.  I have read through as much as I can and my problem remains.
Using the latest nightly (not confidently, don't know if there is a more stable version to shoot raw) on 5d2, shooting MLV with sound.  The MLV viewer plays back the MLVs ok (colour is fine etc, playback a little slow on my little macbook pro.  However, when I export to MOV, the end result is a black screen with green marks on it every time. 

Also the sound is not working (plays a bit, not all), but perhaps that is irrelevant here.

Thank you.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: DeafEyeJedi on October 15, 2014, 08:42:20 PM
all of a sudden the MLV dumper stopped working running Mavricks on 2006 Macbook Pro...

(https://www.magiclantern.fm/forum/proxy.php?request=https%3A%2F%2Ffarm6.staticflickr.com%2F5607%2F15520471706_50226259b1_b.jpg&hash=62ed860424b5ae78fc00c79978b33b58) (https://flic.kr/p/pDutvL)

anyone else out there out experiencing the same issue?

(I accidentally posted this in the wrong section of the forum -- not sure how to delete this and move it over to the MLV Dump section -- my fault @a1ex)
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: dmilligan on October 15, 2014, 11:28:20 PM
rename "mlv_dump.osx" to just "mlv_dump" or change your command to: "./mlv_dump.osx --dng M07-1914.MLV"
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: DeafEyeJedi on October 18, 2014, 08:45:02 AM
Thanks for the hint @dmilligan and I am enjoying your latest MLVFS so far... looking forward to future updates as we all grow within the magic...
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: DeafEyeJedi on October 19, 2014, 06:16:06 AM
Just downloaded the latest update few mins ago.. Thanks @dmilligan! Will let you know how it goes..

Question -- is it always reccommended to take the files out from the mount folder and into the file system (desktop, external drives, etc) as oppose to try running apps within the mount folder itself?

Perhaps it would run faster running off the system rather than or does that not matter?
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: CapitaN on May 17, 2015, 01:55:56 AM
g3ggo, can you upload MLVViewSharp.exe again? The link you have posted in the first post doesn't work anymore.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: aworkofmarc on May 28, 2015, 06:22:01 PM
Yes please -- I second that!  The link to download is broken and doing a search comes up empty. I can not find the program anywhere and, thus far... it's the only way I've found to convert my MLV files to RAW...  accordin to this guy:
Thanks.
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: g3gg0 on May 28, 2015, 08:54:48 PM
fixed
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: aworkofmarc on May 28, 2015, 09:05:34 PM
Thanks!
Title: Re: MLVBrowser is not outputting the WAV file part of the Export RAW+WAV
Post by: aworkofmarc on May 30, 2015, 07:26:22 AM
Hi.

To convert my MLV into RAW I open MLV Browser, select the file I wanted converted, right click and select "Export selected file as RAW + WAV... select the location.. the progress bar shows.. spits out ONLY a RAW file. No WAV file to be seen.

Any ideas why?

I'm following along with this guy at min 3:00 and it works for him!.

Thanks
Title: Re: MLV Viewer to view .mlv (and .raw) files on windows (C#)
Post by: JChance on October 11, 2015, 05:03:55 PM
Hey everyone, new to shooting raw. I tried dowloading MLVBrowseSharp and when installed it doesnt seem to open?

I'm running OS X 10.9.5