Author Topic: Added dual boot and video compression support for IXUS860/SD870IS  (Read 5106 times)

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #15 on: 22 / July / 2008, 14:37:27 »
either i'm blind or stupid but i cant seem to find movie_rec.c in your patch? wanted to extract the adress for movie_status so i can integrate it into juciphox build.hm.

edit: congratz of course for making it work :)

Offline mil22

  • Rookie
  • *
  • Posts: 29
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #16 on: 22 / July / 2008, 14:43:17 »
Whoops, my bad!  :-[ Totally forgot to SVN add it before creating the patch. Attached... it goes in ixus860_sd870/sub/100c.

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #17 on: 22 / July / 2008, 15:46:39 »
darn, like you said, your movie_rec looks so different from all the other ones, so i can't find the address for movie_status (my skills are really limited in that field of assembler :D), perhaps you can find it (perhaps? i'm certain you can find it :))

Offline mil22

  • Rookie
  • *
  • Posts: 29
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #18 on: 22 / July / 2008, 16:05:56 »
I can take a look. Can you show me where the movie_status is in one of the other movie_rec.c files, so I can compare and match it up with mine?

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #19 on: 22 / July / 2008, 16:17:39 »
well in the vxworks cam this was kinda easy (as far as my small knowledge can tell :D, even I could do it :D)
look how ewavr did it for a650: in /trunk/platform/a650/sub/100d/stubs_min.S - chdk - Trac line 18 you see the adress. 0x5518 + 0x38 <- maybe you can find out how he found 0x5518 in movie_rec (or ida for that matter), i don't know how he made up that other additional offset though.

here is a whole thread about it: Question for devs: How to find out if movie recording in progress?

Offline ewavr

  • Developers
  • Hero Member
  • ****
  • Posts: 1057
  • A710IS
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #20 on: 22 / July / 2008, 16:49:41 »
ROM:FF857CB4                 STMFD   SP!, {R4-R9,LR}
ROM:FF857CB8                 SUB     SP, SP, #0x3C
ROM:FF857CBC                 MOV     R7, #0         
ROM:FF857CC0                LDR     R5, =0x54E0 
ROM:FF857CC4                 MOV     R4, R0         
ROM:FF857CC8                 STR     R7, [SP,#0x58+var_2C]
ROM:FF857CCC                 STR     R7, [SP,#0x58+var_34]
ROM:FF857CD0                 LDR     R0, [R5,#0x3C]
ROM:FF857CD4                 MOV     R8, #4          
ROM:FF857CD8                 CMP     R0, #3         
ROM:FF857CDC                STREQ   R8, [R5,#0x3C]

if (movie_status==3) movie_status=4; - for all cameras



« Last Edit: 22 / July / 2008, 16:51:14 by ewavr »

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #21 on: 22 / July / 2008, 19:30:23 »
I dont get the last sentence really. Its about time we implement movie pausing,you said it is possible in the other thread. I wonder if it also is possible to start and stop the video through that adress,did you make tests regarding this,ewavr? By the way thanks for all the work you are doing for the project,i'm really glad you dont try to make any money out of all of this ;)
Ps for those who r wonderin what a moviepause function would do any good: a paused video will start recording much faster again after unpausing than a 'fresh start'. At least in theory!

Offline mil22

  • Rookie
  • *
  • Posts: 29
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #22 on: 23 / July / 2008, 01:06:37 »
Here's one single patch with all three (SDHC, movie_rec and touch_wheel).

Offline ewavr

  • Developers
  • Hero Member
  • ****
  • Posts: 1057
  • A710IS
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #23 on: 23 / July / 2008, 01:20:42 »
I wonder if it also is possible to start and stop the video through that adress,did you make tests regarding this,ewavr?

I wrote about this on some other thread - possible (simply change movie_status variable between 1 and 4), but you may throw out sound in this video to trashcan :(

CHDK Forum

Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #23 on: 23 / July / 2008, 01:20:42 »

Offline fe50

  • Guru Member
  • ******
  • Posts: 2602
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #24 on: 23 / July / 2008, 02:03:07 »
mil22,

now i did some testing with the video compression settings...

The Quality setting is working fine, also changing it while recording a video - when the data rate get's to high for the card the big red ! appears...

The Bitrate setting seems to be not working well, with all settings the video is extremly bad
(with big blocks like an old pacman game), changing the value has no response at all...
I've compared  this to my old Ixus 50 (SD400), there the bitrate setting is working as expected,
in the same manner as the quality setting, the lowest bitrate setting 0.25 is even times better than on the SD870.

But im happy anyway, the well working quality setting is enough for me  :)

But now the good message: the touch wheel issue is definitively SOLVED, no errors found, navigation with the wheel buttons in all modes now is a fun !

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #25 on: 23 / July / 2008, 02:23:25 »
can you say which "movie_status" adress exactly is the one for the sd870?
the video pause function is confirmed, works like a charm.
so i am now able to write script functions like movie_pause and movie_resume or something like that. movie_stop also works, but unfortunately movie_start does not work, this still has to be done via emulated button presses (or do you know a way ewavr!?). the audio is crazy after a pause/resume. maybe there also is a audio_pause function. by the way ewavr can you add the mute_function to more cameras, like s3is as well? we could mute videos via script this way, also maybe i will finally find a way muting the video when i take a photo (so it doesnt record the loud clicking noise anymore, like the zoommotor on the a-series).
thanks a bunch!

thanks for the patch mil22, it works now :D

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #26 on: 23 / July / 2008, 05:38:04 »
actually i am a little embarrassed, the movie_status adress has always been in the trunk already. i always figured that it was not possible without movie_rec. funny :D

anyhow, patch is in trunk now and should soon be autobuilt.

maybe needs a bit ironing out though, regarding video_quality/bitrate?
please report any bugs.
by the way, do any other cams have this touchwheel and/or this bug with the OSD?

Offline ewavr

  • Developers
  • Hero Member
  • ****
  • Posts: 1057
  • A710IS
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #27 on: 23 / July / 2008, 11:47:21 »
maybe needs a bit ironing out though, regarding video_quality/bitrate?

Video table corrected.

@PhyrePhoX: I have trouble with check-out procedure to assembla since last site crash , transfer hangs at end of procedure, I must interrupt it and make check-in procedure  >:(
« Last Edit: 23 / July / 2008, 11:55:36 by ewavr »

Offline fe50

  • Guru Member
  • ******
  • Posts: 2602
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #28 on: 23 / July / 2008, 12:01:25 »
PhyrePhoX,
as i know the SD750 has this issue, too...

ohh, nice - the SD870 things are in the trunk now, i'll test the video bitrate at least on my lunch break...

THX 2 all of you !

Offline mil22

  • Rookie
  • *
  • Posts: 29
Re: Added dual boot and video compression support for IXUS860/SD870IS
« Reply #29 on: 23 / July / 2008, 12:36:48 »
Thanks for correcting the video table ewavr, that definitely should be what was up with the video bitrate!

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal