Repository: JakeWharton/Telecine

Issue #17: Limit MediaRecorder size
Created: 2015-01-18T09:01:45Z
Some devices can only record up to 1080p. See #15.

Duplicate issue #6: MediaRecorder prepare fails.
Created: 2015-01-09T17:19:10Z
java.lang.RuntimeException: Unable to prepare MediaRecorder.
        at com.jakewharton.telecine.RecordingSession.startRecording(RecordingSession.java:179)
        at com.jakewharton.telecine.RecordingSession.access$100(RecordingSession.java:47)
        at com.jakewharton.telecine.RecordingSession$1.onStart(RecordingSession.java:111)
        at com.jakewharton.telecine.OverlayView.startRecording(OverlayView.java:147)
        at com.jakewharton.telecine.OverlayView.access$300(OverlayView.java:31)
        at com.jakewharton.telecine.OverlayView$5$1$1.run(OverlayView.java:163)
        at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1121)
        at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1089)
        at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:666)
        at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:682)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:795)
        at android.view.Choreographer.doCallbacks(Choreographer.java:599)
        at android.view.Choreographer.doFrame(Choreographer.java:559)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:781)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5466)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:733)
Caused by: java.io.IOException: prepare failed.
        at android.media.MediaRecorder._prepare(MediaRecorder.java:-2)
        at android.media.MediaRecorder.prepare(MediaRecorder.java:742)
        at com.jakewharton.telecine.RecordingSession.startRecording(RecordingSession.java:177)
        at com.jakewharton.telecine.RecordingSession.access$100(RecordingSession.java:47)
        at com.jakewharton.telecine.RecordingSession$1.onStart(RecordingSession.java:111)
        at com.jakewharton.telecine.OverlayView.startRecording(OverlayView.java:147)
        at com.jakewharton.telecine.OverlayView.access$300(OverlayView.java:31)
        at com.jakewharton.telecine.OverlayView$5$1$1.run(OverlayView.java:163)
        at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1121)
        at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1089)
        at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:666)
        at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:682)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:795)
        at android.view.Choreographer.doCallbacks(Choreographer.java:599)
        at android.view.Choreographer.doFrame(Choreographer.java:559)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:781)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5466)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:733)

1420755940708 D Attempting to acquire permission to screen capture.
1420755940748 D Acquired permission to screen capture. Starting service.
1420755940752 D Starting up!
1420755940764 D Adding overlay view to window.
1420755946112 D Starting screen recording...
1420755946119 D Video size: 100%
1420755946147 I Output file '/storage/emulated/0/Movies/Telecine/Telecine_2015-01-08-14-25-46.mp4'.

apiLevel
21
batteryLevel
0.63
charging
false
freeDisk
27374383104.0
freeMemory
182602840
jailbroken
false
locale
en_US
locationStatus
allowed
manufacturer
HTC
model
HTC One
networkAccess
wifi
orientation
portrait
osBuild
LRX22C.H3 release-keys
osName
android
osVersion
5.0.1
screenDensity
3
screenResolution
1920x1080
totalMemory
201326592

Closing comment (2015-01-18T11:19:23Z): Frame rate is now set to 30. Size is being tracked by #17.