Fast video presets for 5dIII (based on Danne's cine.lua)

Started by Dmytro_ua, December 01, 2019, 02:57:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dmytro_ua

Hello to everyone!

I was so inspired by Danne's work with EOS M camera to make it more like a Movie camera. I couldn't wait till someone make something like that for 5d mark III. Sadly I'm not a programmer and I cannot dig so deeply with fast accessing drop down menus, etc. So, I took Danne's cine.lua preset from this topic https://www.magiclantern.fm/forum/index.php?topic=23041.msg216899#msg216899 and modified it to my needs.

Overall I've made 5 presets with different settings to switch fast between them. It takes about 6-7 second to switch settings by a preset.
I decided to share it, maybe someone will find it useful.

Right now I have presets for:

1. 1920 25fps 2.35:1
- 1920 resolution
- 25 fps
- 2.35:1 aspect ratio
- shutter speed - 1/50
- script checks if you're in 1920p 25 fps in Canon's menu (if not you have to change it manually)
- focus aid to default mode (zooms 10x on a shutter halfpress - very useful to check focus)
- 14-bit lossless
- Focus Peak - ON
- Spotmeter - Percent
- Histogram - RAW RGB

2. 3xCrop 1920 25fps 2.35:1
- the same as above but it's a 3x Crop mode - 1920 1:1

3. 1920 50fps 2.35:1
- 1920 resolution
- 50 fps
- 2.35:1 aspect ratio
- shutter speed - 1/100
- iso - 100 (as it seems to have the best compression ratio)
- script checks if you're in 1280p 50 fps in Canon's menu (if not you have to change it manually)
- focus aid to default mode (zooms 10x on a shutter halfpress - very useful to check focus)
- 14-bit lossless
- Crop mode - 1920 50fps
- Focus Peak - OFF
- Spotmeter - OFF
- Histogram - OFF

4. 1920 24fps 2.35:1
- the same as 1 but 24fps
- script checks if you're in 1920p 24 fps in Canon's menu (if not you have to change it manually)

5. 3xCrop 1920 24fps 2.35:1
- the same as 2 but 24fps
- script checks if you're in 1920p 24 fps in Canon's menu (if not you have to change it manually)

This is just a lua script which sets everything automatically instead of doing it by yourself manually. It doesn't change any ML core files.
I've tested these presets on my camera a lot of times, made some minor fine tuning to work smoothly every time in any order.

To make it work you need to:
1. download Danne's build from here called crop_rec_4k_mlv_snd_isogain_1x3_presets_2019Oct15.5D3113.zip and install it on you camera
2. put script on your card in a folder called \ML\scripts
3. Load lua.mo in ML menu (also you will need mlv_lite, mlv_snd and crop_rec modules, so load them too).


Now you have it in Scripts.
You can enable autorun to load it everytime on camera boot


In MOVIE tab we have a new string called Fast Video Presets


Choose preset from menu


Download link:
5d3fvp.lua


5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

Danne

Nice :).
Not possible to download though. Some privacy setting?

Dmytro_ua

Quote from: Danne on December 01, 2019, 03:51:56 PM
Not possible to download though. Some privacy setting?

Oh..
I'm new to bitbucket. It was in a private mode. Now it should be available.


https://bitbucket.org/Dmytro_Kn/ml/downloads/
5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

DeafEyeJedi

Fantastic work @Dmytro_ua -- now I'm gonna have to fiddle w the source code a bit to make it 24p for these presets.

Thanks for sharing and I look forward to what this brings to the table for the 5D3's.
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

Dmytro_ua

Quote from: DeafEyeJedi on December 01, 2019, 05:16:12 PM
Fantastic work @Dmytro_ua -- now I'm gonna have to fiddle w the source code a bit to make it 24p for these presets.

Thanks for feedback. I just did two more presets for 24 fps - regular and 3xCrop.
Download them from my first topic and if you use 25 fps presets - re-download them too as I've put a check for 24 fps option there.
5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

