Author Topic: raw2mlv processing  (Read 9309 times)

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: raw2mlv processing
« Reply #100 on: November 16, 2019, 01:12:50 PM »
(Sony raw will have to wait).

What does this mean

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1700
Re: raw2mlv processing
« Reply #101 on: November 16, 2019, 01:22:51 PM »
What does this mean
I filtered file extensions in MLVApp, to not send e.g. mp3, exe, docx, ... to your lib. I had a look what libraw supports and took just the most important file extensions. See latest commit messages on repos, then you'll understand. Yesterday evening I got some Sony raw files and tried them out... after I added the extension to the filter. Looks like I did that after @cmh compiled...
5D3.113 | EOSM.202

cmh

  • Contributor
  • Member
  • *****
  • Posts: 137
Re: raw2mlv processing
« Reply #102 on: November 16, 2019, 05:02:03 PM »

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3397
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: raw2mlv processing
« Reply #103 on: November 20, 2019, 07:11:00 AM »
This is all fantastic progress. Loving the collaborations from everyone on here.  8)

Especially @garry23 for making sure we don't put photography on the back burner.
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

2blackbar

  • Senior
  • ****
  • Posts: 418
Re: raw2mlv processing
« Reply #104 on: November 29, 2019, 06:00:03 AM »
Would it be possible to make dng's from google pixel cameras working ? They shoot raw as well and i tried to convert their dng by importing in mlvapp , that didnt worked, shows gray image, i can edit them as regular dng files in other programs like rawtherapee but id love to open them in amazing MLVApp.
Heres link to the dng, i dont know how different it is from other dng's :
https://drive.google.com/open?id=1gUkQd9ssmG2dH-JlAtNnAj25weGy6YiI

AF-OFF

  • Member
  • ***
  • Posts: 109
  • 50Dc EOSM
Re: raw2mlv processing
« Reply #105 on: December 08, 2019, 07:32:22 PM »
I tried to integrate RAW2MLV to MLVApp. To use this, compile and install raw2mlv like this (path of MLVApp executable):

If MLVApp finds this executable, it will show this action:

Triggering brings:

Select single picture or a sequence folder, then click "Transcode and Import", choose a destination folder. Then it will need some time - WAIT! - and the converted files show up in the session.

TESTED ON OSX ONLY! Linux might work too, on Windows I expect some additions. AND: only the "good" use case works - no error handling at all. So if you do s*** you will get s***. :P

This doesn't work for me on any of my macs. Any help would be appreciated.
I have MBP with Yosemite, MBP with Catalina and Macpro5.1 with High sierra.
What I dit, just extracted the executeable from the raw2mlv.app and copied it to the MLV10.1 package inside of Macos folder. Checking in Terminal, it shows the correct right like mlv or ffmpeg executables.

Fortunately, raw2mlv.app standalone works well

I also became curious, if it works with CHDK - generated cr2 files from my sx220 - sadly it doesn't
The files are recognised by the mac finder and raw2mlv generates a mlv video clip, but this is pure white only. So maybe this is no real cr2 file I assume. Anyone using CHDK also who can check this?

thanks

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1700
Re: raw2mlv processing
« Reply #106 on: December 08, 2019, 07:45:06 PM »
This doesn't work for me on any of my macs. Any help would be appreciated.
I have MBP with Yosemite, MBP with Catalina and Macpro5.1 with High sierra.
What I dit, just extracted the executeable from the raw2mlv.app and copied it to the MLV10.1 package inside of Macos folder. Checking in Terminal, it shows the correct right like mlv or ffmpeg executables.

Fortunately, raw2mlv.app standalone works well
Do you use MLVApp 1.10 official release? This function is not included in the release. You'll need to compile MLVApp master branch yourself, in order to use this. It was "too much beta" for beeing included to the release.

I also became curious, if it works with CHDK - generated cr2 files from my sx220 - sadly it doesn't
The files are recognised by the mac finder and raw2mlv generates a mlv video clip, but this is pure white only. So maybe this is no real cr2 file I assume. Anyone using CHDK also who can check this?
Got this with a few other files too... did not found out why. This is the beginning of this tool... still much work to do.
5D3.113 | EOSM.202

AF-OFF

  • Member
  • ***
  • Posts: 109
  • 50Dc EOSM
Re: raw2mlv processing
« Reply #107 on: December 08, 2019, 07:50:44 PM »
Ah thanks for clarification Masc - I did understand Your post which I was quoting as this has to be done manualy anyways. Yes using now the newest 1.10 release

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1700
Re: raw2mlv processing
« Reply #108 on: December 08, 2019, 07:58:20 PM »
Yes, correct, it has to be done manually in addition to the "self compiled version".
5D3.113 | EOSM.202

AF-OFF

  • Member
  • ***
  • Posts: 109
  • 50Dc EOSM
Re: raw2mlv processing
« Reply #109 on: December 08, 2019, 08:04:28 PM »
Ah ok
1. compile yourself MLVApp master branch
2. put the executable inside of MLVApp

Thanks again for clarification Masc

2blackbar

  • Senior
  • ****
  • Posts: 418
Re: raw2mlv processing
« Reply #110 on: December 13, 2019, 04:30:02 AM »
HEy guys i extracted camera matrices from dng files its quite easy with exiftool and dng file that you can easily obtain over internet.
https://exiftool.org/
I would like to compile this new version with 2 new camera matrices so they could work in MLVApp, pixel 2 XL and sigma fp, can someone help ?
https://drive.google.com/open?id=1LTOjL_AXI2MKwlQb7c_duNt5vV5fxVMs
Im installing ms visualstudio... or not, i dont have 8gb free atm, any other way to compile windows build without having to download over 7GB just to get small exe compiled ?

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: raw2mlv processing
« Reply #111 on: December 13, 2019, 07:44:17 PM »
Thanks. You don't need all of Visual Studio, only the "Build Tools for Visual Studio" - I think this is the one: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019

I think it's still a few GB. I don't know how to solve windows for you.

2blackbar

  • Senior
  • ****
  • Posts: 418
Re: raw2mlv processing
« Reply #112 on: December 16, 2019, 01:50:28 AM »
with help of user cmh i compiled raw2mlv on windows, he explained to me what You have to do:
Quote
Download and install msys2-x86_64-20190524.exe from http://www.msys2.org/ (default path).

Update the package database and core system packages:
$ pacman -Syu
It will show "terminate MSYS2 without returning to shell and check for updates again"
Close MSYS2, run it again from Start menu. Update the rest:
$ pacman -Su

You need a build environment and libraw:
$ pacman -S git mingw-w64-x86_64-toolchain mingw-w64-x86_64-gcc mingw-w64-x86_64-binutils mingw-w64-x86_64-cmake mingw-w64-x86_64-libraw

MSYS2 is now set, close it and open MSYS2 MinGW 64-bit from the start menu:

Clone LibMLV's repo from github:
$ git clone https://github.com/ilia3101/LibMLV.git

Now cd into raw2mlv's folder:
$ cd LibMLV/raw2mlv/

Clone Libraw's repo from github:
$ git clone https://github.com/LibRaw/LibRaw.git -b 0.19-stable

With a decent editor (like notepad++), edit C:\msys64\home\<username>\LibMLV\raw2mlv\makefile

CC=gcc
FLAGS=-c -O3

main: raw2mlv_c LibMLV
   $(CC) raw2mlv.o libraw_r-19.dll ../LibMLV/build/unix/libMLV.dll -o raw2mlv -lm -lstdc++

raw2mlv_c:
   $(CC) $(FLAGS) raw2mlv.c

LibMLV:
   $(MAKE) -C ../LibMLV/build/unix


Edit C:\msys64\home\<username>\LibMLV\LibMLV\build\unix\makefile

CC=gcc
FLAGS=-c -fPIC -O3

main: MLVWriter MLVReader MLVFrameUtils
   ar rcs libMLV.dll *.o
   $(CC) -shared MLVWriter.o MLVReader.o MLVFrameUtils.o -o libMLV.dll

MLVWriter:
   $(CC) ../../MLVWriter.c $(FLAGS)

MLVReader:
   $(CC) ../../MLVReader.c $(FLAGS)

MLVFrameUtils:
   $(CC) ../../MLVFrameUtils.c $(FLAGS)


Copy libraw_r-19.dll from C:\msys64\mingw64\bin in C:\msys64\home\<username>\LibMLV\raw2mlv

Compile
$ mingw32-make
So makefile in raw2mlv looks like this :
Code: [Select]
CC=gcc
FLAGS=-c -O3

ifeq ($(shell uname -s), Linux)
main: raw2mlv_c LibMLV
$(CC) raw2mlv.o libraw_r-19.dll ../LibMLV/build/unix/libMLV.dll -o raw2mlv -lm -lgomp -lstdc++
else
main: raw2mlv_c LibMLV
$(CC) raw2mlv.o libraw_r-19.dll ../LibMLV/build/unix/libMLV.dll -o raw2mlv -lm -lstdc++
endif

raw2mlv_c:
$(CC) $(FLAGS) raw2mlv.c

LibMLV:
$(MAKE) -C ../LibMLV/build/unix



makefile in unix folder looks like this :
Code: [Select]
CC=gcc
FLAGS=-c -fPIC -O3

main: MLVWriter MLVReader MLVFrameUtils
ar rcs libMLV.a *.o
$(CC) -shared *.o -o libMLV.so

MLVWriter:
$(CC) ../../MLVWriter.c $(FLAGS)

MLVReader:
$(CC) ../../MLVReader.c $(FLAGS)

MLVFrameUtils:
$(CC) ../../MLVFrameUtils.c $(FLAGS)
And it compiles fine.Then just copy exe where you have old one with dlls/overwrite
Im posting this for myself and other in the future who would like to tinker with this on windows
We have very helpful people on forums, in last couple of weeks i was able to compile my own versions of Magic lantern, MLVapp and now raw2mlv , thanks a lot guys ! half year ago i wouldnt even dare to try despite getting dirty with sourcecode before.Setting eveyrthing up is sometimes pain in the butt and i appreciate all help.

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: raw2mlv processing
« Reply #113 on: December 17, 2019, 10:19:03 PM »
Very good! I will make an MSYS2 build folder. Would this work with minGW/cygwin too?

2blackbar

  • Senior
  • ****
  • Posts: 418
Re: raw2mlv processing
« Reply #114 on: December 18, 2019, 10:36:45 PM »
I have cygwin installed for ML compiling and yes i did it in very similar fashion with help of Daniel Fort tutorial on forum but there was an issue there with utilities updated on server and tutorial calling for too old version its fixed now.

vstrglv

  • Member
  • ***
  • Posts: 232
Re: raw2mlv processing
« Reply #115 on: March 06, 2020, 12:10:39 PM »
Canon 5D3,1.1.3; Canon EOS M,202,  CF-SanDisk Extreme PRO,160MB/s, 256GB, SD-SanDisk Extreme Pro, 170MB/s, 128GB.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1700
Re: raw2mlv processing
« Reply #116 on: March 06, 2020, 12:13:19 PM »
5D3.113 | EOSM.202

vstrglv

  • Member
  • ***
  • Posts: 232
Re: raw2mlv processing
« Reply #117 on: March 06, 2020, 12:46:10 PM »
Thanks a lot! It works! It neads vcruntime140_1.dll. I am on Win10. Max number of *.dng files is between 600 and 700.
Canon 5D3,1.1.3; Canon EOS M,202,  CF-SanDisk Extreme PRO,160MB/s, 256GB, SD-SanDisk Extreme Pro, 170MB/s, 128GB.

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: raw2mlv processing
« Reply #118 on: April 19, 2020, 10:26:30 PM »
Added binning feature to raw2mlv - now you can simulate how your raw photo would look if it was shot as a MLV video.

Simply add "--binning 3" to your command (or 5 if you want 5x5 binning)

Some example MLVs created from 5Ds stills: https://drive.google.com/file/d/19Np6y-0iHeihtM875aHNdCSwEALff6DW/view?usp=sharing

Wouldn't it be nice if the 5Ds could shoot MLV ;) ;) ;)