Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - scrax

#26
General Development / Re: Portable ROM dumper
April 19, 2019, 06:45:26 PM
Ohhh right.. what a stupid question...
for the fir is needed the encription key, for the .bin bootflag -> UART
#27
General Development / Re: Portable ROM dumper
April 19, 2019, 09:20:20 AM
Quote from: a1ex on January 25, 2016, 09:29:53 AM
Latest download: autoexec.bin (2019Feb17, c019793)

- red = not working, no idea how to fix


Is this still true? Because in the EOS R thead seem solved, right?
Maybe this build don't have the fixes for the R ?

And maybe will be usefull to have also the .FIR build in first post?
#28
Scripting Q&A / Re: lens.focus problem
April 18, 2019, 08:07:38 PM
I have problems with focus motors on both the bundled EF-S 18-55mm f3,5-5,6 IS II and EF-S 17-85mm f4-5,6 IS USM. simply they make up more friction, motor can't stand to move then and thinks the lens got stuck or gives erros like fake end of the focus movement.
Both are not so nice lenses and also got a lot of abuse (the 17-85 has the diaphram totally broken can take pic only at full aperture or it gives err 1, I'm unsure to replace it because the focus problem, and it's a lens that even when under warranty had to go to service for a couple of times.)

ThOSeare the "good" ones but still they are not so reliable
EF 50mm f1,4 usm (172 steps)
EF 100mm f2,8 usm macro (632 steps)
EF 70-200mm f4 L usm (303 going up, 292 coming back)
steps are measured with one step increments (changin to 3 makes the focus movement to bee to much in both direction with ML notification Focus: soft limit reached

#29
Quote from: ioman on April 18, 2019, 10:26:01 AM
Ok, I will try to compile. I can compile and run QEMU even when I have not M50 yet right?

As for the cheapness.. do you think it could get cheaper maybe in 6 months? (canon about to release 2 new M models).
The current price is still to much for me. Now I have M10 and I need to go to M50 (big improvement. :) )

Regards,
Jakub

I was thinking you already had it; to run qemu you need a dump of the firmware from the camera you want to emulate
#30
Quote from: KelvinK on April 18, 2019, 10:04:20 AM
@scrax Getting M50 now is a good choose! Ultra cheap, Viltrox SpeedBooster and with ML it will be a small beast.
Exactly, those are the reason mainly.
#31
Quote from: garry23 on April 18, 2019, 07:27:55 AM
@scrax

Good, at least you are able to test.

I'm intrigued you get f/32, as I set APEX 9, ie f/22.

The lens.focus() failure was hinted at by @a1ex in his API test script, ie on some cameras the smallest step size may not work. On my 5D3 it does, but on your Rebel things look flaky. I'll look it to it, but I used the smallest step size get the closest convergence to the request focus distance. The small step size seems OK on my 5D3 (and I only write scripts for myself, but freely share for others to adapt  ;) )

BTW for macro I find the G7X (brought mine on eBay), with its min focus distance of 50mm, at a FL of about 9mm, a pretty good set up for semi-macro. See here for a version of the script I wrote over at CHDK: https://chdk.fandom.com/wiki/Landscape_Focus_Bracketing_:_perfect_near_to_far_focus_brackets
With compact camera I had a lot of fun years ago doing semi-macro but what I dislike is that now they are almost all missing the viewfinder...
Probably I'll get a ring to invert some old FL lenses (and then lose the auto focus staking)  :'(
#32
Quote from: jpegmasterjesse on April 09, 2019, 04:57:28 AM
Anyone have any pointers for porting Switch to Android? Thinking primarily for DUAL-ISO photo conversion - I don't think I want to mess around with MLV's on a smartphone. Although....
Switch works on Linux too?
So you can try to start it with termux...

Hum, seems to use sudo so you need to have a rooted phone, and so far even with it gives problems.
#33
Quote from: Lars Steenhoff on December 08, 2017, 11:20:57 AM
Hi small update to the GUI has been done,

now its possible to select input folder and output folder, I'm now going to investigate how to connect the buttons in the gui the to switch command for input and output.

https://bitbucket.org/Dannephoto/switch_gui/overview

https://vimeo.com/246417987


Have you tried CocoaDialog (v2)

I was using it in for raw2dng.app years ago, with platypus as wrapper fo the scripts.
You can see inside the pkg it's not loked up so it's easier to see how it works:

rv=`CocoaDialog fileselect \
--text "Select some files and/or directories to convert or scan" \
--with-directory $HOME/Images/ \
--with-extensions .422 .MOV .CR2 .SH .JPG .jpg .WAV .LOG .AVI .RAW .DNG .XMP .MLV .UFR\
--select-directories \
--select-multiple`
if [ -n "$rv" ]; then
                ...
                fi


With xcode could probably made nicer, but maybe this helps.
#34
Quote from: ioman on April 17, 2019, 11:32:55 PM
Hello. I just wanted to ask - how is the current state of ML port for M50? I would need bracketing function as I believe its not possible with the original firmware. I would also help contributer as I am developer, but I am javascript specialist and I think there is no use of that. :)

