[mythtv-commits] Ticket #13311: VAAPI rewrite

MythTV noreply at mythtv.org
Mon Aug 20 16:43:55 UTC 2018


#13311: VAAPI rewrite
-------------------------------------+-------------------------------
 Reporter:  Peter Bennett            |          Owner:  Peter Bennett
     Type:  Developer Task           |         Status:  new
 Priority:  minor                    |      Milestone:  30.0
Component:  MythTV - Video Decoding  |        Version:  Master Head
 Severity:  medium                   |     Resolution:
 Keywords:                           |  Ticket locked:  0
-------------------------------------+-------------------------------

Comment (by Stuart Auchterlonie):

 Testing results:

 - f25 system, works with both vaapi and vaapi2, mpeg and h264 content
 - f28 system (the one with wayland) doesn't initialize properly with
 `20180819_1258_vaapi_add_xvideo.patch`, however after applying

 {{{
 Index: mythtv/mythtv/libs/libmythtv/vaapi2context.cpp
 ===================================================================
 --- mythtv.orig/mythtv/libs/libmythtv/vaapi2context.cpp
 +++ mythtv/mythtv/libs/libmythtv/vaapi2context.cpp
 @@ -78,7 +78,7 @@ int Vaapi2Context::HwDecoderInit(AVCodec
      AVBufferRef *hw_device_ctx = NULL;

      ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI,
 -                                      NULL, NULL, 0);
 +                                      "/dev/dri/renderD128", NULL, 0);
      if (ret < 0)
      {
          char error[AV_ERROR_MAX_STRING_SIZE];
 }}}

 Then VAAPI successfully initializes. I can also playback MPEG2 and H264
 content, although I have 1 H264 recording which seems to wedge the
 decoder.


 Regards
 Stuart

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13311#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list