Log in

View Full Version : VSfilter/vobsub: avisynth version vs. Virtualdub version


Katie Boundary
17th June 2021, 21:34
.sub and .idx files can include multiple subtitle tracks. Gabest's VSfilter/Vobsub for Virtualdub is designed to let you select from among these tracks when it loads a .sub or .idx file. However, no such feature is documented for VSfilter/Vobsub for Avisynth. In addition, there are a couple of forks of VSfilter, such as Cyberbeing and pinterf's Xy-VSfilter (http://avisynth.nl/index.php/XY-VSFilter) and z0rc's VSfilterMod (http://avisynth.nl/index.php/VSFilterMod), but these don't seem to add the track-selection feature either. What's the deal with that?

It seems that if I want to hardsub a non-AVI file with a subtitle track other than Track 00, I first have to load everything into Virtualdub, export a losslessly compressed or uncompressed AVI file, and then load that file into some other program (like Tsunami MPEG Encoder) to get it to the format that I actually want. This wastes a lot of time and hard drive space, so alternative solutions (other than softsubs) would be appreciated.

FranceBB
17th June 2021, 21:52
Just use Subtitle Edit to pick the track you want and/or convert the sub. It's much easier than going lossless through virtual dub.

About the feature, I can't say, I always have .ass when I hardsub, so... you know... I don't really use it

mp3dom
18th June 2021, 00:55
You just need to open the idx or sub (I don't remember, sorry) with Notepad. On the first lines there's a default selected track (1 by default) that you can change to have that stream as new default.

hello_hello
20th June 2021, 14:52
You just need to open the idx or sub (I don't remember, sorry) with Notepad. On the first lines there's a default selected track (1 by default) that you can change to have that stream as new default.

You can learn something new every day....
I had no idea it was that easy.

Mind you DVD subtitles generally don't look that great, so I usually convert them to text with Subtitle Edit first anyway, even though it can be tedious.

MeGUI's Vobsubber will also extract individual subtitle streams from idx/sub files and save them in the same format.

Katie Boundary
21st June 2021, 02:06
You just need to open the idx or sub (I don't remember, sorry) with Notepad. On the first lines there's a default selected track (1 by default) that you can change to have that stream as new default.

I thought idx/sub files were sequences of bitmaps, not text files?

manono
21st June 2021, 06:06
I thought idx/sub files were sequences of bitmaps, not text files?
The IDX is a text file you can open in Notepad.

Katie Boundary
25th June 2021, 08:58
The IDX is a text file you can open in Notepad.

Neat. And the bitmaps themselves are in the .sub file?

Which line do I alter? langidx?

manono
26th June 2021, 06:21
And the bitmaps themselves are in the .sub file?
Yes. I don't have any VobSubs around to have a look so either follow what mp3dom said or maybe wait for him or someone else to answer your second question.

mp3dom
26th June 2021, 12:22
Yes, it's exactly the langidx line.