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

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1350 on: May 27, 2018, 10:22:11 PM »
git pull gives following:
Code: [Select]
dans-MacBook-Pro:MLV-App-master dan$ git pull
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.

Then adding what is asked for:
Code: [Select]
dans-MacBook-Pro:MLV-App-master dan$ git pull https://github.com/ilia3101/MLV-App.git
From https://github.com/ilia3101/MLV-App
 * branch            HEAD       -> FETCH_HEAD
Already up-to-date.
dans-MacBook-Pro:MLV-App-master dan$
Then compiling but latest commits not included. I have to redownload the latest https://github.com/ilia3101/MLV-App.git and then latest code works...

escho

  • Contributor
  • Hero Member
  • *****
  • Posts: 563
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1351 on: May 27, 2018, 10:37:59 PM »
How did you get MLV-App-master? This is the folder, if you download the zip-file. If you do a "git clone https://github.com/ilia3101/MLV-App.git", the resulting dir shold be MLV-App. In this folder, you can do "git pull"
https://sternenkarten.com/
600D, 6D, openSUSE Tumbleweed

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1352 on: May 27, 2018, 10:44:31 PM »
I do a curl command:
Code: [Select]
curl -L https://github.com/ilia3101/MLV-App/archive/master.zip -o mlvapp_master.zip && \
unzip mlvapp_master.zip -d ~/
rm ~/mlvapp_master.zip
Should be the same but will try your clone command tomorrow...

Will ty this:
Code: [Select]
git clone https://github.com/ilia3101/MLV-App.git MLV-App-masterWill have to wait for the next commit to see if it will work this time  :P

Meanwhile, uploaded a new version with escho tip:
https://bitbucket.org/Dannephoto/mlv-app-danne/downloads/Mlv_App_compiler.app.zip

jpegmasterjesse

  • Member
  • ***
  • Posts: 100
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1353 on: May 27, 2018, 10:50:01 PM »
Still having trouble compiling, anyone mind helping me? I'm running 16.04

Code: [Select]
$ make
g++ -std=c++11 -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DSTDOUT_SILENT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o MainWindow.o MainWindow.cpp
MainWindow.cpp: In member function 'uint8_t MainWindow::drawZebras()':
MainWindow.cpp:2913:34: error: 'class QImage' has no member named 'pixelColor'
             QColor pixel = image.pixelColor( x, y );
                                  ^
MainWindow.cpp:2918:23: error: 'class QImage' has no member named 'setPixelColor'
                 image.setPixelColor( x, y, Qt::red );
                       ^
MainWindow.cpp:2925:23: error: 'class QImage' has no member named 'setPixelColor'
                 image.setPixelColor( x, y, Qt::blue );
                       ^
MainWindow.cpp: In constructor 'MainWindow::MainWindow(int&, char**, QWidget*)':
MainWindow.cpp:58:70: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
     chdir( QCoreApplication::applicationDirPath().toLatin1().data() );
                                                                      ^
Makefile:905: recipe for target 'MainWindow.o' failed
make: *** [MainWindow.o] Error 1

escho

  • Contributor
  • Hero Member
  • *****
  • Posts: 563
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1354 on: May 27, 2018, 11:12:53 PM »
I do a curl command:
Code: [Select]
curl -L https://github.com/ilia3101/MLV-App/archive/master.zip -o mlvapp_master.zip && \
unzip mlvapp_master.zip -d ~/
rm ~/mlvapp_master.zip
Should be the same but will try your clone command tomorrow...


It´s not the same. You download a zip-file and unzip it. But you don´t initialize your local copy to work with the remote repo. If you do a "git clone...", you get all initialized, what you need. Look in the working.dir of MLV-App. There should be a hidden folder ".git".
https://sternenkarten.com/
600D, 6D, openSUSE Tumbleweed

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1355 on: May 27, 2018, 11:15:43 PM »
Yup, you´re right. Fixed. Thanks for help.

escho

  • Contributor
  • Hero Member
  • *****
  • Posts: 563
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1356 on: May 27, 2018, 11:23:59 PM »
Still having trouble compiling, anyone mind helping me? I'm running 16.04


I have openSUSE here and cannot reach my astrophoto-laptop (kubuntu) before next weekend. Than I can try.
https://sternenkarten.com/
600D, 6D, openSUSE Tumbleweed

50mm1200s

  • Member
  • ***
  • Posts: 177
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1357 on: May 28, 2018, 05:29:21 AM »
Still having trouble compiling, anyone mind helping me? I'm running 16.04

Code: [Select]
$ make
g++ -std=c++11 -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DSTDOUT_SILENT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o MainWindow.o MainWindow.cpp
MainWindow.cpp: In member function 'uint8_t MainWindow::drawZebras()':
MainWindow.cpp:2913:34: error: 'class QImage' has no member named 'pixelColor'
             QColor pixel = image.pixelColor( x, y );
                                  ^
MainWindow.cpp:2918:23: error: 'class QImage' has no member named 'setPixelColor'
                 image.setPixelColor( x, y, Qt::red );
                       ^
MainWindow.cpp:2925:23: error: 'class QImage' has no member named 'setPixelColor'
                 image.setPixelColor( x, y, Qt::blue );
                       ^
MainWindow.cpp: In constructor 'MainWindow::MainWindow(int&, char**, QWidget*)':
MainWindow.cpp:58:70: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
     chdir( QCoreApplication::applicationDirPath().toLatin1().data() );
                                                                      ^
Makefile:905: recipe for target 'MainWindow.o' failed
make: *** [MainWindow.o] Error 1

It's probably some QT issue. Assuming MLVapp is using qt-5, try to install all QT base packages (don't know if ubuntu still has apt-get, but just typing "sudo apt-get install qt-5* qmake*" would do the job).

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1358 on: May 28, 2018, 10:28:50 AM »
I put in some more stuff into Mlv_App_compiler.app:


It´s now uploaded to bitbucket:
https://bitbucket.org/Dannephoto/mlv_app_compiler

Download:
https://bitbucket.org/Dannephoto/mlv_app_compiler/downloads/mlv_app_compiler.dmg

@Ilia3101
Does it makes sense to include Cocoa compiling? DOes it even work atm? Just tried but no success here.
Is there more stuff we could put in here?

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1956
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1359 on: May 28, 2018, 10:46:18 AM »
It's probably some QT issue. Assuming MLVapp is using qt-5, try to install all QT base packages (don't know if ubuntu still has apt-get, but just typing "sudo apt-get install qt-5* qmake*" would do the job).
It looks like your Qt5 is too old. Which Qt5 is it? Minimum is 5.6, if I remember right.
Edit: The Qt documentation tells for void QImage::setPixelColor(int x, int y, const QColor &color) : "This function was introduced in Qt 5.6."

@Danne: at least for me an option is missing to just update the working copy to the latest revision.
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1360 on: May 28, 2018, 10:54:01 AM »
It´s updating once it starts:
Code: [Select]
if ! [ -d ~/MLV-App-master ]
then
git clone https://github.com/ilia3101/MLV-App.git MLV-App-master
cd ~/MLV-App-master
else
echo "updating MLV-App-master source"
cd ~/MLV-App-master
git pull
fi
Either it pulls the latest if the whole repo is missing or it does git pull to update. SHould this be a menu option instead and leave auto update out of the compiler?

brew qt is this version atm:
5.11.0
Too new?

