CamcorderProfile.QUALITY_HIGH resolution produces green flickering video

前端 未结 5 1925
无人及你
无人及你 2020-12-01 09:12

I haven\'t found any explanation for this so far. Basically I have a video recording class which works splendidly when setVideoSize() is set to 720 x 480 on my Samsung Galax

5条回答
  •  情深已故
    2020-12-01 09:43

    Ok, I tested many variants and the only Version wich works well on real Devices is:

    CamcorderProfile camcorderProfile    = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH);
    
    // THREE_GPP works well but only on Phones            
    //  camcorderProfile.fileFormat = MediaRecorder.OutputFormat.THREE_GPP;
    
    // so better you use MPEG_4 for most Devices and PC
    camcorderProfile.fileFormat = MediaRecorder.OutputFormat.MPEG_4;
    camcorderProfile.videoCodec = MediaRecorder.VideoEncoder.MPEG_4_SP;
    
    mrec.setProfile(camcorderProfile);
    

提交回复
热议问题