Video Recording Resolution Issues?

All your problems with Audio, Video and Images.

Video Recording Resolution Issues?

Postby discombobulate » Thu Jan 13, 2011 7:31 pm

Hi. Long time lurker, first time poster.
Lots of great posts out there, thanks for all that information.

I've been having some issues with the video resolution when using MediaRecorder to record video.
I've looked around quite a bit and couldn't find a viable solution.
No matter what I try, the resolution never changes off 320 x 240
Am I going down the wrong path here? Can it even be done?
Any help would be great. I can post my code if need-be. Thanks!
discombobulate
Freshman
Freshman
 
Posts: 5
Joined: Mon Jan 10, 2011 7:25 pm
Location: Miami, Florida, USA

Top

Re: Video Recording Resolution Issues?

Postby discombobulate » Mon Jan 17, 2011 9:07 pm

I figured it out.Wrong order of things.
This code snippet works for those interested, at least it did for me. ;)

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         recorder = new MediaRecorder();
  2.         recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
  3.         recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
  4.         recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
  5.         recorder.setVideoSize(1280,720);
  6.         recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
  7.         recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
  8.         recorder.setVideoFrameRate(30);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
discombobulate
Freshman
Freshman
 
Posts: 5
Joined: Mon Jan 10, 2011 7:25 pm
Location: Miami, Florida, USA

Re: Video Recording Resolution Issues?

Postby undying1983 » Tue Jan 18, 2011 12:05 am

Ok, I don't have a real solution but I'll show you how to manage different resolutions, try to change your code with:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. recorder = new MediaRecorder();
  2. recorder.setCamera(mCamera);
  3. recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
  4. recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
  5. CamcorderProfile profile;
  6. profile = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH);
  7. profile.videoFrameWidth = 1280;
  8. profile.videoFrameHeight = 720;
  9. profile.videoFrameRate = 30;
  10. recorder.setProfile(profile);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


After that I can change the resolution but not to a higher resolution then 800x480, 1280x720 doesn't look to be supported even if I'm using a galaxy s, it's quite a nightmare to sort it out.
undying1983
Freshman
Freshman
 
Posts: 6
Joined: Fri Dec 10, 2010 3:32 pm

Re: Video Recording Resolution Issues?

Postby undying1983 » Tue Jan 18, 2011 12:14 am

Ops I didn't read your message just the code.
Anyway I did the same thing you did but even if the resolution was fine it had a very low quality.
With my code the quality gets better but the resolution cannot be set over 800x480, this thing is driving me creazy @_@
undying1983
Freshman
Freshman
 
Posts: 6
Joined: Fri Dec 10, 2010 3:32 pm

Re: Video Recording Resolution Issues?

Postby discombobulate » Tue Jan 18, 2011 1:37 am

Right on. Thanks.
I'll give your snippet a try and see what it looks like.
The quality seemed ok with my code, but it just might be wishful thinking on my part. :)
discombobulate
Freshman
Freshman
 
Posts: 5
Joined: Mon Jan 10, 2011 7:25 pm
Location: Miami, Florida, USA

Re: Video Recording Resolution Issues?

Postby discombobulate » Tue Jan 18, 2011 2:42 am

Yeah. That won't work for me. I don't have a device to test that on.
Unless i'm missing something.
Thanks though.
discombobulate
Freshman
Freshman
 
Posts: 5
Joined: Mon Jan 10, 2011 7:25 pm
Location: Miami, Florida, USA

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 9 guests