Home > Back-end >  Best wishes brother help, questions about mediacodec achieve record screen
Best wishes brother help, questions about mediacodec achieve record screen

Time:09-22

Int index=mEncoder. DequeueOutputBuffer (mBufferInfo, 1);
In carrying out this sentence error below
E/ACodec: [OMX. Google, h264 encoder] ERROR (0 x80001001)
SignalError (omxError 0 x80001001 internalError - 2147483648)
E/MediaCodec: Codec reported err 0 x80001001, actionCode 0, while in the state of 6
He will be very strange calls the stop and release
Then the initialization process following
 
MediaFormat format=MediaFormat. CreateVideoFormat (MIME_TYPE, mWidth, mHeight);
Format. SetInteger (MediaFormat. KEY_COLOR_FORMAT, MediaCodecInfo. CodecCapabilities. COLOR_FormatSurface);
Format. SetInteger (MediaFormat KEY_BIT_RATE, mBitRate);
Format. SetInteger (MediaFormat KEY_FRAME_RATE, FRAME_RATE);
Format. SetInteger (MediaFormat KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL);

The d (TAG, "created video format:" + format).
MEncoder=MediaCodec. CreateEncoderByType (MIME_TYPE);
MEncoder. Configure (format, null, null, MediaCodec CONFIGURE_FLAG_ENCODE);
MSurface=mEncoder. CreateInputSurface ();
The d (TAG, "created the input surface:" + mSurface);
MEncoder. Start ();

Use android5.1, API22 only registered in AndroidManifest permissions, so no dynamic application permissions, then fool tried also no matter how

CodePudding user response:

The function return value don't know, because I can use log printout, and then he didn't perform that sentence

CodePudding user response:

The forehead I seemed to turn to something should be the problem of mobile phone resolution? On the as simulator always have this problem but to mobile phones don't know how to modify will be okay, "post,,,
  • Related