aws-samples / amazon-kinesis-video-streams-producer-embedded-c

Light-wight Amazon Kinesis Video Streams Producer SDK For FreeRTOS/Embedded Linux
Apache License 2.0
31 stars 19 forks source link

IMP_Alloc fails to alloc the 1396736 size dma buf #81

Open zhangshouyin opened 1 year ago

zhangshouyin commented 1 year ago

Describe the bug

IMP_Alloc fails to alloc the 1396736 size dma buf malloc the IMP_Alloc varible buf failed AL_BufPool_init failed videoThread(): Encoder init failed

To Reproduce Steps to reproduce the behavior:

  1. git clone --recursive https://github.com/aws-samples/amazon-kinesis-video-streams-producer-embedded-c.git
  2. cp -rf /path/to/ISVP-T31-1.1.4-20210825/software/sdk/Ingenic-SDK-T31-1.1.4-20210825/sdk/4.7.2 \ /path/to/amazon-kinesis-video-streams-producer-embedded-c/samples/kvsapp-ingenic-t31/sdk/
  3. cmake -DCMAKE_C_COMPILER=mips-linux-uclibc-gnu-gcc \ -DCMAKE_CXX_COMPILER=mips-linux-uclibc-gnu-g++ \ -DBOARD_INGENIC_T31=ON \ .. cmake --build .
  4. export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxx export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx export AWS_DEFAULT_REGION=us-east-1 export AWS_KVS_HOST=kinesisvideo.us-east-1.amazonaws.com ./kvsappcli-ingenic-t31

Expected behavior [ 5577.814323] codec_set_device: set device: MIC... Info: SPS is found Info: SPS is set Info: PPS is found Info: PPS is set Info: KVS stream buffer created Info: Try to describe stream Info: PUT MEDIA endpoint: s-xxxxxxxx.kinesisvideo.us-east-1.amazonaws.com Info: 100-continue Info: Flush to next cluster Info: Fragment buffering, timecode:1628131208569 Info: Fragment received, timecode:1628131208569

Screenshots

Environments (please complete the following information):

Additional context the error what is the reason?

zhangshouyin commented 1 year ago

[root@Zeratul:sdcard]# ./kvsappcli-ingenic-t31 kvs_example_camera_stream Info: Try to describe stream warn: shm_init,53shm init already !! The specified ScalingList is not allowed; it will be adjusted!! IMP_Alloc fails to alloc the 1396736 size dma buf malloc the IMP_Alloc varible buf failed AL_BufPool_Init failed videoThread(): Encoder init failed Info: PUT MEDIA endpoint: s-a7395519.kinesisvideo.us-east-1.amazonaws.com Info: 100-continue KvsApp opened Info: Flush to next cluster Info: No cluster frame is found KvsApp closed Info: PUT MEDIA endpoint: s-a7395519.kinesisvideo.us-east-1.amazonaws.com Info: 100-continue KvsApp opened Info: Flush to next cluster Info: No cluster frame is found KvsApp closed Info: PUT MEDIA endpoint: s-a7395519.kinesisvideo.us-east-1.amazonaws.com Info: 100-continue KvsApp opened Info: Flush to next cluster Info: No cluster frame is found KvsApp closed Info: PUT MEDIA endpoint: s-a7395519.kinesisvideo.us-east-1.amazonaws.com Info: 100-continue KvsApp opened Info: Flush to next cluster Info: No cluster frame is found KvsApp closed Info: PUT MEDIA endpoint: s-a7395519.kinesisvideo.us-east-1.amazonaws.com Info: 100-continue KvsApp opened Info: Flush to next cluster Info: No cluster frame is found KvsApp closed Info: PUT MEDIA endpoint: s-a7395519.kinesisvideo.us-east-1.amazonaws.com Info: 100-continue KvsApp opened Info: Flush to next cluster Info: No cluster frame is found KvsApp closed