X im./sec VIDEO SCRIPTS - Script Writing - CHDK Forum

X im./sec VIDEO SCRIPTS

  • 4 Replies
  • 2551 Views
X im./sec VIDEO SCRIPTS
« on: 15 / February / 2011, 12:25:09 »
Advertisements
Hello,
I've an idea which could be greatful...
I don't know if it's already exist (i don't find it on the forum...). Is it possible to choose the number of images per seconds in the video mode??? Because with the continuous mode (with script or not) we only can make a picture every 1 seconds aproximatively...And it could be useful to use video with 5, 12...images/sec... A kind of use between intervalometer and video...
As usual, i don't know the technical problem and solutions...but i know that i'll use that if it exists!!!

If somebody have some time to spend on it...it could be nice...
bye
590
S90

*

Offline reyalp

  • ******
  • 13399
Re: X im./sec VIDEO SCRIPTS
« Reply #1 on: 16 / February / 2011, 00:25:00 »
No, no one has found a way to set arbitrary video frame rates.

You could probably capture the live view at a rate faster than the continuous shooting rate.
Don't forget what the H stands for.

Re: X im./sec VIDEO SCRIPTS
« Reply #2 on: 19 / February / 2011, 09:52:56 »
Do you mean:
-get for exaple 6 frames per second
-output movie with standard 12fps?
So you like to (for example) record video, on wich everything goes 2x faster?

If that's true, than you can do either:
-record normal movie and THEN remove some frames
or
try to use set_movie_status to hack this. My proposal is:

Code: [Select]
:loop
click "shoot_full"
set_movie_status 1
set_movie_status 2
goto "loop"

Of course this script should run in movie record mode.

set_movie_status 1 wil pause recording and set_movie_status 2 will unpause. This will couse, that on the output video some moments are lost - like in normal timelapse. This script should you give everything twice faster on video than in real.

You can also add 'sleep' somewhere in the loop - this will change the pics/sec to slower - everything will be faster.

But there is a small problem - set_movie_status is an experimental function - it may crash. On most of cameras set_movie_status 1 (pause) crashes after 2 sec. But maybe not on yours. And maybe some day this function will work better;)

PS - on my SX130 it crashes after 2 sec.
« Last Edit: 19 / February / 2011, 10:05:42 by outslider »
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline fe50

  • ******
  • 3132
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: X im./sec VIDEO SCRIPTS
« Reply #3 on: 20 / February / 2011, 04:37:47 »
set_movie_status does not work on most cameras, AFAIK this only works only the S3 and the A720, other camera crashes/freezes after ~2 seconds.
Read also http://chdk.wikia.com/wiki/Script_commands#set_movie_status


Re: X im./sec VIDEO SCRIPTS
« Reply #4 on: 20 / February / 2011, 08:02:19 »
Yes, that's true, that's why I said it's just experimental and might or might not work:/ On my cam does not, maybe on this - it will. Also - maybe someday it will work on more cams;)

I think, that the best idea now is post-recording removing of frames in a movie.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

 

Related Topics