i.MX 8M Mini vpuenc_h264 can't work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX 8M Mini vpuenc_h264 can't work

5,039 Views
shengfazhang
Contributor II

Hi, vpuenc_h264 can't work again on i.MX 8MM if gstreamer app exit in abnormal state.

I run a gstreamer app of myself which didn't handle SIGINT (ctrl-C) signal. When I quit my app by SIGINT, the following command can't work again! And the pipeline is in PAUSE state!

I have to input 3 ctrl-C to make gst-launch-1.0 to quit!

 

GST_DEBUG=4 gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=5640_h264.mp4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.       ---------------- 1 Ctrl-C
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...
^Chandling interrupt.       ---------------- 2 Ctrl-C
Interrupt: Stopping pipeline ...
Interrupt while waiting for EOS - stopping pipeline...
Execution ended after 0:00:08.858598500
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
^C                          ---------------- 3 Ctrl-C

And the gstreamer log is attached.

However, the following command without vpuenc_h264 works!

GST_DEBUG=4 gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! waylandsink

THX!

 

0 Kudos
38 Replies

2,176 Views
BWhitten
Contributor I

Hi,

We have found that this issue is reproducible with the imx8mp-lpddr-evk using the latest bsp, built yesterday.

The following script can trigger the issue within 10-15 attempts, note change the ip to your receiving machine, and will result in the video stream being lost when the VPU jams and the pipeline not transitioning to the playing state.

#!/bin/bash
while [ 1 ] 
do 
gst-launch-1.0 \
videotestsrc ! video/x-raw,width=1280,height=720,framerate=30/1 ! queue ! vpuenc_h264 ! rtph264pay pt=96 ! udpsink host=192.168.1.137 port=1234 \
videotestsrc ! video/x-raw,width=1280,height=720,framerate=30/1 ! queue ! vpuenc_h264 ! rtph264pay pt=96 ! udpsink host=192.168.1.137 port=2234 \
videotestsrc ! video/x-raw,width=1280,height=720,framerate=30/1 ! queue ! vpuenc_h264 ! rtph264pay pt=96 ! udpsink host=192.168.1.137 port=3234 \
videotestsrc ! video/x-raw,width=1280,height=720,framerate=30/1 ! queue ! vpuenc_h264 ! rtph264pay pt=96 ! udpsink host=192.168.1.137 port=4234 &
sleep 5
killall gst-launch-1.0
sleep 1
done

 

Resulting in the output showing the failure to move to the playing state.

root@imx8mp-lpddr4-evk:~# ./test-vpuenc-imxplus.sh
Setting pipeline to PAUSED ...
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Terminated/ 99:99:99.
Setting pipeline to PAUSED ...
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Terminated/ 99:99:99.
Setting pipeline to PAUSED ...
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
Pipeline is PREROLLING ...
Terminated
Setting pipeline to PAUSED ...
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
Pipeline is PREROLLING ...
Terminated
Setting pipeline to PAUSED ...
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
====== VPUENC: 4.6.4 build on Jan 18 2022 09:10:37. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb  9 2022 01:58:18)
        vpulib: 1.1.1
        firmware: 1.1.1.43690
Pipeline is PREROLLING ...
Terminated

 

0 Kudos

2,731 Views
joanxie
NXP TechSupport
NXP TechSupport

I have tested the same command on my imx8mm lpddr4 board with 5.10.52 bsp  successfully, I don't find any issue when I use ctrl+c to stop the pipeline

0 Kudos

2,723 Views
shengfazhang
Contributor II

gst-launch capture Ctrl-C signal and exit normally, so it cannot reproduce the issue. My application doesn't catch Ctrl-C signal which causes the VPU no working again. You can try the following attachment which was built on imx-yocto-L4.14.78_1.0.0_ga (sorry, I only got this version). Press Ctrl-C while VPU is working and you may try more times to reproduce.

You may modify the code (VideoCapture.cpp) as your profile such as Line 134-138, 212-217.

 

 

134     g_object_set(v4l2src,
135                  //"device", device.c_str(),
136                  "device", "/dev/video1",
137                  "io-mode", iomode,
138                  nullptr);
----
211     // Link v4l2src and tee with capsfilter
212     auto *caps = gst_caps_new_simple("video/x-raw",
213                 "format", G_TYPE_STRING, "YUY2",
214                 "width", G_TYPE_INT, 720,
215                 "height", G_TYPE_INT, 480,
216                 "framerate", GST_TYPE_FRACTION, 30, 1,
217                 nullptr);

 

 

Thank you!

0 Kudos

2,717 Views
joanxie
NXP TechSupport
NXP TechSupport

you must use this bsp version? this is very old, do you mind upgrading to the latest bsp version (5.10.72), then test again

0 Kudos

2,714 Views
shengfazhang
Contributor II

I found i.MX 8MP (imx-yocto-L5.4.70_2.3.0) has the same issue. So can you build the attached code and test on  5.10.52 bsp?

0 Kudos

2,703 Views
joanxie
NXP TechSupport
NXP TechSupport

I need to know how to reproduce this issue with current bsp, and I don't know what you mean "vpu not work", do you mean when you enter the command "

gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=5640_h264.mp4

"

after a while, doesn't vpu work? do you have any logfile about this?

0 Kudos

2,676 Views
shengfazhang
Contributor II

Hi, you can reproduce by the following steps:

1. run the following commands which will use VPU to encode H264 the camera video and display at the same time.

 

gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=5640_h264.mp4 t. ! queue ! waylandsink

 

2. Open anther terminal, find the above command process ID and kill it by SIGKILL signal:

 

ps -ef | grep gst # to get the PID
kill -9 <PID>

 

3. Try to run the command on step 1. Now VPU may not work again. The kernel dump the following message:

 

[12:49:59:588] [  467.563050] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:49:59:597] [  467.569323] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:49:59:602] [  467.575573] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:49:59:607] [  467.582028] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:49:59:615] [  467.588120] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:00:347] [  468.321871] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:00:504] [  468.479474] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:00:515] [  468.490371] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:00:526] [  468.501062] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:50:12:104] [  480.080081] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:50:12:115] [  480.086376] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:50:12:117] [  480.092463] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:50:12:124] [  480.098669] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:50:12:130] [  480.104795] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:12:858] [  480.833924] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:12:959] [  480.934204] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:12:970] [  480.944562] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:12:980] [  480.955621] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:50:21:957] [  489.933171] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:50:21:967] [  489.939698] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:50:21:972] [  489.946062] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:50:21:978] [  489.952520] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:50:21:984] [  489.958886] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:22:714] [  490.689871] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:22:877] [  490.852409] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:22:888] [  490.863563] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:22:899] [  490.875336] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:50:34:639] [  502.614805] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:50:34:649] [  502.620928] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:50:34:652] [  502.627038] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:50:34:658] [  502.633266] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:50:34:665] [  502.639313] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:35:386] [  503.361876] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:35:556] [  503.531864] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:35:569] [  503.542054] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:35:577] [  503.552033] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:51:13:152] [  541.130191] alloc_contig_range: [5f400, 5f5c2) PFNs busy␍␊
[12:51:13:172] [  541.149913] ov5640_mipi 3-003c: s_stream: 1␍␊

 

But if we replace vpuenc_h264 with fakesink now. The pipeline works! So I think VPU causes the problem.

 

gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! fakesink t. ! queue ! waylandsink

 

TIPS: you may try more time from step 1-3 to reproduce the issue.

Thanks!

 

0 Kudos

2,642 Views
joanxie
NXP TechSupport
NXP TechSupport

I don't know if you use nxp evk board or your customized board, refer to your print message, it seems not related to vpu, it is memory, PFNs busy is memory allocation busy, then they will search next range of memory,

 

0 Kudos

2,699 Views
shengfazhang
Contributor II

Sorry. I should clarify that more clearly.

I write C++ code which uses gstreamer framework to implement a pipeline to capture camera video and encode H264 with VPU. see the attachment.

My C++ code doesn't catch Ctrl-C signal, so when VPU is doing H264 encode, I press Ctrl-C to terminate the process. After that, I run the following command, it can't work again.

 

GST_DEBUG=4 gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=5640_h264.mp4

 

You may reproduce the issue by the following steps:

1. modify the code (VideoCapture.cpp/Makefile) as your profile if need. Such as Lines 134-137, 211-217.

 

134     g_object_set(v4l2src,
135                  "device", "/dev/video0",
136                  "io-mode", iomode,
137                  nullptr);
----
211     // Link v4l2src and tee with capsfilter
212     auto *caps = gst_caps_new_simple("video/x-raw",
213                 "format", G_TYPE_STRING, "YUY2",
214                 "width", G_TYPE_INT, 1280,
215                 "height", G_TYPE_INT, 720,
216                 "framerate", GST_TYPE_FRACTION, 30, 1,
217                 nullptr);

 

