Announcement

Collapse
No announcement yet.

IEGD Driver

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • IEGD Driver

    Dear all,

    I am using intel's iegd driver. while running mplayer (Compiled with vaapi support) i am getting following error.

    [vo_vaapi] vaQuerySubpictureFormats(): unknown libva error
    Error opening/initializing the selected video_out (-vo) device.


    Any sugestion to resolve this issue..


    Thanks in advance.

    Regards,
    Raj.

  • #2
    Originally posted by Rajkumar View Post
    I am using intel's iegd driver. while running mplayer (Compiled with vaapi support) i am getting following error.

    [vo_vaapi] vaQuerySubpictureFormats(): unknown libva error
    Error opening/initializing the selected video_out (-vo) device.


    Any sugestion to resolve this issue..
    Use the official 10.2 driver or wait for the next 10.3-beta. Or, update MPlayer/VAAPI if you want to stick to the current 10.3-beta.

    Comment


    • #3
      iegd-beta

      Hi gbeauche,

      Thank you for your reply.

      I've tested with beta version only.With latest version mplayer displaying a green screen.(i've already tested).

      but "./mplayer-vaapi -vo x11 <filename>" it is playing fine.



      Regards,
      Raj

      Comment


      • #4
        Originally posted by Rajkumar View Post
        I've tested with beta version only.With latest version mplayer displaying a green screen.(i've already tested).
        What clip (codec, url to the clip)? How did you invoke mplayer?

        Comment


        • #5
          Confirm green screen with latest mplayer.
          In terminal I see:
          ...
          Intel(r) Embedded Graphics Driver 10.2 Build 1450
          ...
          VO: [vaapi] 480x272 => 480x272 Planar YV12
          Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)

          But actual HW acceleration not involved, cpu usage is very high.

          Comment


          • #6
            vainfo

            works correctly? Also you have to use

            mplayer -va vaapi -vo vaapi <URI>

            Comment


            • #7
              vainfo if fine:

              denis@ubuntu-fitpc2:~/Videos/4$ vainfo
              libva: libva version 0.31.0-sds4
              libva: va_getDriverName() returns 0
              libva: Trying to open /usr/lib/va/drivers/iegd_drv_video.so
              Intel(r) Embedded Graphics Driver 10.2 Build 1450
              libva: va_openDriver() returns 0
              vainfo: VA API version: 0.31
              vainfo: Driver version: Intel(r) Embedded Graphics Driver 10.2 Build 1450
              vainfo: Supported profile and entrypoints
              VAProfileMPEG2Main : VAEntrypointVLD
              VAProfileMPEG4Simple : VAEntrypointVLD
              VAProfileMPEG4AdvancedSimple : VAEntrypointVLD
              VAProfileH264Baseline : VAEntrypointVLD
              VAProfileH264Main : VAEntrypointVLD
              VAProfileH264High : VAEntrypointVLD
              VAProfileVC1Simple : VAEntrypointVLD
              VAProfileVC1Simple : VAEntrypointMoComp
              VAProfileVC1Main : VAEntrypointVLD
              VAProfileVC1Main : VAEntrypointMoComp
              VAProfileVC1Advanced : VAEntrypointVLD
              VAProfileVC1Advanced : VAEntrypointMoComp

              mplayer -va vaapi -vo vaapi <URI> like with previous versions of mplayer, with same video file gives green screen

              Comment


              • #8
                Originally posted by huso113 View Post
                mplayer -va vaapi -vo vaapi <URI> like with previous versions of mplayer, with same video file gives green screen
                Post the whole log, starting with the command line. You get a green screen because you are either using a non-accelerated codec or you are not invoking mplayer correctly. The former happens because "iegd" does not implement vaPutImage() yet to handle display of non-accelerated videos. The latter happens because you are not passing -va vaapi.

                Comment


                • #9
                  Dear All,
                  Here I am poviding the entire log.

                  #1
                  [root@localhost mplayer-vaapi]# uname -a
                  Linux localhost 2.6.31.rc6-67.1.moblin2-ivi #1 SMP PREEMPT Tue Aug 18 20:52:51 UTC 2009 i686 i686 i386 GNU/Linux
                  ================================================== ==============

                  #2
                  [root@localhost mplayer-vaapi]# vainfo
                  libva: VA_DRIGetClientDriverName: 10.3.1495 iegd (screen 0)
                  driver_name: iegd
                  libva: va_getDriverName() returns 0
                  libva: Trying to open /usr/lib/xorg/modules/drivers/iegd_drv_video.so
                  Intel(r) Embedded Graphics Driver 10.3 Build 1495
                  libva: va_openDriver() returns 0
                  vainfo: VA API version: 0.29
                  vainfo: Driver version: Intel(r) Embedded Graphics Driver 10.3 Build 1495
                  ================================================== ============
                  #3
                  [root@localhost mplayer-vaapi]# ./mplayer -va vaapi -vo vaapi /home/Videos/FlightSimX_720p60_51_15Mbps.wmv
                  MPlayer SVN-r29968-4.3 (C) 2000-2009 MPlayer Team

                  Playing /home/Videos/FlightSimX_720p60_51_15Mbps.wmv.
                  ASF file format detected.
                  [asfheader] Audio stream found, -aid 1
                  [asfheader] Video stream found, -vid 2
                  VIDEO: [WVC1] 1280x720 24bpp 1000.000 fps 15000.0 kbps (1831.1 kbyte/s)
                  libva: VA_DRIGetClientDriverName: 10.3.1495 iegd (screen 0)
                  driver_name: iegd
                  libva: va_getDriverName() returns 0
                  libva: Trying to open /usr/lib/xorg/modules/drivers/iegd_drv_video.so
                  Intel(r) Embedded Graphics Driver 10.3 Build 1495
                  libva: va_openDriver() returns 0
                  major : 0, minor : 29
                  va_subpic_formats : 0
                  status value is : ffffffff
                  [vo_vaapi] vaQuerySubpictureFormats(): unknown libva error
                  Error opening/initializing the selected video_out (-vo) device.
                  ================================================== ========================
                  Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
                  AUDIO: 48000 Hz, 6 ch, floatle, 384.0 kbit/4.17% (ratio: 48000->1152000)
                  Selected audio codec: [ffwmapro] afm: ffmpeg (WMA Pro audio (FFmpeg))
                  ================================================== ========================
                  [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
                  DVB card number must be between 1 and 4
                  AO: [null] 48000Hz 6ch floatle (4 bytes per sample)
                  Video: no video
                  Starting playback...
                  A: 10.4 (10.4) of 96.9 (01:36.9) 7.1%
                  ================================================== ========

                  Comment


                  • #10
                    Originally posted by Rajkumar View Post
                    ...
                    vainfo: VA API version: 0.29
                    ...
                    [vo_vaapi] vaQuerySubpictureFormats(): unknown libva error
                    Error opening/initializing the selected video_out (-vo) device.
                    Install libva package from http://www.splitted-desktop.com/~gbe...bva/pkgs/i386/

                    I have encountered libva errors to with 0.29 version that exists in IEGD driver.

                    Comment


                    • #11
                      Hi Gwenole,

                      Here is the log of green screen video without HW acceleration that worked fine with previous version of mplayer-vaapi with same invocation and same IEGD driver:

                      Code:
                      denis@ubuntu-fitpc2:~/Downloads/mplayer-vaapi-20100105.i686$ ./mplayer -va vaapi -vo vaapi /home/denis/Videos/2/vid02.wmv 
                      MPlayer SVN-r30226-4.2.4 (C) 2000-2009 MPlayer Team
                      
                      Playing /home/denis/Videos/2/vid02.wmv.
                      ASF file format detected.
                      [asfheader] Audio stream found, -aid 1
                      [asfheader] Video stream found, -vid 2
                      VIDEO:  [WMV3]  1248x700  24bpp  1000.000 fps  2500.0 kbps (305.2 kbyte/s)
                      libva: libva version 0.31.0-sds3
                      libva: va_getDriverName() returns 0
                      libva: Trying to open /usr/lib/va/drivers/iegd_drv_video.so
                      Intel(r) Embedded Graphics Driver 10.2 Build 1450
                      libva: va_openDriver() returns 0
                      ==========================================================================
                      Opening video decoder: [dmo] DMO video codecs
                      DMO dll supports VO Optimizations 0 1
                      DMO dll might use previous sample when requested
                      Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32 
                      Decoder is capable of YUV output (flags 0x1b)
                      Movie-Aspect is undefined - no prescaling applied.
                      VO: [vaapi] 1248x700 => 1248x700 Planar YV12 
                      Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
                      ==========================================================================
                      ==========================================================================
                      Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
                      AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16005->176400)
                      Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
                      ==========================================================================
                      AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
                      Starting playback...
                      A:   5.9 V:   4.7 A-V:  1.198 ct:  0.038  52/ 52 129% 26%  1.6% 50 0 
                      
                                 ************************************************
                                 **** Your system is too SLOW to play this!  ****
                                 ************************************************
                      
                      Possible reasons, problems, workarounds:
                      - Most common: broken/buggy _audio_ driver
                        - Try -ao sdl or use the OSS emulation of ALSA.
                        - Experiment with different values for -autosync, 30 is a good start.
                      - Slow video output
                        - Try a different -vo driver (-vo help for a list) or try -framedrop!
                      - Slow CPU
                        - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
                          e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
                      - Broken file
                        - Try various combinations of -nobps -ni -forceidx -mc 0.
                      - Slow media (NFS/SMB mounts, DVD, VCD etc)
                        - Try -cache 8192.
                      - Are you using -cache to play a non-interleaved AVI file?
                        - Try -nocache.
                      Read DOCS/HTML/en/video.html for tuning/speedup tips.
                      If none of this helps you, read DOCS/HTML/en/bugreports.html.
                      
                      A:   9.7 V:   7.0 A-V:  2.696 ct:  0.044 121/121 132% 26%  1.4% 118 0 
                      Exiting... (Quit)
                      Another thing I have found - on H264 videos last mplayer-vaapi gives normal picture, no green screen, HW acceleration works, but in log there are some warnings that do not present in old logs:
                      Code:
                      denis@ubuntu-fitpc2:~/Downloads/mplayer-vaapi-20100105.i686$ ./mplayer -va vaapi -vo vaapi /home/denis/Videos/NIN.flv 
                      MPlayer SVN-r30226-4.2.4 (C) 2000-2009 MPlayer Team
                      
                      Playing /home/denis/Videos/NIN.flv.
                      libavformat file format detected.
                      [h264 @ 0x94b8430]get_buffer() failed (-1 0 0 (nil))
                      [h264 @ 0x94b8430]decode_slice_header error
                      [h264 @ 0x94b8430]no frame!
                      [flv @ 0x94b71f0]Estimating duration from bitrate, this may be inaccurate
                      [lavf] Video stream found, -vid 0
                      [lavf] Audio stream found, -aid 1
                      VIDEO:  [H264]  640x480  0bpp  29.970 fps  187.6 kbps (22.9 kbyte/s)
                      Clip info:
                       duration: 427
                       starttime: 0
                       totalduration: 427
                       width: 640
                       height: 480
                       videodatarate: 183
                       audiodatarate: 64
                       totaldatarate: 254
                       framerate: 30
                       bytelength: 13559926
                       canseekontime: true
                       sourcedata: BD4B34AA4MM
                       purl: 
                       pmsg: 
                      libva: libva version 0.31.0-sds3
                      libva: va_getDriverName() returns 0
                      libva: Trying to open /usr/lib/va/drivers/iegd_drv_video.so
                      Intel(r) Embedded Graphics Driver 10.2 Build 1450
                      libva: va_openDriver() returns 0
                      ==========================================================================
                      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
                      [VD_FFMPEG] VA API accelerated codec.
                      Unsupported PixelFormat -1
                      Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
                      ==========================================================================
                      ==========================================================================
                      Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
                      FAAD: compressed input bitrate missing, assuming 128kbit/s!
                      AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
                      Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
                      ==========================================================================
                      AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
                      Starting playback...
                      [VD_FFMPEG] Trying pixfmt=0.
                      Unsupported PixelFormat -1
                      Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
                      VO: [vaapi] 640x480 => 640x480 H.264 VA API Acceleration 
                      [VD_FFMPEG] XVMC-accelerated MPEG-2.
                      A:  18.3 V:  18.3 A-V:  0.049 ct:  0.059   0/  0 13% 12%  6.6% 21 0 
                      Exiting... (Quit)

                      Comment


                      • #12
                        I've installed libva-0.0.31 (latest version) with that I am getting following error,
                        [root@localhost test]# ./vainfo
                        libva: libva version 0.31.0
                        libva: va_getDriverName() returns 0
                        libva: Trying to open /usr/lib/xorg/modules/drivers/iegd_drv_video.so
                        libva error: /usr/lib/xorg/modules/drivers/iegd_drv_video.so has no function __vaDriverInit_0_31
                        libva: va_openDriver() returns -1
                        vaInitialize failed with error code -1 (unknown libva error),exit

                        Comment


                        • #13
                          iegd

                          Originally posted by huso113 View Post
                          Install libva package from http://www.splitted-desktop.com/~gbe...bva/pkgs/i386/

                          I have encountered libva errors to with 0.29 version that exists in IEGD driver.

                          I've no idea abt iegd wether it will support libva-0.31 or not

                          is it possible to configure iegd to support libva-0.31 ??
                          Last edited by Rajkumar; 01-08-2010, 04:46 AM.

                          Comment


                          • #14
                            Originally posted by Rajkumar View Post
                            [root@localhost mplayer-vaapi]# ./mplayer -va vaapi -vo vaapi /home/Videos/FlightSimX_720p60_51_15Mbps.wmv
                            MPlayer SVN-r29968-4.3 (C) 2000-2009 MPlayer Team

                            Playing /home/Videos/FlightSimX_720p60_51_15Mbps.wmv.
                            ASF file format detected.
                            [asfheader] Audio stream found, -aid 1
                            [asfheader] Video stream found, -vid 2
                            VIDEO: [WVC1] 1280x720 24bpp 1000.000 fps 15000.0 kbps (1831.1 kbyte/s)
                            libva: VA_DRIGetClientDriverName: 10.3.1495 iegd (screen 0)
                            driver_name: iegd
                            libva: va_getDriverName() returns 0
                            libva: Trying to open /usr/lib/xorg/modules/drivers/iegd_drv_video.so
                            Intel(r) Embedded Graphics Driver 10.3 Build 1495
                            libva: va_openDriver() returns 0
                            major : 0, minor : 29
                            va_subpic_formats : 0
                            status value is : ffffffff
                            [vo_vaapi] vaQuerySubpictureFormats(): unknown libva error
                            Error opening/initializing the selected video_out (-vo) device.
                            - I am surprised you could build current MPlayer/VAAPI against an old libVA. Please use libVA 0.31 as pointed out.

                            - The FlightSimulator clip will show a few green frames at the begnining with the IEGD driver. It works with the "psb" driver though. I think it even worked in previous versions of IEGD (10.1 maybe), I will have to check if something has not regressed there.

                            - The vaQuerySubpictureFormats() error is a bug in the current 10.3-beta driver, it will be fixed for the next one. However, I added a workaround for it in the latest MPlayer/VAAPI sources.

                            Comment


                            • #15
                              Originally posted by huso113 View Post
                              VO: [vaapi] 1248x700 => 1248x700 Planar YV12
                              Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
                              This is strange. It seems MPlayer has not enabled HW acceleration on this clip and thus fallback'ed to SW decoding and plain rendering through vaPutImage(), which is currently not supported by the IEGD driver so you will see a green screen. You will probably get more details with mplayer -vo vaapi -va vaapi -msglevel vo=9 /path/to/video

                              For the H.264 clip,

                              Playing /home/denis/Videos/NIN.flv.
                              libavformat file format detected.
                              [h264 @ 0x94b8430]get_buffer() failed (-1 0 0 (nil))
                              [h264 @ 0x94b8430]decode_slice_header error
                              [h264 @ 0x94b8430]no frame!
                              Does this happen only with this specific clip or others are affected too?

                              In both cases, I will try to check it out if you upload them to our FTP server.

                              Comment

                              Working...
                              X