Originally posted by tball
View Post
As a recap, I figured out that my lack of acceleration was caused by having the "-ass" flag in my mplayer config - without this flag (for better subtitle support), vaapi appears to fully accelerate.
mplayer-vaapi-20091228 (and earlier snapshots) simply don't render ASS subtitles in vaapi mode; I suppose January's builds are better in that respect.
I found a good sample clip to demonstrate ASS subtitles here: http://matroska.free.fr/samples/mewmew/
The "mewmew-vorbis-ssa.mkv" clip has 15 different tracks of ASS-format subtitles. Using mplayer-vaapi-20100105 or mplayer-vaapi-20100114 with "-va vaapi -vo vaapi:gl -ass" options, you can see the colorspace/-vf scale warnings in MPlayer:
Code:
$ ~/mplayer-vaapi-20100105/mplayer-vaapi/mplayer -va vaapi -vo vaapi:gl ~/Desktop/mewmew-vorbis-ssa.mkv -ass MPlayer SVN-r30226-4.4.1 (C) 2000-2009 MPlayer Team Playing /home/user/Desktop/mewmew-vorbis-ssa.mkv. [mkv] Track ID 1: video (V_MS/VFW/FOURCC), -vid 0 [mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn [mkv] Track ID 3: subtitles (S_SSA), -sid 0, -slang eng [mkv] Track ID 4: subtitles (S_SSA), -sid 1, -slang dut [mkv] Track ID 5: subtitles (S_SSA), -sid 2, -slang eng [mkv] Track ID 6: subtitles (S_SSA), -sid 3, -slang fin [mkv] Track ID 7: subtitles (S_SSA), -sid 4, -slang fre [mkv] Track ID 8: subtitles (S_SSA), -sid 5, -slang ger [mkv] Track ID 9: subtitles (S_SSA), -sid 6, -slang heb [mkv] Track ID 10: subtitles (S_SSA), -sid 7, -slang hun [mkv] Track ID 11: subtitles (S_SSA), -sid 8, -slang ita [mkv] Track ID 12: subtitles (S_SSA), -sid 9, -slang jpn [mkv] Track ID 13: subtitles (S_SSA), -sid 10, -slang nor [mkv] Track ID 14: subtitles (S_SSA), -sid 11, -slang pol [mkv] Track ID 15: subtitles (S_SSA), -sid 12, -slang por [mkv] Track ID 16: subtitles (S_SSA), -sid 13, -slang rus [mkv] Track ID 17: subtitles (S_ASS), -sid 14, -slang spa [mkv] Track ID 18: subtitles (S_ASS), -sid 15, -slang swe [mkv] Will play video track 1. Matroska file format detected. VIDEO: [XVID] 640x480 16bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s) [vo_vaapi] Using OpenGL rendering libva: libva version 0.31.0-sds4 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so libva: va_openDriver() returns 0 [ass] auto-open [ass] Init [ass] Updating font cache. ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family [VD_FFMPEG] VA API accelerated codec. [VD_FFMPEG] Trying pixfmt=0. Unsupported PixelFormat -1 Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] 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. Unsupported PixelFormat -1 Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] 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=2. Unsupported PixelFormat -1 Movie-Aspect is undefined - no prescaling applied. VO: [vaapi] 640x480 => 640x480 Planar YV12 Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000) Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis) ========================================================================== AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. VO: [vaapi] 640x480 => 640x480 Planar YV12 A: 2.1 V: 2.1 A-V: 0.003 ct: 0.019 0/ 0 1% 6% 0.3% 0 0 Exiting... (Quit)
Code:
mkvmerge -o birds_subbed.mkv Bird_42_MBit_ABR_\(+-1.5\ MBit\).mkv -D -A --default-track 5 mewmew-vorbis-ssa.mkv
- I include the -ass option, which causes mplayer to render the subs properly (as in the matroska site's screenshot), but without hardware acceleration
- I omit the -ass option, which enables hardware acceleration but causes the subtitles to render improperly (all white lettering and misaligned text)
I now see that I forgot to answer some of gbeauche's ques4tions
Originally posted by gbeauche
View Post
- Sorry, I only see the i686 binary on your site, which can't find certain 32bit libs and crashes; is there an amd64 precompiled binary elsewhere?
- The output of running "~/mplayer-vaapi-20100114/mplayer-vaapi/mplayer -vo vaapi:gl -va vaapi -msglevel decvideo=9:vo=9 -ass birds_subbed.mkv" can be found at http://pastebin.com/f1c47c28 (132KB of logs..). birds_subbed.mkv is the high bitrate subtitled version of Birds_42, created using mkvmerge as described earlier in my post.
- mplayer-vaapi-122809 with xvba-video-0.6.2 is able to accelerate all of my videos when using the -ass option, but unfortunately it skips subtitle rendering in this case. So far, no version of mplayer-vaapi has played a video with ASS subtitles correctly for me.
Comment