Author Topic: Canon 40D  (Read 333794 times)

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #550 on: July 22, 2020, 01:11:07 PM »
RAW video on 40D:

The only good use case I have found for RAW video on the 40D is HD'ish timelapses. Around ~ 1920 x 844 can be used for timelapses, not too bad for such and old camera.  RAW video "as in" 24-30 fps is'nt really any good due to limited CF bandwidth.  Ant123 is working with 450D trying to create a mjpeg recorder, which would be the best option to get 24 fps video on 450D/40D.
Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

Dezmond2

  • New to the forum
  • *
  • Posts: 7
Re: Canon 40D
« Reply #551 on: July 22, 2020, 08:34:09 PM »
Expo settings don't work in ML. Changed ML digital ISO not have effect to exposure.
Expo sim enabled in Canon menu. Live view active.

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #552 on: July 23, 2020, 09:58:11 AM »
Expo settings don't work in ML. Changed ML digital ISO not have effect to exposure.
Expo sim enabled in Canon menu. Live view active.

Hi Dezmond2

Thanks for reporting that.  Do you know if this problem is only in photo or liveview or both ?



Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

mrb

  • New to the forum
  • *
  • Posts: 2
Re: Canon 40D
« Reply #553 on: July 23, 2020, 05:54:36 PM »
See heder's reply #542

Which are - generally speaking - crap.
Most likely performance is far from modern standards. Should not be a concern with 40D which is - according to heder's experiments - limited to around 20 MByte/s bandwidth.
A more serious problem exists supporting boot from card. Some adapters are not able to act like bootable CF-cards, rendering them pretty useless for Magic Lantern.
You may want to test this with an ML-supported cam hosting CF slot (7D, 5D2, 5D3).

According to Kingston this card should do 45 MByte/s in write mode.

Take a decent cardreader with CF slot ( www.cameramemoryspeed.com -> Reviews -> Card readers) and do some benchmark runs with tools like CrystalDiskMark (Windows) or Blackmagic Disk Speed Test (macOS).

20 MByte/s translates to around 720p25 for raw/MLV using lossless compression.

I have actually been able to use the magic lantern beta build for the 40d with the cf card adapter. I don't really know how to benchmark the actual read write speeds from the camera, but I definetly am able to use the card with no real issues to speak of yet. Thanks by the way about the timeline on video support. I guess thats where things still stand; I was wondering if I missed something.

I am very thankful to all for the support on this old camera haha. I was able to use "EOS camera movie record" to livestream to my laptop and record video that way, but the framerate is still quite choppy so it will be interesting to see what can be done once I can actually record directly to the CF slot. I suppose just recording the audio with my cellphone this could actually be a really nice solution for video if I can figure it out. I picked up a vintage f1.2 50mm lens and have been impressed with the quality so far. Sure beats recording with anything else I own. : )

Dezmond2

  • New to the forum
  • *
  • Posts: 7
Re: Canon 40D
« Reply #554 on: July 24, 2020, 05:08:47 PM »
Both
Expo sim enabled in Canon menu. Live view active.

Dezmond2

  • New to the forum
  • *
  • Posts: 7
Re: Canon 40D
« Reply #555 on: July 24, 2020, 06:20:30 PM »
Do you know if this problem is only in photo or liveview or both ?
description "This feature only works in LiveView"

Dezmond2

  • New to the forum
  • *
  • Posts: 7
Re: Canon 40D
« Reply #556 on: July 28, 2020, 03:05:10 PM »
Hi Dezmond2
Can you share raw file with non standart ISO...50 or more than 3200 ?

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #557 on: July 29, 2020, 10:51:55 AM »
I dont know, i will investigate, bulb also sttopped working in the lastest  beta.
Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #558 on: July 29, 2020, 06:54:31 PM »
Open beta updated to 1.0.4.

https://www.magiclantern.fm/forum/index.php?topic=1452.msg224594#msg224594

Fixed: prop request change bug

I introduced a bug in 1.0.1  ::). This bug disabled changing ISO,shutter,White balance,
bulb,Expo lock... and many other features.
Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #559 on: July 29, 2020, 06:55:36 PM »
Expo settings don't work in ML. Changed ML digital ISO not have effect to exposure.
Expo sim enabled in Canon menu. Live view active.

Try 1.0.4.

Can you share raw file with non standart ISO...50 or more than 3200 ?

The only values I found in firmware were 100,200,400,800,1600,3200. I tried to acticate 6400,12800 but the camera crashed. All other non standard values (125,160....) must then be digital ISO amplification from the standard ISO. Lowest ISO 100, highest 3200.
Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

Dezmond2

  • New to the forum
  • *
  • Posts: 7
Re: Canon 40D
« Reply #560 on: July 29, 2020, 10:27:22 PM »
Try 1.0.4.

The only values I found in firmware were 100,200,400,800,1600,3200. I tried to acticate 6400,12800 but the camera crashed. All other non standard values (125,160....) must then be digital ISO amplification from the standard ISO. Lowest ISO 100, highest 3200.
Now expo settings work, also ISO 2500 - not available in Canon menu. 125, 160 and etc is present in Canon menu, i mostly shot in ISO 160 with stock FW

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #561 on: July 30, 2020, 08:33:37 PM »
Ok, good to know, I never realized 2500 was hidden i stock FW. I will disable 6400,12800 in next beta.
Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

Ant123

  • Contributor
  • Member
  • *****
  • Posts: 159
Re: Canon 40D
« Reply #562 on: July 30, 2020, 09:29:38 PM »
@heder
How does this mode look in QEMU?

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #563 on: August 02, 2020, 10:08:25 AM »
@Ant123

The image your are refering too is saved inside LiveView. AFAIK liveview does not work correctly in QEMU. The simulator does not emulate hardware correctly and the liveview only tries to run but stalls due to timeout or similar, once a while you'll get the QEMU EDMACs trying to tranfer data to canons FW. All you get drawn is canons liveview stuff, but ML overlay does not get drawn. Here is 40D 

Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #564 on: August 24, 2020, 10:37:56 AM »
OPen beta updated to 1.0.5

https://www.magiclantern.fm/forum/index.php?topic=1452.msg224594#msg224594

Compiler
  • Compiler changed from 4.7-2014q2 to 5.4-2016q3

Changes
  • (fix) Disable bogus ISO values 6400/12800
  • (fix) Temperatures now correctly visible (debug menu)
  • (fix) Included missing call _ml_cbr_init()
  • (fix) Config is now loaded at startup
  • (fix) ML Restore options now for correctly
  • (mlv) Used cache-hack to force RAW video transfers in on each frame and other minor issues (raw.c,mlv_lite.c,...)
  • (mlv) White balance EDMAC5 hijacked (cache-hack) while recording RAW video

Modules
  • basic mlv_lite module running 8)

  For optimal usage:   

  => Disable global draw
  => Enabled "use small hacks" (mlv_lite)
  => Convert the mlv file (using mlv_dump.exe) and load this new mlv file into MlvApp and use RAW blacklevel around 800-900

The mlv lite module on the 40D is targeted motion time lapses - not real time video (due to limited bandwidth to the CF card).
The mlv_lite module can be used to record time lapses in (x1) or in zoom mode at (x5/x10) 1920x804 (1:2.39) at around 6 fps.
If you want to record at 24 fps you get a little less than VGA size.       

    
Known issues:   
  • If you get an EDMAC errors when starting, just restart liveview
  • If you inverted colors, shifted image, noisy image, just restart liveview.
  • You might get 1 corrupted frames in the beginning of the video
  • Digital ISO gain not working.
   
I only had the time to create one video in x1 mode:

Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #565 on: August 24, 2020, 10:38:37 AM »
double post  ???
Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d

nikfreak

  • Developer
  • Hero Member
  • *****
  • Posts: 1179
Re: Canon 40D
« Reply #566 on: August 24, 2020, 08:38:45 PM »
nice work for this oldtimer. You put a lot of efforts in this port and as you are already familar with QEMU I would like to ask if you only plan to work on ML for 40D? maybe some DIGIC6/7/8 port next (once this got finished)?
70D.112 & 100D.101

heder

  • Contributor
  • Member
  • *****
  • Posts: 122
  • No time for caution
Re: Canon 40D
« Reply #567 on: August 25, 2020, 11:16:46 AM »
nice work for this oldtimer. You put a lot of efforts in this port and as you are already familar with QEMU I would like to ask if you only plan to work on ML for 40D? maybe some DIGIC6/7/8 port next (once this got finished)?

Yep, thats the plan.

The only issue is time, I hope I can set aside the 40D somewere in 2021, and start using my time in a different platform. Just need to finish video recording and do some bug fixes.
Embedded SW engineer. Current Cameras: Canon 20d, 40d, 350d