This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Execute omxil_video_enc 7th-8th times, the SoC is rebooted。

Part Number: TDA4VM

Hi expert:

When using the Video Encoder related functions, I  got the following problems:

issue description:
After the system boots, the vex_enc process is started first, then execute omxil_video_enc 7th-8th times, the SoC is rebooted. omxil_video_enc appear to be working fine until the reboot.
Software platfrom is base on SDK8.2。

analysis:
I did another experiment, VENC_INPUT_BUFFER_NUM determine the size of the screen_buf and input_bufs, the more smaller size is, and the more times the omxil_video_enc can be run. So we determine that there may be a memory stampede, omxil_video_enc using an illegal address, destroying the code or data segment of other cores。

questions:
The input buffer (input_bufs) used by OpenMax was not requested by the OpenMax Framework。Instead, the screen_create_window_buffers interface creates buffers for the screen_win, and then obtains the SCREEN_PROPERTY_RENDER_BUFFERS property through the screen_get_window_property_pv and assigns it to the screen_buf.
1. Is it correctly ?
2. Why do this, why OpenMax relies on screen and can OpenMax and Screen be decoupled?
3. From the attached log, the virtual address and physical address of the input_bufs are printed,please reference "Get frame size for buf[x]", and the physical address of the buffers created by the screen_create_window_buffers, is it contiguous? Is it reasonable for this physical address to be incremented?
4. Can you reserve 100M memory for the omxil_video_enc,makes the physical address of input_bufs is the same when omxil_video_enc run each time , so as to avoid using illegal addresses。Can you give me a patch for this?

Plese help us,Thanks!

Log:

cd /med    /media/ca         /media/card/co              /media/card/codec_test/
H53@QNX:/media/card/codec_test# export OMXIL_COMPONENT_PATH=/tilib
H53@QNX:/media/card/codec_test# vxe_enc
Starting VXE-ENC resource manager...
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 147cdfb000, 8fc250000
Get frame size for buf[1]: 3133440, 147d0f8000, 8fc54d000
Get frame size for buf[2]: 3133440, 147d3f5000, 8fc84a000
Get frame size for buf[3]: 3133440, 147d6f2000, 8fcb47000
Get frame size for buf[4]: 3133440, 147d9ef000, 820d0000
Get frame size for buf[5]: 3133440, 147dcec000, 823cd000
Get frame size for buf[6]: 3133440, 147dfe9000, 826ca000
Get frame size for buf[7]: 3133440, 147e2e6000, 829c7000
Get frame size for buf[8]: 3133440, 147e5e3000, 82cc4000
Get frame size for buf[9]: 3133440, 147e8e0000, 8fb000000
Get frame size for buf[10]: 3133440, 147ebdd000, 8fb2fd000
Get frame size for buf[11]: 3133440, 147eeda000, 8fb5fa000
Get frame size for buf[12]: 3133440, 147f1d7000, 8fb8f7000
Get frame size for buf[13]: 3133440, 147f4d4000, 8fbbf4000
Get frame size for buf[14]: 3133440, 147f7d1000, 8fa000000
Get frame size for buf[15]: 3133440, 147face000, 8fa2fd000
OmxilEnc=> Port comp 3855f3daf0, port 0
OmxilEnc=> Port comp 3855f3daf0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45240, bufPtr 0x147cdfb000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f452d0, bufPtr 0x147d0f8000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45360, bufPtr 0x147d3f5000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f453f0, bufPtr 0x147d6f2000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45480, bufPtr 0x147d9ef000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45510, bufPtr 0x147dcec000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f455a0, bufPtr 0x147dfe9000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45630, bufPtr 0x147e2e6000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f456c0, bufPtr 0x147e5e3000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45750, bufPtr 0x147e8e0000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f457e0, bufPtr 0x147ebdd000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45870, bufPtr 0x147eeda000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45900, bufPtr 0x147f1d7000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45990, bufPtr 0x147f4d4000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45a20, bufPtr 0x147f7d1000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3855f3daf0, port 0, bufHdr 0x3855f45ab0, bufPtr 0x147face000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 3855f3daf0, port 0, bufHdr 0x3855f45b40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 3855f3daf0, port 0, bufHdr 0x3855f45bd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=4c8d42ce28
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=4c8d42ce28
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=47570,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28794,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=71934,  0  0  0  1 21)
GetInputFrame end of ./nv12/mix_1920x1080_8b_9frm_nv12.yuv
encoder_file_push_thread eos
OmxilEnc=> FillBufferDone unprocessed data(nFilledLen=0)
OmxilEnc=> FillBufferDone (nFilledLen=26234,  0  0  0  1 21)
OmxilEnc=> Component detected EOS, encH=4c8d42ce28
eos received: 729
ddon debug : FlushVenc 810
OmxilEnc=> StateTransition target state 2
OmxilEnc=> Reached compState: 2, encH=4c8d42ce28
OmxilEnc=> StateTransition target state 1
OmxilEnc=> Reached compState: 1, encH=4c8d42ce28
OmxilEnc=> CloseVenc Done
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 5cddfb6000, 8fc250000
Get frame size for buf[1]: 3133440, 5cde2b3000, 8fc54d000
Get frame size for buf[2]: 3133440, 5cde5b0000, 8fc84a000
Get frame size for buf[3]: 3133440, 5cde8ad000, 8fcb47000
Get frame size for buf[4]: 3133440, 5cdebaa000, 820d0000
Get frame size for buf[5]: 3133440, 5cdeea7000, 823cd000
Get frame size for buf[6]: 3133440, 5cdf1a4000, 826ca000
Get frame size for buf[7]: 3133440, 5cdf4a1000, 829c7000
Get frame size for buf[8]: 3133440, 5cdf79e000, 82cc4000
Get frame size for buf[9]: 3133440, 5cdfa9b000, 83000000
Get frame size for buf[10]: 3133440, 5cdfd98000, 832fd000
Get frame size for buf[11]: 3133440, 5ce0095000, 835fa000
Get frame size for buf[12]: 3133440, 5ce0392000, 838f7000
Get frame size for buf[13]: 3133440, 5ce068f000, 83bf4000
Get frame size for buf[14]: 3133440, 5ce098c000, 84000000
Get frame size for buf[15]: 3133440, 5ce0c89000, 842fd000
OmxilEnc=> Port comp 3708557af0, port 0
OmxilEnc=> Port comp 3708557af0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f240, bufPtr 0x5cddfb6000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f2d0, bufPtr 0x5cde2b3000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f360, bufPtr 0x5cde5b0000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f3f0, bufPtr 0x5cde8ad000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f480, bufPtr 0x5cdebaa000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f510, bufPtr 0x5cdeea7000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f5a0, bufPtr 0x5cdf1a4000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f630, bufPtr 0x5cdf4a1000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f6c0, bufPtr 0x5cdf79e000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f750, bufPtr 0x5cdfa9b000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f7e0, bufPtr 0x5cdfd98000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f870, bufPtr 0x5ce0095000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f900, bufPtr 0x5ce0392000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855f990, bufPtr 0x5ce068f000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855fa20, bufPtr 0x5ce098c000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 3708557af0, port 0, bufHdr 0x370855fab0, bufPtr 0x5ce0c89000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 3708557af0, port 0, bufHdr 0x370855fb40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 3708557af0, port 0, bufHdr 0x370855fbd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=405bd9dec8
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=405bd9dec8
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=47570,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28794,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=71934,  0  0  0  1 21)
GetInputFrame end of ./nv12/mix_1920x1080_8b_9frm_nv12.yuv
encoder_file_push_thread eos
OmxilEnc=> FillBufferDone unprocessed data(nFilledLen=0)
OmxilEnc=> FillBufferDone (nFilledLen=26234,  0  0  0  1 21)
OmxilEnc=> Component detected EOS, encH=405bd9dec8
eos received: 729
ddon debug : FlushVenc 810
OmxilEnc=> StateTransition target state 2
OmxilEnc=> Reached compState: 2, encH=405bd9dec8
OmxilEnc=> StateTransition target state 1
OmxilEnc=> Reached compState: 1, encH=405bd9dec8
OmxilEnc=> CloseVenc Done
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 40c5298000, 8fc250000
Get frame size for buf[1]: 3133440, 40c5595000, 8fc54d000
Get frame size for buf[2]: 3133440, 40c5892000, 8fc84a000
Get frame size for buf[3]: 3133440, 40c5b8f000, 8fcb47000
Get frame size for buf[4]: 3133440, 40c5e8c000, 820d0000
Get frame size for buf[5]: 3133440, 40c6189000, 823cd000
Get frame size for buf[6]: 3133440, 40c6486000, 826ca000
Get frame size for buf[7]: 3133440, 40c6783000, 829c7000
Get frame size for buf[8]: 3133440, 40c6a80000, 82cc4000
Get frame size for buf[9]: 3133440, 40c6d7d000, 86000000
Get frame size for buf[10]: 3133440, 40c707a000, 862fd000
Get frame size for buf[11]: 3133440, 40c7377000, 865fa000
Get frame size for buf[12]: 3133440, 40c7674000, 868f7000
Get frame size for buf[13]: 3133440, 40c7971000, 86bf4000
Get frame size for buf[14]: 3133440, 40c7c6e000, 87000000
Get frame size for buf[15]: 3133440, 40c7f6b000, 872fd000
OmxilEnc=> Port comp 269bc84af0, port 0
OmxilEnc=> Port comp 269bc84af0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c240, bufPtr 0x40c5298000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c2d0, bufPtr 0x40c5595000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c360, bufPtr 0x40c5892000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c3f0, bufPtr 0x40c5b8f000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c480, bufPtr 0x40c5e8c000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c510, bufPtr 0x40c6189000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c5a0, bufPtr 0x40c6486000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c630, bufPtr 0x40c6783000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c6c0, bufPtr 0x40c6a80000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c750, bufPtr 0x40c6d7d000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c7e0, bufPtr 0x40c707a000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c870, bufPtr 0x40c7377000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c900, bufPtr 0x40c7674000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8c990, bufPtr 0x40c7971000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8ca20, bufPtr 0x40c7c6e000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 269bc84af0, port 0, bufHdr 0x269bc8cab0, bufPtr 0x40c7f6b000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 269bc84af0, port 0, bufHdr 0x269bc8cb40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 269bc84af0, port 0, bufHdr 0x269bc8cbd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=1a6d2f2ea8
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=1a6d2f2ea8
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=47570,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28794,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=71934,  0  0  0  1 21)
GetInputFrame end of ./nv12/mix_1920x1080_8b_9frm_nv12.yuv
encoder_file_push_thread eos
OmxilEnc=> FillBufferDone unprocessed data(nFilledLen=0)
OmxilEnc=> FillBufferDone (nFilledLen=26234,  0  0  0  1 21)
OmxilEnc=> Component detected EOS, encH=1a6d2f2ea8
eos received: 729
ddon debug : FlushVenc 810
OmxilEnc=> StateTransition target state 2
OmxilEnc=> Reached compState: 2, encH=1a6d2f2ea8
OmxilEnc=> StateTransition target state 1
OmxilEnc=> Reached compState: 1, encH=1a6d2f2ea8
OmxilEnc=> CloseVenc Done
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 3def561000, 8fc250000
Get frame size for buf[1]: 3133440, 3def85e000, 8fc54d000
Get frame size for buf[2]: 3133440, 3defb5b000, 8fc84a000
Get frame size for buf[3]: 3133440, 3defe58000, 8fcb47000
Get frame size for buf[4]: 3133440, 3df0155000, 820d0000
Get frame size for buf[5]: 3133440, 3df0452000, 823cd000
Get frame size for buf[6]: 3133440, 3df074f000, 826ca000
Get frame size for buf[7]: 3133440, 3df0a4c000, 829c7000
Get frame size for buf[8]: 3133440, 3df0d49000, 82cc4000
Get frame size for buf[9]: 3133440, 3df1046000, 89000000
Get frame size for buf[10]: 3133440, 3df1343000, 892fd000
Get frame size for buf[11]: 3133440, 3df1640000, 895fa000
Get frame size for buf[12]: 3133440, 3df193d000, 898f7000
Get frame size for buf[13]: 3133440, 3df1c3a000, 89bf4000
Get frame size for buf[14]: 3133440, 3df1f37000, 8a000000
Get frame size for buf[15]: 3133440, 3df2234000, 8a2fd000
OmxilEnc=> Port comp 21df3d6af0, port 0
OmxilEnc=> Port comp 21df3d6af0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de240, bufPtr 0x3def561000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de2d0, bufPtr 0x3def85e000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de360, bufPtr 0x3defb5b000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de3f0, bufPtr 0x3defe58000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de480, bufPtr 0x3df0155000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de510, bufPtr 0x3df0452000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de5a0, bufPtr 0x3df074f000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de630, bufPtr 0x3df0a4c000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de6c0, bufPtr 0x3df0d49000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de750, bufPtr 0x3df1046000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de7e0, bufPtr 0x3df1343000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de870, bufPtr 0x3df1640000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de900, bufPtr 0x3df193d000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3de990, bufPtr 0x3df1c3a000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3dea20, bufPtr 0x3df1f37000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 21df3d6af0, port 0, bufHdr 0x21df3deab0, bufPtr 0x3df2234000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 21df3d6af0, port 0, bufHdr 0x21df3deb40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 21df3d6af0, port 0, bufHdr 0x21df3debd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=5a9d64aea8
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=5a9d64aea8
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=47570,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28794,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=71934,  0  0  0  1 21)
GetInputFrame end of ./nv12/mix_1920x1080_8b_9frm_nv12.yuv
encoder_file_push_thread eos
OmxilEnc=> FillBufferDone unprocessed data(nFilledLen=0)
OmxilEnc=> FillBufferDone (nFilledLen=26234,  0  0  0  1 21)
OmxilEnc=> Component detected EOS, encH=5a9d64aea8
eos received: 729
ddon debug : FlushVenc 810
OmxilEnc=> StateTransition target state 2
OmxilEnc=> Reached compState: 2, encH=5a9d64aea8
OmxilEnc=> StateTransition target state 1
OmxilEnc=> Reached compState: 1, encH=5a9d64aea8
OmxilEnc=> CloseVenc Done
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 1ec7315000, 8fc250000
Get frame size for buf[1]: 3133440, 1ec7612000, 8fc54d000
Get frame size for buf[2]: 3133440, 1ec790f000, 8fc84a000
Get frame size for buf[3]: 3133440, 1ec7c0c000, 8fcb47000
Get frame size for buf[4]: 3133440, 1ec7f09000, 820d0000
Get frame size for buf[5]: 3133440, 1ec8206000, 823cd000
Get frame size for buf[6]: 3133440, 1ec8503000, 826ca000
Get frame size for buf[7]: 3133440, 1ec8800000, 829c7000
Get frame size for buf[8]: 3133440, 1ec8afd000, 82cc4000
Get frame size for buf[9]: 3133440, 1ec8dfa000, 8c000000
Get frame size for buf[10]: 3133440, 1ec90f7000, 8c2fd000
Get frame size for buf[11]: 3133440, 1ec93f4000, 8c5fa000
Get frame size for buf[12]: 3133440, 1ec96f1000, 8c8f7000
Get frame size for buf[13]: 3133440, 1ec99ee000, 8cbf4000
Get frame size for buf[14]: 3133440, 1ec9ceb000, 8d000000
Get frame size for buf[15]: 3133440, 1ec9fe8000, 8d2fd000
OmxilEnc=> Port comp 5f34531af0, port 0
OmxilEnc=> Port comp 5f34531af0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539240, bufPtr 0x1ec7315000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f345392d0, bufPtr 0x1ec7612000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539360, bufPtr 0x1ec790f000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f345393f0, bufPtr 0x1ec7c0c000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539480, bufPtr 0x1ec7f09000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539510, bufPtr 0x1ec8206000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f345395a0, bufPtr 0x1ec8503000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539630, bufPtr 0x1ec8800000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f345396c0, bufPtr 0x1ec8afd000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539750, bufPtr 0x1ec8dfa000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f345397e0, bufPtr 0x1ec90f7000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539870, bufPtr 0x1ec93f4000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539900, bufPtr 0x1ec96f1000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539990, bufPtr 0x1ec99ee000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539a20, bufPtr 0x1ec9ceb000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 5f34531af0, port 0, bufHdr 0x5f34539ab0, bufPtr 0x1ec9fe8000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 5f34531af0, port 0, bufHdr 0x5f34539b40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 5f34531af0, port 0, bufHdr 0x5f34539bd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=4bd5c34db8
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=4bd5c34db8
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=47570,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28794,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=71934,  0  0  0  1 21)
GetInputFrame end of ./nv12/mix_1920x1080_8b_9frm_nv12.yuv
encoder_file_push_thread eos
OmxilEnc=> FillBufferDone unprocessed data(nFilledLen=0)
OmxilEnc=> FillBufferDone (nFilledLen=26234,  0  0  0  1 21)
OmxilEnc=> Component detected EOS, encH=4bd5c34db8
eos received: 729
ddon debug : FlushVenc 810
OmxilEnc=> StateTransition target state 2
OmxilEnc=> Reached compState: 2, encH=4bd5c34db8
OmxilEnc=> StateTransition target state 1
OmxilEnc=> Reached compState: 1, encH=4bd5c34db8
OmxilEnc=> CloseVenc Done
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 37c321d000, 8fc250000
Get frame size for buf[1]: 3133440, 37c351a000, 8fc54d000
Get frame size for buf[2]: 3133440, 37c3817000, 8fc84a000
Get frame size for buf[3]: 3133440, 37c3b14000, 8fcb47000
Get frame size for buf[4]: 3133440, 37c3e11000, 820d0000
Get frame size for buf[5]: 3133440, 37c410e000, 823cd000
Get frame size for buf[6]: 3133440, 37c440b000, 826ca000
Get frame size for buf[7]: 3133440, 37c4708000, 829c7000
Get frame size for buf[8]: 3133440, 37c4a05000, 82cc4000
Get frame size for buf[9]: 3133440, 37c4d02000, 8f000000
Get frame size for buf[10]: 3133440, 37c4fff000, 8f2fd000
Get frame size for buf[11]: 3133440, 37c52fc000, 8f5fa000
Get frame size for buf[12]: 3133440, 37c55f9000, 8f8f7000
Get frame size for buf[13]: 3133440, 37c58f6000, 8fbf4000
Get frame size for buf[14]: 3133440, 37c5bf3000, 90000000
Get frame size for buf[15]: 3133440, 37c5ef0000, 902fd000
OmxilEnc=> Port comp 409aa1baf0, port 0
OmxilEnc=> Port comp 409aa1baf0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23240, bufPtr 0x37c321d000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa232d0, bufPtr 0x37c351a000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23360, bufPtr 0x37c3817000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa233f0, bufPtr 0x37c3b14000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23480, bufPtr 0x37c3e11000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23510, bufPtr 0x37c410e000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa235a0, bufPtr 0x37c440b000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23630, bufPtr 0x37c4708000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa236c0, bufPtr 0x37c4a05000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23750, bufPtr 0x37c4d02000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa237e0, bufPtr 0x37c4fff000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23870, bufPtr 0x37c52fc000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23900, bufPtr 0x37c55f9000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23990, bufPtr 0x37c58f6000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23a20, bufPtr 0x37c5bf3000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 409aa1baf0, port 0, bufHdr 0x409aa23ab0, bufPtr 0x37c5ef0000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 409aa1baf0, port 0, bufHdr 0x409aa23b40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 409aa1baf0, port 0, bufHdr 0x409aa23bd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=21c0b59e78
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=21c0b59e78
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=47570,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28794,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=71934,  0  0  0  1 21)
GetInputFrame end of ./nv12/mix_1920x1080_8b_9frm_nv12.yuv
encoder_file_push_thread eos
OmxilEnc=> FillBufferDone unprocessed data(nFilledLen=0)
OmxilEnc=> FillBufferDone (nFilledLen=26234,  0  0  0  1 21)
OmxilEnc=> Component detected EOS, encH=21c0b59e78
eos received: 729
ddon debug : FlushVenc 810
OmxilEnc=> StateTransition target state 2
OmxilEnc=> Reached compState: 2, encH=21c0b59e78
OmxilEnc=> StateTransition target state 1
OmxilEnc=> Reached compState: 1, encH=21c0b59e78
OmxilEnc=> CloseVenc Done
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 28b039c000, 8fc250000
Get frame size for buf[1]: 3133440, 28b0699000, 8fc54d000
Get frame size for buf[2]: 3133440, 28b0996000, 8fc84a000
Get frame size for buf[3]: 3133440, 28b0c93000, 8fcb47000
Get frame size for buf[4]: 3133440, 28b0f90000, 820d0000
Get frame size for buf[5]: 3133440, 28b128d000, 823cd000
Get frame size for buf[6]: 3133440, 28b158a000, 826ca000
Get frame size for buf[7]: 3133440, 28b1887000, 829c7000
Get frame size for buf[8]: 3133440, 28b1b84000, 82cc4000
Get frame size for buf[9]: 3133440, 28b1e81000, 92000000
Get frame size for buf[10]: 3133440, 28b217e000, 922fd000
Get frame size for buf[11]: 3133440, 28b247b000, 925fa000
Get frame size for buf[12]: 3133440, 28b2778000, 928f7000
Get frame size for buf[13]: 3133440, 28b2a75000, 92bf4000
Get frame size for buf[14]: 3133440, 28b2d72000, 93000000
Get frame size for buf[15]: 3133440, 28b306f000, 932fd000
OmxilEnc=> Port comp 37e503eaf0, port 0
OmxilEnc=> Port comp 37e503eaf0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046240, bufPtr 0x28b039c000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e50462d0, bufPtr 0x28b0699000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046360, bufPtr 0x28b0996000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e50463f0, bufPtr 0x28b0c93000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046480, bufPtr 0x28b0f90000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046510, bufPtr 0x28b128d000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e50465a0, bufPtr 0x28b158a000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046630, bufPtr 0x28b1887000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e50466c0, bufPtr 0x28b1b84000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046750, bufPtr 0x28b1e81000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e50467e0, bufPtr 0x28b217e000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046870, bufPtr 0x28b247b000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046900, bufPtr 0x28b2778000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046990, bufPtr 0x28b2a75000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046a20, bufPtr 0x28b2d72000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 37e503eaf0, port 0, bufHdr 0x37e5046ab0, bufPtr 0x28b306f000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 37e503eaf0, port 0, bufHdr 0x37e5046b40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 37e503eaf0, port 0, bufHdr 0x37e5046bd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=10b3de7d98
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=10b3de7d98
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=47570,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28794,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=71934,  0  0  0  1 21)
GetInputFrame end of ./nv12/mix_1920x1080_8b_9frm_nv12.yuv
encoder_file_push_thread eos
OmxilEnc=> FillBufferDone unprocessed data(nFilledLen=0)
OmxilEnc=> FillBufferDone (nFilledLen=26234,  0  0  0  1 21)
OmxilEnc=> Component detected EOS, encH=10b3de7d98
eos received: 729
ddon debug : FlushVenc 810
OmxilEnc=> StateTransition target state 2
OmxilEnc=> Reached compState: 2, encH=10b3de7d98
OmxilEnc=> StateTransition target state 1
OmxilEnc=> Reached compState: 1, encH=10b3de7d98
OmxilEnc=> CloseVenc Done
H53@QNX:/media/card/codec_test# omxil_video_enc  -i ./nv12/mix_1920x1080_8b_9frm_nv12.yuv  -c encoder_parameters_vbr_10m_idr30.conf -o /tmp/100frames_cbr_2m_idr60.264 -d -f nv12,1920x1080@30
AoSetLogger: registered this logger
Input stride is 1920
Get frame size for buf[0]: 3133440, 33eac1e000, 8fc250000
Get frame size for buf[1]: 3133440, 33eaf1b000, 8fc54d000
Get frame size for buf[2]: 3133440, 33eb218000, 8fc84a000
Get frame size for buf[3]: 3133440, 33eb515000, 8fcb47000
Get frame size for buf[4]: 3133440, 33eb812000, 820d0000
Get frame size for buf[5]: 3133440, 33ebb0f000, 823cd000
Get frame size for buf[6]: 3133440, 33ebe0c000, 826ca000
Get frame size for buf[7]: 3133440, 33ec109000, 829c7000
Get frame size for buf[8]: 3133440, 33ec406000, 82cc4000
Get frame size for buf[9]: 3133440, 33ec703000, 95000000
Get frame size for buf[10]: 3133440, 33eca00000, 952fd000
Get frame size for buf[11]: 3133440, 33eccfd000, 955fa000
Get frame size for buf[12]: 3133440, 33ecffa000, 958f7000
Get frame size for buf[13]: 3133440, 33ed2f7000, 95bf4000
Get frame size for buf[14]: 3133440, 33ed5f4000, 96000000
Get frame size for buf[15]: 3133440, 33ed8f1000, 962fd000
OmxilEnc=> Port comp 1ed9341af0, port 0
OmxilEnc=> Port comp 1ed9341af0, port 1
OmxilEnc=> StateTransition target state 2
OmxilEnc=> AllocatePortBuffers allocating 16 input buffers of 3133440 size
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349240, bufPtr 0x33eac1e000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed93492d0, bufPtr 0x33eaf1b000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349360, bufPtr 0x33eb218000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed93493f0, bufPtr 0x33eb515000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349480, bufPtr 0x33eb812000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349510, bufPtr 0x33ebb0f000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed93495a0, bufPtr 0x33ebe0c000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349630, bufPtr 0x33ec109000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed93496c0, bufPtr 0x33ec406000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349750, bufPtr 0x33ec703000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed93497e0, bufPtr 0x33eca00000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349870, bufPtr 0x33eccfd000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349900, bufPtr 0x33ecffa000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349990, bufPtr 0x33ed2f7000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349a20, bufPtr 0x33ed5f4000, size 3133440
OmxilEnc=> AllocatePortBuffers:370 comp 1ed9341af0, port 0, bufHdr 0x1ed9349ab0, bufPtr 0x33ed8f1000, size 3133440
OmxilEnc=> AllocatePortBuffers allocating 2 output buffers of 3268352 size
OmxilEnc=> AllocatePortBuffers:395 Port comp 1ed9341af0, port 0, bufHdr 0x1ed9349b40, size 3268352
OmxilEnc=> AllocatePortBuffers:395 Port comp 1ed9341af0, port 0, bufHdr 0x1ed9349bd0, size 3268352
OmxilEnc=> Reached compState: 2, encH=28a1c68f38
OmxilEnc=> StateTransition target state 3
OmxilEnc=> Reached compState: 3, encH=28a1c68f38
Press 'p' to pause/resume.
Press 'q' to quit.
OmxilEnc=> FillBufferDone (nFilledLen=109005,  0  0  0  1 67)
OmxilEnc=> FillBufferDone (nFilledLen=13633,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=38017,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=28206,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=58562,  0  0  0  1 21)
OmxilEnc=> FillBufferDone (nFilledLen=20268,  0  0  0  1 21)
NOTICE:  BL31: v2.5(release):H53_SampleD_PR_TDA4VM1_SOC_Ver0.94-dirty
NOTICE:  BL31: Built : 09:59:04, Feb  8 2023
I/TC: 
I/TC: OP-TEE version: 0ba68bed55-dev (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 2023年 03月 02日 星期�05:39:42 UTC aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
MMU: 16-bit ASID 44-bit PA TCR_EL1=b5183519
ARM GIC-500 r1p1, arch v3.0 detected
gic_v3_lpi_add_entry for vectors 8192 -> 8447, Ok
gic_v3_lpi_add_entry for vectors 8448 -> 65535, Ok
No SPI intrinfo. Add default entry for 32 -> 991 vectors, Ok
LPI config table #1 @ 000000008000f000, callout vaddr: ffffff8040251000
cpu0: MPIDR=80000000
cpu0: MIDR=411fd080 Cortex-A72 r1p0
cpu0: CWG=4 ERG=4 Dminline=4 Iminline=4 PIPT
cpu0: CLIDR=a200023 LoUU=1 LoC=2 LoUIS=1
cpu0: L1 Icache 48K linesz=64 set/way=256/3
cpu0: L1 Dcache 32K linesz=64 set/way=256/2
cpu0: L2 Unified 1024K linesz=64 set/way=1024/16
Enabling ITS 0
ITS queue at 0000000080020000, num slots: 256
Issue MAPC/SYNC/INVALL commands for ICID 0
update CWRITER to 0x00000060
Waiting for all commands to be processed ... Done in 1 tries
Enable LPIs in GICR_CTLR @ 0000000001900000 for CPU0
Display set to R5
ti_sci_cmd_clk_set_freq: response NACK
init_ospi: Set OSPI0 RCLK frequency failed!
Total Available L3 cache (MSMC SRAM): 0 bytes
Loading IFS...decompressing...done
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
cpu1: MPIDR=80000001
cpu1: MIDR=411fd080 Cortex-A72 r1p0
cpu1: CWG=4 ERG=4 Dminline=4 Iminline=4 PIPT
cpu1: CLIDR=a200023 LoUU=1 LoC=2 LoUIS=1
cpu1: L1 Icache 48K linesz=64 set/way=256/3
cpu1: L1 Dcache 32K linesz=64 set/way=256/2
cpu1: L2 Unified 1024K linesz=64 set/way=1024/16
ITS 0 already Enabled
ITS queue at 0000000080020000, num slots: 256
Issue MAPC/SYNC/INVALL commands for ICID 1
update CWRITER to 0x000000c0
Waiting for all commands to be processed ... Done in 1 tries
Enable LPIs in GICR_CTLR @ 0000000001920000 for CPU1

System page at phys:0000000080023000 user:ffffff8040275000 kern:ffffff8040272000
Starting next program at vffffff80600983c0
All ClockCycles offsets within tolerance
****************************************************
*************** NRA-SDK8.2 TDA4VM1 *****************
*************** commit id: 1827a83f ****************
****************************************************
Starting random service ...
start serial driver
Starting MMC/SD memory card driver... eMMC
Starting MMC/SD memory card driver... SD
Setting environment variables...
done..
Path=0 - am65x
 target=0 lun=0     Direct-Access(0) - SDMMC: BGUF4R Rev: 3.9
Mounting the emmc ..
Looking for user script to run: /scripts/user_emmc.sh
Running user script...
user_emmc.sh called...
Setting additional environment variables...
****************************************************
*************** NRA-SDK8.2 TDA4VM1 *****************
****************  H53 PR Ver0.955  *****************
****************  H37 PR Ver0.76   *****************
********** ISP Version 2M 20230213 8M 20230213  ****
*RTOS-08_02_00_05 QNX-08_02_00_03 LINUX-08_02_00_03*
****************************************************
Starting tisci-mgr..
Starting shmemallocator..
Starting tiipc-mgr..
Starting TI IPC Resmgr
Starting tiudma-mgr..
Start screen..
screen started with dss_on_r5 configuration..
QNX aps pA 50..
**********************************************************************
[ VOYAH PR D SAMPLE TDA4-1 BSP:Ver0.955 BSW:Ver0.955 ]
**********************************************************************
Set ssh eth env..
Mounting the sd ..
bad addr or host: <NULL> (No address associated with hostname)
done...
H53@QNX:/# 

  • Hello,

    Please find the responses to your queries.

    1. Is it correctly ?

    Yes, it's correct, input buffers are screen_buf which are allocated from screen_create_window_buffers.


    2. Why do this, why OpenMax relies on screen and can OpenMax and Screen be decoupled?

    OpenMAX does not rely on screen. it's the test app that uses screen APIs to allocate the buffers. it's just one way we used to get video related buffers. and yes it is possible for any App that uses the OpenMAX component to be decoupled from screen and manage its own memory.

    3. From the attached log, the virtual address and physical address of the input_bufs are printed,please reference "Get frame size for buf[x]", and the physical address of the buffers created by the screen_create_window_buffers, is it contiguous? Is it reasonable for this physical address to be incremented?

    Every input buffer (allocated by screen API) is physically continuous, that doesn't mean all buffers have to be physically continuous.

    4. Can you reserve 100M memory for the omxil_video_enc,makes the physical address of input_bufs is the same when omxil_video_enc run each time , so as to avoid using illegal addresses。Can you give me a patch for this?

    This can be done in the test app and should not be part of the OMX IL component. OpenMAX lets the app (in our case, the test app) provide the memory for IO buffer management.

    BR

    -Subbu

  • Thank you for your reply,it is very helpful and resolved my issue.Thanks!