Subtitles and dxva | Page 4

Discussion in 'Improvement Suggestions' started by André, April 3, 2008.

  1. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Interfaces for Video Rendering and Overlay Those interfaces should be available without needing to connect a pin to the filter.

    1) enumerate thru the graph to find correct filter (video renderer in this case)
    2) query for the wanted interface
    3) use interface


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. sonix1977nl

    sonix1977nl Portal Member

    Joined:
    June 10, 2008
    Messages:
    24
    Likes Received:
    8
    Ratings:
    +8 / 0
    Thanks tourettes for the information.

    When the output pin from my test filter is connected to the input pin of another filter I do the following:
    - Get the filter of the input pin I am connecting to.
    - Try to get the IBasicVideo interface from the filter. If it does not support that interface I fail.
    - Query the video width and height from IBasicVideo.
    - Use that width and height to play the whole GetMediaType, CheckMediaType, etc. game.

    So now I have my test filter indeed rendering at the same resolution as the video itself.

    My test filter is a source filter that creates an alpha bitmap with the background some transparent blue and some text that changes over time (long live the Lorem Ipsum generators on the internet for creating some nonsense text ;)). Because the video is still showing, but with a blue transparent window over it with some non-transparent text, I know the thing is working. Checking the CPU usage between DXVA enabled and disabled I can also verify that DXVA works.
     
  4. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    I guess this is VMR9 / EVR?
     
  5. sonix1977nl

    sonix1977nl Portal Member

    Joined:
    June 10, 2008
    Messages:
    24
    Likes Received:
    8
    Ratings:
    +8 / 0
    Yes, I connect my source filter's output pin directly to the input pin of the VMR9 filter.
     
  6. red5goahead
    • Premium Supporter

    red5goahead MP Donator

    Joined:
    November 24, 2007
    Messages:
    695
    Likes Received:
    96
    Gender:
    Male
    Occupation:
    Software engineering
    Location:
    Italy, North West
    Ratings:
    +144 / 1
    Home Country:
    Italy Italy
    Show System Specs
    @sonix

    Don't forget the ffdshow subtitle filter for your test.
    This filter could be a good alternative to vsfilter.
    We hope for an internal sub engine maybe for Media Portal 2.0. :D
     
  7. armandp
    • Premium Supporter

    armandp Retired Team Member

    Joined:
    April 6, 2008
    Messages:
    990
    Likes Received:
    584
    Gender:
    Male
    Occupation:
    Application Designer
    Location:
    Zoetermeer
    Ratings:
    +616 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    I'm a big noob in the directshow filter department but isn't there already a subtitle filter in mediaportal that does exactly the same.. but for HDTV (TSReader and some subtitle filter?). Maybe that one can be adopted to work with other formats as well (change the source for the subtitles from TS stream to file?). If you don't know what i'm talking about and you have HDTV channels (with subs) just watch the graph (connect to remote graph) as you have the channel playing and you can see it in action.
     
  8. sonix1977nl

    sonix1977nl Portal Member

    Joined:
    June 10, 2008
    Messages:
    24
    Likes Received:
    8
    Ratings:
    +8 / 0
    From what I have seen, the My TV part has an internal subtitle renderer for DVB. The subtitle formats used in many movies on the internet are far more complex than those. There is probably a reason why VobSub is still the one and only fully fledged subtitle renderer. ;) And I would prefer a DirectShow filter based solution, because that is reusable in many more projects than Mediaportal alone.
     
  9. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Actually the DVB subtitle format is much more complex than the text based used in "internet releases" :) What is more complex on the non-DVB subtile types is the vast amount of different formats.
     
  10. sonix1977nl

    sonix1977nl Portal Member

    Joined:
    June 10, 2008
    Messages:
    24
    Likes Received:
    8
    Ratings:
    +8 / 0
    From what I have seen of the specs of ASS alone, they can be used for special effects and stuff. Not only that, all colors and shading and stuff can be specified. It looked daring to create it all from scratch. ;) But I'll believe your word on it. :)
     
  11. Johan

    Johan Portal Pro

    Joined:
    April 19, 2006
    Messages:
    443
    Likes Received:
    11
    Ratings:
    +11 / 0
    Home Country:
    Sweden Sweden
    Any news on how things are going?
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!