Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

foundation.e.camera does not work with MPEG4 HEVC (H.265)

  • /e/OS version: 3.0.1-t-20250606498724-official-two
  • Device model(s): Murena Two
  • Impacted Application: /e/OS Camera v1.53.1

The problem

When MPEG4 HEVC is selected as Video Format:

image.png

the application (foundation.e.camera) does not start recording the video. Instead, failed to save video file message is displayed. Video Recording works for MPEG4 H.264 codec.

image.png

Technical details

adb logcat

06-26 23:37:59.398   898  5078 D MPEG4Writer: PreAllocation disabled. fallocate : Operation not supported on transport endpoint, 95
06-26 23:37:59.398   898  5078 E StagefrightRecorder: Failed to create video encoder
06-26 23:37:59.398   898  5078 D MPEG4Writer: reset()
06-26 23:37:59.398   898  5078 D MPEG4Writer: release()
06-26 23:37:59.410   898  5078 D MPEG4Writer: final fsync() takes 11 ms, file size 0
06-26 23:37:59.410 15271 15271 E MediaRecorder: prepare failed: -2147483648
06-26 23:37:59.411 15271 15271 W System.err: java.io.IOException: prepare failed.
06-26 23:37:59.411 15271 15271 W System.err: 	at android.media.MediaRecorder._prepare(Native Method)
06-26 23:37:59.411 15271 15271 W System.err: 	at android.media.MediaRecorder.prepare(MediaRecorder.java:1320)
06-26 23:37:59.411 15271 15271 W System.err: 	at net.sourceforge.opencamera.preview.Preview.startVideoRecording(Preview.java:5994)
06-26 23:37:59.411 15271 15271 W System.err: 	at net.sourceforge.opencamera.preview.Preview.takePicture(Preview.java:5784)
06-26 23:37:59.411 15271 15271 W System.err: 	at net.sourceforge.opencamera.preview.Preview.takePicturePressed(Preview.java:5491)
06-26 23:37:59.411 15271 15271 W System.err: 	at net.sourceforge.opencamera.MainActivity.takePicturePressed(MainActivity.java:5728)
06-26 23:37:59.411 15271 15271 W System.err: 	at net.sourceforge.opencamera.MainActivity.takePicture(MainActivity.java:5705)
06-26 23:37:59.411 15271 15271 W System.err: 	at net.sourceforge.opencamera.MainActivity.clickedTakePhoto(MainActivity.java:2217)
06-26 23:37:59.411 15271 15271 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
06-26 23:37:59.411 15271 15271 W System.err: 	at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:468)
06-26 23:37:59.411 15271 15271 W System.err: 	at android.view.View.performClick(View.java:7542)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.view.View.performClickInternal(View.java:7519)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.view.View$PerformClick.run(View.java:29476)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.os.Handler.handleCallback(Handler.java:942)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:99)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.os.Looper.loopOnce(Looper.java:201)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.os.Looper.loop(Looper.java:288)
06-26 23:37:59.412 15271 15271 W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:7924)
06-26 23:37:59.412 15271 15271 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
06-26 23:37:59.412 15271 15271 W System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
06-26 23:37:59.412 15271 15271 W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
06-26 23:37:59.415   712  4800 D AudioALSADeviceConfigManager: ApplyDeviceTurnonSequenceByName() DeviceName = ext_speaker_output descriptor->DeviceStatusCounte = 0
06-26 23:37:59.416   898  5078 W StagefrightRecorder: stop while neither recording nor paused
06-26 23:37:59.416   898  5078 W StagefrightRecorder: stop while neither recording nor paused
06-26 23:37:59.416   898  5078 W StagefrightRecorder: stop while neither recording nor paused
06-26 23:37:59.417   869 15452 E Camera3-OutputUtils: processCaptureResult: Physical device not found in device info map found!
06-26 23:37:59.428  2386 19704 I MediaProvider: Deleted 0 0 0 1 0 0 0 items on external_primary due to foundation.e.camera
06-26 23:37:59.445  1510  1664 W Parcel  : Expecting binder but got null!
06-26 23:37:59.451  1264  3698 D CoreBackPreview: Window{b549d57 u0 Toast}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@f44f52d, mPriority=0}
06-26 23:37:59.457   752 18804 D AF::TrackHandle: OpPlayAudio: not muting track:222 usage:13 ENFORCED_AUDIBLE
06-26 23:37:59.464  1510  1664 E OpenGLRenderer: Unable to match the desired swap behavior.

typeBug /e/OS Camera

Edited by Piotr Świątkiewicz