2. make

3. run ./videocap

4. wait until VPU is working (maybe 5s later), press Ctrl-C

5. run the following command

 

GST_DEBUG=4 gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=5640_h264.mp4

P.S. You may try more times to reproduce the issue.

Thanks!

 

0 Kudos

2,685 Views
joanxie
NXP TechSupport
NXP TechSupport

since your code is about capture and encode by VPU, could I reproduce this with default nxp bsp ? I don't have any space to build your code right now,  I need to testing internal new bsp , so could you tell me how  I can reproduce this with nxp bsp? if no, is this issue related to your code?

 

0 Kudos

2,678 Views
shengfazhang
Contributor II

Hi, you can reproduce by the following steps without my code.

1. run the following commands which will use VPU to encode H264 the camera video and display at the same time.

 

gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=5640_h264.mp4 t. ! queue ! waylandsink

 

2. Open anther terminal, find the above command process ID and kill it by SIGKILL signal:

 

ps -ef | grep gst # to get the PID
kill -9 <PID>

 

3. Try to run the command on step 1. Now VPU may not work again. The kernel dump the following message:

 

[12:49:59:588] [  467.563050] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:49:59:597] [  467.569323] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:49:59:602] [  467.575573] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:49:59:607] [  467.582028] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:49:59:615] [  467.588120] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:00:347] [  468.321871] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:00:504] [  468.479474] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:00:515] [  468.490371] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:00:526] [  468.501062] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:50:12:104] [  480.080081] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:50:12:115] [  480.086376] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:50:12:117] [  480.092463] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:50:12:124] [  480.098669] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:50:12:130] [  480.104795] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:12:858] [  480.833924] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:12:959] [  480.934204] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:12:970] [  480.944562] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:12:980] [  480.955621] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:50:21:957] [  489.933171] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:50:21:967] [  489.939698] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:50:21:972] [  489.946062] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:50:21:978] [  489.952520] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:50:21:984] [  489.958886] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:22:714] [  490.689871] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:22:877] [  490.852409] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:22:888] [  490.863563] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:22:899] [  490.875336] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:50:34:639] [  502.614805] alloc_contig_range: [5f000, 5f401) PFNs busy␍␊
[12:50:34:649] [  502.620928] alloc_contig_range: [5f000, 5f501) PFNs busy␍␊
[12:50:34:652] [  502.627038] alloc_contig_range: [5f200, 5f601) PFNs busy␍␊
[12:50:34:658] [  502.633266] alloc_contig_range: [5f300, 5f701) PFNs busy␍␊
[12:50:34:665] [  502.639313] alloc_contig_range: [5f400, 5f801) PFNs busy␍␊
[12:50:35:386] [  503.361876] ov5640_mipi 3-003c: s_stream: 1␍␊
[12:50:35:556] [  503.531864] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:35:569] [  503.542054] alloc_contig_range: [5f400, 5f4e1) PFNs busy␍␊
[12:50:35:577] [  503.552033] alloc_contig_range: [5f400, 5f471) PFNs busy␍␊
[12:51:13:152] [  541.130191] alloc_contig_range: [5f400, 5f5c2) PFNs busy␍␊
[12:51:13:172] [  541.149913] ov5640_mipi 3-003c: s_stream: 1␍␊

 

But if we replace vpuenc_h264 with fakesink now. The pipeline works! So I think VPU causes the problem.

 

gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! fakesink t. ! queue ! waylandsink

 

TIPS: you may try more time from step 1-3 to reproduce the issue.

Thanks!

 

0 Kudos

2,667 Views
joanxie
NXP TechSupport
NXP TechSupport

could you tell me how many times I need to try? I tried 5 times, I still couldn't reproduce this issue on my lpddr4 board, I used latest bsp (5.10.72), could you upgrade to the latest bsp and try again?

0 Kudos

2,662 Views
shengfazhang
Contributor II

Sorry, my board is imx-yocto-L4.14.78_1.0.0_ga which can't be upgraged.

Maybe the following bash script could reproduce the issue. You can copy to a file and run the file.

 

#!/bin/bash

file="test.mp4"

t=1

