2011-01-17 8 views
2

これは私の問題です。私はカメラと記録ビデオを使用するソフトウェアを開発していますが、すべて動作していますが、設定を管理する方法はわかりません。例えば、Samsung Galaxy S でビデオを録画、私はこの解像度設定時にすることができますCamera MediaRecorder/CamcorderProfile

01-17 14:22:28.706: WARN/AuthorDriver(2782): Intended video encoding frame width (1280) is too large and will be set to (128849019680) 

01-17 14:22:28.706: WARN/AuthorDriver(2782): Intended video encoding frame height (720) is too large and will be set to (1078895784755680) 

とパラメータが自動的に800にスケーリングされています

CamcorderProfile profile; 
profile = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH); 
profile.videoFrameWidth = 1280; 
profile.videoFrameHeight = 720; 
profile.videoFrameRate = 30; 
recorder.setProfile(profile); 

logcatを、これらのメッセージを表示x480

答えて

2

なぜCamcorderProfileを使用しているのかわかりませんが、android docはこれが読んだだけであることを示しています。

あなたは1280×720に動画記録サイズを設定したい場合は、

  • 設定したいサイズがでサポートされてCHK念のために(カメラパラメータからサポートされているビデオサイズのリストを取得します。デバイス) - メディアレコーダーの

    public List<Camera.Size> getSupportedVideoSizes() 
    
  • そして、呼設定ビデオサイズ -

    public void setVideoSize (int width, int height)