Author Topic: MLV App 1.11 - All in one MLV Video Post Processing App [Windows, Mac and Linux]  (Read 483312 times)

pc_bel

  • Member
  • ***
  • Posts: 132
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #75 on: July 25, 2017, 09:14:41 PM »
@Ilia3101 @masc

You are wellcome!!!... If you need some more sample, just let me know. Thanks for all your hard work. You are awesome.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #76 on: July 26, 2017, 10:25:23 AM »
Nice! No more crashing on macOS Sierra 10.12.3
Exported to format png. Not bad. Files are looking really good. Any plans for dng exports ;).
Anyway.
How are prores exports in the cross platform version handled? Thought I read ffmpeg somewhere but I must have dreamt that.

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #77 on: July 26, 2017, 11:06:59 AM »
You didn't dream it ;) not sure about all the details of how masc's implementation works though, but it is definitely ffmpeg. The Cocoa version will hopefully get native macOS/AVFoundation powered prores export, but AVFoundation is taking me a while to figure out.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1687
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #78 on: July 26, 2017, 12:46:02 PM »
How are prores exports in the cross platform version handled? Thought I read ffmpeg somewhere but I must have dreamt that.
Yes, since version "Qt 0.2 alpha" we have prores export for Windows and Linux. I had problems to include a library version of FFmpeg. That's why I took the command line app to the package. So at the moment it is realized very easy: first a png sequence is rendered and then these pictures are converted to the mov. This is not optimal, because the pngs have only 3x8bit.  For the future I plan to take the library of FFmpeg, because we get more than 8bits... ;)
5D3.113 | EOSM.202

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #79 on: July 26, 2017, 12:54:02 PM »
I see, intermediate png. You should be able to get 10bit prores4444 out of ffmpeg. I run that in Switch.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1687
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #80 on: July 26, 2017, 08:32:13 PM »
Right, it is 10 bit. Unfortunately the png output of Qt is only 8 bit... What do you mean with Switch?
5D3.113 | EOSM.202

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #81 on: July 26, 2017, 08:34:58 PM »
Switch, open source scriptbased macproject.
http://www.magiclantern.fm/forum/index.php?topic=15108.0

 

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1687
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #82 on: July 26, 2017, 09:06:39 PM »
Ah okay. Thx. I read that a time ago, great project... :)
5D3.113 | EOSM.202

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1687
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #83 on: July 29, 2017, 02:41:07 PM »
I uploaded a new version of the Qt app for OSX & Windows. The windows version has caching disabled, so we have only a view crashes, but it is a little slower. Now it crashes (for me) only on files >2GB. Have fun!
https://github.com/ilia3101/MLV-App/releases/tag/QTv0.3alpha
5D3.113 | EOSM.202

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #84 on: July 31, 2017, 11:24:13 PM »
New release of Cocoa version!

Has ProRes 4444 export. Finally!
It is a temporary solution as it uses ffmpeg, not AVFoundation, but it makes the app a whole lot more usable. Used masc's intermediate PNG method for now.
Note: When you export prores, the app will freeze with the spinning ball, this is it exporting, not a crash. Just leave it until done for a few minutes.

Also converted it in to a .app bundle - in it's current state where it uses ffmpeg, it cannot work outside the bundle as a command-line app, but this ability will be returned once it gains AVFoundation export, as it will be able to live as a single executable file.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #85 on: August 01, 2017, 12:03:06 AM »
hehe, great progress!

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #86 on: August 02, 2017, 01:19:23 PM »
Fixed the main problem of the app's processing: poor highlight rolloff
There is now a 'Reinhard Tonemapping' option.

Comparison:

Tone mapping disabled on the left, enabled on the right.

Also it's different from highlight reconstruction, as it does not create new highlights, it simply avoids clipping existing ones.

New release on GitHub.

Next step is adding audio support. Is MLV sound compressed?

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #87 on: August 02, 2017, 01:24:14 PM »
Looks very nice Ilia!

bouncyball

  • Contributor
  • Hero Member
  • *****
  • Posts: 806
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #88 on: August 02, 2017, 02:08:58 PM »
Sound from MLVs not compressed it's pure PCM.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #89 on: August 03, 2017, 11:29:59 PM »
Not bad, Reinhard tonemapping. I tried to export to ProRes4444 but couldn´t get a file out. After pressing button a prompt want s me to "open"? A folder perhaps :)? Anyway. Pressing open didn´t get me a file.

Speaking of tone mapping. FFmpeg seems to be doing something...
https://patchwork.ffmpeg.org/patch/4361/

Hable tonemapping?
Slide 140
https://www.slideshare.net/ozlael/hable-john-uncharted2-hdr-lighting

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #90 on: August 04, 2017, 12:07:11 AM »
@bouncyball Thanks, working on sound currently

@Danne yeah, I guess the open dialog is confusing, its a slight hack I had to do before I put it in an .app bundle - I had to use an open dialog instead of a save dialog.
You are right: you choose a folder and it exports to there after you click open (the app & dialog freeze as if to crash, but you just need to wait a couple of minutes while it exports - it is in need of a progress bar, I promise I'll fix that soon)

And speaking of the "Hable tonemapping" - I came across it while looking in to tone mapping, just Reinhard was the easiest to implement - literally: value = value / (1.0 + value), but adding a better more complex tone mapping formula wouldn't hurt the performance at all, as the app precalculates a 0-65535 look up table (processing is done in 16 bit integers), instead of calculating all pixels individually. I might do that soon, as from what I've seen Uncharted2 mapping looks a little better.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #91 on: August 04, 2017, 12:43:48 AM »
You´re right. I chose an unshortened file and as expected created PNG files and then...nothing :). Got this message. Last line.
Code: [Select]
2017-08-04 00:47:42.136 MLV App[85848:713418] Exported frame 143 to: /Users/dan/Desktop/MLV_files/test_Ilia/.temp_png/frame_00143.png
sh: (null): command not found

Does it mean I have 143 png files in a hidden temp folder?

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #92 on: August 04, 2017, 01:15:18 AM »
The files are most likely deleted by the app, but to check, do this in terminal: 
Code: [Select]
defaults write com.apple.finder AppleShowAllFiles YES.
Then go to the export directory (that you chose) in finder, and if there is a greyed out looking folder called .temp_png, delete it, if not, then the app automatically deleted it and it's fine. You can then do the terminal command but with 'NO'

Not sure why it didn't work for you, did you use the executable file on its own outside the app bundle?

I've done the prores 4444 export on videos up to 245 frames long by the way ;D

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #93 on: August 04, 2017, 01:18:19 AM »
I compiled from source "make" and double click the mlv app binary. Gui opens and terminal window is also opened.

ilia3101

  • Moderators
  • Hero Member
  • *****
  • Posts: 924
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #94 on: August 04, 2017, 01:23:04 AM »
Ah I see! The way I've got the makefile set up is: you need to type 'make app' not just 'make', if you want an app bundle.

There's a whole shell script and a compiled+executed c program inside the makefile that builds the app bundle during the make process.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #95 on: August 04, 2017, 01:50:25 AM »
Now that is badass. Got my first baby ProRes :)

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3397
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #96 on: August 04, 2017, 01:54:55 AM »
@Ilia3101 continues to make waves. This is all indeed badass!
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6931
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #97 on: August 04, 2017, 02:06:15 AM »
Yes. You can make a "log"-like prores with corrected white balance in no time. Makes all the difference. The file comes out looking real nice.

pc_bel

  • Member
  • ***
  • Posts: 132
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #98 on: August 04, 2017, 10:46:51 AM »
Hi,
Now with v0.3 alpha I don't have any crash!!!! :) but I can see... nothing. Just pink noise. I'm playing 14bit lossless files in the qt version of the app.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1687
Re: Making a New MLV Processing App! - Mostly for Mac (Right Now)
« Reply #99 on: August 04, 2017, 11:58:22 AM »
but I can see... nothing. Just pink noise. I'm playing 14bit lossless files in the qt version of the app.

What platform do you use? And what size do the files have? I am not sure, if the code from @Ilia supports lossless already.
I get a lot of pink noise when (normal) mlv files are bigger 2GB, on both, Mac & Windows. We have plans to avoid that in future...
5D3.113 | EOSM.202