while :
do
	gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink &
	echo $t
	sleep $t
	size=`stat -c "%s" $file`
	echo "$file size: $size"
	if [ $size -eq 0 ]
	then
		# try again
		sleep 2
		size=`stat -c "%s" $file`
		if [ $size -eq 0 ]
		then
			echo "VPU is in abnormal state!"
			exit 1
		fi
	fi
		
	
	for pid in `ps -ef | grep gst-launch-1.0 | grep -v grep | awk '{ print $2 }'`
	do
		kill -9 $pid
	done

	t=`echo "scale=1; $t + 0.1" | bc`
	if [ "$t" == "10.0" ]
	then
		t=1
	fi
done

 

Here is my test result.

 

root@imx8mm:~# ./test.sh 
1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
test.mp4 size: 0
1.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3828 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 58272
1.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3848 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 125425
1.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3866 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 160604
1.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3884 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 231443
1.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3902 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 285660
1.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3920 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 0
VPU is in abnormal state!

 

0 Kudos

2,653 Views
joanxie
NXP TechSupport
NXP TechSupport

refer to your output logfile, when you test the 7th times, the capturing and encoding will stop with error, right? I tested 4.14.78, I still couldn't reproduce your issue when 6.4 appears, then I use ctrl+c to stop it and send the logfile to you as below

root@imx8mmevk:~# ./test.sh
1
stat: cannot stat 'test.mp4': No such file or directory
test.mp4 size:
./test.sh: line 14: [: -eq: unary operator expected
1.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37: 3688 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 0
[ 86.325000] ov5640_mipi 2-003c: s_stream: 1
1.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 88.721008] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3700 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 155873
1.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 89.937009] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3721 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 191471
1.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 91.281017] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3739 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 295051
1.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 92.721091] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3757 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 278359
1.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 94.257006] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3775 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 368850
1.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 95.889006] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3793 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 387705
1.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 97.616983] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3811 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 495544
1.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 99.440977] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3829 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 551269
2.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 101.396988] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3847 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 672919
2.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 103.440990] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3865 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 662533
2.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 105.553095] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3883 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 759146
2.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 107.792975] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3901 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 802662
2.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 110.128985] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3919 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 884399
2.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 112.560998] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3937 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 900940
2.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 115.121081] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3955 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 900011
2.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 117.745061] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3973 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 952335
2.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 120.465012] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 3991 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1051388
2.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 123.312984] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4009 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1086996
3.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 126.256978] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4027 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1193819
3.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 129.300978] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4045 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1272507
3.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 132.432986] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4063 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1291982
3.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 135.665017] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4081 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1302474
3.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 138.993036] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4099 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1387244
3.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 142.448993] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4117 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1402572
3.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 145.968997] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4135 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1501648
3.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 149.616990] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4153 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1534218
3.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 153.332982] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4171 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1602919
3.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 157.168990] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4189 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1650469
4.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 161.105007] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4207 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1667383
4.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 165.137093] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4225 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1807063
4.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 169.297026] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4243 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1803301
4.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 173.521084] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4261 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1920704
4.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 177.873004] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4279 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1928889
4.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 182.288981] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4297 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2028479
4.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 186.832991] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4315 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2080849
4.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 191.473005] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4333 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2098546
4.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 196.212985] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4351 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2180375
4.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 201.041005] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4369 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2199383
5.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 206.000987] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4387 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2198798
5.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 211.028998] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4405 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2301409
5.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 216.177038] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4423 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2385666
5.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 221.393039] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4441 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2418393
5.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 226.737084] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4459 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2448431
5.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 232.177040] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4477 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2503702
5.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 237.716978] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4495 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2580680
5.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 243.345059] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4513 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2671706
5.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 249.073005] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4531 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2700964
5.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 254.897017] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4549 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2747202
6.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 260.848989] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4567 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2752768
6.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 266.897024] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4585 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2854834
6.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 273.008977] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4603 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2958824
6.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 279.248996] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4621 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 3004275
6.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 285.585085] ov5640_mipi 2-003c: s_stream: 1
./test.sh: line 37: 4639 Killed gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 3086246
6.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Dec 4 2018 05:40:04. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Dec 4 2018 05:19:54)
vpulib: 1.1.1
firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 292.016996] ov5640_mipi 2-003c: s_stream: 1
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...

0 Kudos

2,634 Views
shengfazhang
Contributor II

Thanks very much ! @joanxie 

It's so tricky! I tested it again on i.MX8MM and also reproduced the issue. See the output log.

 

