Author Topic: SX1 IS with CHDK can't record more then 29'59'' sec??  (Read 2533 times)

Offline CanonMan

  • Rookie
  • *
  • Posts: 11
SX1 IS with CHDK can't record more then 29'59'' sec??
« on: 03 / September / 2009, 15:09:44 »
Yesterday I've installed CHDK and was trying everything to record more then 30 minutes of continuous recording of HD movies, but couldn't do it.

I tried with quality 50, 30, 25, 15 but every time when it comes to 29'50' the numbers become red and is recording for just another 10 seconds and then stops.
What is the problem?
Does anybody know how to set CHDK to record more then 1h of continuous movie?

Thanx.

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #1 on: 03 / September / 2009, 18:28:28 »
what's the size of your 30 min. HD videos ? I'm asking this, because maybe Canon enforces a 30 min. limit to avoid breaking the max filesize barrier ( ~ 4 GB for FAT32 ) ?
If that is the case, there's little CHDK can do, AFAIK ...

wim
« Last Edit: 03 / September / 2009, 18:45:06 by whim »

Offline ewavr

  • Developers
  • Hero Member
  • ****
  • Posts: 1057
  • A710IS
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #2 on: 03 / September / 2009, 19:53:56 »
2 CanonMan:
Could you look in memory browser variable at address (0x)9C30 when HD video record is running? It must contain limit of frames (appr. 1799s*30 fps=53970 or 0xD2D2).

Offline CanonMan

  • Rookie
  • *
  • Posts: 11
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #3 on: 07 / September / 2009, 13:36:46 »
Thanx for the reply, but I don't know where is memory browser variable at address (0x)9C30 when HD video recording is running.

Can you please explain me how to find it???

I'm new here and trying to learn something.

Thanx

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #4 on: 07 / September / 2009, 14:06:44 »
@CanonMan

in the CHDK menu, goto Miscellaneous stuff -> Debug parameters -> Memory browser

- press Display to change step size (shown in top line) to 100
- use left/right buttons to change address (shown in top line)
- when you get close, use Display again to kick down to step 4
- once you've set 9C30, note down values
- press Menu to return (CHDK will remember selected mem location)
- leave CHDK menu and <Alt> state
- start whatever process you want to monitor
- return to CHDK menu and Memory Browser and read and note changed values

have fun,

wim

edit: clarified (hopefully)
« Last Edit: 07 / September / 2009, 15:38:43 by whim »

Offline CanonMan

  • Rookie
  • *
  • Posts: 11
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #5 on: 07 / September / 2009, 14:54:37 »
Explanation was very good, thank you!

I found it, and yes it contain

0x0000D2D2  (  53970)
0xD2D2  (53970)
0xD2  (210)

TT

0xFFFF0AD5  (4294904533)
0x0AD5  ( 2773)
0xD5  ( 213)

So what now, can I change in CHDK those values for recording more frames then 53970?

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #6 on: 07 / September / 2009, 15:37:16 »
@CanonMan

Don't think it works that way, but wait for ewavr to comment ...

not my field of expertise  :D

cheers,

wim
 


Offline ewavr

  • Developers
  • Hero Member
  • ****
  • Posts: 1057
  • A710IS
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #7 on: 07 / September / 2009, 22:53:58 »
So what now, can I change in CHDK those values for recording more frames then 53970?
For example, using this lua script (also attached to this post):
Code: Lua
  1. poke(0x9C30, 35*30*60)
  2. print("done.")
  3. sleep(1000)
  4.  

- start HD video recording
- enter <alt> mode and start this script
- wait for a second and exit <alt> mode, time limit will be 35 minutes

note: after finish check filesystem on card for errors.

Offline CanonMan

  • Rookie
  • *
  • Posts: 11
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #8 on: 10 / September / 2009, 15:22:47 »
Thank you very much ewavr for the reply but before I use it,

I have a few more questions  ::).

Can you tell me what is 'lua' script, and how it is working with the chdk?

Will it always remain in chdk, or will I always have to start the script?

