[Q] Can't Record Hi Def Video on the Galaxy Sii

Search This thread

UKLooney

Senior Member
Aug 13, 2009
112
4
Hi guys, hope yous can help, hope I'm posting in the right place...

My app records video using the MediaRecorder API, seems to work on all other phones I know of. I just bought a i9100 myself after a user reported this bug :rolleyes:, still can't resolve the issue though. :mad: Awesome hardware though :cool:

On the Galaxy S II, when attempting to record video using the 'HIGH_QUALITY' CamcorderProfile the resultant video is playable, but corrupt (flickering green squares with garbled video @ 1920x1080).
The 'LOW_QUALITY' setting records ok but in very poor quality, as to be expected.
I can get good 720x480 video footage if I manually set up the MediaRecorder object, but get the same problems when I up the resolution beyond 480p.

Here is a breakdown of my code using the Camcorder profile... DOES NOT WORK, gives corrupt footage @ 1920x1080.

Code:
 mMediaRecorder = new MediaRecorder();
// reuse the camera
mMediaRecorder.setCamera(mCamera);
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));
mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());
mMediaRecorder.setOutputFile(tempVideoFile.getAbsolutePath());
mMediaRecorder.prepare();
mMediaRecorder.start();

Here is example code only this time setting up the MediaRecorder object manually from the phone provided 'HIGH_QUALITY' CamcorderProfile values, WORKS OK when specifying a video size of 720x480.

Code:
mMediaRecorder = new MediaRecorder();
// reuse the camera
mMediaRecorder.setCamera(mCamera);
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setOutputFormat(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).fileFormat);
mMediaRecorder.setVideoSize(720, 480);
mMediaRecorder.setVideoEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoBitRate);
mMediaRecorder.setVideoFrameRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoFrameRate);
mMediaRecorder.setVideoEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoCodec);
mMediaRecorder.setAudioEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioBitRate);
mMediaRecorder.setAudioSamplingRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioSampleRate);
mMediaRecorder.setAudioEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioCodec);
mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());
mMediaRecorder.setOutputFile(tempVideoFile.getAbsolutePath());
mMediaRecorder.prepare();
mMediaRecorder.start();

Here is example code only using MediaRecorder, DOES NOT WORK, gives corrupt footage @ 1080x720.
The only difference between this and the last, is the VideoSize.

Code:
mMediaRecorder = new MediaRecorder();
// reuse the camera
mMediaRecorder.setCamera(mCamera);
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setOutputFormat(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).fileFormat);
mMediaRecorder.setVideoSize(1080, 720);
mMediaRecorder.setVideoEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoBitRate);
mMediaRecorder.setVideoFrameRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoFrameRate);
mMediaRecorder.setVideoEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoCodec);
mMediaRecorder.setAudioEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioBitRate);
mMediaRecorder.setAudioSamplingRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioSampleRate);
mMediaRecorder.setAudioEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioCodec);
mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());
mMediaRecorder.setOutputFile(tempVideoFile.getAbsolutePath());
mMediaRecorder.prepare();
mMediaRecorder.start();

Here is the details i get from the HIGH_QUALITY CamcorderProfile from the Galaxy S II

CamcorderProfile.fileFormat=2
CamcorderProfile.videoFrameWidth=1920
CamcorderProfile.videoFrameHeight=1080
CamcorderProfile.videoBitRate=2000000
CamcorderProfile.videoFrameRate=30
CamcorderProfile.videoCodec=2
CamcorderProfile.audioBitRate=96000
CamcorderProfile.audioSampleRate=16000
CamcorderProfile.audioCodec=3

I've tried tweaking all these values but to no avail...

Can anyone tell me the what are the recommended MediaRecorder settings for recording 720p & 1080p video footage? Or if there is an odd way I need to set up the camera?

Thanks

Edit: Phone is O2 UK supplied, with 2.3.3, Baseband I9100XXKDJ, Build GINGERBREAD.XWKE2

Edit2: Here is the market app if anyone want to try
https://market.android.com/details?id=net.adyno.alaprecorderhd
alaprecorderhd_qcode.png
 
Last edited:
  • Like
Reactions: danim

kaassema

Senior Member
May 11, 2011
90
18
The same thing happens when recording using the 1920x1080 resolution on Daily Roads Voyager (blackbox app)... Green flickering. That app only works well at 720x480 with the SGSII as well.
 

JF-GINO

Senior Member
Apr 30, 2011
340
112
Toronto
Hey,

I might not know what Im suggesting here, as I have not looked at this myself but Are there any other profiles other than low and high?

have you tried changing this to:
mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.Quality_1080p));

So you have tried to change the video codec used in the profile?
CamcorderProfile.videoCodec=2 (0= default 1= 3gp h263 2= mpg4 h264 3=amr_nb)
Might also be related to the container type as well,
CamcorderProfile.fileFormat=2 (1 = 3gp 2 = mp4)

The encoding might be API level dependent.
 

UKLooney

Senior Member
Aug 13, 2009
112
4
Hey,

I might not know what Im suggesting here, as I have not looked at this myself but Are there any other profiles other than low and high?

have you tried changing this to:
mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.Quality_1080p));
Only supported by 3.0 API, gave it a try anyway but FAIL.

So you have tried to change the video codec used in the profile?
CamcorderProfile.videoCodec=2 (0= default 1= 3gp h263 2= mpg4 h264 3=amr_nb)
Might also be related to the container type as well,
CamcorderProfile.fileFormat=2 (1 = 3gp 2 = mp4)

The encoding might be API level dependent.
Sure, tried them all. Checking the file properties of a video I record, and one from the default camera app showing that the video/audio encoding details etc are the same...
 

UKLooney

Senior Member
Aug 13, 2009
112
4
I found this info in the camera.apk MediaRecorderProfile.smali

Code:
    .line 66
    :array_0
    .array-data 0x4
        0x2t 0x0t 0x0t 0x0t
        0x40t 0x66t 0x3t 0x1t
        0xc0t 0xe1t 0xe4t 0x0t
        0x40t 0x5dt 0xc6t 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x2t 0x0t 0x0t 0x0t
        0x3t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x3t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x44t 0xact 0x0t 0x0t
    .end array-data

    :array_1
    .array-data 0x4
        0x2t 0x0t 0x0t 0x0t
        0x0t 0x1bt 0xb7t 0x0t
        0x80t 0x96t 0x98t 0x0t
        0x0t 0x12t 0x7at 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x2t 0x0t 0x0t 0x0t
        0x3t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x3t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x44t 0xact 0x0t 0x0t
    .end array-data

    :array_2
    .array-data 0x4
        0x2t 0x0t 0x0t 0x0t
        0xa8t 0xa0t 0x34t 0x0t
        0x50t 0x3et 0x2bt 0x0t
        0x90t 0x10t 0x23t 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x2t 0x0t 0x0t 0x0t
        0x3t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x3t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x44t 0xact 0x0t 0x0t
    .end array-data

    :array_3
    .array-data 0x4
        0x2t 0x0t 0x0t 0x0t
        0x70t 0xf7t 0x2et 0x0t
        0xa8t 0xf4t 0x26t 0x0t
        0xb8t 0xcet 0x1et 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x2t 0x0t 0x0t 0x0t
        0x3t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x3t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x44t 0xact 0x0t 0x0t
    .end array-data

    :array_4
    .array-data 0x4
        0x2t 0x0t 0x0t 0x0t
        0x18t 0xb4t 0xbt 0x0t
        0xe8t 0xc7t 0x9t 0x0t
        0x70t 0xe7t 0x7t 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x2t 0x0t 0x0t 0x0t
        0x3t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x3t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x44t 0xact 0x0t 0x0t
    .end array-data

    :array_5
    .array-data 0x4
        0x2t 0x0t 0x0t 0x0t
        0x0t 0xdct 0x5t 0x0t
        0x0t 0xe2t 0x4t 0x0t
        0x0t 0xe8t 0x3t 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x2t 0x0t 0x0t 0x0t
        0x3t 0x0t 0x0t 0x0t
        0xb4t 0xf5t 0x0t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x80t 0x3et 0x0t 0x0t
    .end array-data

    :array_6
    .array-data 0x4
        0x1t 0x0t 0x0t 0x0t
        0x64t 0x77t 0x1t 0x0t
        0x64t 0x77t 0x1t 0x0t
        0x64t 0x77t 0x1t 0x0t
        0xft 0x0t 0x0t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0xa8t 0x2ft 0x0t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0x40t 0x1ft 0x0t 0x0t
    .end array-data


which I try to decipher the top parameters as

Code:
0x2t 0x0t 0x0t 0x0t      // 2          // output file format
0x40t 0x66t 0x3t 0x1t  // 17000000   // ?video encoding bitrate?
0xc0t 0xe1t 0xe4t 0x0t // 15000000   // ?
0x40t 0x5dt 0xc6t 0x0t // 13000000   // ?
0x1et 0x0t 0x0t 0x0t    // 30        // fps
0x2t 0x0t 0x0t 0x0t      // 2          // video codec
0x3t 0x0t 0x0t 0x0t     // 3          // audio codec
0x0t 0x0t 0x3t 0x0t     // 196608 // ?
0x1t 0x0t 0x0t 0x0t     // 1          // audio channels
0x44t 0xact 0x0t 0x0t  // 44100      // audio sampling rate

Tried messing with the bitrate and these numbers but still FAIL.

Any ideas anyone?
 
Last edited:

UKLooney

Senior Member
Aug 13, 2009
112
4
Never thought to check, but this is what I get when i query the available preview sizes

Code:
Supported Preview Size, w x h=640x480
Supported Preview Size, w x h=720x480
Supported Preview Size, w x h=800x480
Supported Preview Size, w x h=320x240
Supported Preview Size, w x h=176x144

Supported Picture Size, w x h=3264x2448
Supported Picture Size, w x h=3264x1968
Supported Picture Size, w x h=2048x1536
Supported Picture Size, w x h=2048x1232
Supported Picture Size, w x h=800x480
Supported Picture Size, w x h=640x480

Not sure if it's related, as it's preview size, not video size...
 

RubberBigPepper

Senior Member
Apr 16, 2011
103
225
Tyumen
www.rubberbigpepper.com
It is not a hardware bug.
It is a big pig from SEC! Use HTC Sensation phone.
Problem is: SEC uses internal classes for writing fullHD video.
They named SecCamera (for camera access) and SecMediaRecorder (for recording video). Only using those classes SGS S2 can record 1080p(and many other features like touch to focus, continous photo capturing, face detection and other), standard API use MediaRecorder and Camera and limited to 480p only.
Now, I experimening with source codes, SecCamera already opens, but recorder is not yet. When my experiments will success, I add a new feature to my lgCamera (1080p recording for SGS S2) and VideoReg.
PS. Sorry for my bad English, my native language is Russian.
 

UKLooney

Senior Member
Aug 13, 2009
112
4
Now, I experimening with source codes, SecCamera already opens, but recorder is not yet. When my experiments will success, I add a new feature to my lgCamera (1080p recording for SGS S2) and VideoReg.
PS. Sorry for my bad English, my native language is Russian.

Great news, I've grabbed the source and plan to look into it later. Any pitfalls I should look out for? Found any documentation?

Thanks :eek:
 

UKLooney

Senior Member
Aug 13, 2009
112
4
I grabbed the two jar files from the phone, added them to my project & included them in the build path but no classes are exposed. I guess I'm not doing this right. Any pointers?
 

danim

Member
Nov 23, 2008
23
0
EDIT: found the files, they're in the /system/framework on the phone.
UKLooney- you need to deodex the files. I attached my deodexed jars to save you the trouble :)

Now, I can add these to my project and Eclipse recognizes the classes, but I get errors -

if adding seccamera.jar, I get a compilation error "Conversion to Dalvik format failed with error 1"

with only secmediarecorder.jar added, installation of the app failed with error: "Installation error: INSTALL_FAILED_DEXOPT". the logat shows:

ERROR/installd(2583): dexopt failed on '/data/dalvik-cache/data@MY_APP.apk@classes.dex' res = 11

any ideas?
 

Attachments

  • deodexed-seccamera.rar
    27.3 KB · Views: 49
Last edited:

UKLooney

Senior Member
Aug 13, 2009
112
4
Grabbed your deodexed files and messed around for a couple of hours, but got no where apart from replicating the same problems.

Get this in logcat just prior to app fails to install with secmediarecorder

Invalid file flags in class Lcom/sec/android/secmediarecorder/SecMediaRecorder$EventHandler;: 0002

are we maybe missing some other dependencies?
 
Last edited:

UKLooney

Senior Member
Aug 13, 2009
112
4
I've managed to get SecCamera working (not tried SecMediaRecorder yet)

I grabbed the .jar & .odex from the phone (/system/framework)
Deodexed the files (smali/backsmali)
Built the class files (dex2jar)
Converted to source (jd-gui)
Created a new java project
Pasted in the java source
Fixed a ton of errors??? (just deleted most of them)
Exported the jar
Added the new jar into my project build path

I can now reference the samsung camera object, compile, install and run my project.

I've attached the single new jar here (SecCamera), and I'll try sort the other one tomorrow when I have a bit more free time...
 

Attachments

  • SecCamera.zip
    21.9 KB · Views: 75
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    It is not a hardware bug.
    It is a big pig from SEC! Use HTC Sensation phone.
    Problem is: SEC uses internal classes for writing fullHD video.
    They named SecCamera (for camera access) and SecMediaRecorder (for recording video). Only using those classes SGS S2 can record 1080p(and many other features like touch to focus, continous photo capturing, face detection and other), standard API use MediaRecorder and Camera and limited to 480p only.
    Now, I experimening with source codes, SecCamera already opens, but recorder is not yet. When my experiments will success, I add a new feature to my lgCamera (1080p recording for SGS S2) and VideoReg.
    PS. Sorry for my bad English, my native language is Russian.
    1
    Hi guys, hope yous can help, hope I'm posting in the right place...

    My app records video using the MediaRecorder API, seems to work on all other phones I know of. I just bought a i9100 myself after a user reported this bug :rolleyes:, still can't resolve the issue though. :mad: Awesome hardware though :cool:

    On the Galaxy S II, when attempting to record video using the 'HIGH_QUALITY' CamcorderProfile the resultant video is playable, but corrupt (flickering green squares with garbled video @ 1920x1080).
    The 'LOW_QUALITY' setting records ok but in very poor quality, as to be expected.
    I can get good 720x480 video footage if I manually set up the MediaRecorder object, but get the same problems when I up the resolution beyond 480p.

    Here is a breakdown of my code using the Camcorder profile... DOES NOT WORK, gives corrupt footage @ 1920x1080.

    Code:
     mMediaRecorder = new MediaRecorder();
    // reuse the camera
    mMediaRecorder.setCamera(mCamera);
    mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
    mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
    mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));
    mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());
    mMediaRecorder.setOutputFile(tempVideoFile.getAbsolutePath());
    mMediaRecorder.prepare();
    mMediaRecorder.start();

    Here is example code only this time setting up the MediaRecorder object manually from the phone provided 'HIGH_QUALITY' CamcorderProfile values, WORKS OK when specifying a video size of 720x480.

    Code:
    mMediaRecorder = new MediaRecorder();
    // reuse the camera
    mMediaRecorder.setCamera(mCamera);
    mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
    mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
    mMediaRecorder.setOutputFormat(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).fileFormat);
    mMediaRecorder.setVideoSize(720, 480);
    mMediaRecorder.setVideoEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoBitRate);
    mMediaRecorder.setVideoFrameRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoFrameRate);
    mMediaRecorder.setVideoEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoCodec);
    mMediaRecorder.setAudioEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioBitRate);
    mMediaRecorder.setAudioSamplingRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioSampleRate);
    mMediaRecorder.setAudioEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioCodec);
    mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());
    mMediaRecorder.setOutputFile(tempVideoFile.getAbsolutePath());
    mMediaRecorder.prepare();
    mMediaRecorder.start();

    Here is example code only using MediaRecorder, DOES NOT WORK, gives corrupt footage @ 1080x720.
    The only difference between this and the last, is the VideoSize.

    Code:
    mMediaRecorder = new MediaRecorder();
    // reuse the camera
    mMediaRecorder.setCamera(mCamera);
    mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
    mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
    mMediaRecorder.setOutputFormat(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).fileFormat);
    mMediaRecorder.setVideoSize(1080, 720);
    mMediaRecorder.setVideoEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoBitRate);
    mMediaRecorder.setVideoFrameRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoFrameRate);
    mMediaRecorder.setVideoEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).videoCodec);
    mMediaRecorder.setAudioEncodingBitRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioBitRate);
    mMediaRecorder.setAudioSamplingRate(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioSampleRate);
    mMediaRecorder.setAudioEncoder(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).audioCodec);
    mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());
    mMediaRecorder.setOutputFile(tempVideoFile.getAbsolutePath());
    mMediaRecorder.prepare();
    mMediaRecorder.start();

    Here is the details i get from the HIGH_QUALITY CamcorderProfile from the Galaxy S II

    CamcorderProfile.fileFormat=2
    CamcorderProfile.videoFrameWidth=1920
    CamcorderProfile.videoFrameHeight=1080
    CamcorderProfile.videoBitRate=2000000
    CamcorderProfile.videoFrameRate=30
    CamcorderProfile.videoCodec=2
    CamcorderProfile.audioBitRate=96000
    CamcorderProfile.audioSampleRate=16000
    CamcorderProfile.audioCodec=3

    I've tried tweaking all these values but to no avail...

    Can anyone tell me the what are the recommended MediaRecorder settings for recording 720p & 1080p video footage? Or if there is an odd way I need to set up the camera?

    Thanks

    Edit: Phone is O2 UK supplied, with 2.3.3, Baseband I9100XXKDJ, Build GINGERBREAD.XWKE2

    Edit2: Here is the market app if anyone want to try
    https://market.android.com/details?id=net.adyno.alaprecorderhd
    alaprecorderhd_qcode.png
    1
    I think there is error:
    mCamera.stopPreview();
    // unlock the camera
    mCamera.unlock();
    What for you turn camera preview off? Try to remove this line (or comment)
    1
    I think there is error:
    mCamera.stopPreview();
    // unlock the camera
    mCamera.unlock();
    What for you turn camera preview off? Try to remove this line (or comment)

    Looked promising, but removal had not effect :(
    With or without this line, the standard MediaRecorder works fine, but you're right, it shouldn't be there.

    I've made a stripped down, minimal app. It might help to debug. It works OK with the original code, but same error using the Samsung classes when setting the video and audio sources.

    Here's it is in pastebin
    http://pastebin.com/6JSrGgg0


    Same errors, I might be missing a parameter or two??
    Code:
    VERBOSE/SecMediaRecorderJNI(11650): setAudioSource(5)
    WARN/(2582): PVAuthorEngine::SetPVAEState: aState=1
    ERROR/audio_input(2582): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
    ERROR/audio_input(2582): VerifyAndSetParameter failed
    VERBOSE/SecMediaRecorderJNI(11650): process_sec_media_recorder_call
    VERBOSE/SecMediaRecorderJNI(11650): setVideoSource(1)
    ERROR/CameraInput(2582): Unsupported parameter(x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value)
    ERROR/CameraInput(2582): VerifiyAndSetParameter failed on parameter #0

    Thanks much...
    1
    You are going around the point...
    Try this code:
    Camera.Parameters cParams=m_cCamera.getParameters(); //or use SecCamera-
    cParams.set("cam_mode",1);//abracadabra!
    m_cCamera.setParameters(cParams);
    m_cCamera.setPreviewSize(1920,1080);