Esato

Forum > Sony Ericsson / Sony > Software, Firmware and Drivers > c905 VGA recording hack?

Previous  12
Author c905 VGA recording hack?
alexlt
Xperia Arc Black
Joined: Jun 05, 2004
Posts: > 500
From: A Valley in Peru
PM
Posted: 2009-12-11 21:35
Reply with quoteEdit/Delete This PostPrint this post
This has been already discuss in the C905 CamDriver Modded thread.

In short, it's possible to record VGA videos with C905 (with max 10-15fps and only record, not playback), but the fixed bitrate makes video looks worst than a QVGA video

A simple search in the forum give me this answer:

http://www.esato.com/board/vi[....]c=178559&start=975#post2778945

Xperia Arc LT15a ->> Sandisk 32Gb MicroSD Class 4, Sennheiser CX400-II & MW600
C905 ->> Modded R1FA035 Firmware, 8GB M2, HPM-70 & MPS-75

Visit my blog http://laviedepaulo.blogspot.com/
Bialynia
Xperia X10 Black
Joined: Jun 13, 2008
Posts: 337
PM
Posted: 2009-12-11 23:11
Reply with quoteEdit/Delete This PostPrint this post
Thanks for finding that Alex!!! I looked through that thread and searched through this forum and unfortunately a "simple search" did not give me the answer, it's hard finding something in threads that are 100's of pages long sometimes.

Here is what Theliel wrote in that thread:
I want give us a little explication:

I dont want to "criticize", but yours VGA mods are very poor. You can record video to VGA resolution, yes, but in the best case you only obtain 7-12fps, depending scene complexity. You can force to 15fps if you want, and 24 or 30, only need change a pair of numbers, but this change dont mean you obtain this framerate.

For example, the video upload by eltoffer with her 3.61 version. You can analyze the video and you can view that the máximun fps are 11 (it dont bit). Anyone dont trust me, i can post some images.

And this its very simple. The clock of this camera its setting to 13MHz (Master Clock its double, but its used for other things). But a 640*480 resolution for 15fps (for example) need a little more power. A simple example:

C905 camera capture video in YUV422/YUV420. YUV422/YUV420 need read 4bytes per output pixel (if i remember)

CLK 13MHZ similar to said that can read 13.000.000 bytes per second.

QVGA= 320*240 -> 320*240*4 = 307200 -> 13*10^6 / 307200 = 42.3fps max
VGA = 640*480 -> 640*480*4 = bla bla bla = 10.57fps max

Of course this its relative, you can obtain in some times a little more/less.

If you want a pure VGA at 15fps you need:

640*480*4*15 = 18432000 Hz = 18.5MHz aprox, 19MHz

this mean you must overclock the stock 13MHz clk to at least 19MHz. This can be done in camera driver. The problems? Its can be... dangerous. Always its possible a little margin in OC, but nobody know never the max threshold. My be 19MHz can be safe, maybe no

VGA at 15fps = 19MHz -> Must be safe and stable
VGA at 20fps = 24.5 -> 25MHz -> Can be safe and stable
VGA at 25fps = 30.7 -> 31MHz -> The most probable its very dangerous for cam integrity


In other point, this its only the first problems. Exist other: bitrate. If you want obtain a good quality you need a good bitrate (depending of course of codec). C905 take videos in MPGE-4 part 2 (Im sure that SP profile only) and h263 for videoconference only. In both cases, at a target bitrate of 768. With MPEG4 part 2 SP, 768 can be sufficient for 320*480 30fps, but for 640*480 at 15fps you obtain clearly much less quality. For 640*480 at 20 you obtain less. If you want obtain a similar quality at 640*480 at 20fps you need at least about >1.5Mbps.

Looking into camdriver maybe its possible make a mod to take video in pure YUV, so you can obtain a max quality for video recording with a "expensive" memory size

cheers.
alexlt
Xperia Arc Black
Joined: Jun 05, 2004
Posts: > 500
From: A Valley in Peru
PM
Posted: 2009-12-11 23:23
Reply with quoteEdit/Delete This PostPrint this post
Well ... yes. Sometimes it's difficult to search for something specific, but the option "search thread" its very helpful

Cheers!
Xperia Arc LT15a ->> Sandisk 32Gb MicroSD Class 4, Sennheiser CX400-II & MW600
C905 ->> Modded R1FA035 Firmware, 8GB M2, HPM-70 & MPS-75

Visit my blog http://laviedepaulo.blogspot.com/
DivineJakiro
C903 White
Joined: Apr 26, 2010
Posts: 132
From: Malaysia
PM, WWW
Posted: 2010-05-15 13:41
Reply with quoteEdit/Delete This PostPrint this post
you can change the value of C905 camdriver hex number.


although i never use c905 before...but i check the code before...
you go change the resolution part....don't worry, it just need change two part..
For VGA is easy to make, because the phone already got a free VGA code to you...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
First, you go find the value of support size:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2a[160,120,BB8] -- this is for CIF
2b[160,120,5DC] -- this is for CIF (night mode)
2c[160,120,2EE] -- this is for CIF (night mode)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2a[280,1E0,BB8] -- this is for VGA
2b[280,1E0,5DC] -- this is for VGA (night mode)
2c[280,1E0,2EE] -- this is for VGA (night mode)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

And you also need to modify the bit of it

Example : CIF

seq_vf_config_2a =
#SET_REG(23,13)
$cf.07 1

$cl
06 02 00 24
3C
3B
$f $r3 111 $d0002
$cx
$sf.01 1
$s8 00
;

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Example : VGA

seq_vf_config_2a =
#SET_REG(23,0F)
$cf.07 1

$cl
06 02 00 24
1F
1E
$f $r3 111 $d0002
$cx
$sf.01 1
$s8 00
;

===================================================================================================

GOOD LUCK
[ This Message was edited by: DivineJakiro on 2010-05-15 13:33 ]
Access the forum with a mobile phone via esato.mobi