Fwd: Vivi - Capturing HD video

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to test v4l application with vivi. I tried several
resolution, pixelformat, different inputs,
but on trying to display the captured file, it always has a sync ( the
bars are moving in the horizontal axis).
I tried to change resolution, pixelformat, in both capture application
or player , but nothing helps.
This is what I did:
I use the v4l2 API example AS-IS, with minor modification in the
--force, so that I choose hd input (number 3), and 1920x1080
resolution, V4L2_PIX_FMT_YUV420 , progressive.

      if (force_format) {
                input = 3;
                if (-1==xioctl(fd,VIDIOC_S_INPUT,&input))
                {
                 errno_exit("VIDIOC_S_INPUT");
                }
                fmt.fmt.pix.width       = 1920;
                fmt.fmt.pix.height      = 1080;
                fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; // <<-
tried also V4L2_PIX_FMT_YUV422P
                fmt.fmt.pix.field       = V4L2_FIELD_NONE; // <-
trying to capture progressive

                if (-1 == xioctl(fd, VIDIOC_S_FMT, &fmt))
                        errno_exit("VIDIOC_S_FMT");

        } else {

I run the application with:
./video_test -f -o -c 10  >
cap_vivi_1920_1080_yuv420p_progressive_hd_input.yuv (for
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420 trial )
And
./video_test -f -o -c 10  >
cap_vivi_1920_1080_yuv422p_progressive_hd_input.yuv (for
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUV422P trial )

I've tried to play them with:
ffplay -f rawvideo -pixel_format yuv420p -video_size 1920x1080 -i
cap_vivi_1920_1080_yuv420p_progressive_hd_input.yuv (for
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420 trial )
And
ffplay -f rawvideo -pixel_format yuv422p -video_size 1920x1080 -i
cap_vivi_1920_1080_yuv422p_progressive_hd_input.yuv (for
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUV422P trial )


The video files are here:
https://drive.google.com/folderview?id=0B22GsWueReZTUS1tSHBraTAyZ00&usp=sharing

I probably am doing something wrong.
Is there any idea what's wrong in my configurations or how I can debug
it better ?

Thank you very much,
Ran
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux