You are not logged in.

#1 2014-12-21 13:53:28

jsntyyl
Member
Registered: 2014-12-20
Posts: 2

SMplayer & VLC cant play video with vaapi

My GPU is Intel HD 3000, so I installed the packages libva-driver-intel smplayer mplayer-vaapi vlc, the vainfo is:

libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.36 (libva 1.4.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 1.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

I choose the vaapi as the video output driver for both smplayer & vlc, but both of them cant play video with hw accerleration, the smplayer can play video but cpu usage is high, the log is

/usr/bin/mplayer -noquiet -nofs -nomouseinput -sub-fuzziness 1 -identify -slave -vo vaapi -ao alsa -nokeepaspect -nodr -double -input nodefault-bindings:conf=/dev/null -wid 37748771 -monitorpixelaspect 1 -noass -font 文泉驿微米黑 -subfont-autoscale 1 -subfont-text-scale 5 -subcp enca:zh:CP936 -subpos 100 -volume 50 -cache 2048 -osdlevel 0 -vf-add expand=osd=1 -vf-add screenshot -noslices -channels 2 -af scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0 -softvol -softvol-max 110 /mnt/video/TV_Series/手机/[手机].Cell.Phone.E01.720p.HDTV.x264-NGB.mkv

MPlayer SVN-r36265-4.9.2 (C) 2000-2013 MPlayer Team
Cannot test OS support for SSE, disabling to be safe.
203 audio & 423 video codecs
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.
Terminal type `unknown' is not defined.

Playing /mnt/video/TV_Series/手机/[手机].Cell.Phone.E01.720p.HDTV.x264-NGB.mkv.

Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill:  0.00% (0 bytes)   
Cache fill: 18.75% (393216 bytes)   

libavformat version 55.12.102 (internal)
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (h264), -vid 0
ID_AUDIO_ID=0
[lavf] stream 1: audio (ac3), -aid 0
VIDEO:  [H264]  1280x720  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 creation_time: 2010-05-10 20:00:25
ID_CLIP_INFO_NAME0=creation_time
ID_CLIP_INFO_VALUE0=2010-05-10 20:00:25
ID_CLIP_INFO_N=1
Load subtitles in /mnt/video/TV_Series/手机/
ID_FILENAME=/mnt/video/TV_Series/手机/[手机].Cell.Phone.E01.720p.HDTV.x264-NGB.mkv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=2493.86
ID_SEEKABLE=1
ID_CHAPTERS=0
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
Opening video filter: [screenshot]
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.18.102 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 448.0 kbit/14.58% (ratio: 56000->384000)
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffac3
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xb75c9240]using unscaled yuv420p -> rgb24 special converter
VO: [vaapi] 1280x720 => 1280x720 Planar YV12 
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1280x720 => 1280x720 Planar YV12 
Full DR not possible, trying SLICES instead!
[VD_FFMPEG] DRI failure.

ID_VIDEO_TRACK=0

ID_AUDIO_TRACK=0

and vlc will crash(Segmentation fault (core dumped)) when stop playing the video, the console output is

[jsntyyl@localhost 2 Broke Girls]$ vlc -v 2.Broke.Girls.S04E01.720p.HDTV.X264-DIMENSION.mkv 
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libdv1394_plugin.so' (libavc1394.so.0: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_gnomevfs_plugin.so' (libgnomevfs-2.so.0: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libdc1394_plugin.so' (libdc1394.so.22: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/demux/libgme_plugin.so' (libgme.so.0: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
[0x9fbb8f8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xac802d00] mkv demux warning: MKV/Ebml Parser: m_el[mi_level] == NULL

[0xac802d00] mkv demux warning: MKV/Ebml Parser: Up cannot escape itself
[0xaca00508] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
No accelerated IMDCT transform found
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
[0xac86e6c0] avcodec decoder: Using VA API version 0.36 for hardware decoding.
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
[0xac86e6c0] avcodec decoder: Using VA API version 0.36 for hardware decoding.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0xb200ff18] main vout display error: Failed to resize display
[0xa041278] pulse audio output warning: starting late (-31910 us)
[ass] Neither PlayResX nor PlayResY defined. Assuming 384x288
[0xb07008d0] access_http access error: error: HTTP/1.1 403 Forbidden
[0xb07008d0] access_http access error: error: HTTP/1.1 403 Forbidden
[0xb07008d0] access_mms access error: error: HTTP/1.1 400 Invalid Request
[0xb07004d8] main demux meta error: no suitable access module for `http://services.tvrage.com/feeds/search.php?show=2 Broke Girls'
[ass] fontconfig: cannot find font '方正黑体_GBK', falling back to 'DejaVu Sans Bold'
[ass] fontconfig: cannot find font '方正综艺_GBK', falling back to 'DejaVu Sans Bold'
[ass] fontconfig: cannot find font '方正综艺_GBK', falling back to 'DejaVu Sans'
[ass] Glyph 0x6536 not found, selecting one more font for (方正黑体_GBK, 200, 0)
[ass] fontconfig: cannot find glyph U+6536 in font '方正黑体_GBK', falling back to 'WenQuanYi Micro Hei'
[0xa6b7b440] main video output warning: picture is too late to be displayed (missing 49 ms)
[0xa041278] main audio output warning: buffer too late (-356847 us): dropped
[0xa041278] main audio output warning: buffer too late (-325063 us): dropped
[0xaca00508] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1000 ms)
[0xaca00508] main input error: ES_OUT_RESET_PCR called
[0xa041278] main audio output warning: buffer too late (-293194 us): dropped
[0xa041278] main audio output warning: buffer too late (-262756 us): dropped
[0xa041278] main audio output warning: buffer too late (-230913 us): dropped
[0xa041278] main audio output warning: buffer too late (-199057 us): dropped
[0xa041278] main audio output warning: buffer too late (-167188 us): dropped
[0xa041278] main audio output warning: buffer too late (-135319 us): dropped
[0xac86e6c0] main decoder warning: early picture skipped
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
[0xac86e6c0] avcodec decoder: Using VA API version 0.36 for hardware decoding.
WARNING: Invalid RefPicListX[] entry!!! It is not included in DPB
[0xa041278] main audio output warning: playback way too early (-493947): playing silence
[0xa6b7b440] main video output warning: picture is too late to be displayed (missing 89 ms)
[0xac86e6c0] main decoder warning: can't get output picture
Segmentation fault (core dumped)

the very strange thing is that I can play the video with hw accerleration when I start mplayer in the console with cmd mplayer -vo vaapi video_file, the console output of mplayer is

[jsntyyl@localhost 2 Broke Girls]$ mplayer -vo vaapi 2.Broke.Girls.S04E01.720p.HDTV.X264-DIMENSION.mkv 
MPlayer SVN-r36265-4.9.2 (C) 2000-2013 MPlayer Team
Cannot test OS support for SSE, disabling to be safe.
203 audio & 423 video codecs
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 2.Broke.Girls.S04E01.720p.HDTV.X264-DIMENSION.mkv.
libavformat version 55.12.102 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 creation_time: 2014-10-27 15:19:40
Load subtitles in ./
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.18.102 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vaapi] 1280x720 => 1280x720 H.264 VA-API Acceleration 
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:   0.7 V:   0.7 A-V:  0.016 ct:  0.052   0/  0  7%  3%  1.4% 0 0

Offline

Board footer

Powered by FluxBB