Announcement

Collapse
No announcement yet.

VaAPI with Intel HD Graphics Clarkdale i3 proc not working with mplayer

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

  • #11
    So now the result is:

    libdrm installed with kano script
    libva as explained above and now I have the same vainfo

    Code:
    xabix@xabix-desktop:/usr/local/src/libva-0.31.1$ vainfo 
    libva: libva version 0.31.1
    libva: va_getDriverName() returns 0
    libva: Trying to open /usr/lib/dri/i965_drv_video.so
    libva: va_openDriver() returns 0
    vainfo: VA API version: 0.31
    vainfo: Driver version: i965 Driver 0.1
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            :	VAEntrypointVLD
          VAProfileMPEG2Main              :	VAEntrypointVLD
          VAProfileH264Baseline           :	VAEntrypointVLD
          VAProfileH264Main               :	VAEntrypointVLD
          VAProfileH264High               :	VAEntrypointVLD
    great now mplayer doesn't crash and I get a black screen because I am connected through VNC. I will have to test at home but seems a nice step.

    Thanks Rabauke

    Comment


    • #12
      SOLVED VaAPI with Intel HD Graphics Clarkdale i3 proc not working with mplayer

      so it's partially working but maybe it's normal.

      With this video, I only have the picture (CPU very low 15% and nice)
      xabix@xabix-desktop:/usr/local/src/mplayer-vaapi-20100713/mplayer-vaapi$ ./mplayer -vo vaapi -va vaapi /media/RAID/Video/Coalgirls-QTS_Kanon_OP_Blu-ray_Box_Eizou_Tokuten_1920x1080_H264-DXVA_FLAC_DTS-HD_MA.mkv
      MPlayer SVN-r31722-4.4.3 (C) 2000-2010 MPlayer Team
      mplayer: could not connect to socket
      mplayer: No such file or directory
      Failed to open LIRC support. You will not be able to use your remote control.

      Playing /media/RAID/Video/Coalgirls-QTS_Kanon_OP_Blu-ray_Box_Eizou_Tokuten_1920x1080_H264-DXVA_FLAC_DTS-HD_MA.mkv.
      libavformat file format detected.
      [matroska @ 0x24297b0] Estimating duration from bitrate, this may be inaccurate
      [lavf] stream 0: video (h264), -vid 0, [QTS] Kanon Blu-ray BOX Eizou Tokuten - NCOP
      [lavf] stream 1: audio (dca), -aid 0, -alang jpn, Japanese Audio DTS-HDMA 5.1ch
      [lavf] stream 2: audio (flac), -aid 1, -alang jpn, Japanese Audio 5.1ch FLAC
      [lavf] stream 3: subtitle (unknown), -sid 0, -slang eng, English
      VIDEO: [H264] 1920x1080 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
      Clip info:
      title: Kanon OP
      X11 error: BadValue (integer parameter out of range for operation)
      libva: libva version 0.31.1
      libva: va_getDriverName() returns 0
      libva: Trying to open /usr/lib/dri/i965_drv_video.so
      libva: va_openDriver() returns 0
      ================================================== ========================
      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
      [VD_FFMPEG] VA API accelerated codec.
      Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
      ================================================== ========================
      ================================================== ========================
      Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
      AUDIO: 48000 Hz, 6 ch, s16le, 0.0 kbit/0.00% (ratio: 0->576000)
      Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
      ================================================== ========================
      [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
      AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
      Starting playback...
      Unsupported PixelFormat 61
      [VD_FFMPEG] Trying pixfmt=1.
      Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
      VO: [vaapi] 1920x1080 => 1920x1080 H.264 VA-API Acceleration
      [VD_FFMPEG] XVMC-accelerated MPEG-2.
      A: 25.1 V: 25.1 A-V: -0.005 ct: 0.090 0/ 0 22% 5% 1.2% 3 0
      With this one, I have the sound but a black screen:
      abix@xabix-desktop:/usr/local/src/mplayer-vaapi-20100713/mplayer-vaapi$ ./mplayer -vo vaapi -va vaapi /media/RAID/Video/Memento\ -\ En\ st\ Fr.avi
      MPlayer SVN-r31722-4.4.3 (C) 2000-2010 MPlayer Team
      mplayer: could not connect to socket
      mplayer: No such file or directory
      Failed to open LIRC support. You will not be able to use your remote control.

      Playing /media/RAID/Video/Memento - En st Fr.avi.
      AVI file format detected.
      [aviheader] Video stream found, -vid 0
      [aviheader] Audio stream found, -aid 1
      VIDEO: [DIV3] 528x272 24bpp 25.000 fps 744.1 kbps (90.8 kbyte/s)
      X11 error: BadValue (integer parameter out of range for operation)
      libva: libva version 0.31.1
      libva: va_getDriverName() returns 0
      libva: Trying to open /usr/lib/dri/i965_drv_video.so
      libva: va_openDriver() returns 0
      ================================================== ========================
      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
      [VD_FFMPEG] VA API accelerated codec.
      [VD_FFMPEG] Trying pixfmt=0.
      Movie-Aspect is undefined - no prescaling applied.
      VO: [vaapi] 528x272 => 528x272 Planar YV12
      Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MSMPEG-4 v3))
      ================================================== ========================
      ================================================== ========================
      Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
      AUDIO: 48000 Hz, 2 ch, s16le, 96.0 kbit/6.25% (ratio: 12000->192000)
      Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
      ================================================== ========================
      [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
      AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
      Starting playback...
      A: 3.3 V: 3.3 A-V: 0.000 ct: 0.000 83/ 83 1% 0% 0.5% 0 0
      Now I need to make sure I understand why if there is any reason. At least mplayer doesn't crash anymore

      I ll mark the thread as solved but if someone can provide more explanations on why i don't have both on the same time it will be great.
      Tomorrow I ll try maybe the vlc see if it makes any difference.

      Is there a way to access mplayer menu once is launched or everything needs to be done through the cmd line?

      Cheers
      XabiX

      Comment


      • #13
        Why would somebody use this way to compile/install? That's the worst idea possible when there are scripts to do that in a correct way.

        Comment


        • #14
          Originally posted by Kano View Post
          Why would somebody use this way to compile/install? That's the worst idea possible when there are scripts to do that in a correct way.
          because unfortunately all the new HW needs some additional tweaking in order to work from an official distrib. So we have to add special ppa and compile some packages in order to make things working.
          If scripts are working too that's even better.

          For example, today I can't run interleave mode 1080i under linux with my intel drivers. It works under windows but not not under linux. so the image doesn't fit in my TV :-s

          https://bugs.freedesktop.org/show_bug.cgi?id=11220
          https://bugs.launchpad.net/ubuntu/+s...el/+bug/568533

          Comment


          • #15
            The reason you get a black screen is that you have a divx/xvid video. vaapi doesn't handle this. mplayer should display the video if you choose -vo xv instead.

            Comment


            • #16
              vaapi handles afaik only mpeg2,4 for acceleration. pls correct me, if I'm wrong.

              1 min edit FAIL

              Comment


              • #17
                This what I was thinking from the output of the vainfo.

                When I played the H264 file the sound was not working is there also some limitations on the audio codecs?

                Is there a list of what is supported with vaapi?

                Thanks

                Comment


                • #18
                  It would be good to think before writeing. vaapi has nothing to do with audio.

                  Comment


                  • #19
                    SMplayer is a good frontend for mplayer. I use it with my new mplayer-vaapi executable.
                    What is strange is that selecting the vo to vaapi with the same mkv file "Coalgirls-QTS_Kanon_OP_Blu-ray_Box_Eizou_Tokuten_1920x1080_H264-DXVA_FLAC_DTS-HD_MA.mkv" I don't have the image but the sound is working.
                    I think it's just a matter of finding the right setup.

                    I ll try vlc-vaapi which should be much easier now that I have the under line (libdrm,libva correclty installed).

                    Comment


                    • #20
                      Originally posted by Kano View Post
                      All scripts as root, vlc would also work well. To install:



                      Run that script first as root and then as user.
                      Hi Kano,

                      I tried to run your script to install vlc but it failed when running as user.
                      What's the best way to remove what was done by the script?
                      Is there any clean procedure? or it's just about removing "user's home"/dist directory?

                      FYI the log:
                      http://xabix.free.fr/uploads/vlc-vaapi-local.log

                      Ideally the script should come with a little how to (or help page) and if possible with an uninstall procedure.

                      I know that you are busy working on new things so I understand that the script is just an install way over a fresh install to get things installed. Therefore I assume they are not aimed for all users (or newbies or whatever you want to call them).

                      Thanks
                      XabiX

                      Comment

                      Working...
                      X