Variable Video Compression in A720IS Finally Done! - page 2 - DryOS Development - CHDK Forum  

Variable Video Compression in A720IS Finally Done!

  • 34 Replies
  • 12839 Views
*

Offline wap4

  • **
  • 95
  • A720IS
Re: Queries regarding some DryOS functions
« Reply #10 on: 27 / March / 2008, 07:14:45 »
Advertisements
Hard luck! The video quality and bitrate settings have no effects (I have tested with bitrate 3x and quality 99 and
got normal 1.8MB/s bitrate) and optical zoom could not be unlocked. But the menu 'video parameters' appears
and filebrowser works normally.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Queries regarding some DryOS functions
« Reply #11 on: 27 / March / 2008, 07:25:10 »
The video quality and bitrate settings have no effects

 :'(  Unfortunately, I cannot debug anything because I don't have A720... Maybe later (my friend have one)...

and filebrowser works normally.

Good, this bug will be fixed for all DRYOS cams.

edit: But stop! I found one bug!
« Last Edit: 27 / March / 2008, 07:30:32 by ewavr »

*

Offline wap4

  • **
  • 95
  • A720IS
Re: Queries regarding some DryOS functions
« Reply #12 on: 27 / March / 2008, 07:43:49 »
The video quality and bitrate settings have no effects

 :'(  Unfortunately, I cannot debug anything because I don't have A720... Maybe later (my friend have one)...



You may also do one thing,keep testbuild updated in ewavr.nm.ru and I'll check it daily and report whenever
success occurs :) (Just a funny idea)

Regarding the filebrowser: I never had problems in build 37 or later in my A720IS that h734790 experienced.
I had it only when I downloaded your first testbuild today,(Folder names were probably replaced by question marks)
but that is gone in the updated testbuild. 
 
« Last Edit: 27 / March / 2008, 07:51:30 by wap4 »

Re: Queries regarding some DryOS functions
« Reply #13 on: 27 / March / 2008, 07:50:31 »
Quote
edit: But stop! I found one bug!

Here's another: After switching back from replay to shooting mode the camera suddenly switches off,
without even pulling back the lens.  :o

File browser now works, anyway   :)


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Queries regarding some DryOS functions
« Reply #14 on: 27 / March / 2008, 07:52:52 »
Some bugs fixed, file re-uploaded. If this not works, I stop my work until camera will not be at me  ;)

*

Offline wap4

  • **
  • 95
  • A720IS
Re: Queries regarding some DryOS functions
« Reply #15 on: 27 / March / 2008, 08:04:08 »

Here's another: After switching back from replay to shooting mode the camera suddenly switches off,
without even pulling back the lens.  :o



This bug has been fixed in the last testbuild,but alas! The video parameters have no effect!

@ewavr
Please take your time.I'll wait patiently.
« Last Edit: 27 / March / 2008, 08:11:44 by wap4 »

*

Offline wap4

  • **
  • 95
  • A720IS
Re: Queries Regarding Variable Video Compression in DryOS Cams
« Reply #16 on: 27 / March / 2008, 14:10:07 »
@ewavr
    Just an observation:-

    The movie_rec.c you gave in the first testbuild today contains a function "sub_FFC1BDB8_my".
    I can understand that the suffix "my" indicates that the original function "sub_FFC1BDB8" has
    been changed by you and renamed as "sub_FFC1BDB8_my". Yet you call the original "sub_FFC1BDB8"
    in another function "sub_FFC5E460_my". Shouldn't that also be changed to "sub_FFC1BDB8_my"?

 
« Last Edit: 06 / April / 2008, 04:32:30 by wap4 »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Queries Regarding Variable Video Compression in DryOS Cams
« Reply #17 on: 27 / March / 2008, 14:24:52 »
Yes, I make this in other builds, but it has not helped  :(.
There it is necessary to copy a full tree of calls from original firmware to movie_rec.c (from task_Startup to task_MovieRecord).
I have found in this tree of calls still more many branches... too many... I cannot continue even if the camera will be  in my hands.
p.s. IDA command "XREFs to" often does not find some branches  >:(


*

Offline wap4

  • **
  • 95
  • A720IS
Re: Variable Video Compression in DryOS Cams Possible?
« Reply #18 on: 28 / March / 2008, 23:46:43 »
Ewavr has given me a good starting point by giving  the sources 'A720-movie.diff' and 'movie_rec.c'.
I'm now able to compile so that video parameters menu appears but currently it is without any effect.

Though the 'movie_rec.c' is pretty large now,(it calls nearly 30 modified subroutines) and including new
subroutines gives 'invalid literal constant...recursive error' in gcc, I continue investigation on the
possible 'xrefs' that may be included/excluded in 'movie_rec.c'. If I can make it work, I'll definitely post
in this thread.
« Last Edit: 06 / April / 2008, 04:31:43 by wap4 »

*

Offline wap4

  • **
  • 95
  • A720IS
Re: Variable Video Compression in DryOS Cams Possible?
« Reply #19 on: 07 / April / 2008, 09:26:43 »

Finally made some progress. I've found all possible xrefs leading to Task_MovieRecord. I painfully did it in notepad
(by copying the 26 mb dump in text file and then searching strings recursively starting from task_MovieRecord!)
as IDA doesn't find most of the xrefs. Thus some 15 new functions need to be included in movie_rec.c to make the
tree complete.

But as I mentioned earlier,movie_rec.c is pretty large by now and gcc complains "invalid literal constant.....
.... recursive error" and doesn't compile.

So what should I do now? Should I create another c file and copy the 15 functions there & modify makefile accordingly?
Or, the only way is to remove some functions and add some functions from movie_rec.c,thus by trial & error?
Ewavr,could you please give some suggestion?   

 

Related Topics