Thank you for sharing your experience here. it is always helpful for me.
I’m trying to make a panoramic camera(video stitching) using Jetson board with multiple Basler USB3 cameras.
I’m grabbing images from camera using Pylon API from Basler and for image processing I’m using opencv.
since the realtime encoding is one of my requirement. I’m trying to use gstreamer for writing module below(1.).
(2.) is the log when I open the VideoWriter.
However, sometimes the result video is corrupted. it is not playable or played with green screen.
I’ve tried to change writer settings, but the problem is still happened.
Do I have any problem with code below?
or is it related with the image size(3.)?
gstr = "appsrc ! videoconvert ! omxh264enc ! matroskamux !\ filesink location=stitching_basler_gstreamer.avi "; fourcc = 0; videoWriter.open(gstr, cv::CAP_GSTREAMER, fourcc, \ (double)fps, dst_roi.size(), true);
- writing thread:
Framerate set to : 20 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 H264: Profile = 66, Level = 40
- result video information
dimensions: 2092*1234 codec: H.264(constrained baseline profile framerate: 20 bitrate: n/a