View Full Version : attempting to mux .sub files and .avis


mackaroon
8th March 2005, 06:52
I have an avi file with a .idx and .sub file to go with it. The .idx file says it's a vobsub index file. From the vobsub guides it said to convert the sub file to ssa using subresync and then mux using submux. The first step was fine but when it came time to mux the resulting avi was only like 3 seconds long.

Can somebody clue me in? Is this the best way to do this? I'm not looking for professional quality here, I just want to have the subs appear in the bottom of the screen while i watch the vid.

unmei
8th March 2005, 19:41
Try to mux into matroska instead of avi. It probably saves you a lot of annoyances and you can even mux the sub/idx directly if you want ..or convdert to SRT or SSA and mux those. Use any tool to obtain the wanted subtitle format and ten use mkvmerge (or its GUI, MMG) form Mosu's mkvtoolnix package to mux all the streams into a mkv.

mackaroon
9th March 2005, 00:48
I'm sorry. I don't understand. What is mastroska? I'm at a loss as to where to begin.

I already converted the sub file to ssa using subresync, but what do I do with the idx file? Do I have to do something with that in subresync? Like I said before, after converting my sub file to ssa (I didn't have a clue what the idx was for) I tried to mux it into the avi using submux and ended up with an avi only three seconds long. I need a beginner's method here, as I've never done this before.

unmei
11th March 2005, 13:16
i never used submux or subresync, so i can't help you on the details. But the *.idx goes with the *.sub it is not needed along with a SSA. The idx actually holds timestamps for the sub (along with other stuff) - but SSA has its own timestamps so it doesn't need the IDX.

You probably did not have to to do anything with the IDX because the SUB and IDX usually have the same name, so an application will only let you specify a SUB ..another app will only let you specify an IDX - but in the end they both load both files as they can find the other file based on the name of the one you specified.

As for matroska, it is a container to hold video, audio and subtitles - just like AVI is, or MOV or RM. But it is less restrictive than AVI in that it allows more formats for video, audio, subs to be used. So you can for example combine a rv10 (real video) video with a vorbis sountrack and a vobsub (sub/idx) subtitle. You can find more info if you seach in the forums search, on the HP, www.matroska.org (http://www.matroska.org) or also our matroska FAQ (http://forum.doom9.org/showthread.php?s=&threadid=54306) and this thread (http://forum.doom9.org/showthread.php?s=&threadid=90628) about mkvtoolnix (AVIMuxGui is another matroska muxing tool..despite its name)

niamh
11th March 2005, 17:07
submux isn't able to deal with some types of nandub mp3...it could be your issue..
If you really want an avi, then use avimux GUI, cause it deals with avi too, even though it's a matroska app ;)

mackaroon
11th March 2005, 20:47
thanks i will give it a go.

mackaroon
14th March 2005, 03:06
tried avimux to join my sub file and avi...

the prog can only read ssa and srt subs so I converted to srt using subresync. AVIMUx however can't join srt and avi. It said the files it can join in an error message after I tried to do this, like acc, mkv, avi, etc but no sub files can be joined to avis apparently.

toysoldier
21st March 2005, 07:40
@ mackaroon
just install vobsub and virtualdub's filter,
then load your avi into virtualdub,
and add filter "vobsub" in virtualdub,
you can set font color and change it's position.
not need convert sub to ssa.
you can directly preview it in VD.
Now, you can save it as a *.avi or use frameserver save as a *.vdr,
and use tmpgenc compress *.vdr to *.mpg.

Wilbert
21st March 2005, 13:01
AVIMUx however can't join srt and avi. It said the files it can join in an error message
Yes, it should be able to join them. What's the error message you get?

mackaroon
24th March 2005, 00:02
Okay I see. It does support srts. It read the two streams and I hit start. Then it ran through the whole process and it gave me a new avi file. But when I play the file there are no subtitles on the picture.

niamh
24th March 2005, 08:20
you'd need directvobsub to play them back and show them :)