debug grabvidseq

This commit is contained in:
phyto 2019-07-02 07:17:11 +02:00
parent 0e6d2f8ad7
commit 18a5a5229f

View File

@ -161,8 +161,10 @@ for (i = 0; i < n_buffers; ++i) {
}
type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
xioctl(fd, VIDIOC_STREAMON, &type);
if (verbosity) fprintf(stderr,"pid %d grabbing...\n", getpid());
for (i = 0; i < nbre_capt; i++) {
do {
FD_ZERO(&fds);
@ -186,7 +188,7 @@ for (i = 0; i < nbre_capt; i++) {
xioctl(fd, VIDIOC_DQBUF, &buf);
sprintf(out_name, "%s/%05d.ppm", dest_dir, i);
if (verbosity) fprintf(stderr, "--> %s\n", out_name);
if (verbosity > 1) fprintf(stderr, "--> %s\n", out_name);
fout = fopen(out_name, "w");
if (!fout) {