This is happening when compiling Cocoa app:
Code: [Select]
3 warnings generated.
1 warning generated.
clang  -mmacosx-version-min=10.10 -O3 -Ofast -m64 -DNDEBUG main.o video_mlv.o debayer.o amaze_demosaic.o raw_processing.o main_methods.o useful_methods.o background_thread.o matrix.o camera_matrices.o frame_caching.o lj92.o session_methods.o delegate.o mlv_view.o llrawproc.o pixelproc.o stripes.o patternnoise.o hist.o dualiso.o avf_lib.o filter.o genann.o dng.o darkframe.o camera_id.o audio_mlv.o -o "MLV App" -framework Cocoa -framework AppKit -framework Foundation -framework CoreFoundation -framework OpenGL -framework CoreMedia -framework AVFoundation -framework CoreVideo;
Undefined symbols for architecture x86_64:
  "_blur_image_threaded", referenced from:
      _applyProcessingObject in raw_processing.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [build] Error 1
cp: MLV App: No such file or directory
rm -rf "MLV App" "MLV App".app main.o video_mlv.o debayer.o amaze_demosaic.o raw_processing.o main_methods.o useful_methods.o background_thread.o matrix.o camera_matrices.o frame_caching.o lj92.o session_methods.o delegate.o mlv_view.o llrawproc.o pixelproc.o stripes.o patternnoise.o hist.o dualiso.o avf_lib.o filter.o genann.o dng.o darkframe.o camera_id.o audio_mlv.o *.o

Also tested Cocoa app against qt 5.8, no change...

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1956
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1361 on: May 28, 2018, 11:00:24 AM »
Ah, you included it... nice! I did not say anything ;) Cool!

5.11.0 should work, but I never tried it. I had such problems with an old 5.4 or something...

In the cocoa version the multithread blur module is missing in the makefile... I implemented this some weeks ago, but did not adapt the makefile.

Edit: corrected.
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1362 on: May 28, 2018, 11:03:53 AM »
hehe, I mixed up your anwer to me and 50mm1200s :).

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1363 on: May 28, 2018, 11:20:58 AM »
Awesome masc. Cocoa compiles.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1956
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1364 on: May 28, 2018, 04:04:11 PM »
@Danne: I wanted to try out your TIF_CLEAN script. Nothing happens... the LOG tells "exiftool: MISSING!". Doesn't the script install it?
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1365 on: May 28, 2018, 04:33:04 PM »
Good catch masc. Placed the cat command at the wrong spot. Just fixed and uploaded to master branch.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1956
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1366 on: May 28, 2018, 04:51:40 PM »
@Danne: thx, it installed it now. But... does it do something? Can you say some words how to use it? Does it work only on TIFF sequence, or also on other files? After less than a second it tells "completed" for 50 frames... is it really so fast?!
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1367 on: May 28, 2018, 04:59:42 PM »
It´s actually painfully slow. It works like this:
#the script uses 5 files to average/enfuse into one file then moves forward to the consecutive frame. Surrounded tifs are used. E.g tif1,tif2,tifinput,tif3,tif4
#final output is a high quality prores file

Meaning it will create one image out of surrounded two files before and two after the file that is getting cleaned. It´s multiprocessing but I made do two passes so it´s still very slow.


By the way. Something strange is going on over here. When compiling I am getting this:

Code: [Select]
ERROR: no file at "/usr/local/opt/qt/lib/QtMultimedia.framework/Versions/5/QtMultimedia"
ERROR: no file at "/usr/local/opt/qt/lib/QtNetwork.framework/Versions/5/QtNetwork"
ERROR: no file at "/usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore"
ERROR: no file at "/usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui"
ERROR: no file at "/usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets"

When trying to open Mlv App:
MLV App cannot be opened because of a problem.
Check with the developer to make sure MLV App works with this version of macOS. You may need to reinstall the application. Be sure to install any available updates for the application and macOS.

Some dynamic library missing:
Code: [Select]
Time Awake Since Boot: 1900 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/qt/lib/QtMultimedia.framework/Versions/5/QtMultimedia
  Referenced from: /Users/USER/*/MLV App.app/Contents/MacOS/MLV App
  Reason: image not found

Binary Images:
       0x104d4d000 -        0x104f98ff3 +magiclantern.MLV App (0.16 alpha - 0) <11181830-1437-3390-BE93-94B78D72FB06> /Users/USER/*/MLV App.app/Contents/MacOS/MLV App
       0x11723b000 -        0x117278267  dyld (421.2) <947FC440-80F9-32F7-A773-6FC418FE1AB7> /usr/lib/dyld
    0x7fffc91ae000 -     0x7fffc936dffb  com.apple.avfoundation (2.0 - 1187.11.13) <0D0BB4A4-F987-381B-885E-88A81F50FD50> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
    0x7fffcc539000 -     0x7fffcc539fff  com.apple.Cocoa (6.11 - 22) <CF1AD0E9-2257-35FE-B719-760B58E405C9> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fffccaaa000 -     0x7fffccf3eff7  com.apple.CoreFoundation (6.9 - 1348.28) <0F1FAA52-1C06-327E-A170-382B48B1846D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fffcd88d000 -     0x7fffcd93dfff  com.apple.CoreMedia (1.0 - 1907.15.15) <B5B8C128-C1C2-3585-9B43-41141B2C6332> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
    0x7fffce205000 -     0x7fffce23afff  com.apple.CoreVideo (1.8 - 234.0) <48C31E93-87C2-31F4-97E7-9E54C1EA8E7D> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fffce53f000 -     0x7fffce8e6ff3  com.apple.Foundation (6.9 - 1349.25) <D820A498-2E62-367D-BC72-5845B14C06E3> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

Click Report to see more detailed information and send a report to Apple.

Are you getting any issues?

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1956
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1368 on: May 28, 2018, 05:03:54 PM »
Okay... then I am very sure the script does nothing for me. :( It only tells "completed".

Have you tried to delete the old "MLV App.app" before compiling? Then you can use macdeployqt, which links the libs into the app package.
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1369 on: May 28, 2018, 05:14:05 PM »
Sorry to hear the script doesn´t run. Could you upload the log you think?

I opened up a can of worms just now by uninstalling and reinstalling qt via brew. All bets are off it seems, lol. Gonna take me a while...

Ok, found both issues. Will fix them asap. Stay tuned.

Edit:
Pushed a fix, should work now...

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1956
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1370 on: May 28, 2018, 10:34:55 PM »
Thx Danne... it seems that it does something now - and yes, it really seems to be very slow. Tomorrow I'll see if it has done the right thing :D
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1371 on: May 28, 2018, 10:40:00 PM »
Moving subject could be problematic, otherwise it will work pretty good.
Played around some with aligning and stacking around 20 files(workflow more suitable for still image workflows) resulting in noiseless output. Good starting point for superresolution output.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1956
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1372 on: May 29, 2018, 01:53:11 PM »
Yes, as you wrote - moving subjects are problematic... I see it :) Maybe I'll try this evening with another shoot. But: IT WORKS! Hej...
There is only one more thing: when starting MLV App from QtCreator and starting the script, the ApplicationLog (in QtCreator) tells these lines (but the script is working after this output):
Code: [Select]
rm: /tmp/TIF_CLEAN.command: No such file or directory
rm: /Users/<username>/Desktop/Test/TIFCLEAN_LOG.txt: No such file or directory
ls: *.AVI: No such file or directory
ls: *.MKV: No such file or directory
ls: *.MOV: No such file or directory
ls: *.MP4: No such file or directory
ls: *.avi: No such file or directory
ls: *.mkv: No such file or directory
ls: *.mp4: No such file or directory
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1373 on: May 29, 2018, 02:01:31 PM »
Ok, it's my sloppy bash all file search solution. I see if I can do something more elegant here  :P

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7252
Re: Making a New MLV Processing App! [Windows, Mac and Linux]
« Reply #1374 on: May 29, 2018, 02:52:27 PM »
@masc
Could you test dropping this into Mlv App and tell me if it still tells the same messages?
https://bitbucket.org/Dannephoto/magic-lantern/downloads/TIF_CLEAN.command