ipridian
28th January 2008, 10:41
I noticed that ffdshow (the newest svn builds) do a very good job on basic subtitling. If you use VSFilter, you will notice that the text tends to "stand out" in the video, whereas ffdshow's way of handling the subtitles makes it "sink in" the video. An example :
w/ ffdshow
http://img82.imageshack.us/img82/6925/giffdshowvv1.png
w/ vsfilter
http://img151.imageshack.us/img151/153/givsfilterqq9.png
Also notice the ffdshow had mplayer's postprocessing and hqdn3d. This is easy to produce with an .avs, but the problem lies in the subtitling.
I tried making a .grf using the source .avi file, then removing the renderer. Then I used an .avs file with DirectShowSource on the grf. Last part was loading the .avs inside VirtualDub and encoding it to a lossless codec. Problem arises here where the subtitles start desync'ing. It's not empty frames problem (I checked keep empty frames, and Lagarith as well as HuffYUV does not drop empty frames, afaik), and using TextSub as a filter (.vdf) inside VDub itself shows that the problem lies in the way it was done, mainly grf to avs then to vdub (overhead?).
Is there anyway to hardcode subtitles using ffdshow? If I use ffdshow vfw encoder, clicking on image output processing and checking on the subtitles field doesn't do anything. the option to decode ASS is grayed out in the "decoder" tab of ffdshow vfw encoder, so that is a no go as well.
If that made sense to you, I hope you can help me with this.
The way I was going to do it was use VSFilter for "demanding" jobs, such as ASS with lots of {\t}, and for simple normal subtitles, use ffdshow's internal subtitle renderer. I've been trying to figure it out for a week now to no avail. I usually don't ask for help and try to sort it out myself, but this is slowing down the process of the whole group, so I figured maybe I should drop in a topic and see if anyone has some idea into this, as you are all experts in this field (hopefully :p)
w/ ffdshow
http://img82.imageshack.us/img82/6925/giffdshowvv1.png
w/ vsfilter
http://img151.imageshack.us/img151/153/givsfilterqq9.png
Also notice the ffdshow had mplayer's postprocessing and hqdn3d. This is easy to produce with an .avs, but the problem lies in the subtitling.
I tried making a .grf using the source .avi file, then removing the renderer. Then I used an .avs file with DirectShowSource on the grf. Last part was loading the .avs inside VirtualDub and encoding it to a lossless codec. Problem arises here where the subtitles start desync'ing. It's not empty frames problem (I checked keep empty frames, and Lagarith as well as HuffYUV does not drop empty frames, afaik), and using TextSub as a filter (.vdf) inside VDub itself shows that the problem lies in the way it was done, mainly grf to avs then to vdub (overhead?).
Is there anyway to hardcode subtitles using ffdshow? If I use ffdshow vfw encoder, clicking on image output processing and checking on the subtitles field doesn't do anything. the option to decode ASS is grayed out in the "decoder" tab of ffdshow vfw encoder, so that is a no go as well.
If that made sense to you, I hope you can help me with this.
The way I was going to do it was use VSFilter for "demanding" jobs, such as ASS with lots of {\t}, and for simple normal subtitles, use ffdshow's internal subtitle renderer. I've been trying to figure it out for a week now to no avail. I usually don't ask for help and try to sort it out myself, but this is slowing down the process of the whole group, so I figured maybe I should drop in a topic and see if anyone has some idea into this, as you are all experts in this field (hopefully :p)