[android-developers] Re: Droid Video Recorder
But anyone has successful set the resolution lower than 320x240? I need it to fit QCIF resolution (176x144) but MediaRecorder records always video in 320x240 adding distortion to the video (opening it with VLC or with the internal mediaplayer shows me some strange pink/ green horizontal lines), please let me know your tries! thanks, Alex. On 5 Apr, 17:01, Abhi abhishek.r.sha...@gmail.com wrote: DP, no. I couldn't find anything that would let me record videos at high resolutions. Were you able to figure out? Abhi On Apr 1, 2:24 pm, DP dcp...@gmail.com wrote: Did anyone found a solution to record 720x480 videos yet? On Mar 9, 2:39 pm,Abhiabhishek.r.sha...@gmail.com 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(6); } I tried changing the MediaRecorder parameters like video size, 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 abelard...@gmail.com 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,Abhiabhishek.r.sha...@gmail.com wrote: Hi, I am trying to create a Video recorder but it looks like the video 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 record video at 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 best video quality? 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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.
[android-developers] Re: Droid Video Recorder
DP, no. I couldn't find anything that would let me record videos at high resolutions. Were you able to figure out? Abhi On Apr 1, 2:24 pm, DP dcp...@gmail.com wrote: Did anyone found a solution to record 720x480 videos yet? On Mar 9, 2:39 pm,Abhiabhishek.r.sha...@gmail.com 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(6); } I tried changing the MediaRecorder parameters like video size, 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 abelard...@gmail.com 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,Abhiabhishek.r.sha...@gmail.com wrote: Hi, I am trying to create a Video recorder but it looks like the video 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 record video at 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 best video quality? 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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.
[android-developers] Re: Droid Video Recorder
Did anyone figure out how to record the video at higher resolution, i.e. 720x480 ? On Mar 9, 2:39 pm, Abhi abhishek.r.sha...@gmail.com 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(6); } 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 abelard...@gmail.com 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,Abhiabhishek.r.sha...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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.
[android-developers] Re: Droid Video Recorder
Did anyone found a solution to record 720x480 videos yet? On Mar 9, 2:39 pm, Abhi abhishek.r.sha...@gmail.com 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(6); } I tried changing the MediaRecorder parameters like video size, 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 abelard...@gmail.com 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,Abhiabhishek.r.sha...@gmail.com wrote: Hi, I am trying to create a Video recorder but it looks like the video 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 record video at 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 best video quality? 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Droid Video Recorder
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(6); } I tried changing the MediaRecorder parameters like video size, 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 abelard...@gmail.com 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,Abhiabhishek.r.sha...@gmail.com wrote: Hi, I am trying to create a Video recorder but it looks like the video 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 record video at 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 best video quality? 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Droid Video Recorder
Hi Kevin You sure can record videos at that resolution but only with the in- built camcorder app in Droid. Try writing your own recorder app and you will see the difference. Abhi On Feb 1, 7:20 pm, Kevin Duffey andjar...@gmail.com wrote: I believe the video can be taken up to 640 x 480 at 30fps.. but not sure of this. I shot some videos of my kids in the snow yesterday and I gotta say I was very impressed with the quality. It was a bit cloudy, so the end result was a little dark, but short of very fast panning actions, it came out great. On Mon, Feb 1, 2010 at 1:00 PM, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I am trying to create a Video recorder but it looks like the video 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 record video at higher quality? Also, when I try using the 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 best video quality? 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Droid Video Recorder
Ahh..interesting. That would REALLY suck if Google/Android is allowed to access that resolution but our own apps can't. That wouldn't make much sense to me. On Tue, Feb 2, 2010 at 4:26 AM, Abhi abhishek.r.sha...@gmail.com wrote: Hi Kevin You sure can record videos at that resolution but only with the in- built camcorder app in Droid. Try writing your own recorder app and you will see the difference. Abhi On Feb 1, 7:20 pm, Kevin Duffey andjar...@gmail.com wrote: I believe the video can be taken up to 640 x 480 at 30fps.. but not sure of this. I shot some videos of my kids in the snow yesterday and I gotta say I was very impressed with the quality. It was a bit cloudy, so the end result was a little dark, but short of very fast panning actions, it came out great. On Mon, Feb 1, 2010 at 1:00 PM, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I am trying to create a Video recorder but it looks like the video 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 record video at higher quality? Also, when I try using the 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 best video quality? 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Droid Video Recorder
that is what it is. It doesn't make sense to me either. There has to be a way around this from Google (if you guys are hearing). Abhi On Feb 2, 10:41 am, Kevin Duffey andjar...@gmail.com wrote: Ahh..interesting. That would REALLY suck if Google/Android is allowed to access that resolution but our own apps can't. That wouldn't make much sense to me. On Tue, Feb 2, 2010 at 4:26 AM, Abhi abhishek.r.sha...@gmail.com wrote: Hi Kevin You sure can record videos at that resolution but only with the in- built camcorder app in Droid. Try writing your own recorder app and you will see the difference. Abhi On Feb 1, 7:20 pm, Kevin Duffey andjar...@gmail.com wrote: I believe the video can be taken up to 640 x 480 at 30fps.. but not sure of this. I shot some videos of my kids in the snow yesterday and I gotta say I was very impressed with the quality. It was a bit cloudy, so the end result was a little dark, but short of very fast panning actions, it came out great. On Mon, Feb 1, 2010 at 1:00 PM, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I am trying to create a Video recorder but it looks like the video 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 record video at higher quality? Also, when I try using the 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 best video quality? 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en