Did anyone figure out how to record the video at higher resolution,
i.e. 720x480 ?

On Mar 9, 2:39 pm, Abhi <[email protected]> wrote:
> There is a CamcorderPreview class that extends surfaceview
>
> public CamcorderPreview(Context context, AttributeSet attrs) {
> super(context, attrs);
> holder = getHolder();
> holder.addCallback(this);
> holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);recorder= new 
> MediaRecorder();recorder.setAudioSource(MediaRecorder.AudioSource.MIC);recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);recorder.setVideoSize(352,
>  288);
> //recorder.setVideoFrameRate(15);recorder.setMaxDuration(60000);
>
> }
>
> I tried changing the MediaRecorder parameters likevideosize, frame
> rate, o/p format etc. to try and get better output quality, but none
> works.
>
> This is my layout
>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>      android:orientation="vertical" android:layout_width="fill_parent"
>      android:layout_height="fill_parent">
>      <com.sample.camcorder.CamcorderPreview android:id="@+id/
> camcorder_preview"
>           android:layout_width="352dp" android:layout_height="288dp"
>           android:enabled="false" android:focusable="true"
> android:clickable="true" />
> </LinearLayout>
>
> See if you can help
>
> Thanks,
>
> Abhi
>
> On Mar 6, 7:38 am, Abelardo <[email protected]> wrote:
>
>
>
> > Hi,Abhi
>
> > Could you send me the whole app to find what are you doing?
>
> > Thanks. Best regards,
>
> > Abelardo.
>
> > On 1 feb, 22:00,Abhi<[email protected]> wrote:
>
> > > Hi,
>
> > > I am trying to create aVideorecorderbut it looks like thevideo
> > > resolution is limited to 320 x 240. I tried changing it through
> > > MediaRecorder.setVideoSize() to something higher (e.g. 640 x 480) but
> > > gives me the same result.
>
> > > Is there a way to recordvideoat higher quality?
>
> > > Also, when I tryusingthe CAMERA as VideoSource instead of DEFAULT,
> > > the app force closes.
>
> > > MediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT)
>
> > > Am I doing something wrong? Which is the best configuration (encoding
> > > options?) to give the bestvideoquality?
>
> > > Thanks,
>
> > >Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to