added code to handle camera index for v4l2