This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3517 V4L2 play video error

i used Mplayer to play video with v4l2

the command is

mplayer -vo v4l2:device=/dev/video1  /home/root/test.mp4

the error code is

Error opening/initializing the selected video_out (-vo) device.


the mplayer source code is


  /* check for device hardware MPEG decoding capability */
  ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG;
  ctrls.count = 0;
  ctrls.controls = NULL;

  if (ioctl (v4l2_fd, VIDIOC_G_EXT_CTRLS, &ctrls) < 0)
  {
    free (device);
    mp_msg (MSGT_OPEN, MSGL_FATAL, "%s %s\n", V4L2_VO_HDR, strerror (errno));
    return -1;
  }

is v4l2 driver cannot support it???

  • Can you try using 'mplayer -vo help' to get a list of valid video output devices?

  • mplayer -vo help

    MPlayer 1.1-4.5.3 (C) 2000-2012 MPlayer Team
    Available video output drivers:
            xv      X11/Xv
            x11     X11 ( XImage/Shm )
            xover   General X11 driver for overlay capable video output drivers
            fbdev   Framebuffer Device
            fbdev2  Framebuffer Device
            v4l2    V4L2 MPEG Video Decoder Output
            null    Null video output
            mpegpes MPEG-PES file
            yuv4mpeg        yuv4mpeg output for mjpegtools
            png     PNG file
            jpeg    JPEG file

    i used fbdev2 to play video is ok

  • QiPing OuYang said:
    i used fbdev2 to play video is ok

    You mean you are able to play the video?

  • mplayer -vo fbdev2 test.mp4 is ok

    mplayer -vo v4l2:device=/dev/video1 test.mp4 is error

  • Hi,

    mplayer -vo v4l2:device=/dev/video1  /home/root/test.mp4

    the error code is

    Error opening/initializing the selected video_out (-vo) device.

    Can you post the output of 'mplayer -vo help' .

    If v4l2 is present in the output you can use it, or else it will definitely throw an error.

    Option -vo <drv> 'select video output driver'--> If your device has a support for v4l2 it

    will definitely list in when you hit 'mplayer -vo help'.


    Regards,

    --Prabhakar Lad