I'll just quickly explain the whole process you need to go through in order to even start encoding a Japanese TS file to Xvid.
With your normal ATSC or DVB .ts files your actually able to load them directly into DGIndex (click the "Prepare the VOBs" button on the first tab in GordianKnot).
And DGIndex will handle it just like any other mpeg2 stream.
Unfortunately only SOME ISDB .ts files I've been able to successfully open straight into DGIndex. Most of them I've had to use Xmuxer to remux them before they will properly open in DGIndex.
The particular TS I'm using in my guide is (HDTV 1080i)Goto Maki - Glass no Pumps(Music Fighter 2006.06.02).ts. Some of you might have it
If you try opening it with DGIndex you'll find it's just all green and strange looking. That's why before you can open it in DGIndex you kinda have to "repair" it using the remux option in Elecard Xmuxer.
Here is the guide:
Open Xmuxer
You'll see 4 tabs across the top, the first one being remux.
Remuxing basically takes the ts, demuxes (splits the streams into seperate audio and video) and then reconstructs it again saving as an mpg. This mpg will then load into DGIndex ok.
Press Load and find the .ts file you want. It will then appear like so:
Notice that Audio isn't ticked, this seems to be just something the program does for ts files with aac audio. It must be expecting normal mpeg2 audio but anyway.
Make sure you retick the Audio box or else you won't have any audio in your file. Once you've done that, click the top double arrow button:
That will add the streams to the list that will be in the output file. You see with TS files they can actually have multiple video and audio streams in the one file and using Xmuxer you can actually choose the ones you want and extract them from it.
Now choose Output and find a place for where you want to save your mpg file, give it a name and then click save.
Then click start to begin the remux.
Once you have your mpg file you can actually go ahead and follow the rest of my Gordian Knot guide here:
http://forum.jphip.com/showthread.php?t=2771and use the mpg like it was a vob.
The key thing to remember though is it will most likely be high resolution video (not your average 720x480). It might be something like 1440x1088, when you first open it with GK you'll notice this put under where it says input resolution in the Resolution Tab in GK.
This is perfectly normal and it's because the pixel's are anamorphic. In other words they actually appear as rectangular rather than square during playback, thereby making the output resolution on your screen 1920x1080 and you don't notice a thing.
BUT, Gordian Knot is not very smart and it wasn't really made to deal with this resolution so you need to kinda do a bit of manual editing in the script to make it right and it's not all that difficult.
Just resize and crop it however you think it should be in GK and once you get to this step, click edit.
You'll see a bunch of crap, some of you may know that this is just an avisynth script and infact that's all Gordian Knot does, it makes an avs and sets up Virtualdub to encode it.
Anyway the key bits you need to look at are the Cropping and the Resizing so scroll down till you see those two headings.
Under cropping it might already have some numbers but if your resolution of the original video was 1440x1088 then there's a basic cropping solution to get rid of the black lines around the edges.
So just make it look like this:
# CROPPING
crop(2,0,1434,1080)
If the res of the video was a full 1920x1088
# CROPPING
crop(2,0,1914,1080)
If anything is wrong at this step you'll get the error saying Crop: you cannot use crop to enlarge or 'shift' a clip.
Now under Resizing it's up to you but I use LanczosResize cause it gives the cleanest edges and if you want it to be high res but smallish file and still playable without too much CPU usage, go for 1024x576.
So mine looks like this:
# RESIZING
LanczosResize(1024,576)
The next res down which I've seen around is 960x540
If you want a DVD equivilent res then something like 720x416
You could try 1280x720 as well but expect it to only work on really good cpu's, I definately don't recommend retaining a full 1920x1080 video res because for xvid that's near impossible to decode in realtime on most cpu's (although I should try that some time on my Core 2 lol) *edit* Actually I did try this and it doesnt do too bad, only uses 33% cpu usage
but on my Athlon 2500+ it just crawls so yeah I wouldn't bother haha.
Once you have the res you want just click save and encode.
Ok the next thing I better point out is the aac audio track, actually this is probably the most important thing I should be covering.
When you do the first step, loading the mpg into DGindex and saving the project, that will create an aac file. Gordian Knot was never made for working with aac audio so you need to take the aac file and manually convert it to mp3 or some other format so that GK can use the file.
So it's up to you how you do this but if you want you can use the Winamp diskwriter plugin. (as dodgy as that might sound, it works)
Just open the aac in winamp, go into preferences and in output choose nullsoft diskwriter plugin. By default it will output the file directly to c:\ you can change it if you want.
Now make sure you haven't got the playlist on repeat, then click play and it will quickly convert the aac into a wav file and save that to c:\
Make sure you change the output back to your normal directsound or wave output again in preferences or it will do that for all your music you play in winamp lol.
Once you have your wave file, make sure it is exactly the same name as the aac was. Not including .aac though just leave it as .wav
The reason it has to be the same name is that there's settings in the name that GK needs to determine if the audio track has to be delayed or not. So my audio file is: pumps AAC PID 014 DELAY 467ms.wav
Select the file you made and choose your bitrate, make sure it was the same bitrate you wanted it to be under the Bitrate tab in GK. I'm just using 128k constant bitrate, I've honestly never heard anything wrong with 128k mp3 so I use it a lot.
The rest of the steps follow on with the guide.
hmm I hope I haven't confused anyone lol I should probably redo the guide in full, for someone who wants to encode .ts