-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android MediaRecorder produces corrupt video with green lines #1
Comments
I don't have access to that phone. Would you be able to pull down CameraView's source, and attempt a fix? Or I could make a few changes and give you an APK to test. I can help walk you through the code if needed (the bug is in LegacyCameraModule.java). It seems like one of these (may) fix the bug.
|
i will go for a try but i want to mention i have had encounter issue with other camera lib where i try the similar fix as mention above. i hope it work i will pull and do the necessary changes |
mVideoRecorder.setPreviewDisplay(surfaceviewhere); i cant find surfaceview in leagacy, what should i do? |
i find someting intresting see |
What about trying "mVideoRecorder.setPreviewDisplay(new Surface(getSurfaceTexture()));"? |
i will try the device is not right with me i will update once it tested |
this is the change i did on LegacyCameraModule.java am i correct? |
`public class CameraLegacyActivity extends AppCompatActivity {
` The above code will work on jelly bean and below device well but the problem it has some aspect ratio issue on camera preview . i just started working on camera and not having a clear idea how to fix this do u have any suggestions? |
Yea, looks like the only differences are...
Let me know if making either of those changes helps |
still have issue cam |
You can look at LegacyCameraModule.transformPreview for the preview, and VideoView.transformPreview for the video |
what should i use for getTransform(matrix); and // setTransform(matrix); |
I haven't used SurfaceView, so not sure. But you may be able to override onDraw(Canvas) and scale/translate the canvas object before/after calling super.onDraw(Canvas). |
hi i used the library and its good but when i test on jellybean device its have issue in recorded video,
The device am using is samsung star pro jellybean version, iproduces corrupt video with green lines when playing the recorded video, i research on stackoverflow http://stackoverflow.com/questions/5826712/android-mediarecorder-produces-corrupt-video-with-green-lines but it doesent help me to fix the issue
The text was updated successfully, but these errors were encountered: