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