Danne

If using something like this I think you can add all presets into a menu called from Movie tab. Simply replace the presets with your own custom names mv1080p 24fps for instance or modify to whatever. Replace to your own stuff inside function main parts:

-- My presets

--console will be all over if not applied
  console.hide()
  menu.close()

function main1()
  console.hide()
  menu.close()

--replace this with your settings for preset 1

end

function main2()
  console.hide()
  menu.close()

--replace this with your settings for preset 2

end

function main3()
  console.hide()
  menu.close()

--replace this with your settings for preset 3

end

function main4()
  console.hide()
  menu.close()

--replace this with your settings for preset 4

end

mymenu = menu.new
{
    parent = "Movie",
    name = "My awesome presets",
    help = "Choose a customized preset",
    submenu =
    {
        {
            name = "preset 1",
    select = function(this) task.create(main1) end,
    help = "mv1080p 24fps",
        },
        {
            name = "preset 2",
    select = function(this) task.create(main2) end,
    help = "1000 fps",
        },
        {
            name = "preset 3",
    select = function(this) task.create(main3) end,
    help = "8k",
        },
        {
            name = "preset 4",
    select = function(this) task.create(main4) end,
    help = "x3zoom 24fps",
        },
    },
}

Dmytro_ua

Quote from: Danne on December 02, 2019, 06:19:04 PM
Replace to your own stuff inside function main parts

Thanks for an idea what to do next. Right now it's a little bit out of my programming skills. But I'd like to investigate in that direction.
Before I ask smth I need to dive into ML structure to understand more about it. I don't even know in what file should I dig for those functions. I have no clue what you are talking about  :D
But I'm following your EOS M thread. Hope to learn smth  ;)


Ok, re-read your code again and understood that it's also lua, but only with functions and all presets in one file. Will try  ;)
5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

Danne

It´s simple. In here I added your first two scripts into preset 1 and preset 2. Simply add following code into a lua script and run it in your camera:

-- My presets

--console will be all over if not applied
  console.hide()
  menu.close()

function main1()
  console.hide()
  menu.close()

-- 1920 25fps 2.35:1 

-- Sets all parameters for 1920 25fps 2.35:1

  lv.start()
  lv.zoom = 1
  console.hide()
  menu.close()
 
-- this script should never run on Autorun, "menu.set" is not working so running menu.select instead
if menu.get("1920 25fps 2.35:1", "Autorun", "") == "ON" then
   menu.select("Scripts", "1920 25fps 2.35:1")
   menu.open()     -- open ML menu
   key.press(KEY.SET)
   key.press(KEY.WHEEL_DOWN)
   key.press(KEY.WHEEL_DOWN)
   key.press(KEY.SET)
   menu.close()
   display.notify_box("Autorun is disabled!")
  msleep(3000)
   return
end
 
-- enable sound
  menu.set("Sound recording", "Enable sound", "ON")
if menu.get("Sound recording", "Enable sound", "") ~= "ON" then
  display.notify_box("\nPlease, enable: \n\nmlv_lite.mo \nmlv_snd.mo \ncrop_rec.mo \n\n      ... and run script again", 6000)
  return
end 
 
-- warnings
while camera.mode ~= MODE.MOVIE do
  display.notify_box("\nSwitch to MOVIE mode")
  msleep(1000)
end

-- checking for crop_rec.mo
  menu.set("Movie", "Crop mode", "OFF")
  msleep(300)
if menu.get("Movie", "Crop mode", "") ~= "OFF" then
  display.notify_box("\nYou forgot to enable crop_rec.mo", 5000)
  return
end

-- checking if video mode is set to 1920p 25 fps in Canon's menu
  menu.set("Movie", "FPS override", "OFF")
  msleep(300)
if menu.get("FPS override", "Actual FPS", "") <= "24" or menu.get("FPS override", "Actual FPS", "") >= "49" then
  menu.set("Overlay", "Global Draw", "OFF")
  display.notify_box("\nSet 1920 25fps in Canon menu\n\n      ... and run script again", 4000)
  return
end
 
 
if menu.get("FPS override", "Actual FPS", "") >= "24" and menu.get("FPS override", "Actual FPS", "") <= "26" then
  camera.shutter.value=1/50
--camera.iso.value=800

-- crop mode
  menu.set("Crop mode", "bitdepth", "OFF")
  menu.set("Crop mode", "ratios", "OFF")
  menu.set("Crop mode", "focus aid", "default mode")
  menu.set("Crop mode", "set 25fps", "OFF")
  msleep(300)

-- movie
  menu.set("Movie", "RAW video", "ON")
  menu.set("Movie", "HDR video", "OFF")
  menu.set("RAW video", "Crop rec preview", "OFF")
  menu.set("RAW video", "Resolution", 1920)
  menu.set("RAW video", "Aspect ratio", "2.35:1")
  menu.set("RAW video", "Data format", "14-bit lossless")
  menu.set("RAW video", "Preview", "Auto")

-- Overlay
  menu.set("Overlay", "Focus Peak", "ON")
  menu.set("Overlay", "Zebras", "OFF")
  menu.set("Overlay", "Magic Zoom", "OFF")
  menu.set("Overlay", "Cropmarks", "OFF")
  menu.set("Overlay", "Spotmeter", "Percent")
  menu.set("Overlay", "False color", "OFF")
  menu.set("Overlay", "Histogram", "RAW RGB, Log")
  menu.set("Overlay", "Waveform", "OFF")
  menu.set("Overlay", "Vectorscope", "OFF")
  menu.set("Display", "Clear overlays", "OFF")

-- done, turn on global draw
  menu.set("Overlay", "Global Draw", "LiveView")   

-- go back to menu origin
  menu.select("Scripts")
  msleep(200)
  menu.open()
  msleep(200)
  menu.close()
  msleep(600)
  key.press(KEY.MENU)
  msleep(600)
  key.press(KEY.MENU)
  msleep(600)

-- success!
  display.notify_box("\nScript is done")
  else
  display.notify_box("\nSmth went wrong! Run script again", 2000)
end

end

function main2()
  console.hide()
  menu.close()

-- 3x 1920 25fps 2.35:1 

-- Sets all parameters for Crop x3 1920 25fps 2.35:1

  lv.start()
  lv.zoom = 1
  console.hide()
  menu.close()

-- this script should never run on Autorun, "menu.set" is not working so running menu.select instead
if menu.get("3x 1920 25fps 2.35:1", "Autorun", "") == "ON" then
   menu.select("Scripts", "3x 1920 25fps 2.35:1")
   menu.open()     -- open ML menu
   key.press(KEY.SET)
   key.press(KEY.WHEEL_DOWN)
   key.press(KEY.WHEEL_DOWN)
   key.press(KEY.SET)
   menu.close()
   display.notify_box("Autorun is disabled!")
  msleep(3000)
   return
end

-- enable sound
  menu.set("Sound recording", "Enable sound", "ON")
if menu.get("Sound recording", "Enable sound", "") ~= "ON" then
  display.notify_box("\nPlease, enable: \n\nmlv_lite.mo \nmlv_snd.mo \ncrop_rec.mo \n\n      ... and run script again", 6000)
  return
end

-- warnings
while camera.mode ~= MODE.MOVIE do
  display.notify_box("\nSwitch to MOVIE mode")
  msleep(1000)
end

-- checking for crop_rec.mo
  menu.set("Movie", "Crop mode", "1920 1:1")
  msleep(300)
if menu.get("Movie", "Crop mode", "") ~= "1920 1:1" then
  display.notify_box("\nYou forgot to enable crop_rec.mo", 5000)
  return
end

-- checking if video mode is set to 1920p 25 fps in Canon's menu
  menu.set("Movie", "FPS override", "OFF")
  msleep(300)
