Capturing video GStremer
Posted: Thu Dec 23, 2021 12:16 pm
Is there a way to capture (video0 & video2) with GStreamer in one pipeline?
This method displayed the image of only camera 2, it was expected that both images will be displayed together on the left and right, respectively.
This method displayed the image of only camera 2, it was expected that both images will be displayed together on the left and right, respectively.
Code: Select all
" gst-launch-1.0 max-buffers=1 drop=true sync=false"
" v4l2src device=/dev/video"+ std::to_string(device_1) + " !"
" video/x-raw,"
" width=(int)" + std::to_string(capture_width) + ","
" height=(int)" + std::to_string(capture_height) + ","
" format=GRAY8,"
" framerate=(fraction)" + std::to_string(framerate) +"/1 !"
" appsink"
" v4l2src device=/dev/video"+ std::to_string(device_2) + " !"
" video/x-raw,"
" width=(int)" + std::to_string(capture_width) + ","
" height=(int)" + std::to_string(capture_height) + ","
" format=GRAY8,"
" framerate=(fraction)" + std::to_string(framerate) +"/1 !"
" appsink";