One thing that has continually annoyed me in MediaPortal is the problem of handling 'fake' 16:9 material. Im talking about the kind of TV channel where they transmit a 16:9 movie as a 'letterbox', only utilising ~50% of the 576 PAL lines for the actual image. The Zoom mode in MP can show this correctly(by manual change) in SOME cases. However, in Denmark on digital cable tv most of the channels are transmitted with subtitles as part of the image. When showing letterboxed images, these subtitles are sometimes placed in the bottom-most black bar. As we keep the original voice track in Denmark, we want to avoid cropping the subtitles.
What im doing right now, is creating a bit of stand-alone C# code that can take a Bitmap and output a bounding box indicating the area that should be displayed. When done it will crop out logo's if placed in the upper black bar's corners, but retain subtitles.
That part i can figure out on my own, the next step is how to integrate this into mediaportal. I would need some way to get access to a single frame of the current video(preferably before it being upscaled to the display resolution), and afterwards a way to set the appropiate zoom. The first part could be achieved in a very primitive manner by taking a screenshot, but i hope it can be donein a more clever way. As to the second part, i dont even know where in the MP code to look
Could anyone give me some pointers, or perhaps even offer to help integrate this if i supply the code to detect the proper bounding box?
What im doing right now, is creating a bit of stand-alone C# code that can take a Bitmap and output a bounding box indicating the area that should be displayed. When done it will crop out logo's if placed in the upper black bar's corners, but retain subtitles.
That part i can figure out on my own, the next step is how to integrate this into mediaportal. I would need some way to get access to a single frame of the current video(preferably before it being upscaled to the display resolution), and afterwards a way to set the appropiate zoom. The first part could be achieved in a very primitive manner by taking a screenshot, but i hope it can be donein a more clever way. As to the second part, i dont even know where in the MP code to look
Could anyone give me some pointers, or perhaps even offer to help integrate this if i supply the code to detect the proper bounding box?