[ERROR] Could not get allowed GstCaps of device
The above error means that the output from the .yaml file to kmssink is not displayed because there is no monitor.
Plug in your monitor and run it.
Or try modifying your .yaml to use appsink instead of kmssink.
[ERROR] no property "bitrate" in element "v4l2h264enc0"
With a few tweaks to the code, it should run.
In gst_wrapper.py,
Find the partial.
def get_output_str(output):
"""
Construct the gst output strings
Args:
output: output configuration
"""
image_enc = {'.jpg':' jpegenc ! '}
video_enc = {'.mov':' v4l2h264enc bitrate=1000000 ! h264parse ! qtmux ! ', \
'.mp4':' v4l2h264enc extra-controls="encode,video_bitrate=368640,video_bitrate_mode=1,h264_level=10,h264_profile=0;" ! ', \
'.mkv':' v4l2h264enc bitrate=1000000 ! h264parse ! matroskamux ! '}
v4l2h264enc bitrate=1000000 ! h264parse ! qtmux !
to
v4l2h264enc extra-controls=“encode,video_bitrate=368640,video_bitrate_mode=1,h264_level=10,h264_profile=0;” !
Fix it and run it