Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script) - page 8 - General Discussion and Assistance - CHDK Forum

Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)

  • 189 Replies
  • 159460 Views
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #70 on: 15 / March / 2020, 14:23:57 »
Advertisements
I see the script works for M6 1.00b and 1.00f—when I check my M6 it says version 1.00
Is that another version still? Thanks so much!

*

Offline srsa_4c

  • ******
  • 4451
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #71 on: 15 / March / 2020, 15:16:51 »
when I check my M6 it says version 1.00
Is that another version still?
The version number shown in the Canon menu does not include the last character. To find out the complete version, use exiftool on a JPEG/CR2 image made with that camera.
You need this line:
Code: [Select]
Firmware Revision               : 1.00 rev 1.00Where rev 1.00 means 'a', rev 2.00 means 'b' and so on.

*

Offline reyalp

  • ******
  • 14128
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #72 on: 23 / March / 2020, 01:24:40 »
Here's a small patch to add options to only enable clean overlay if HDMI HPD or video out is detected.
ExtDisp = only if in rec, and either video out is present
ExtRec = only if video recording, and video out is present

Only works if the relevant phsw bits are identified. The menu items could probably be ifdef'd.

Motivation:
You don't have to change the setting if you switch between using video out and regular shooting.
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #73 on: 23 / March / 2020, 14:55:44 »
I'm not against adding something similar, but I have a few notes/suggestions.
ExtDisp = only if in rec, and either video out is present
ExtRec = only if video recording, and video out is present
IMHO adding these options to the list would make things more confusing. I originally used "Rec" for rec mode in general and "MviRec" for movie recording. I was hoping to choose abbreviations that are simple enough for non-English users. Hard to do that when the strings are limited to 7 chars.
So, if I worked on this feature, I'd probably add a separate menu entry for the all displays / external displays option.

The other note is that I had an addition to the clean overlay feature that added a menu entry and used the same config word to store that menu entry's state. I chose not to add it because it needs the "busy" dialogs to successfully clean the overlays (and that causes a momentary blink that I find annoying). Too bad, because the feature itself was useful.
The gui.c part of that patch could give hints (but it could be coded better, I guess).

Re: Clean Canon overlays (M10, M3)
« Reply #74 on: 12 / April / 2020, 11:43:25 »
Hello!

I need help. We have Canon EOS M100 and we are usin it for streaming. I  don't know why this script is not working for me?
I made video:
https://youtu.be/IB5irnIh6sI

Also I need to know how to turn of "Display off"? Max time I can choose now is 30 minutes (then it cuts of HDMI signal), but we need longer.

Simple Canon Basic script for the EOS M100, firmware 100a. Modified version of the M6 script, with firmware version check added.
UNTESTED, feedback is welcome.
Code: [Select]
' clean rec mode palette
' EOS M100, 100a, 101a

DIM palette_buffer_ptr = 0x116f4
DIM active_palette_buffer = 0x116ec
DIM palette_to_zero = 0

public sub check_compat()
    check_compat = 0
    if Peek16(0xe1f20270) <> 0x32d1 then
        exit sub
    end if
    if strcmp("GM1.00A",0xe047b5b1) = 0 then
        check_compat = 1
        exit sub
    end if
    if strcmp("GM1.01A",0xe047b5cd) = 0 then
        check_compat = 1
        exit sub
    end if
end sub

private sub RegisterProcs()
    System.Create()
    'UI.CreatePublic()
end sub

private sub palette_mod()
    adr = *palette_buffer_ptr
    adr = adr + (palette_to_zero * 4)
    if *adr <> 0 then
        adr = *adr + 4
        memset(adr, 0, 256 * 4)
    end if
end sub

private sub Initialize()
    RegisterProcs()
    ret = check_compat()
    if ret=1 then
        palette_mod()
    end if
end sub
Usage and notes (taken from my earlier post):
Save it as extend.m in the root directory of the card. The card should be prepared to run scripts.
Switch on the camera in playback mode and press SET. If the script does what is intended, the overlay should be mostly clean when you switch the cam to any shooting mode. There might be some parts of the overlay that remain unaffected.

edit:
add 101a compatibility
« Last Edit: 12 / April / 2020, 11:45:55 by Proovix »

*

Offline srsa_4c

  • ******
  • 4451
Re: Clean Canon overlays (M10, M3)
« Reply #75 on: 12 / April / 2020, 12:00:49 »
I  don't know why this script is not working for me?
I made video:
You named the script file incorrectly. It has to be extend.m .
Quote
Also I need to know how to turn of "Display off"? Max time I can choose now is 30 minutes (then it cuts of HDMI signal), but we need longer.
There's another version of this script, it cleans the overlays and disables power save.
If you get this resolved, you may want to take down that video or post a comment that clarifies the script's filename.

Re: Clean Canon overlays (M10, M3)
« Reply #76 on: 13 / April / 2020, 13:30:23 »
Hello again!

Is this correct now?
https://youtu.be/16wXbEWLE2k

Simple Canon Basic script for the EOS M100, firmware 100a. Modified version of the M6 script, with firmware version check added.
UNTESTED, feedback is welcome.
Code: [Select]
' clean rec mode palette
' EOS M100, 100a

