5 videos at same time record

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

5 videos at same time record

701 Views
merttml13
Contributor II

Hello,

I want to record videos as using below code

gst-launch-1.0 v4l2src device=/dev/video0 ! queue2 ! \
imxipuvideotransform ! imxvpuenc_h264 bitrate=6500 ! avimux ! \
filesink location=/tmp/test0.avi \
v4l2src device=/dev/video1 ! queue2 ! \
imxipuvideotransform ! imxvpuenc_h264 bitrate=6500 ! avimux ! \
filesink location=/tmp/test1.avi \
v4l2src device=/dev/video2 ! queue2 ! \
imxipuvideotransform ! imxvpuenc_h264 bitrate=6500 ! avimux !\
filesink location=/tmp/test2.avi \
v4l2src device=/dev/video3 ! queue2 ! \
imxipuvideotransform ! imxvpuenc_h264 bitrate=6500 ! avimux !\
filesink location=/tmp/test3.avi \
v4l2src device=/dev/video4 ! queue2 ! \
imxipuvideotransform ! imxvpuenc_h264 bitrate=6500 ! avimux ! \
filesink location=/tmp/test4.avi \
v4l2src device=/dev/video5 ! queue2 ! \
imxipuvideotransform ! imxvpuenc_h264 bitrate=6500 ! avimux ! \
filesink location=/tmp/test5.avi

However this code works like that:

tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch5: video not present
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch4: odd field
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch3: even field
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch2: odd field
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch0: even field
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch1: even field
tw6869 0000:01:00.0: tw6869_dma_reset: DMA 5
tw6869 0000:01:00.0: tw6869_dma_reset: DMA 3
tw6869 0000:01:00.0: tw6869_dma_reset: DMA 0
tw6869 0000:01:00.0: tw6869_dma_reset: DMA 1
tw6869 0000:01:00.0: tw6869_dma_reset: DMA 2
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch5: video not present
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch3: even field
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch1: odd field
tw6869 0000:01:00.0: tw6869_vch_dma_wait: vch0: odd field

After when I want to watch my record with using this command:

gst-launch-1.0 playbin uri=file:///tmp/test0.avi

I just cannot. If I record only 1 video it works perfectly but when I try 5 videos at same time always get a even odd fail.

I am new so all help will be appreciated. Thank you.

Best Regards.

Mert TEMEL

Labels (1)
0 Kudos
3 Replies

572 Views
merttml13
Contributor II

Hello, By the way I am using TW6869. I forgot to specify this information.

0 Kudos

572 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Mert,

seems community gstreamer-imx plugins are used in the case, one can try with nxp

imx-gst1.0-plugins described in Linux Guide included in Linux L4.14.98_2.0.0 Documentation

and nxp linux from source.codeaurora.org/external/imx/linux-imx repository:

linux-imx - i.MX Linux kernel 

Also one can try to analyse internal buses usage and tweak IPU QoS configured with IOMUXC_GPR6:

i.MX6 MMDC Profiling: What is BUSY_COUNT? 

IMX6 Memory Bandwidth Usage | iMX6 Board Memory 

 

Best regards

0 Kudos

572 Views
merttml13
Contributor II

Hello Bio_TICFSL,

I read your reply and thank you for that. But I could not do that actually. I mean I cannot make progress. Could you please help me more ?

Best regards.

0 Kudos