I checked the links you have posted, sadly most of them don't help to someone in my position as I am able to capture byte stream but not video stream. I can get bytes put into memory and see them with simple viewers such as 'cat'. The bytes and synchronization are not perfect but that'll have to do until I figure out how to get a "video data" out of those bytes.
gst-launch-1.0 imxv4l2src ! fakesink
[INFO] Product Info: i.MX6Q/D/S
display(/dev/fb0) resolution is (1024x768).
v4l2_debug: in mxc_v4l_open, file = -1466735680
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0
In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
v4l2_debug: in mxc_v4l_open, file = -1466734912
v4l2_debug: in mxc_v4l_open, dev = -1468565504
v4l2_debug: in mxc_v4l_open, cam = -1464659968
v4l2_debug: in mxc_v4l_open, debug1 = 0
v4l2_debug: in mxc_v4l_open, debug2 = -1464657608
v4l2_debug: in mxc_v4l_open, debug3 = -1466216832
v4l2_debug: in mxc_v4l_open, debug21 = 0
v4l2_debug: in mxc_v4l_open, debug22 = 0
In MVC: mxc_v4l_open
device name is Mxc Camera
cam->sensor == NULL
ERROR: v4l2 capture: slave not found!
v4l2_debug: in mxc_v4l_open, file = -1466110400
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0
In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c5651
MT6415CA: ioctl_g_chip_indent()
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
v4l2_debug: in mxc_v4l_open, file = -1466113856
v4l2_debug: in mxc_v4l_open, dev = -1468565504
v4l2_debug: in mxc_v4l_open, cam = -1464659968
v4l2_debug: in mxc_v4l_open, debug1 = 0
v4l2_debug: in mxc_v4l_open, debug2 = -1464657608
v4l2_debug: in mxc_v4l_open, debug3 = -1466216832
v4l2_debug: in mxc_v4l_open, debug21 = 0
v4l2_debug: in mxc_v4l_open, debug22 = 0
In MVC: mxc_v4l_open
device name is Mxc Camera
cam->sensor == NULL
ERROR: v4l2 capture: slave not found!
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.
v4l2_debug: in mxc_v4l_open, file = -1466084032
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0
In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c5651
MT6415CA: ioctl_g_chip_indent()
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
v4l2_debug: in mxc_v4l_open, file = -1466082112
v4l2_debug: in mxc_v4l_open, dev = -1468565504
v4l2_debug: in mxc_v4l_open, cam = -1464659968
v4l2_debug: in mxc_v4l_open, debug1 = 0
v4l2_debug: in mxc_v4l_open, debug2 = -1464657608
v4l2_debug: in mxc_v4l_open, debug3 = -1466216832
v4l2_debug: in mxc_v4l_open, debug21 = 0
v4l2_debug: in mxc_v4l_open, debug22 = 0
In MVC: mxc_v4l_open
device name is Mxc Camera
cam->sensor == NULL
ERROR: v4l2 capture: slave not found!
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.
====== IMXV4L2SRC: 4.0.9 build on Jul 11 2016 15:47:15. ======
v4l2_debug: in mxc_v4l_open, file = -1466765120
Setting pipeline to PAUSED ...
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0
In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c5651
MT6415CA: ioctl_g_chip_indent()
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
root@imx6qpsabresd:~#
I still can't figure out why it closes the communication and tries to reopen it with wrong file pointer. Any help is appreciated.
EDIT: I forgot to add what those "debug1 2 3" variables are. They are added to check pointers to v4l2_int_device variables.
struct v4l2_int_device *debug1 = cam->sensor;
pr_info("v4l2_debug: in mxc_v4l_open, debug1 = %d\n", debug1);
struct v4l2_int_device **debug2 = cam->all_sensors;
pr_info("v4l2_debug: in mxc_v4l_open, debug2 = %d\n", debug2);
struct v4l2_int_device *debug3 = cam->self;
pr_info("v4l2_debug: in mxc_v4l_open, debug3 = %d\n", debug3);
pr_info("v4l2_debug: in mxc_v4l_open, debug21 = %d\n", *debug2);
pr_info("v4l2_debug: in mxc_v4l_open, debug22 = %d\n", *(debug2 + 1));