Can I set the time limit more then 35min for example 60min (poke(0x9C30, 60*30*60))?

How to check filesystem on card for errors?

Thanx

CHDK Forum

Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #8 on: 10 / September / 2009, 15:22:47 »

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #9 on: 10 / September / 2009, 15:59:11 »
Quote
Can you tell me what is 'lua' script, and how it is working with the chdk?

http://chdk.wikia.com/wiki/LUA
put ewavr's attached script in the /SCRIPTS directory, and in the CHDK menu, goto Scripting Parameters -> Select script from file  and select it. Shut down your cam.
Your script is now setup as default, and will remain so until you go back and select the 'default.bas' script. To use it, start your cam, set to video shooting mode and enter <Alt> ; you will see the script's output at bottom left on your screen. Press shutter to start/stop the script.
Quote
Will it always remain in chdk, or will I always have to start the script?

you will need to run the script every time, but once you've selected it, it will be auto-loaded every time you start CHDK
Quote
Can I set the time limit more then 35min for example 60min (poke(0x9C30, 60*30*60))?

you can always try later, first try 35 though ... [edit] and do the math to make sure your video files stay below 4 GB in size, if you don't, you'll get file system errors; note that video size can't be predicted exactly, you need to allow some safety margin. Check any video's you already recorded to get an idea how many MB of storage you need per minute.
Quote
How to check filesystem on card for errors?

(assuming Windows) put card in cardreader, find cards' drive letter;
right click drive -> properties -> tools -> error-checking

hth,
wim
« Last Edit: 10 / September / 2009, 17:19:13 by whim »

Offline CanonMan

  • Rookie
  • *
  • Posts: 11
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #10 on: 10 / September / 2009, 16:32:10 »
And if it is not working, how to disable the script or delete it from chdk?

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #11 on: 10 / September / 2009, 16:47:47 »
LOL was just editing my post - see additions
wim

edit: forgot to mention  :-[ going to <Alt> will just load the script, you need to press 'half-shoot'  the shutter to start (and stop)  it, unless you activate 'Script Autorun' in the menu ....
« Last Edit: 10 / September / 2009, 17:22:26 by whim »

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4488
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #12 on: 11 / September / 2009, 00:02:54 »
And if it is not working, how to disable the script or delete it from chdk?
Restart the camera and the change will be undone.

Or you could make another script to set it back to the original value.
Don't forget what the H stands for.

Offline RaduP

  • Hero Member
  • *****
  • Posts: 841
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #13 on: 11 / September / 2009, 11:04:54 »
A side note, the 30 minutes limit is not because of the 4Gb limit (that can or can not be reached in 30 minutes depending on many factors). It is because the morons in EU (the bureaucrats from Bruxelles) decided that zomg, if a camera can record more than 30 minutes, it is a camcorder, so it must be taxed even more, so that they can throw the money away.

Offline CanonMan

  • Rookie
  • *
  • Posts: 11
Re: SX1 IS with CHDK can't record more then 29'59'' sec??
« Reply #14 on: 12 / September / 2009, 13:13:27 »
I tried everything, but it's not working  :'(.

When you execute the script with the shutter button, your camera can't do anything, every button on the camera is dead,
so you can't start to record the video.

You must execute the script after you press the record button, (<ALT>, then shutter button and the script start), but again during the recording you can't do anything (zoom in or zoom out).

The script do its job, it override the 29'59'' seconds and the camera gone till 45min, 60min, but when the camera must save the file the camera shuts down. You must power up your camera and the file is nowhere to be found, but it occupied the space on your card, so you must format your card and install CHDK again.

I tried to wait till 35min finish, I tried during the recording around min 31'40'' to select <ALT> and disable the script with shutter button and press the record button to stop the recording but again the camera shuts down. It was not because of limit of 4Gb. I set movies to quality 20 and 30 and they had just about 1 - 1,5Gb.

I think that the script is doing it's job, but just half of it.

Another script must be added to override the camera saving system, because I think that when the 29'59'' seconds passed camera can't save the file and shuts down.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal