INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: DXVA and Subtitles?  (Read 3449 times)

BartMan01

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1513
DXVA and Subtitles?
« on: May 15, 2011, 11:04:14 am »

Is it possible to get Media Center 16 to display subtitles w/o losing DXVA?  Using the VOBSUB filter, I lose hardware acceleration.  Using MPC-HD I can get subtitles and DXVA to work at the same time, but they use their own subtitle filter - not VOBSUB.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: DXVA and Subtitles?
« Reply #1 on: May 15, 2011, 02:05:50 pm »

What playback filter are you using? Have you tried ffdshow subtitles?
Logged

sunfire7

  • Citizen of the Universe
  • *****
  • Posts: 550
Re: DXVA and Subtitles?
« Reply #2 on: May 15, 2011, 02:32:59 pm »

You cant, unless MC implement a subs engine like MPC-HC and company did.

Did you tried CoreAVC ? its the fastest codec for h.264, and if you have an Nvidia Card, you can use CUDA for acceleration of h.264, kinda dxva but you can put subtitles with this.
Logged
Happy licensed MC 15-19 User :)
Mac version early bird
My english is not perfect! My native lang is spanish

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: DXVA and Subtitles?
« Reply #3 on: May 15, 2011, 05:31:22 pm »

SRT subtitles work for me with ffdshow tryouts DXVA decoder by using the decoder's built-in subtitle support.

For instance, MKV, AVC, DTS, embedded SRT inside MKV, ATI Radeon HD 4200:

Filter Graph Info:
Code: [Select]
Filter 'JRiver Audio Renderer'
        CLSID: {A4002F8E-510F-442C-8AD3-F9C7B23FB394}
        Host:
        Input Pin 'In'
            Connected to pin 'Out' of filter 'ffdshow Audio Decoder'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx

    Filter 'Video Mixing Renderer 9'
        CLSID: {51B4ABF3-748F-4E3B-A276-C828330E926A}
        Host: c:\windows\system32\quartz.dll
        Input Pin 'VMR Input0'
            Connected to pin 'Out' of filter 'ffdshow DXVA Video Decoder'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {1B81BE68-A0C7-11D3-B984-00C04F2E73C5}, Format type FORMAT_VideoInfo2
        Input Pin 'VMR Input1'

    Filter 'ffdshow Audio Decoder'
        CLSID: {0F40E1E5-4F79-4988-B1A9-CC98794E6B55}
        Host: c:\program files\combined community codec pack\filters\ffdshow\ffdshow.ax
        Output Pin 'Out'
            Connected to pin 'In' of filter 'JRiver Audio Renderer'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx
        Input Pin 'In'
            Connected to pin 'Audio' of filter 'Haali Media Splitter'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00002001-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Input Pin 'In2'

    Filter 'ffdshow DXVA Video Decoder'
        CLSID: {0B0EFF97-C750-462C-9488-B10E7D87F1A6}
        Host: c:\program files\combined community codec pack\filters\ffdshow\ffdshow.ax
        Input Pin 'In'
            Connected to pin 'Video' of filter 'Haali Media Splitter'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {31435641-0000-0010-8000-00AA00389B71}, Format type FORMAT_MPEG2_VIDEO
        Output Pin 'Out'
            Connected to pin 'VMR Input0' of filter 'Video Mixing Renderer 9'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {1B81BE68-A0C7-11D3-B984-00C04F2E73C5}, Format type FORMAT_VideoInfo2
        Input Pin 'In Text'
            Connected to pin 'Subtitle' of filter 'Haali Media Splitter'
            Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD}  Sub type Unknown GUID Name:
{87C0B230-03A8-4FDF-8010-B27A5848200D}, Format type Unknown GUID Name: {87C0B230-03A8-4FDF-8010-B27A5848200D}
        Input Pin 'In Text 2'

    Filter 'Haali Media Splitter'
        CLSID: {55DA30FC-F16B-49FC-BAA5-AE59FC65F82D}
        Host: c:\program files\directshow filterpack\haali splitter\matroskasplitter\splitter.ax
        Output Pin 'Video'
            Connected to pin 'In' of filter 'ffdshow DXVA Video Decoder'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {31435641-0000-0010-8000-00AA00389B71}, Format type FORMAT_MPEG2_VIDEO
        Output Pin 'Audio'
            Connected to pin 'In' of filter 'ffdshow Audio Decoder'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00002001-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Output Pin 'Subtitle'
            Connected to pin 'In Text' of filter 'ffdshow DXVA Video Decoder'
            Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD}  Sub type Unknown GUID Name:
{87C0B230-03A8-4FDF-8010-B27A5848200D}, Format type Unknown GUID Name: {87C0B230-03A8-4FDF-8010-B27A5848200D}

Not all tryouts builds are good. The above graph is from ffdshow tryouts rev. 3825. I just tried the rev. 3851, but DXVA decoding didn't work at all. Playback didn't advance. I installed the rev. 3825 back and the problem disappeared.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

BartMan01

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1513
Re: DXVA and Subtitles?
« Reply #4 on: May 15, 2011, 07:55:36 pm »

You cant, unless MC implement a subs engine like MPC-HC and company did.

Did you tried CoreAVC ? its the fastest codec for h.264, and if you have an Nvidia Card, you can use CUDA for acceleration of h.264, kinda dxva but you can put subtitles with this.

I used to use CoreAVC when I had an nVidia card, but when I converted the machine to be a true HTPC I had to ditch nVidia due to the fact that their driver locks in 16-235 as the color space if it sees your set as a TV - and it uses the presence of HDMI audio to make that determination - so I could either have the correct color space for my set (0-255) or HD audio over HDMI.  And yes, I tried every setting possible and confirmed the issue was a known issue with nVidia support with no concrete plans to fix.

Alex B:  I never could get ffdshow to do subtitles on it's own but it may have been the tryout build I was using.  I will play with that.

So far, HTPC has been total hell.  Everytime I get CODECs configured to make one thing work, it breaks another (like subtitles + DXVA or stream MKV without transcode to 360 vs HD audio locally from MKV).  At one point I even manged to break TV playback and had to clean out all CODECs and filters to correct.
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: DXVA and Subtitles?
« Reply #5 on: May 19, 2011, 04:05:25 pm »

Alex B:  I never could get ffdshow to do subtitles on it's own but it may have been the tryout build I was using.  I will play with that.

I think ffdshow DXVA + subtitles can work only with certain renderers. As you can see from my graph, I use 'Video Mixing Renderer 9'. If I recall correctly Enhanced Video Renderer didn't work.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755
Pages: [1]   Go Up