Thx. :)

Welcome, you can start by clone repo, setup the toolchain and try to compile ML, that way you can follow development and make your tests, give feedback, make small changes (at first) and who knows that maybe the next big discoveries will come from your findings...

I'm thinking to get a M50 too, even if I was more interested in the RP but the new firmware signature freezed my hopes (for now)
#35
Quote from: garry23 on April 18, 2019, 12:06:51 AM
@scrax

You said the bookend was f/32. Really. I can't see how.
Will see if it happens again
Quote
A B of 666 says your aperature is too small, i.e. diffraction.
I found the lowest value at f/9 with the 55mm. I've started with a high f number to have more DOF (opss)
Quote
Try using at lower focall lengths, eg 18 and varying focus to see B change.
Yes it varies consistently, but I was tring it on a small rock and the 55mm was the best for framing

Quote
The lens.focus problem may be related to the script using the small step size to fine tune.
Totally agree I've managed to make it work by helpin the lens "by hands"

QuoteThanks for your testing.
Thanks you for sharing it, I'll try on landscape too.


For the macro is not ideal, as you know.
In the end I've used the usual focus stack in ML (also because it saves also a script for enfuse and it works so well)
I've tried to blend the images also with hugin but it after one hours setting it with like 30 pic it got stuck when rendering the merge image.

attached an example of the stacked image (bw) and the first one of the stack (color)
#36
Quote from: garry23 on April 17, 2019, 11:38:06 PM
@scrax

I wouldn't use SET as it gets used a lot elsewhere.

Choose something else.

Cheers

Garry

I've put set because was the faster to edit with the integrated editor  :P
but then I've used the pc to remove the duplicated script and set it to play  ;)

Also I suppose that this lens could have problem with focus, will try other lenses to compare...
I think the proble in the lens is that with 1 step focus the motor can't move focus, had to set to 2 in focus settings, but seems that the script don't change.
Is it changing 1 step at time?
#37
Here we are, after reading your interesting blog post, installed script and first problem is Rebels don't have a rate button, so changed in cmera to SET, but then instead of overwriting your module i've saved it as another one and BUM
lua get crazy (I have aso the focus bar enabled) is like ML is fighting with console for using the screen...

Second round: only one script  :P

With only this script loaded after starting it I got b=666 and camer was set to 1/4000 f32 (for the dark frame). So I've set up camera for the nearest object that should be focused and started the script.

Scipt take one pic and then seem stuck... I was stuck all the time I was writing this and then I've tried to press halfshutter and it took another pic...
What's the problem?
Simple I've set canon review->Hold and in ML it goes to play mode so had to press halfshutter each time to let the script continue...

When the scene is ok I get b=45 on the 600D with 18-55 at 55mm

After some shot I got the error at line 71 lens.focus() only works in LiveView even if I'm in live view...

Will try more...
#38
After this post I was thinking about MLVapp when saying there are better app for converting MLV, RAW and dual_iso MOV.

What came to my mind is if MLVapp is scriptable?

Since I have not a lot of interest in video making I will like to have some sort of auto conversion for MLV files, so to have a file that can be used without any color correction or editing, just a full batch auto conversion without any user input.

So far my workflow is:
card inserted "Image Capture App" recognizes ML card and start MLTools to move all the files on card to my working folder and convert what that need it.
The working folder is monitored by LR autoimport and ML card get erased from imported files and unmounted when finished. 

My 600D can't do a lot of RAW video but I think I can use batch conversion for Timelapses with silent pic.

EDIT: I feel silly now that understood how to make it:


rm *.avi;
mlv_dump --dng M17-1342.MLV;
ufraw-batch --out-type=jpg *.dng;
rm *.dng;
ffmpeg -i M17-1342_%6d.jpg -vcodec mjpeg -qscale 1 video.avi;
rm *.jpg
#39
Quote from: masc on April 17, 2019, 01:12:54 PM
@scrax: Compatibility from a newer to an older OSX is often very bad. Better you compile on your old(est) system.
Yes, and it's really very old version :P
It's a core2duo with two Osx versions, the oldest is a backup of like 6 years ago and is not important to have cr2hdr working, was just a curiosity.
Problem is that even the last supported Osx can't install all deps for compiling ML (problems with python iirc) I think it is 10.10.something

But it works ok on High Sierra so I'm good for now.

Good news is that I've added it to MLTools and also update it with other updated utils. and ML files like XMP, UFR and so on. Only thing left to convert so are MLV files (but not sure if is needed, there are better option and not being a video isn't helping).

(as a reminder, had to modify vid2hdr.sh for make it work ok with mplayer).
This the new line (a couple of options seem to have changed name):
opts="vbitrate=12150000:mbd=2:keyint=132:v4mv:vqmin=3:o=luma_elim_threshold=-4:o=chroma_elim_threshold=7:lumi_mask=0.07:dark_mask=0.10:naq:vqcomp=0.7:vqblur=0.2:mpeg_quant"

#40
Seems that cr2hdr don't work on old versions of osx.
I've tried it in 10.7.5 and gives error:

Illegal instruction: 4


Is compiled on 10.13.6 and here it works ok.
Maybe is because of clang?
#41
I realy like the effect and just to try another suggestion, I'm not sure if that could help, but to me seems that flickering is not in sync with the flickering sound, or flikering is not strong enough?
#42
Quote from: dfort on April 17, 2019, 02:38:14 AM
I didn't try it. Looked at the scripts and it needs a lot of work. cr2hdr requires dcraw and exiftool but these Homebrew scripts use Adobe DNG Converter. Not sure how it is supposed to work. I never had any luck writing my own Homebrew taps.

It has exiftool and dcraw as dependencies so it will intall also them like usual in homebrew, somewhere here in the forum I think had found something about Adobe DNG converter not mandatory but will help getting right WB (related to the camera-lens model corrections) needed for DNG compression (from cr2hdr help):
QuoteDNG compression (requires Adobe DNG Converter):
--compress      : Lossless DNG compression
--compress-lossy: Lossy DNG compression (be careful, may destroy shadow detail)
#43
Quote from: dfort on April 17, 2019, 01:03:10 AM
Hum--interesting:

brew install --HEAD cr2hdr
brew install --HEAD raw2dng


Though it is a bit outdated. Last commit was 5 years ago.

last commit is nov 2017, but was just updated added the checksum.

But wait a sec.
did it work for you?
???

I got this:

brew tap ebeigarts/homebrew-magic-lantern
==> Tapping ebeigarts/magic-lantern
Cloning into '/usr/local/Homebrew/Library/Taps/ebeigarts/homebrew-magic-lantern'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (8/8), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ebeigarts/homebrew-magic-lantern/magic_lantern_formula.rb
formulae require at least a URL
Error: Cannot tap ebeigarts/magic-lantern: invalid syntax in tap!


Note:To setup some ML useful stuff (not only for devs) there iswas MLTools too (supposed to support linux also).
I've tried it some week ago and needs to be updated for hugin stuff that changed something (attached the patch to fix)
#44
I'm getting closer... but still having problem.

If I try download using repo url (https://bitbucket.org/hudson/magic-lantern) homebrew fail because magic-lantern folder is saved as a file and then cant cd to modules/dual_iso
If I download the repo zip (https://bitbucket.org/hudson/magic-lantern/get/7a3b5fa3f4c6.zip) I got right the magic-lantern folder but then:

abort: no repository found in '/private/tmp/cr2hdr-20190417-3613-cq0pzx/hudson-magic-lantern-7a3b5fa3f4c6/modules/dual_iso' (.hg not found)!

(<type 'exceptions.SystemExit'>, SystemExit(1,), <traceback object at 0x10b3765f0>)
[ gcc      ]   cr2hdr
cr2hdr.c:58:10: fatal error: 'module_strings.h' file not found
#include "module_strings.h"
#45
I'll try it, thanks for sharing.
I think it could be useful for some minerals macro shot that I had to do.
#46
Quote from: dfort on April 09, 2019, 05:38:43 AM
For the most part skipping the Homebrew gcc-5 installation isn't a problem, the Mac clang compiler works fine. However, there are a few utilities like cr2hdr and (I believe) io-decrypt that won't compile with clang.


According to this comment seems that for MLV app David made some changes to make it compile on clang.

Maybe can those changes be included in unified?
Seems not, but I've just tried to compile cr2hdr and worked.
Then tried to make a brew formula for it but so far can't make it work (seems homebrew can't find my toolchains).

brew install cr2hdr
==> Downloading https://bitbucket.org/hudson/magic-lantern/get/7a3b5fa3f4c6.zip
Already downloaded: ~/Library/Caches/Homebrew/downloads/d3c1cf4d6a2a8d9314ef76c703162e322414dd166d057626813089071420a00d--hudson-magic-lantern-7a3b5fa3f4c6.zip
==> make cr2hdr
Last 15 lines from ~/Library/Logs/Homebrew/cr2hdr/01.make:
make cr2hdr


Please configure a valid ARM cross-compiler.
If arm-none-eabi-gcc is in your executable path, it will be used.

Preferred: gcc 5_4-2016q3 32-bit from https://launchpad.net/gcc-arm-embedded
Also fine: gcc-arm-embedded 6.x, Linaro arm-eabi 7.x, gcc-arm-none-eabi from Ubuntu,
gcc-arm-embedded from team-gcc-arm-embedded PPA on Ubuntu, others may work as well.

For GDB+QEMU, you *must* use a 32-bit version, e.g. gdb-arm-none-eabi:i386,
gcc-arm-embedded:i386 from PPA, 32-bit arm-none-eabi-gdb from gcc-arm-embedded.
Unfortunately, Linaro's arm-eabi-gdb does not work, whether 32 or 64 bit.

../../Makefile.setup.toolchain:42: *** .  Stop.

READ THIS: https://docs.brew.sh/Troubleshooting


This is what I'm using
class Cr2hdr < Formula
  depends_on "dcraw"
  depends_on "exiftool"
  desc "Dual ISO file coverter"
  homepage "https://www.magiclantern.fm"
  head "https://bitbucket.org/hudson/magic-lantern",
    :branch => "unified"
  url "https://bitbucket.org/hudson/magic-lantern/get/7a3b5fa3f4c6.zip"
  version "2.3"
  sha256 "7d5f10df15e243af51543ef6ad26989ab015d2d35a84228f099143587dfebc11"

  def install
    cd "modules/dual_iso" do
      system "make cr2hdr"
      bin.install "cr2hdr"
    end
  end

  def caveats
    <<-EOS.undent
      Before you can use cr2hdr you must install Adobe DNG Converter
      $ brew install caskroom/cask/brew-cask
      $ brew cask install adobe-dng-converter
    EOS
  end

  test do
    system "#{bin}/cr2hdr"
  end
end


And here an older formula found today looking for how to make a homebrew package, I like the idea to maybe (in the end) have a "brew install magiclantern" formula that will work without installling things one by one...
#47
Camera-specific Development / Re: Canon 600D / T3i
April 16, 2019, 01:24:46 PM
Please, to anyone who download and test the test build, post your feedback here or in the pull request.
Give feedback also if it works ok,please. Just a simple "confirmed working ok on my 600D" is enought and really appreciated.
;)
#48
Quote from: tekrevz on April 16, 2019, 03:12:30 AM
I know this is a naive question. But how quickly /easy would a change to bitrate of the 6dm2 video be. Could you theoretically go into the code and just change the number?
ML don't changes any code in canon firmware, so for any function ML need to be ported for the cam at first, before doing anything
#49
General Help Q&A / Re: Sound disabled on t5i
April 15, 2019, 06:09:48 PM
Quote from: ikns on April 13, 2019, 09:41:06 AM
I have the same issue, I also have FPS override on and would like to record audio as well, is there a workaround for this?
Quote from: coffee_king on March 30, 2019, 06:06:58 PM
Has the issue of the 700D not being able to record audio if FPS override is activated never been fixed from when this was first posted Feb 2016 3 three later in 2019 then?
I have the latest build of ML.
Where can I report this?
Quote from: Mikexmirrick on February 08, 2016, 05:30:58 AM
How do I get the audio to work with the fps override on?

Not an issue, user guide
#50
Quote from: ikns on April 13, 2019, 07:29:57 AM
Enabling FPS override disables the audio, is that right?
Yes