root@imx8mm:~# ./test.sh 
1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
test.mp4 size: 46086
1.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3576 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 101173
1.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3594 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 87454
1.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3612 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 175485
1.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3630 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 268636
1.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3648 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 288774
1.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3666 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 303819
1.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3684 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 394591
1.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3702 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 412621
1.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3720 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 507803
2.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3738 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 665968
2.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3756 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 700482
2.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3774 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 713270
2.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3794 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 744202
2.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3812 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 792110
2.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3830 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 872413
2.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3848 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 957017
2.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3866 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 971032
2.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3884 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 970808
2.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.4.4 build on Jun 21 2019 06:49:10. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 20 2019 10:35:13)
	vpulib: 1.1.1
	firmware: 1.1.1.65535
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  3902 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 0
VPU is in abnormal state!

 

And I also tested on i.MX8MP with the same test script, and reproduced the issue.

 

root@iMX8MP:~# ./test.sh 
1
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
test.mp4 size: 242527
1.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:   913 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 508375
1.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43691
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:   931 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 498434
1.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:   949 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 678535
1.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:   967 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 671658
1.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:   985 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 824128
1.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1003 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 914406
1.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1021 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 987999
1.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43691
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1039 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1054911
1.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1057 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1143781
2.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43691
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1075 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1135509
2.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1093 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1241541
2.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1111 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1394788
2.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43691
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1129 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1391043
2.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1147 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1481308
2.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1165 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1641483
2.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1183 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1692055
2.7
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1201 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1762495
2.8
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1219 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1828377
2.9
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1237 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1860741
3.0
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1255 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 1963780
3.1
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1273 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2070666
3.2
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1291 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2171771
3.3
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1309 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2298530
3.4
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1327 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2172307
3.5
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1345 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 2455142
3.6
Setting pipeline to PAUSED ...
====== VPUENC: 4.5.7 build on Jul 14 2021 01:13:17. ======
	wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 14 2021 00:21:06)
	vpulib: 1.1.1
	firmware: 1.1.1.43691
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
./test.sh: line 37:  1363 Killed                  gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=960, framerate=30/1 ! tee name=t ! queue ! vpuenc_h264 ! queue ! h264parse ! qtmux ! filesink location=$file t. ! queue ! waylandsink
test.mp4 size: 0
VPU is in abnormal state!

 

So is there possible that I test on your board or I purchase the raw NXP board?

Thanks!

0 Kudos

2,628 Views
joanxie
NXP TechSupport
NXP TechSupport

what board do you use? you own designed board or nxp imx8mm lpddr4 evk board?

0 Kudos

2,626 Views
shengfazhang
Contributor II

We bought from this company https://www.forlinx.com/ .

The product is https://www.forlinx.com/product/imx8mm-29.html

0 Kudos

2,611 Views
joanxie
NXP TechSupport
NXP TechSupport

this is the third party company board, and they use ddr4, your issue is related to the memory allocation, this isn't error in fact, you can try to larger the cam memory in the dtsi file:

/* global autoconfigured region for contiguous allocations */
		linux,cma {
			compatible = "shared-dma-pool";
			reusable;
			size = <0 0x28000000>;
			alloc-ranges = <0 0x40000000 0 0x60000000>;
			linux,cma-default;
		};

 and I really suggest that you can upgrade to the latest bsp, which fixed many issues already

0 Kudos

2,600 Views
shengfazhang
Contributor II

@joanxie Thank you very much.

How many memory to expand to avoid the VPU hang up? Could you give me some suggestion?

And do I just need to modify the file: arch/arm64/boot/dts/freescale/fsl-imx8mm.dtsi ?

And do I just change the size?

 

  79         /* global autoconfigured region for contiguous allocations */
  80         linux,cma {
  81             compatible = "shared-dma-pool";
  82             reusable;
  83             size = <0 0x28000000>;   // just change this variable, such as double the size: size = <0 0x50000000>;
  84             alloc-ranges = <0 0x40000000 0 0x60000000>;
  85             linux,cma-default;
  86         };

 

Could you give me an example?

And I should change the third company to upgrade the bsp version.

0 Kudos

2,588 Views
joanxie
NXP TechSupport
NXP TechSupport

I'm not sure for this, you can try it firstly, in the latest bsp, the dtsi doesn't define cma anymore, and how about remove "io-mode=4" in your command, any difference? I uploaded a new ov5640 mipi file, you can replace your old one, and try again, which can fix some memory allocation issue, but I don't know if your third party company software can use this or not, and I got the reply from expert team about the issue:

""alloc_contig_range ... busy" is just a warning for failed to get continuous physical free memory in first iterate in CMA range, not an error. If there's any cma_alloc failure kernel log, then it would cause problems."

0 Kudos