CHDK firmware hack discussion (19)

Started Oct 18, 2007 | Discussions
Vit40
Regular MemberPosts: 269
Like?
A620 Movie Plus CHDK version tested
In reply to Vit40, Oct 23, 2007

Made a quick test of Ewavr's CHDK "movie plus" version on my A620.
Version for A620 is dated 22.10

Camera was fitted with Kingston 120x 2GB card, with RAW write benchmark result 9.477 kB/s

Average file transfer data rates at various compression ratios

50 = 1.25 MB/s
55 = 1.30 MB/s
60 = 1.40 MB/s
65 = 1.50 MB/s
70 = 1.65 MB/s
75 = 1.83 MB/s
77 = 1.95 MB/s
80 = 2.20 MB/s
85 = 2.55 MB/s
90 = 3.20 MB/s
95 = 4.70 MB/s
98 = 7.00 MB/s ! ! ! !

So, it's possible to set compression ratio of DV and even less

Quality between 50 and 55 is similar to LP mode on some new Canon digicams

It seems that default quality is 77 or somewhere near

At quality level 99, my A620 froze sevear times for obvious reason - camera couldn't bear the extremely high bitrate, several times higher than DV. After about 10 second, it turned off and last movie clip wasn't saved. I don't suggest using anything above 95 - gain in quality is very small and you will quickly waste free space on the card

For anything above default bitrate, high speed SD card is a must

Unfortunately, remaining time, shown on the LCD, is calculated as if camera was set to "default" video bitrate

Many thanx to the Author of this CHDK modification

Vit

Reply   Reply with quote   Complain
Dave Ingols
Regular MemberPosts: 258
Like?
Re: A620 Movie Plus CHDK version tested
In reply to Vit40, Oct 23, 2007

Thanks VERY much for doing this test. Would you mind if I reprinted them on a section of the CHDK Wikia site that was started up to discuss and explore these things? It was my intention to do this (test bit-rates vs. compression settings) and post them there myself, but time got the better of me. I suspected that high-speed cards were going to be needed, after I saw what the default compression setting was doing.

It would also help to know what audio sampling rate was used with this too, as that too can add to the bandwidth a lot, especially on the cameras that can record stereo track at 44.1kHz. I'm also curious about the really low compression rates too. Just how low is still usable, and under what circumstances would one use them. Things like that.

Again, Thanks!

(I need to get out outside for now though, I have a date with a fish that's winning a "catch me if you can" game that it started 8 weeks ago.)

Reply   Reply with quote   Complain
Vit40
Regular MemberPosts: 269
Like?
Re: A620 Movie Plus CHDK version tested
In reply to Dave Ingols, Oct 23, 2007

I recorded 10 second clips of the same static scene, to get comparable results. At same compression level, bitrate depends on the scene, so I've chosen a scene that returned about 2 MB/s at default settings, which was average bitrate on my various movie clips recorded previously. Actual results on real scenes would vary, but not much, I think

Until some future CHDK modification, only sound mode on A6x0 is 11 kHz 8 bit mono, occupying only 11 kB/s, but sound if far from Hi-Fi quality

I wouldn't use bitrate lower than 1 MB/s; my previous Pentax digicam used that bitrate and it was just acceptable quality for me. For short clips, where card space isn't a problem, I'll probably use quality around 90. It's about 3.2 MB/s (60% more than default) and 10-11 min of video will fit on 2 GB

Of course, everyone can reprint my posts (especially at CHDK dedicated sites)

Reply   Reply with quote   Complain
LostAndy
New MemberPosts: 2
Like?
Re: A570IS fw1.01A
In reply to microfunguy, Oct 23, 2007

Does anyone have already a CHDK for the A570is with firmware 1.01A? I just got the camera today and I only bought it, because of that hack. I want to use brackting to make HDR pictures. But now the camera has the new firmware.
Can anyone help me? Thanks!

Reply   Reply with quote   Complain
Dave Ingols
Regular MemberPosts: 258
Like?
Re: A620 Movie Plus CHDK version tested
In reply to Vit40, Oct 24, 2007

Thanks again for the further audio and testing info. I reposted your findings at the CHDK Wikia. They'll be very valuable to future users. I'm really going to have to hunker down and do a full test with settings from 1 to 99 in all 3 audio rates on my camera. Your findings support what I first suspected, being able to get even much greater image quality out of these cameras than first imagined. But as you said, there comes a point where the quality is already so high it might matter too little. Tho, for the extreme videophile who insists on 100% UNcompressed frames to work with for their editing ... what a great option! Fast 128Gig SD cards might be needed for them.

With the higher bandwidth needed for 44.1kHz audio in a stereo track (it eats up a surprisingly large chunk of the video file), it might be interesting to test what card speeds will be needed to keep up with higher audio settings + higher video-quality settings. That's another reason to make a nice chart.

Just when you think your camera can't get any better, another week goes by and you get a whole new camera again.

Here's where we've been putting notes (in english) about this nice addition to CHDK. If anyone else would love to contribute to any findings about this build, feel free to add them to this section, just click on "edit" next to the topic title.

http://chdk.wikia.com/wiki/Talk:Downloads#EWAVR.27s_.22VideoPlus.22_Version_-_Notes_.26_Firmware_Usage_Info

Eventually we'll probably make a "Special Builds Firmware Usage" section to house a more concise version of what everyone finds.

(p.s. A static scene might be nice for a "control" situation, but that affords the highest compression ratio, smallest file sizes. What I've done in the past is point the camera at a TV display. The motion, the small phosphor dots (high detail), the flickering from the screen refresh, ensures that a little more than above average motion detail will be recorded, creating larger file sizes but more realistic for normal use. You might find quite a change in bit rate using a moving image with a lot of details. If you want the absolute smallest video file just cover up the lens with your lens-cap. (but you probably knew this, I'm just mentioning this for anyone else that might want a semi-standard way that we can compare bandwidth rates under average video recording conditions.)

Reply   Reply with quote   Complain
singold
New MemberPosts: 1
Like?
Re: Powershot G7 1.00I with SDM and MX3 Motion Detection
In reply to HjvPT, Oct 24, 2007

Posted by Microfunguy on Tues Oct 9th
Yet again, this compiles but I have no idea if it works :-
http://rapidshare.com/files/61370846/SDM_MX3_G7_1.00I.zip.html
David
=========================================

Nobody responded to this a while back, I just got this hack so here goes:

Loaded and Worked great:

Only problem I could find was that the AE Lock ( ) button no longer worked. I saw that others had this problem and there was a fix but only for the 1.00G version. And that download file was no longer available on rapidshare. So I wasn't able to test that fix.

As for the script tests (all of them run with default parameters):
test_leds: lights the following LEDS one at a time:
Focus Assist lamp (green)
shortcut/print button LED (Blue)
Top Indicator LED (Red)
Top Indicator LED (Orange)
Bottom Indicator LED (Yellow)

MD_TEST1
a series of text appears that looks like this (very quick numbers hard to read)
cells: 1
[1, 1]
[1, 1] =44
[3, 2] =-1
[1, 2] =12
(I made up these numbers because they run too fast, but it seems to work fine)

MD_TEST2

Nothing appears on screen but when motion is detected the camera takes a picture. Though it's quite slow even when I set everything to manual, I fail to see how others have managed to capture lightning. I also looked all over the place for instructions on setting the script parameters but no such luck.

md_demo_v1

A border green squares appear on screen and when motion is detected some turn red. The follow appears on screen (even without motion any motion in front of the lense):

[8, 6] threshold 10

....after a little while (less than 1 minute) this shows up...
timeout

(even once this happens, I can still change the squares from green to red with motion in front of the lense)

I tried running the same script with powersave mode off, and I still had the timeout showup.

The live histogram works fine

If you need any more testing with the G7 1.00I FW version just let me know!

Thanks a ton for all this great stuff, so exciting it kept me up t'ill 6:00am! Love it!

Reply   Reply with quote   Complain
Vit40
Regular MemberPosts: 269
Like?
Re: A620 Movie Plus CHDK version tested
In reply to Dave Ingols, Oct 24, 2007

Another quick test of movie compression ratios (A620), this time 10 second movie clips, taken through the window, panning from left to right, covering angle about 90 degrees. Results slightly different than yesterday

default ... 1.89 MB/s
q=90 ... 3.66 MB/s
q=77 ... 2.46 MB/s
q=50 ... 1.37 MB/s

So, this time, q=77 returned considerably higher bitrate than default movie mode. Replayed movie clips using ffdshow, enabling mjpeg, and frame quantizers (shown by OSD) were:

default ... 3-9
q=90 ... 2
q=77 ... 4
q=50 ... 9

Higher the quantizer, higher the compression and lower the bitrate and quality

As I thought before this test, on default mode, camera is constantly warying quantizer to limit bitrate to about 2 MB/s. It works the same way as DV, or DivX/Mpeg encoders, when you select "constant bitrate" (unlike mjpeg, DV and mpeg 1,2,4 also support different quantizers on different parts of the same frame). When "My video compression" is on, quantizer is constant on all frames of the movie clip, and bitrate is warying according to complexity of the scene. It's like when you set "constant quality" in DivX/Mpeg encoder

Reply   Reply with quote   Complain
Mr Cat
Junior MemberPosts: 35
Like?
Re: CHDK firmware hack discussion (19)
In reply to zdravko, Oct 24, 2007

is few verson CHDK for my Canon 710is
im looking for one version with:

-Motion Detection for Lightning Detection
and
-USB remote cable-release

it is possible?

Reply   Reply with quote   Complain
aeropic
Contributing MemberPosts: 511
Like?
Re: CHDK firmware hack discussion (19)
In reply to Mr Cat, Oct 24, 2007

Mr Cat wrote:

is few verson CHDK for my Canon 710is
im looking for one version with:

-Motion Detection for Lightning Detection
and
-USB remote cable-release

it is possible?

everytihng is possible with those genious developpers.

see here you'll find what you need

http://hem.passagen.se/fsmmal/chdk2.html

bye
Alain

Reply   Reply with quote   Complain
microfunguy
Regular MemberPosts: 234
Like?
Re: Powershot G7 1.00I with SDM and MX3 Motion Detection
In reply to singold, Oct 24, 2007

singold wrote:

I just got this hack so here goes:

Loaded and Worked great:

Thanks, that is good to know.

there was a fix but only for the 1.00G version.

I deleted the RS file but hope to do an 'official; release within one week.

looked all over the place for instructions on setting the script parameters

Try bottom of this page :-

http://stereo.jpn.org/eng/sdm/index.htm

If you need any more testing with the G7 1.00I FW version just let me know!

Thanks !

If you had a really expensive camera you would not be able to do this stuff

David

Reply   Reply with quote   Complain
Mr Cat
Junior MemberPosts: 35
Like?
Re: CHDK firmware hack discussion (19)
In reply to aeropic, Oct 25, 2007

Fingalo version CHDK works ok in my 710IS
thx Fingalo

motion detection working:
i must set in "md_demo_v1.bas"

if t> 0 then click "shoot_full" else print "Timeout"

if t> 0 then print "detect cells",t else print "timeout"

USB cable relase:
Remote button.bas script also works

Reply   Reply with quote   Complain
mx32
New MemberPosts: 22
Like?
Re: CHDK firmware hack discussion (19)
In reply to Mr Cat, Oct 25, 2007

motion detection working:
i must set in "md_demo_v1.bas"

if t> 0 then click "shoot_full" else print "Timeout"

[click "shot_full"] must be used in manual mode to decrease time between detection and shoot
if you dont care much about this use:
if t> 0 then shot
so camera can do its job to adjust to scene : Focus etc

Reply   Reply with quote   Complain
RamboJohny
New MemberPosts: 9
Like?
Re: CHDK firmware hack discussion (19)
In reply to mx32, Oct 26, 2007

Hi! I hope this time I found the right forum. I would like to have CHDK for A540. I have a firmware downloaded from the Internet some weeks ago. I lost the address of the page, so I can not tell where does it come from, but it was said that the firmware was dowloaded with the leds. As I know this is the first step to port CHDK to A540. Ok, what is the next? I can offer my C skill and some time for playing with it. Who could help me?

BR
--
-RJ

Reply   Reply with quote   Complain
Mr Cat
Junior MemberPosts: 35
Like?
ubasic_test.exe
In reply to Mr Cat, Oct 26, 2007

i don't undestand one things
i use ubasic_test.exe to test script

SCRIPT:
@title timer&shoot count

@param a Interval (sec.)
@default a 5

@param b Shoot count
@default b 2

t=a*1000
if a
if b

sleep t

for n=1 to b
print "Shot", n, "of", b
shoot
next n

end
****
ubasic_test don't recognize lines "@default..."
if i write line a=5 OR b=2 is OK
why?

Reply   Reply with quote   Complain
easyshot
New MemberPosts: 7
Like?
Hoping for a540 chdk
In reply to Mr Cat, Oct 26, 2007

I hope someone will help us realize a chdk for canon a540. thank you in advance..

Reply   Reply with quote   Complain
jonquil
Forum MemberPosts: 59
Like?
A560 1.00A Porting Process ...
In reply to zdravko, Oct 26, 2007

Hi GrAnd and rossig,

I have dumped several times the firmware, and I have now a stable dump. Here it is:

http://www.zshare.net/download/4460589678377b/

Well, porting process

using the rossig A570 source code, I get that following functions are missed:

Found in the IDA dissembled code

NHSTUB(Close,0xFFE3B614) ok
NHSTUB(Read, 0xFFE3B6A8) ok
NHSTUB(Write, 0xFFE3B6B4) ok

Calculated from the rossig code. Remove is between Read and Close functions
NHSTUB(Remove, 0xFFE3B634) calculated !!!!

NOT FOUND. The values ARE wrong
NHSTUB(Mount_FileSystem, 0xFFE45E7C) unchanged from rossing source
NHSTUB(kbd_read_keys_r2, 0xFFDE74F0) unchanged from rossing source
NHSTUB(DisplayImagePhysicalScreen, 0xFFDDBEEC) unchanged from rossing source

These functions are requested in the last linking phase.

For free, I used the FreeMemory address
NHSTUB(free, 0xFFC08EE0)

For SetZoomActuatorSpeedPercent, I used the SetZoomActuatorSpeedPPS address
NHSTUB(SetZoomActuatorSpeedPercent, 0xFFE762D4)

The problem is how can I find the missing functions, there is no clear reference in the IDA...

Thanks in advance

Reply   Reply with quote   Complain
jonquil
Forum MemberPosts: 59
Like?
Re: Hoping for a540 chdk
In reply to easyshot, Oct 26, 2007

easyshot wrote:

I hope someone will help us realize a chdk for canon a540. thank you
in advance..

I am porting the a560, but I have found a friend having a540 camera.... I will check it after my a560 porting process (a little bit painful, I must say )

Bye

Reply   Reply with quote   Complain
Mr Cat
Junior MemberPosts: 35
Like?
a710is motion detection modify
In reply to Mr Cat, Oct 26, 2007

I'm begginer and I try modyfy script "motion detection"
i want add "shoot count"

i add to script
@param j Shoot count
@default j 2
(...)
if j
(...)
if t> 0 then goto "1"
next z
end

:1
for n=1 to j
print "Shot", n, "of", j
shoot
next n
end
***

ok it works but if i change "j" letter to o,p,r...parametr disappear from LCD screen in Scripting parameters

if i try modify script to add Interval param
@param p Interval
@default p 5

also don't show on LCD screen
hmm
is some limit/reservations ?

Reply   Reply with quote   Complain
ewavr
New MemberPosts: 14
Like?
Re: A560 1.00A Porting Process ...
In reply to jonquil, Oct 26, 2007

NHSTUB(Close,0xFFE3B614) ok
NHSTUB(Read, 0xFFE3B6A8) ok
NHSTUB(Write, 0xFFE3B6B4) ok
NHSTUB(Remove, 0xFFE3B634) ok

NHSTUB(Mount_FileSystem, 0xFFE3A938)
NHSTUB(kbd_read_keys_r2, 0xFFDDD0C0)
NHSTUB(DisplayImagePhysicalScreen, 0xFFDD1AE0)

NHSTUB(kbd_pwr_off, 0xFFDDD708) bad autofind, it is found manually
NHSTUB(SetPropertyCase, 0xFFC0BB80) bad autofind, it is found manually

NHSTUB(free, 0xFFCD1704)

NHSTUB(SetZoomActuatorSpeedPercent, 0xFFDD3094) null stub, used for S2/S3 only

Reply   Reply with quote   Complain
Dave Ingols
Regular MemberPosts: 258
Like?
ATTN: Fingalo
In reply to zdravko, Oct 26, 2007

I was just browsing around, kicking some tires, to see if everything was quiet and all was well in the halls of CHDK, and what do I find on your page??

http://hem.passagen.se/fsmmal/chdk2.html

WOW! Thanks!!!

Congratulations too on that fantastic radio-remote solution! I'm going to keep my eyes open for such a device to modify.

Again, THANKS!!

p.s. Can the new VideoPlus code be added too or will that conflict with so many other fantastic features already? Or will it slow down things like motion detect?

Reply   Reply with quote   Complain
Keyboard shortcuts:
FForum MMy threads