(Linux/Mac) convmlv: Featureful MLV Developer

Started by so-rose, March 05, 2016, 12:10:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

so-rose

QuoteWasn,t aware you could change black level with dcraw.

DCraw isn't seeing the BlackLevel tag in the DNG at all, at least on my build of it. The level is correct in the DNG, usually around 2048, but DCraw doesn't automatically integrate it (a bug I expect). However, I'm able to specify the -k option, to manually override the black level that DCraw tries to develop with with the black level I read from the DNG.

Tl;dr I avoid a dcraw bug using exiftool.
convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0

so-rose

Just updated; I ran into an interesting issue: How to transform a relative path into an absolute one.

On Linux, this is easy; readlink -f "relpath" does the job. Does anyone know if something similar exists on Mac?
convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0

Danne

Hi so-rose. ffplay seems to respond well to a slight framerate decrease. For better previewing purposes.
Frames
-r $(echo $fps / 1.3 | bc -l)
Audio
-filter:a "atempo=$(echo $fps / 1.3 | bc -l)/$fps"

nicholas_carroll

Hey so-rose, I am also using Blender and wondering whether you find limitations when using image sequences? For example, I found that the bundled Import Images as Planes takes movie formats but not image sequences.

nicholas_carroll

Tried using convmlv to convert a directory of CinemaDNG files to Prores. Didn't work - am I doing it right?

nick@nick-workstation:~/convmlv-dev$ ls testdng | head -1
BMPC4KNC_1_2016-05-23_0248_C0000_000000.dng
nick@nick-workstation:~/convmlv-dev$ ls
7D_badpixels.txt  convmlv.sh  licence   README.md  testdng
balance.py        docs        mlv_dump  sRange.py
nick@nick-workstation:~/convmlv-dev$ ./convmlv.sh -m testdng
./convmlv.sh: line 310: /home/nick/convmlv.conf: No such file or directory
./raw2dng not found! Execution will continue without .RAW processing capability.
   Get it here: http://www.magiclantern.fm/forum/index.php?topic=5404.0

./mlv2badpixels.sh not found! Execution will continue without badpixel removal capability.
   Get it here: https://bitbucket.org/daniel_fort/ml-focus-pixels/src

./cr2hdr not found! Execution will continue without Dual ISO processing capability.
   Get it here: http://www.magiclantern.fm/forum/index.php?topic=7139.0


1 File Left to Process: testdng

testdng: Using specified folder of RAW sequences...

testdng: Dumping to DNG Sequence...

File not found: /home/nick/convmlv-dev/raw_conv/testdng/tmp_testdng/testdng_000001.dng
File not found: /home/nick/convmlv-dev/raw_conv/testdng/tmp_testdng/testdng_000001.dng
testdng: Retrieving Camera White Balance...
Correction Factor (RGBG): 0.724658 0.551900 1.000000  0.551900

*Not moving .wav, because it doesn't exist.

testdng: Encoding to ProRes...
Non-numeric argument to "-k"

Cleaning Up.


nick@nick-workstation:~/convmlv-dev$ ls raw_conv
testdng
nick@nick-workstation:~/convmlv-dev$ ls raw_conv/testdng/
settings.txt
nick@nick-workstation:~/convmlv-dev$



so-rose

Ah, been away for a while; apologies!

QuoteHey so-rose, I am also using Blender and wondering whether you find limitations when using image sequences? For example, I found that the bundled Import Images as Planes takes movie formats but not image sequences.

First of all, vanilla Blender seems (in my experience) designed to work extremely well with image sequences over movie files. Especially exr sequences are very fast; the decoder for mov files isn't so great, on the other hand.

Second, it seems you've found a bug with DNG input (you're doing it 100% right)! I'm on it  ;)
convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0

DeafEyeJedi

Quote from: so-rose on June 24, 2016, 06:40:59 PM
Ah, been away for a while; apologies!

Second, it seems you've found a bug with DNG input (you're doing it 100% right)! I'm on it  ;)

Nice catch @nicholas_carroll and welcome back @so-rose!
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

so-rose

All right, @nicholas_carroll, I fixed your bug! In fact, I fixed some other related bugs too, as well as some gotchas with DNG sequences. Let me know if you have any problems!

Quotewelcome back @so-rose!

Thanks! I bring features :) . Probably just made more bugs, though... This is really becoming a beast of a program at 1500 lines!  :-\
convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0

arboldeconfianza

HI!, thank youu for this amazing tool! have really good funcionality in LINUX, but i cant not add LUT VISION LOG!, i have to much problems with the result!, what you think is the way for setting LUT with CONVMLV! and make preview before to process, thank youu!

so-rose

Hey @arboldeconfianza ,

You're very welcome :) Glad it can be of use! Adding a LUT is quite simple - just specify -l and the path to the LUT. It can also be done in a config file (see the documentation here: https://github.com/so-rose/convmlv/releases).

To develop an MLV into an MOV while applying a LUT:

convmlv -m -l <path to lut> <path to MLV>

The only way to preview it is to develop a single frame (the 1st for example) of the file. The command below will give you a PNG with the LUT applied:

convmlv -i -t 2 -l <path to lut> -r 1 <path to MLV>


Caveats:

  • Only 3D LUTs under (NOT INCLUDING) 65x65x65 size work, currently - this is ffmpeg's fault.
  • I haven't found any other tool to work with LUTs, but have instead been developing my own - openlut (https://github.com/so-rose/openlut) - to work with 1D LUTs, 3D LUTs, pure gamma formulas, color matrices, etc. . It's not mature enough yet to integrate, but hopefully soon (It recently got 50x faster, so progress :) ).
  • Before openlut is integrated, this limitation won't disappear.
convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0


Danne



michael08

Quote from: Danne on October 02, 2017, 09:33:45 PM
What are you heading for? EXR, ProRes?

how do you think the problem is? on which particular Linux system do you work? I have an ubuntu installed

so-rose

Quote from: michael08 on October 03, 2017, 06:14:24 PM
how do you think the problem is? on which particular Linux system do you work? I have an ubuntu installed
You messaged me about this, but I'll respond here.

You're trying to install convmlv's dependencies with:

sudo apt-get install $(convmlv -K 0)

That's only valid for the Debian dependencies, however, which won't be found on your Ubuntu system. You're on Ubuntu, and should try running:

sudo apt-get install $(convmlv -K 1)

I admit, this nuance could be much more clear in the docs. 0 gives you Debian deps, 1 gives you ubuntu deps, 2 gives you Fedora deps, 3 gives you Mac deps. I'll see about updating the PDF.

Sent from my SM-G930T using Tapatalk

convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0

so-rose

@michael08 I ended up fixing a pretty niche issue that was affecting you. Basically, globbing was turned off in your shell! So running something like:


for f in *.dng; do echo $f; done


Simply doesn't work when globbing is off - it never expands the "*.dng" into all the DNG files. Which is a big issue, not just for convmlv.sh, but probably for any kind of shell script you try to run.

The solution is simple. In your shell, before running convmlv.sh, run:


set +f


That turns globbing back on - as it should be. I pushed a new commit to the repo, where I run 'set +f' at the beginning of convmlv.sh.

If one were to want to turn it off (as was probably done in your case), that'd be 'set -f'. But don't do that, please!
convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0

so-rose

Regarding any problems with split MLV files or color-ext color spaces having washed out colors, please update to v2.0.3 .
convmlv - feed it your footage, it's safe I swear  -   http://www.magiclantern.fm/forum/index.php?topic=16799.0

openlut - recoloring your day, lut by lut  -  http://www.magiclantern.fm/forum/index.php?topic=17820.0