Skip to content
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

Freezing on first frame #13

Open
jeetdholakia opened this issue Oct 22, 2017 · 3 comments
Open

Freezing on first frame #13

jeetdholakia opened this issue Oct 22, 2017 · 3 comments

Comments

@jeetdholakia
Copy link

Hi,

When I record the video, the preview works as it should, but the saved video just shows the first frame, audio is encoded perfectly though.

Tested on 7.1.1 and 8.0.0

Here's the log

10-22 15:43:50.607 18401-18408/com.androidexperiments.shadercam.example I/zygote64: Do partial code cache collection, code=61KB, data=49KB
10-22 15:43:50.607 18401-18408/com.androidexperiments.shadercam.example I/zygote64: After code cache collection, code=59KB, data=47KB
10-22 15:43:50.607 18401-18408/com.androidexperiments.shadercam.example I/zygote64: Increasing code cache capacity to 256KB
10-22 15:43:51.462 18401-18408/com.androidexperiments.shadercam.example I/zygote64: Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals()
10-22 15:43:53.854 18401-18408/com.androidexperiments.shadercam.example I/zygote64: Do full code cache collection, code=124KB, data=91KB
10-22 15:43:53.854 18401-18408/com.androidexperiments.shadercam.example I/zygote64: After code cache collection, code=98KB, data=62KB
10-22 15:43:56.111 18401-18401/com.androidexperiments.shadercam.example I/Choreographer: Skipped 42 frames!  The application may be doing too much work on its main thread.
10-22 15:43:56.116 18401-18401/com.androidexperiments.shadercam.example W/MediaRecorder: mediarecorder went away with unhandled events
10-22 15:43:56.117 18401-18401/com.androidexperiments.shadercam.example W/MediaRecorder: mediarecorder went away with unhandled events
10-22 15:43:56.149 18401-18401/com.androidexperiments.shadercam.example D/CameraRenderer: orientation: 90
10-22 15:43:56.280 18401-18401/com.androidexperiments.shadercam.example D/CameraRenderer: MediaRecorder surface: Surface(name=null)/@0xb84f255 isValid: true
10-22 15:43:56.288 18401-18629/com.androidexperiments.shadercam.example D/EglCore: EGLContext created, client version 3
10-22 15:43:56.293 18401-18629/com.androidexperiments.shadercam.example D/CameraRenderer: vertexShader info log:
                                                                                           
10-22 15:43:56.293 18401-18629/com.androidexperiments.shadercam.example D/CameraRenderer: fragmentShader info log:
                                                                                           
10-22 15:43:56.357 18401-18401/com.androidexperiments.shadercam.example I/CameraFragment: chooseVideoSize() for landscape:false aspect: 0.5625 : [4048x3036, 4000x3000, 3840x2160, 3264x2448, 3200x2400, 2976x2976, 2592x1944, 2688x1512, 2048x1536, 1920x1080, 1600x1200, 1440x1080, 1280x960, 1280x768, 1280x720, 1024x768, 800x600, 800x480, 720x480, 640x480, 640x360, 480x640, 480x360, 480x320, 352x288, 320x240, 240x320, 176x144, 160x120, 144x176]
10-22 15:43:56.357 18401-18401/com.androidexperiments.shadercam.example I/CameraFragment: ---potentials: 5
10-22 15:43:56.357 18401-18401/com.androidexperiments.shadercam.example I/CameraFragment: ---no perfect match, check for 'normal'
10-22 15:43:56.361 18401-18401/com.androidexperiments.shadercam.example I/CameraFragment: chooseVideoSize() for landscape:false aspect: 0.5625 : [4048x3036, 4000x3000, 3840x2160, 3264x2448, 3200x2400, 2976x2976, 2592x1944, 2688x1512, 2048x1536, 1920x1080, 1600x1200, 1440x1080, 1280x960, 1280x768, 1280x720, 1024x768, 800x600, 800x480, 720x480, 640x480, 640x360, 480x640, 480x360, 480x320, 352x288, 320x240, 240x320, 176x144, 160x120, 144x176]
10-22 15:43:56.361 18401-18401/com.androidexperiments.shadercam.example I/CameraFragment: ---potentials: 5
10-22 15:43:56.361 18401-18401/com.androidexperiments.shadercam.example I/CameraFragment: ---no perfect match, check for 'normal'
10-22 15:43:56.361 18401-18401/com.androidexperiments.shadercam.example I/CameraFragment: openCamera() videoSize: 1920x1080 previewSize: 1920x1080
10-22 15:43:58.209 18401-18408/com.androidexperiments.shadercam.example I/zygote64: Do partial code cache collection, code=122KB, data=92KB
10-22 15:43:58.210 18401-18408/com.androidexperiments.shadercam.example I/zygote64: After code cache collection, code=115KB, data=89KB
10-22 15:43:58.210 18401-18408/com.androidexperiments.shadercam.example I/zygote64: Increasing code cache capacity to 512KB
@vados60
Copy link

vados60 commented Nov 2, 2017

Hi @jeetdholakia

I have the same issue
Tested on Nexus 5x, Android 7.0

Audio is recorded as should, played correctly but video stopped at 1st frame

@jeetdholakia
Copy link
Author

It works on genymotion but not on a real device...

@gauravk95
Copy link

Same Issue Here...
When i tried recording with Audio, it records only the first frame. Works fine, if you disable the audio recording..!

I have no idea why this happens...Any Help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants