pankov
4th September 2005, 14:08
I've been strugling to get a smooth playback of some 1080i contents and finally I found the reason. When I have external subtitles (.sub files) the NVidia decoder (and every other I've tested) goes into Software mode. I understand that this is how things are designed to work because DirectVobSub (VSFilter.dll) / FFDShow (ffdshow.ax) needs the fully decoded stream and nothing is left for the videocard.
Having found this an idea came to my mind. Isn't it possible to send the video stream not fully decoded to one of the VMR9 input pins and the subtitles to the other. In this case we will have both DXVA and subtitles.
After some time of testing I can now confirm that connecting video streams to the different inputs of the VMR9 doesn't turn off the DXVA.
So the only problem is how to pass the subtitles to another pin. How to mix the video streams without disturbing the quality of the main video?
I tried the alpha blending offered by the VMR9 but the results are not nice. I used Avisynth and VSFilter to create an blank (black or monocolor) stream with subtitles.
So the big questions are:
Can a "transparent" color be used for the background of the subtitles? Is there such a thing at all?
Can someone of the more advanced VMR users / developers explain how things work. Can we mix streams with VMR9 and not have a washed out or blackened pickture? Can we have a stream with opaque subtitles which is with the shape of the subtitles and not rectangular??? I know I'm shooting in the dark but I think this is the right direction.
will it be possible to change the DirectVobSub/FFDShow filter so it can accept only a subtitle file and not need a video stream?
I hope that I was clear enough, but if I'm wrong I'll try to explain it better because this is important for me and I want to understand how things work in general.
I suppose that this will be a major change for the DirectVobSub/FFDShow but I think it is worth it.
Having found this an idea came to my mind. Isn't it possible to send the video stream not fully decoded to one of the VMR9 input pins and the subtitles to the other. In this case we will have both DXVA and subtitles.
After some time of testing I can now confirm that connecting video streams to the different inputs of the VMR9 doesn't turn off the DXVA.
So the only problem is how to pass the subtitles to another pin. How to mix the video streams without disturbing the quality of the main video?
I tried the alpha blending offered by the VMR9 but the results are not nice. I used Avisynth and VSFilter to create an blank (black or monocolor) stream with subtitles.
So the big questions are:
Can a "transparent" color be used for the background of the subtitles? Is there such a thing at all?
Can someone of the more advanced VMR users / developers explain how things work. Can we mix streams with VMR9 and not have a washed out or blackened pickture? Can we have a stream with opaque subtitles which is with the shape of the subtitles and not rectangular??? I know I'm shooting in the dark but I think this is the right direction.
will it be possible to change the DirectVobSub/FFDShow filter so it can accept only a subtitle file and not need a video stream?
I hope that I was clear enough, but if I'm wrong I'll try to explain it better because this is important for me and I want to understand how things work in general.
I suppose that this will be a major change for the DirectVobSub/FFDShow but I think it is worth it.