VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member Sakuya's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Is there a way to add subtitles to WMV files? I usually use Vdubmod to add subtitles to AVI files but in this case, Vdubmod does not support WMV. After adding subtitles, I'm converting the WMV files to DVD.

    Hopefully, this process that I'm thinking is possible :
    AVISynth code >> Vdubmod >> Add Subs >> Frameserve >> TMPGEnc

    That way, I don't have to convert to AVI and then to MPEG-2 because it's too time-consuming. And if the above is possible, I might as well extract the audio using Vdubmod so I can process it separately.

    Any help on constructing the AVISynth code would be greatly appreciated. Thanks.
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    How about AVISynth >> TMPGEnc.

    directshowsource("whatever.wmv",fps=?)
    textsub("whatever.srt")
    lanczos4resize(720,???)
    addborders(?,0,?,0)
    converttoRGB24()

    or something to that effect. Guess the subtitles should go after resizing.
    Quote Quote  
  3. Member Sakuya's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Thanks so much! The lanczos resize would probably be 720x480 for DVD. Should I be using Full Screen (keep aspect ratio) or Center (keep aspect ratio)? As for the FPS, MPC says it's 23.98 fps but I'm going to use 23.976 fps.

    But what is the addBorders and converttoRGB for?
    Quote Quote  
  4. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Well add borders would be if it wasn't 4:3 or 16:9, like say 2.35:1. ConverttoRGB24() is because TMPGEnc needs RGB, if you don't feed it RGB you might have issues and it is going to convert it anyway, so may as well use AVISynth since it probably does a better job of chroma upsampling.

    MPC is probably rounding up.

    I guess just centre since TMPGEnc isn't doing any resizing. Just make sure to set the source as 4:3 if it is 4:3 or 16:9 if it is 16:9. Actually that probably doesn't matter either.

    You might also want to check out FitCD. You should also notice a nice speed increase since AVISynth is a fair bit faster at resizing, etc. than TMPGEnc. Should also be faster than VDub since textsub in VDub requires RGB24 where as under AVISynth it does not.
    Quote Quote  
  5. Member Sakuya's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Thanks, I believe I have tried something that started with "convertto___" in AVISynth before but it didn't work because I did not have the filter. Where can I get this RGB filter?
    Quote Quote  
  6. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    It is built in.
    Quote Quote  
  7. Member Sakuya's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    I tried the code today after getting the VSFilter.dll for textsub. I previewed it in MPC and my colored subtitles are not coming out. In the areas that are supposed to be pink outlined but came out black, it's because of this code in the SSA file:

    {\3c&hAD18C6&} code for changing into pink outline
    {\3c&hAD0029&} code for changing back into the original color

    It's not working so the outline became black. Why is this?
    Quote Quote  
  8. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Well I just tried a ssa with VSFilter and the avs played perfectly. Colours, animation, etc. were all fine.

    I used my own VSFilter compile though. Perhaps you are using an older one or there is something up with your ssa file?

    http://ffdshow.faireal.net/mirror/Media%20Player%20Classic/external%20filters/unicode/VSFilter.7z
    Quote Quote  
  9. Member Sakuya's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    I was using a VSFilter.dll gotten from here: http://www.avisynth.org/warpenterprises/

    That 7z file you gave me is not being acknowledged by AVISynth even though it's in the Plugins folder. For the colors, it's actually the subtitle colors being black, not the video itself.
    Quote Quote  
  10. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    You need to unpack it, then put the dll in the plugin dir.

    In the above I meant that the subtitle colours, animation effects, etc. were fine.

    I don't even see vsfilter at warpenterprises.
    Quote Quote  
  11. Member Sakuya's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    What do you use to unpack it? I've never heard of this format before. As for Warpenterprises, it's actually listed as TextSub and not VSFilter. Although the filename is VSFilter.dll

    Edit:
    I got 7-Zip to unpack it and the subs are still partly not colored. My subs are like this:

    Secret {\3c&h3138B5&}After {\3c&hAD0029&}School

    It uses codes to change colors for a specific word instead of the whole line.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!