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

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

  • 189 Replies
  • 153953 Views
Re: Clean Canon overlays (M10, M3)
« Reply #100 on: 10 / June / 2020, 10:21:33 »
Advertisements
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!

I can't get this to work for the life of me. I've tried using a different SD card (1GB vs 4GB) and I've used the Eos card prep program each time. I've copied the script into a text file and saved it as a extend.m and made a script.req for the DC_scriptdisk and still nada. I'm using a Canon M100. What am I missing?

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #101 on: 10 / June / 2020, 11:50:09 »
@DaEdgeMan

Please note your file 'script.req' needs to contain: 'for DC_scriptdisk' (without the quotes, and with 1 space between 'for' and 'DC_scriptdisk' ).
No newline character after it should be necessary.

hope that helps,

whim

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #102 on: 10 / June / 2020, 13:47:40 »
I’ll give that a shot and see what happens. Thanks!

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #103 on: 10 / June / 2020, 14:51:55 »
I tried it again and nothing, still have the face box auto tracking. I also didn't get any confirmation that the script even took. No "Done" on the screen or anything. When I put the code into Notepad and then save it as extend.m and the for DC_scriptdisk I save it as script.req do I encode it as ANSI or UTF-8?


*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #104 on: 10 / June / 2020, 15:31:10 »
@DaEdgeMan


Should be  ANSI, I think.More stuff to check:
* SD card must be formatted as FAT32, not ExFAT (should not be a problem, in general it's just cards > 32 GB that get auto-formatted as ExFAT)
* SD card sector 0 must contain 'SCRIPT' (without the quotes) at offset 0x1F   (can be done with EOSCard, or with any sector editor)


whim

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #105 on: 10 / June / 2020, 16:03:37 »
I think that did the trick. I changed the formatting to ANSI and that seems to work now. No face box but still auto focuses. So correct me if I'm wrong but every time that I fire it up and I want clean HDMI I have to put it in the green rectangle and push the play button and the set button a few times? I've tested this a few times and it seems consistent. If I turn it on the regular way I get all the data including focus grid and face tracking.

Guys, thanks for all your help. I really love the M100 and I didn't want to return it due to the live view turning off. I'll test it later when I stream and see if it stays on longer than 30 mins. It won't be recording (no encoding) so it shouldn't get hot as I'm passing HDMI into a capture card and my laptop encodes from there.

Canon M6 100f CHDK build for clean HDMI output
« Reply #106 on: 18 / June / 2020, 19:56:19 »
Hi, I'm looking for a CHDK build for my Canon M6 100f so I can get clean hdmi out to my Atomos. Can anyone assist with a link or directions to find a build for this camera? thanks in advance.

I've done a lot of searching but can't seem to find a build.

rgds

*

Offline reyalp

  • ******
  • 14117
Re: Canon M6 100f CHDK build for clean HDMI output
« Reply #107 on: 18 / June / 2020, 20:41:39 »
Hi, I'm looking for a CHDK build for my Canon M6 100f so I can get clean hdmi out to my Atomos. Can anyone assist with a link or directions to find a build for this camera? thanks in advance.

I've done a lot of searching but can't seem to find a build.
There is no CHDK for M6.

There is a clean overlay script for the stock firmware, see this post https://chdk.setepontos.com/index.php?topic=13489.msg143551#msg143551

The script is reported to work for 100f https://chdk.setepontos.com/index.php?topic=13489.msg142451#msg142451
Don't forget what the H stands for.


Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #108 on: 18 / June / 2020, 21:41:36 »
For the Canon M100 I made a tutorial on how this works, just in case people are struggling a bit. I know I struggled a lot to get it to work. so hopefully this helps out a bit.



Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #109 on: 18 / June / 2020, 22:11:34 »
For the Canon M100 I made a tutorial on how this works, just in case people are struggling a bit. I know I struggled a lot to get it to work. so hopefully this helps out a bit.




Thank you and thanks reyalp for the initial reply. I have it all set up but can't figure why it not running. either I don't have the script flag set properly on the card or I am not running the script correct (i.e. its not running the script at all) on the M6. I'm trying the basic 'hello world' script in the extend.m file to start with . I'll watch yoru video. thanks and regartds

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal