Hi,
Use device as am5728 /dev/video1 and /dev/video2. The video source is the camera 1920*1080p30.
Scripts 1:
gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 ! 'video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)30/1' ! vpe num-input-buffers=6 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080,framerate=(fraction)30/1' ! ducatih264enc bitrate=4000 ! filesink location=test.h264
Scripts 2:
gst-launch-1.0 v4l2src device=/dev/video2 io-mode=4 ! 'video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)30/1' ! vpe num-input-buffers=6 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080,framerate=(fraction)20/1' ! ducatih264enc bitrate=4000 ! filesink location=test_2.h264
Running both scripts above saves the video as an H264 file.
Run the first script in the background and then run the second script will report the following error:
Run two scripts alone can save the video as h264 file, while running two scripts reported on the error, may I ask what causes the above error.
How can I solve this problem ?
BR
Andre

