CHDK PTP Canon SX50 Change Resolution of Recording using propcase - General Discussion and Assistance - CHDK Forum

CHDK PTP Canon SX50 Change Resolution of Recording using propcase

  • 3 Replies
  • 4129 Views
Advertisements
I'm trying to change the desired resolution of video recording of my sx50 using ptp console. Here is how i'm trying to do it.

luar set_prop(171,2)     //171 is propcase for changing video resolution and 2 sets it to 640x480
luar click("video")      // start making video
luar click("video")     //stop making video

problem is, when i click video button through ptp to stop making video, camera hangs and turn off. Is there any solution to this problem? Thanks in advance
« Last Edit: 22 / August / 2015, 06:11:31 by NaveedESahar »
Naveed E Sahar

*

Offline reyalp

  • ******
  • 14121
Re: CHDK PTP Canon SX50 Change Resolution of Recording using propcase
« Reply #1 on: 22 / August / 2015, 17:03:35 »
I get similar results on elph130. The propcase is 170 instead of 171 for this camera (propset 6, verified by checking prop value after changing in menu). Romlog attached. I haven't looked at what this assert actually means, but I expect that changing movie res requires more than just setting the propcase. I don't think this is a bug in CHDK code, it's just how the canon firmware responds to having that value changed.

Recording and stopping video with click'video" over PTP works fine if I don't change the propcase.

The only alternatives I can think of are to set this using key presses through the Canon menus, or perhaps a UI property http://chdk.setepontos.com/index.php?topic=10624.0
« Last Edit: 22 / August / 2015, 18:07:40 by reyalp »
Don't forget what the H stands for.

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: CHDK PTP Canon SX50 Change Resolution of Recording using propcase
« Reply #2 on: 22 / August / 2015, 17:40:18 »
Maybe it needs also the right values for the frame rate (propcase 167 or 168). 1080p or 720p has an other standard frame rate as 480p.

msl
CHDK-DE:  CHDK-DE links

*

Offline reyalp

  • ******
  • 14121
Re: CHDK PTP Canon SX50 Change Resolution of Recording using propcase
« Reply #3 on: 22 / August / 2015, 18:07:28 »
Maybe it needs also the right values for the frame rate (propcase 167 or 168). 1080p or 720p has an other standard frame rate as 480p.
Good idea :)

Code: [Select]
set_prop(170,2)
set_prop(167,0)
seems to work without crashing on elph130
Don't forget what the H stands for.


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal