[Galaxy S 4 Developer Discussion [Developers-Only]] AlaskaLinuxUser:
EDIT: This has been resolved. Updating vendor blobs and device trees fixed the issue. Thank you for your time.

Greetings Developers,

I would really appreciate some help. By God's grace, in the development thread, I have put together several Marshmallow Roms, namely PAC Rom and AOKP MM, that have the same problem. The camera works to take pictures, but cannot record video. It "appears" to be recording in the built in camera app, but does not actually save the recording. If I use another app, such as OpenCamera, it stops the recording as soon as I try to start. I am relatively new to development, and any help would be greatly appreciated, as well as fully recognized and credited.

Below is the logcat errors/fails when using the CM camera app, and the OpenCamer app. I just really want to get this fixed for the people who are using the roms. I hate to sell them short because I've made some sort of error.

In my inexperienced opinion, this appears to be an audio problem. I have compared the mediarecorder.cpp and similar files between CM13 and my roms, and they are identical. I was wondering if it might be vendor blobs, so I borrowed them from Beanstalk (where the camera video recorder function works), but that did not work either.

I am pretty sure that it is not the app, because using any video recording app fails to actually record the video.

Here are the fails from the logcat. I am only focusing on the errors, stops, or fails.

Using the built in Camera app:

07-12 06:43:32.459 244 3766 I MediaCodecSource: encoder (audio) stopped
07-12 06:43:32.459 244 652 I MediaCodecSource: puller (audio) stopping
07-12 06:43:32.461 244 3847 E OMXNodeInstance: setConfig(1d:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
07-12 06:43:32.461 244 3847 I ACodec : codec does not support config priority (err -2147483648)
07-12 06:43:32.462 244 3847 I MediaCodec: MediaCodec will operate in async mode
07-12 06:43:32.467 244 3846 I NuPlayerDecoder: [OMX.google.vorbis.decoder] resubmitting CSD
07-12 06:43:32.468 244 3846 I NuPlayerDecoder: [OMX.google.vorbis.decoder] resubmitting CSD
07-12 06:43:32.469 244 3775 D ALSAStreamOps: setParameters(): keyRouting with device 0x0
07-12 06:43:32.469 244 3775 E ALSAStreamOps: must not change mDevices to 0
07-12 06:43:32.470 244 3775 D AudioStreamInALSA: standby
07-12 06:43:32.470 244 3775 D AudioStreamInALSA: standby
07-12 06:43:32.470 244 3775 D ALSADevice: standby: handle 0xb216c1c0 h 0x0
07-12 06:43:32.472 244 3848 W SoftVorbis: vorbis_dsp_synthesis returned -135
07-12 06:43:32.473 244 3848 W SoftVorbis: vorbis_dsp_synthesis returned -135
07-12 06:43:32.500 3612 3612 E MediaRecorder: stop failed: -1007
07-12 06:43:32.502 3612 3612 E CAM_VideoModule: java.lang.RuntimeException: stop failed.
07-12 06:43:33.984 244 3647 W AMessage: failed to post message as target looper for handler 0 is gone.

Using the OpenCamera App for comparison:

07-12 06:50:28.951 244 4439 E ACDB-LOADER: Error: ACDB EC_REF_RX returned = -8
07-12 06:50:28.976 244 4436 E SoftAVCEnc: Error in extractGraphicBuffer
07-12 06:50:28.976 244 4435 E ACodec : [OMX.google.h264.encoder] ERROR(0x80001001)
07-12 06:50:28.976 244 4435 E ACodec : signalError(omxError 0x80001001, internalError -2147483648)
07-12 06:50:28.976 244 4435 E ACodec : [OMX.google.h264.encoder] ERROR(0x80001001)
07-12 06:50:28.976 244 4435 E ACodec : signalError(omxError 0x80001001, internalError -2147483648)
07-12 06:50:28.977 244 4434 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 6
07-12 06:50:28.977 244 4439 D ALSADevice: setHardwareParams: buffer_size 16384, period_size 4096, period_cnt 4
07-12 06:50:28.977 244 4431 E MediaCodecSource: Encoder (video) reported error : 0x80001001
07-12 06:50:29.124 4180 4180 E MediaRecorder: stop failed: -1007

So, the errors or fails that are the same are these:
ACDB-LOADER: Error: ACDB EC_REF_RX returned = -8
MediaRecorder: stop failed: -1007

These are both audio errors. It appears that the audio is creating an error, so the video will not save. Unless someone out there knows better (be sure to correct me, I'm still learning). So I will be looking at MediaRecorder and ACDB-LOADER and audio problems.

Once again, any assistance would be greatly appreciated! Thanks!