if menu.get("FPS override", "Actual FPS", "") <= "24" or menu.get("FPS override", "Actual FPS", "") >= "49" then
  menu.set("Overlay", "Global Draw", "OFF")
  display.notify_box("\nSet 1920 25fps in Canon menu\n\n      ... and run script again", 4000)
  return
end


if menu.get("FPS override", "Actual FPS", "") >= "24" and menu.get("FPS override", "Actual FPS", "") <= "26" then
  camera.shutter.value=1/50
--camera.iso.value=800

-- crop mode
  menu.set("Crop mode", "bitdepth", "OFF")
  menu.set("Crop mode", "ratios", "2.35:1")
  menu.set("Crop mode", "set 25fps", "OFF")
  menu.set("Crop mode", "x3crop", "OFF")
  msleep(300)
 
-- movie
  menu.set("Movie", "HDR video", "OFF")
  menu.set("Movie", "RAW video", "ON")
  menu.set("RAW video", "Crop rec preview", "OFF")
  menu.set("RAW video", "Resolution", 1920)
  menu.set("RAW video", "Aspect ratio", "2.35:1")
  menu.set("RAW video", "Data format", "14-bit lossless")
  menu.set("RAW video", "Preview", "Auto")

-- Overlay
  menu.set("Overlay", "Focus Peak", "ON")
  menu.set("Overlay", "Zebras", "OFF")
  menu.set("Overlay", "Magic Zoom", "OFF")
  menu.set("Overlay", "Cropmarks", "OFF")
  menu.set("Overlay", "Spotmeter", "Percent")
  menu.set("Overlay", "False color", "OFF")
  menu.set("Overlay", "Histogram", "RAW RGB, Log")
  menu.set("Overlay", "Waveform", "OFF")
  menu.set("Overlay", "Vectorscope", "OFF")
  menu.set("Display", "Clear overlays", "OFF")

-- done, turn on global draw
  menu.set("Overlay", "Global Draw", "LiveView")   

-- go back to menu origin
  menu.select("Scripts")
  msleep(200)
  menu.open()
  msleep(200)
  menu.close()
  msleep(600)
  key.press(KEY.MENU)
  msleep(600)
  key.press(KEY.MENU)
  msleep(600)

-- success!
  display.notify_box("\nScript is done")
  else
  display.notify_box("\nSmth went wrong! Run script again", 2000)
end

end

function main3()
  console.hide()
  menu.close()

--replace this with your settings for preset 3

end

function main4()
  console.hide()
  menu.close()

--replace this with your settings for preset 4

end

mymenu = menu.new
{
    parent = "Movie",
    name = "My awesome presets",
    help = "Choose a customized preset",
    submenu =
    {
        {
            name = "preset 1",
    select = function(this) task.create(main1) end,
    help = "1920 25fps 2.35:1",
        },
        {
            name = "preset 2",
    select = function(this) task.create(main2) end,
    help = "3x 1920 25fps 2.35:1",
        },
        {
            name = "preset 3",
    select = function(this) task.create(main3) end,
    help = "8k",
        },
        {
            name = "preset 4",
    select = function(this) task.create(main4) end,
    help = "x3zoom 24fps",
        },
    },
}


What I did was adding your preset changes replacing this part for main1():
--replace this with your settings for preset 1

Replaced this part for main2()
--replace this with your settings for preset 2

This way you can go on and build a whole bunch of presets into a listed menu. Easiest would be to just try the above example in a lua file put into camera. Maybe expand to like ten presets and select from one and same menu.

Dmytro_ua

Thanks! I just remembered I've been reading about this here https://builds.magiclantern.fm/lua_api/modules/menu.html

-----
It works!!!
So, basically I can set it on autorun. And I also can remove autorun check from all presets as it's not necessary anymore.
5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS


DeafEyeJedi

Excellent progress, guys! :)

Just pulled my 5D3 out.

Will give this a test run.
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

DeafEyeJedi

So I downloaded all your presets (Thanks for these) and loaded them under \ML\scripts.

Then I loaded/ran the required modules and all seems normal.

Once I go into the Lua tap and scroll down to scripts and I'm only seeing the Cinema_2.39:1 as an option.

The rest aren't enlisted as expected. I then took out the SD card and double-checked that it's in the correct location:



This is with 5D3.123_2019Oct15 build from @Danne's bitbucket page. Hmmm?
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

Danne

@deafeyejedi.
Try reread a few post up and look at the posts from me.

Dmytro_ua

Hi, @deafeyejedi
it's really odd because it's just a plain text file with *.lua extension
Even if there were something wrong with a code you should at least see the files.

Anyway, I'll try to post a new script today later based on Danne's idea. It will contain all scripts in one file.

---
It is actually really cool. I'm testing it right now. I have only to fix one minor issue and can share it with you.
5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

Dmytro_ua

I uploaded a new version of a script based on Danne's suggestion.
Everything is explained (updated) in a first topic.
Now we have only one lua script with 5 presets in it.

Next steps I want to do:
1. Make it work alongside with Danne's Cine script. I actually have it already working in my test build with small hacks but not in a way I would like it to be realized. So right now I excluded it from the current script.
2. Really hard task for me: make it possible to change 24, 25 and 50 fps without manually changing it in Canon's menu.
5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

DeafEyeJedi

Quote from: Danne on December 02, 2019, 10:53:36 PM
@deafeyejedi.
Try reread a few post up and look at the posts from me.

Missed that. Thanks for pointing this out @Danne!  :)

Quote from: Dmytro_ua on December 03, 2019, 09:42:57 PM
I uploaded a new version of a script based on Danne's suggestion.
Everything is explained (updated) in a first topic.
Now we have only one lua script with 5 presets in it.

I just downloaded this. Ran on 5D3.123 and now I see the presets under the movie tab. Feels closers to a morphed EOSM. Ha.

Also sometimes it would then tell me to set Canon to 24p when in fact I was already in 24p. Curious if it's missing hooks in corresponding to each other (Canon & ML)?

I'll see if I can reproduce this while recording HDMI out and can share this phenomenal if you insist.  8)

https://vimeo.com/377177981

Quote from: Dmytro_ua on December 03, 2019, 09:42:57 PM
Next steps I want to do:
1. Make it work alongside with Danne's Cine script. I actually have it already working in my test build with small hacks but not in a way I would like it to be realized. So right now I excluded it from the current script.
2. Really hard task for me: make it possible to change 24, 25 and 50 fps without manually changing it in Canon's menu.

Sounds like a good plan for these two. Looking forward to them. Question though were these presets supposed to work align w anamorphic mode or no?

Not that it needs them. I'm fine with the way @Danne laid out the foundation to start with at the very least w 5D3 builds as far Ana mode is concerned.

Though still needs some adtg_gui fine tuning to correct the framing of crop hence the video above. Thanks for sharing @Dmytro_ua and to @Danne for your guidance as always!
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

Dmytro_ua

Quote from: DeafEyeJedi on December 03, 2019, 11:06:49 PM
Also sometimes it would then tell me to set Canon to 24p when in fact I was already in 24p. Curious if it's missing hooks in corresponding to each other (Canon & ML)?

I'll see if I can reproduce this while recording HDMI out and can share this phenomenal if you insist.

It's not a phenomenal. It will always be the same if you switch from anamorphic preset (which is used in Danne's Cine.lua) to any of my 24/25 fps presets at this moment. That's why I currently excluded Cine preset from my "Fast Video Presets" menu.

Why does it happen? Anamorphic preset always stays in 24 fps (23.976) and it doesn't respond to FPS changes in Canon's menu even if there is a 50fps option enabled.