DIM palette_buffer_ptr = 0x116f4
DIM active_palette_buffer = 0x116ec
DIM palette_to_zero = 0

public sub check_compat()
    if Peek16(0xe1f20270) = 0x32d1 then
        check_compat = 1
    else
        check_compat = 0
    end if
    if strcmp("GM1.00A",0xe047b5b1) <> 0 then
        check_compat = 0
    end if
end sub

private sub RegisterProcs()
    System.Create()
    'UI.CreatePublic()
end sub

private sub palette_mod()
    adr = *palette_buffer_ptr
    adr = adr + (palette_to_zero * 4)
    if *adr <> 0 then
        adr = *adr + 4
        memset(adr, 0, 256 * 4)
    end if
end sub

private sub Initialize()
    RegisterProcs()
    ret = check_compat()
    if ret=1 then
        palette_mod()
    end if
end sub
Usage and notes (taken from my earlier post):
Save it as extend.m in the root directory of the card. The card should be prepared to run scripts.
Switch on the camera in playback mode and press SET. If the script does what is intended, the overlay should be mostly clean when you switch the cam to any shooting mode. There might be some parts of the overlay that remain unaffected.

alrighty i just messed something up lol i didnt put the correct line in script.req, or DC_scriptdisk, I changed it and retryed my dump and it worked, then i tried your script and it provides a 100% clean hdmi signal! no facebox nothing! great job dude ill repost this on the main thread of your post so people know it works!

for anyone out there who isnt familiar with chdk but wants to have clean hdmi and findds this post:

create blank file extend.txt paste the above script in this file
create blank file script.txt paste DC_scriptdisk in this file

rename extend.txt> extend.m
rename script.txt>script.req
put both files on the root of your sd card (not in a file just the main directory is what root means)
download eoscard if your on windows > https://pel.hu/down/EOScard.exe
run it
select your sd card
click save
>returns= write successful
put card in camera
boot using the green picture playbackbutton NOT power
click set a few times
if you have a lens like the 15-45 on keep it locked
when you switch to camera/record/or auto it will say "done" in green at the top. now you can unlock your lens and have clean hdmi!
« Last Edit: 13 / April / 2020, 13:38:39 by Proovix »

*

Offline srsa_4c

  • ******
  • 4451
Re: Clean Canon overlays (M10, M3)
« Reply #77 on: 13 / April / 2020, 14:28:55 »
Hello again!

Is this correct now?
Ehmm, no.
I believe psxpetey had all the best intentions when writing that post, but he got the "magic" text wrong. The text that goes in script.req is:
for DC_scriptdisk
The official information on setting up a card for Canon Basic is here: https://chdk.fandom.com/wiki/Canon_Basic/Card_Setup

Also, if you make a video tutorial, please copy the script from the original post. Quoted text can be inaccurate.

This script does not give any visual feedback when it starts. You need to switch the camera to shooting mode and see whether the overlay is there or not. If the overlay is there, the script has not run.

Re: Clean Canon overlays (M10, M3)
« Reply #78 on: 26 / April / 2020, 07:19:25 »
Code: [Select]
' clean rec mode palette
' EOS M100, 100a, 101a

DIM palette_buffer_ptr = 0x116f4
DIM active_palette_buffer = 0x116ec
DIM palette_to_zero = 0

public sub check_compat()
    check_compat = 0
    if Peek16(0xe1f20270) <> 0x32d1 then
        exit sub
    end if
    if strcmp("GM1.00A",0xe047b5b1) = 0 then
        check_compat = 1
        exit sub
    end if
    if strcmp("GM1.01A",0xe047b5cd) = 0 then
        check_compat = 1
        exit sub
    end if
end sub

private sub RegisterProcs()
    System.Create()
    UI.CreatePublic()
end sub

private sub palette_mod()
    adr = *palette_buffer_ptr
    adr = adr + (palette_to_zero * 4)
    if *adr <> 0 then
        adr = *adr + 4
        memset(adr, 0, 256 * 4)
    end if
end sub

private sub Initialize()
    RegisterProcs()
    ret = check_compat()
    if ret=1 then
        LockMainPower()
        palette_mod()
    end if
end sub

I have Canon EOS M100 (firmware 101a) and "clean HDMI overlay" and "Display off" is functional ... thanks a lot for script! :-)
« Last Edit: 26 / April / 2020, 07:38:45 by Drannagh »

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #79 on: 17 / May / 2020, 13:53:32 »
Hello everyone, first thank you for the amount of valuable content that is posted here. It helped me a lot and saved me a substantial amount of time. I could install CHDK on my M3 firmware version 1.2.0, follow the instructions to remove the overlay for HDMI output, keep the camera switched on and remove the OSD overlay. Amazing, I though I was done but the moment I started to film someone I realized there is still this face tracking blue box that I could not remove. I installed the m3-120f-1.5.0-5144-clean-overlay.zip provided by Astro then the m3-120f-1.5.0-5499-full_PREALPHA.zip but it is still there. I do not know what to do and would need to understand if it is possible to remove it (I spent a few hours searching online for instructions with no success).

Thanks!

 

Related Topics


SimplePortal © 2008-2014, SimplePortal