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

hlmediacodec_enc.c 报错 #1

Open
dcboy opened this issue Dec 31, 2021 · 1 comment
Open

hlmediacodec_enc.c 报错 #1

dcboy opened this issue Dec 31, 2021 · 1 comment

Comments

@dcboy
Copy link

dcboy commented Dec 31, 2021

12-31 15:22:16.073   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_DEBUG, message='Clipping frame in rate conversion by 0.000008
12-31 15:22:16.073   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.073   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_INFO, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_encode_receive_packet 323
12-31 15:22:16.073   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.074   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_INFO, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_send 91
12-31 15:22:16.074   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.074   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_INFO, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_send 98 ff_encode_get_frame ret: 0
12-31 15:22:16.074   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.082   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_INFO, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_send 125 AMediaCodec_dequeueInputBuffer in_bufidx: 0
12-31 15:22:16.082   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.086   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_INFO, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_recv 201 start hlmediacodec_enc_recv
12-31 15:22:16.086   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.087   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_TRACE, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_recv 215 AMediaCodec_dequeueOutputBuffer ret (-2) times: 1 offset: 0 size: 0 pts: 0 flags: 0
12-31 15:22:16.087   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.088   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_INFO, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_recv 295 AMediaCodec_dequeueOutputBuffer AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED bitrate: int32(1500000), max-bitrate: int32(1500000), mime: string(video/avc), width: int32(1280), height: int32(720), csd-0: data, csd-1: data}
12-31 15:22:16.088   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.089   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_TRACE, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_recv 215 AMediaCodec_dequeueOutputBuffer ret (0) times: 2 offset: 0 size: 36 pts: 0 flags: 2
12-31 15:22:16.089   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.089   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_TRACE, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_recv 235 AMediaCodec OutputBuffer status: 0 outsize: 1843200 flags: 2 offset: 0 size: 36 pts: [0 0] nalu: [0 0 0 1 27 42]
12-31 15:22:16.089   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.090   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_INFO, message='[h264_hlmediacodec @ 0x88c65680] [hlmediacodec] hlmediacodec_enc_recv 316 ret (0)
12-31 15:22:16.090   4167    ffmpeg|MainActivity  D  '}
12-31 15:22:16.090   4167    ffmpeg|MainActivity  D  [thread-183]:Log{sessionId=1, level=AV_LOG_PANIC, message='Assertion !avpkt->data || avpkt->buf failed at libavcodec/encode.c:301
12-31 15:22:16.090   4167    ffmpeg|MainActivity  D  '}

@hilive
Copy link
Owner

hilive commented Feb 22, 2024

用最新的 output 里编译好的库试试。 如果还有问题,可以给个可以重现的 demo 我试试;

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

2 participants