For example: if I enable my 25fps preset with canon's 25 fps - in FPS override section in Desired FPS it is said (from 25) - as expected.
But when we run anamorphic preset: if in canon menu 24 fps - in Desired FPS (from 27), if in canon menu 25 fps - in Desired FPS (from 31),  if in canon menu 50 fps - in Desired FPS (from 62). These numbers 27, 31, 62 (in PAL and in NTSC they differs) - confuses my check for actual 24, 25 and 50 fps and you get a warning to switch to 24 mode even if you are already in 24 mode because it reads 27, not 24.
I explained it in details for you just to understand why it happens.

But what you really need to know is my presets work in a different way as presets from Crop module menu.
Crop module presets are coded in ML core files. They can or cannot work with some other functions enabled/disabled in ML menu. That's why while playing with settings you have to be careful as not all functions work well together.
From the other side my presets are based on lua script. it is not changing any ML core files. It just sets up settings in ML menu step by step in an order you would do it manually. If such combination of settings won't work if you do it manually - it won't work with my presets either (as basically it is the same). So it just saves your time but it doesn't bring you any new functions comparing to Crop module presets. That's why I've made presets of settings which definitely work and suited to my personal needs. It is supposed to work correctly switching between my 5 presets. If you make some drastic changes in ML menu and then run my preset - it can give you a warning that smth is wrong (as we can see with anamorphic mode from crop module).

To get the best experience you need to restore Danne's ML build to default settings and run my presets.
If these presets are not enough for you there are two options:
1. Not to use them and set your camera up as before in a manual way.
2. Write/modify presets for your settings and use them. If you need to make a small change you can modify my presets. For example, you don't need Focus peaking in my 25 preset - you edit it from ON to OFF. Or aspect ratio 2.35:1 and you need 16:9 - you just edit my presets to your needs and use them.

For custom settings you can PM to me and I'll help with changing.

Anyway, thanks for your report. Do my presets work fine when you just browse through them?
5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

Dmytro_ua

Uploaded a new version. Now it works after using presets with anamorphic mode enabled.
So I also included Danne's Cine presets in a build:

5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

Dmytro_ua

Uploaded a new version.
Main changes:
- combined 24/25/30fps presets in one
- shutter 1/50 for 24/25fps, shutter 1/60 for 30fps
- shutter 1/100 for 50fps, shutter 1/120 for 60fps
- checking if anamorphic preset was used before, if yes - reset fps to Canon native
- new preset with 16:9 proxy and 2.35:1 Cropmarks
- menu list updated




5d3 1.2.3 | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S | Feelworld F6 PLUS

timbytheriver

@Dmytro_ua

Thank you plenty for your work & share. These are a great addition to the ML toolkit!  :)

Tim
5D3 1.1.3
5D2 2.1.2

Stousen


DeafEyeJedi

This is all marvelous work @Dmytro_ua and I'll post/share my experience this weekend.  8)
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

timbytheriver

Running the block (excerpts below) of lua on my compile of Danne's commit #6dc0688 main gives me an error on the console:

Lua console:

no submenu, fall back to edit mode.

Lua:


-- Fast video presets for 5d3

-- Script enables video presets in MOVIE Tab ver.1.04

--console will be all over if not applied
  console.hide()
  menu.select("Movie")
  menu.close()
 
-- this script is for 5D3 only
if camera.model_short ~= "5D3" then
   display.notify_box("Script is not working on this cam", 2000)
   return
end

-- preset function begin

-- Preset 3k 2.35:1 24fps TNT-ISO100

function main1()
  console.hide()
  menu.close()
  lv.start()
  lv.zoom = 1

-- enable sound
-- menu.set("Sound recording", "Enable sound", "ON")
-- if menu.get("Sound recording", "Enable sound", "") ~= "ON" then
  -- display.notify_box("\nPlease, enable: \n\nmlv_lite.mo \nmlv_snd.mo \ncrop_rec.mo \n\n      ... and run script again", 6000)
  -- return
-- end 

