Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
vladnosferatu
Old
(Last edited by vladnosferatu; 14th June 2012 at 02:03 PM.)
#1  
vladnosferatu's Avatar
Senior Member - OP
Thanks Meter 1400
Posts: 2,940
Join Date: Feb 2011
Location: Leiria

 
DONATE TO ME
Video [FIX][WORK] video cam stretched problem on AOSP camera.apk

THE FIX

add this on class
VideoCamera.java, method setCameraParameters():
Quote:
mParameters.set("capture-mode", "normal");
mParameters.set("cache-first-frame", 0);
mParameters.set("cam-mode",1);
mParameters.set("video-size",mProfile.videoFrameWidth+"x"+mProfile.videoF rameHeight);
THE PROBLEM IS THIS
as you can see the circle isnt perfect



Quote:

dev | Sam i9300
rcv | CWM Touch
krn | Siyah 191
rom | AOSPA 3.5
btr | 2100 mAh
----------------
2dv | LG Nexus4
rcv | CWM Touch
krn | Franco137
rom | AOSPA 3.5
----------------
lch | ADW EX
adw | i2 [1804 icons]

old :
Ericsson GH688 / Nokia 6150, 6210, 7610, N70, E71 / HTC Desire, Desire HD, Sensation, One X / Samsung Galaxy Nexus


The Following 8 Users Say Thank You to vladnosferatu For This Useful Post: [ Click to Expand ]
 
tbalden
Old
#2  
tbalden's Avatar
Senior Member
Thanks Meter 4213
Posts: 2,937
Join Date: Oct 2010

 
DONATE TO ME
i'll try this when got home. thanks for the tip.
VirtuousROM & TeamNDVRu(cm10/cm10.1) & TeamDS(cm9/10) team member
htc one cm10.1
htc one x cm10.1
HTC DoubleShot - mt4gs - cm10.1 | Virtuous Inquisition

Donate to me!
my music: Illes Pal - you can buy it if you like it and want to donate through music purchase
Twitter @illespal http://twitter.com/illespal
gplus: https://plus.google.com/u/0/104117834086133689848/posts
The Following User Says Thank You to tbalden For This Useful Post: [ Click to Expand ]
 
lrbpereira
Old
#3  
lrbpereira's Avatar
Senior Member
Thanks Meter 218
Posts: 1,045
Join Date: May 2009
Location: Figueira de Castelo Rodrigo
Now that you have that fixed out can you take a look why the screen blacks out when you rotate the screen?
HTC ONE X
Rom: OneX IceCold Jelly

 
3f1f37
Old
#4  
3f1f37's Avatar
Senior Member
Thanks Meter 963
Posts: 1,285
Join Date: Feb 2011
Location: Cape Town
Is the above issue present on stock devices as well?
Dont really make videos with my HOX but i would be interesting to know!
Phone: HTC One X
Recovery: CWM TOUCH
Android version: JellyBean
Software number: 3.20.401.1

 
vladnosferatu
Old
#5  
vladnosferatu's Avatar
Senior Member - OP
Thanks Meter 1400
Posts: 2,940
Join Date: Feb 2011
Location: Leiria

 
DONATE TO ME
has anyone compile with this option ?

would luv to have feedback
Quote:

dev | Sam i9300
rcv | CWM Touch
krn | Siyah 191
rom | AOSPA 3.5
btr | 2100 mAh
----------------
2dv | LG Nexus4
rcv | CWM Touch
krn | Franco137
rom | AOSPA 3.5
----------------
lch | ADW EX
adw | i2 [1804 icons]

old :
Ericsson GH688 / Nokia 6150, 6210, 7610, N70, E71 / HTC Desire, Desire HD, Sensation, One X / Samsung Galaxy Nexus


 
owain94
Old
#6  
owain94's Avatar
Recognized Developer / Contributor
Thanks Meter 5669
Posts: 3,415
Join Date: Sep 2010
Location: The Hague

 
DONATE TO ME
Quote:
Originally Posted by vladnosferatu View Post
has anyone compile with this option ?

would luv to have feedback
I'll try in a couple minutes

Sent from my HTC One X using xda premium
My pm is NOT tech support. Those messages are redirect to the trash can

If you are enjoying my work please consider donating:



If my post helped you please click the Thanks buttton
 
owain94
Old
#7  
owain94's Avatar
Recognized Developer / Contributor
Thanks Meter 5669
Posts: 3,415
Join Date: Sep 2010
Location: The Hague

 
DONATE TO ME
My pm is NOT tech support. Those messages are redirect to the trash can

If you are enjoying my work please consider donating:



If my post helped you please click the Thanks buttton
The Following User Says Thank You to owain94 For This Useful Post: [ Click to Expand ]
 
vladnosferatu
Old
(Last edited by vladnosferatu; 13th June 2012 at 10:42 PM.)
#8  
vladnosferatu's Avatar
Senior Member - OP
Thanks Meter 1400
Posts: 2,940
Join Date: Feb 2011
Location: Leiria

 
DONATE TO ME
Thanks for the feedback
Quote:

dev | Sam i9300
rcv | CWM Touch
krn | Siyah 191
rom | AOSPA 3.5
btr | 2100 mAh
----------------
2dv | LG Nexus4
rcv | CWM Touch
krn | Franco137
rom | AOSPA 3.5
----------------
lch | ADW EX
adw | i2 [1804 icons]

old :
Ericsson GH688 / Nokia 6150, 6210, 7610, N70, E71 / HTC Desire, Desire HD, Sensation, One X / Samsung Galaxy Nexus


 
n3ocort3x
Old
#9  
n3ocort3x's Avatar
Senior Member
Thanks Meter 6934
Posts: 4,338
Join Date: May 2012
Location: Vienna

 
DONATE TO ME
finally you fixed it on your own... great work ! Let Trip and the other AOSP Devs know so that they can integrate it ! I dont have a video but i tested it and its working !
 
vladnosferatu
Old
#10  
vladnosferatu's Avatar
Senior Member - OP
Thanks Meter 1400
Posts: 2,940
Join Date: Feb 2011
Location: Leiria

 
DONATE TO ME
Quote:
Originally Posted by n3ocort3x View Post
finally you fixed it on your own... great work ! Let Trip and the other AOSP Devs know so that they can integrate it ! I dont have a video but i tested it and its working !
yeah,

its here for the all world !!!
Quote:

dev | Sam i9300
rcv | CWM Touch
krn | Siyah 191
rom | AOSPA 3.5
btr | 2100 mAh
----------------
2dv | LG Nexus4
rcv | CWM Touch
krn | Franco137
rom | AOSPA 3.5
----------------
lch | ADW EX
adw | i2 [1804 icons]

old :
Ericsson GH688 / Nokia 6150, 6210, 7610, N70, E71 / HTC Desire, Desire HD, Sensation, One X / Samsung Galaxy Nexus



 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...