Where is Video resolution stored in android?

Viewed 2412

I am automating one of the video app in android. In order to do it, I need to set the video resolution to highest.

I know that in regular camera, I can set the values in

 /data/data/com.android.gallery3d/shared_prefs/com.android.gallery3d_preferences_0.xml 

But the values I set there are just set for the camera not for the video. Any idea where the video resolution values are stored?

If there is any ADb command to store video encoding resolution then it would be even better.

Following is the adb command that I used but does nto seem to work:

 adb shell am start -a android.media.action.VIDEO_CAPTURE  --ei android.intent.extras.CAMERA_FACING 1 --ei android.intent.extras.EXTRA_VIDEO_QUALITY 1  -n com.android.gallery3d/com.android.camera.CameraActivity

I also found recently that

 /data/data/com.android.gallery3d/shared_prefs/com.android.gallery3d_preferences_0.xml

file contains the value for the highest resolution and the key name is : "pref_video_quality_key" but somehow, it only sets back camera value and does not do front camera value

1 Answers
Related