-- warnings
while camera.mode ~= MODE.MOVIE do
  display.notify_box("\nSwitch to MOVIE mode")
  msleep(1000)
end

-- Presets

-- menu.set("Presets", "bitdepth", "10 bit")
--menu.set("Presets", "set 25fps", "OFF") -- Change to "OFF" to use 24fps by default
--menu.set("Presets", "reg_8xx8", "-31") -- Set iso-tuning regs
menu.set("Presets", "CMOS[0]", "0x113") -- Set iso-tuning regs
menu.set("Presets", "reg_8", "-1") -- Set iso-tuning regs
menu.set("Presets", "reg_fe", "-3") -- Set iso-tuning regs
  msleep(300)

-- enable crop_rec.mo. Checking first after trying to enable 3k preset
if menu.get("Movie", "Presets", "") ~= "3K 1:1" then
  display.notify_box("\nYou forgot to enable crop_rec.mo", 5000)
  return
end

-- movie
  menu.set("Movie", "FPS override", "OFF")
  --menu.set("Movie", "HDR video", "OFF")
  menu.set("RAW video", "Resolution", "3072x1308")
  menu.set("RAW video", "Aspect ratio", "2.35:1")
  menu.set("RAW video", "Crop rec preview", "auto mode")
  menu.set("RAW video", "Data format", "14-bit lossless")
  menu.set("RAW video", "Aspect ratio", "2.35:1")
  menu.set("RAW video", "Preview", "Framing")
  menu.select("Movie", "RAW video")
  msleep(100)
  menu.open()
  msleep(100)
  key.press(KEY.Q)
  msleep(100)
  key.press(KEY.SET)
  msleep(100)
  key.press(KEY.WHEEL_DOWN)
  key.press(KEY.WHEEL_DOWN)
  key.press(KEY.WHEEL_DOWN)
  key.press(KEY.WHEEL_DOWN)
  key.press(KEY.WHEEL_DOWN)
  key.press(KEY.WHEEL_DOWN)
  key.press(KEY.WHEEL_DOWN)
  key.press(KEY.WHEEL_DOWN)

-- Overlay
  menu.set("Overlay", "Focus Peak", "OFF")
  menu.set("Overlay", "Zebras", "OFF")
  menu.set("Overlay", "Magic Zoom", "OFF")
  menu.set("Overlay", "Cropmarks", "OFF")
  menu.set("Overlay", "Spotmeter", "OFF")
  menu.set("Overlay", "False color", "OFF")
  menu.set("Overlay", "Histogram", "RAW RGB, Log")
  menu.set("Overlay", "Waveform", "OFF")
  menu.set("Overlay", "Vectorscope", "OFF")
  menu.set("Display", "Clear overlays", "OFF")

-- done, turn on global draw
  menu.set("Overlay", "Global Draw", "LiveView")

-- go back to Presets Tab
  menu.select("Movie", "Fast video presets")
  msleep(200)
  menu.open()
  msleep(200)
  menu.close()
  msleep(600)
  key.press(KEY.MENU)
  msleep(600)
  key.press(KEY.MENU)
  msleep(600)

-- success!
display.notify_box("\nScript is done")
end

-- preset function end





mymenu = menu.new
{
    parent = "Movie",
    name = "Fast video presets",
    help = "Choose a preset with predefined settings",
    submenu =
    {
{
        name = " ISO100 3K 3072p 24fps 2:35.1",
    select = function(this) task.create(main1) end,
    help = "3K preset / 24fps / Ratio: 2.35:1 / 14-bit lossless / iso100",
--help2 = "For 24fps set 25fps to OFF in Presets menu Q",
        },

    },
}




@Danne Does the new menu structure of your build require any magic sauce?
5D3 1.1.3
5D2 2.1.2

Danne

No magic sauce, you have to pay attention to if things moved around etc. Start with comparing older menu layout and narrow down where the issue is.

SKecorius

It is absolutely great! Improves usability of ML. Would it be hard to move it to 5dII ?