PDA

View Full Version : .bik Movie Subtitles


Aliryn
07-27-2009, 11:15 PM
The .bik movies in both KotOR I and TSL have subtitles that are apparently irremovable. At least there's no setting for it; I assume the movie file is one whole entity and you can't tell it to remove bits like that.

In any case, does anyone know of a way to edit the .bik movies? I've run a Google search for .bik movie editors and came up with nothing. I would really really really like to get rid of those dumb distracting subtitles! It's not cinematic like that either . . .

I guess you might have to convert them to a different file type, edit them, then convert them back . . . but I wouldn't know where to start . . .

Please help if you possibly can~

DarthParametric
07-28-2009, 03:23 AM
BIKs are movie files. The subs are hardcoded. There is no way to remove them without making completely new renderings, and Bioware and Obsidian are hardly going to provide you with the necessary resources to do so.

Tonttu
07-28-2009, 05:17 AM
Convert to lossless with RAD Video Tools (http://www.radgametools.com/down/Bink/RADTools.exe) (or use RAD Game Tools Splitter)
Crop (or letterbox) the borders and subtitles
Save as lossless
Convert to bik with RAD Video Tools

Couldn't test converting to bik because it didn't work with wine on Linux

Robespierre
07-28-2009, 09:24 AM
If the subtitles aren't over the actual movie itself (so they're in the black at the bottom of the screen), then you can remove them by just doing what Tonttu said.

I'd also recommend modifying the high quality movies if you can; they really are much better.

DarthParametric
07-28-2009, 09:50 AM
If the subtitles aren't over the actual movie itself (so they're in the black at the bottom of the screen)The hardcoded subs in 31a.bik in K1, the Revan reveal, and KreMov01.bik in TSL, Kreia's recounting of her exile, both look to be this way. For these you could crop it and re-letterbox it to remove the subs as suggested above. There's also the Visas reveal video, but there's a mod that replaces that with an in-game cutscene which is a better option.

I actually thought the subs were overlaid on the image itself, hence my previous comment. Guess I was mistaken.

I'd also recommend modifying the high quality movies if you can; they really are much better. That only applies for TSL. You're stuck with the dodgy Xbox-sized originals for K1.

Aliryn
07-28-2009, 05:29 PM
WAAAAAAAAAAAAAAA! THANK YOU!

For both the method and the link, Tonttu!

Well I guess we'll see how my video editing skills are; I've never done it before. But if I have a basic idea on how to do it, I'll likely figure out all the details myself. That's how I customarily learn things~ For some reason I've become the expert on plumbing and vacuum repair at my house but I only messed with them without looking at instructions or anything~

AAAAAAAAAAAAAAH, I'm so excited.

This had bothered me for both KotOR and TSL, by the way. But this should work for both~ Thanks for reminding me about using the high quality movies for TSL, Robespierre. I might have forgotten. My brain is really . . .

I'm glad there is a way to do it. When I first started reading DarthParametric's first post, I started having a heart attack.

When something bothers me, I go insane.

If I manage this, I guess I'll release it as a mod in case this bothers anybody else.

Wish me luck . . .


__________________________

Later:

Okay, never mind. I am having problems after all. For some stupid reason I'm not understanding "convert to lossless". As far as I can tell, lossless has to do with sound conversion or compression quality, and isn't a video file type . . . the RAD Help files didn't help either . . .

There's probably a stupidly easy answer to this, but . . .

DarthParametric
07-29-2009, 12:12 AM
Lossless just means no compression. Something like a raw AVI.

Aliryn
07-30-2009, 01:17 AM
Thanks, DarthParametric. Got that down.

But . . . I'm having problems again :cry6: I don't get it, usually I find it easy to do new stuff, on the computer or off it . . .

In any case, after converting to an uncompressed avi, I am now having trouble figuring out how to edit it. I can't find a program that would work . . . the tools list here on Holowan Laboratories suggests Camtasia (free trial) for editing the movies, but it doesn't seem to do the right thing. I tried to run a search for a program, but these days, it seems like 99% of the links that show up on Google get redirected to a different pathetic search thing of one kind or another or an ad . . .

Sounds like you guys might have already edited avi or other files before; do you know a program I could use?

Thank you for any help you can give! (And the help you have already given!)

N**
07-30-2009, 06:19 AM
VirtualDub and the resize filter should do the trick.

I was going to leave it at that, but I decided to take a look at the captioned videos. I noticed two things. One, the caption inserts are not equal in height: the top is 43 pixels, while the bottom is 46 pixels. Two, apparently one pixel line of the original video was lost to an insert job. As a result the captioned pictures are 271 pixels in height, whereas the non-captioned pictures are 272 pixels tall.

From what I saw the vdub resizer plugin does a centered crop -- you can't specify the absolute crop dimensions. So to work around that you would need to set up a filter chain like the following: (1) flip vertical; (2) resize 640x359; (3) resize 640x358; (4) resize 640x357; (5) resize 640x271; (6) flip vertical.

DarthParametric
07-30-2009, 10:13 AM
There aren't too many free apps that I have run across that will let you do an asymmetrical crop. Looks like RAD Tools can actually do it during the conversion though.

Tonttu
07-30-2009, 11:49 AM
Lossless just means no compression. Something like a raw AVI.
...or lossless compression (huffyuv, ffv1, lagarith, x264 (lossless mode), snow (lossless mode), ut, ...)

So to work around that you would need to set up a filter chain like the following: (1) flip vertical; (2) resize 640x359; (3) resize 640x358; (4) resize 640x357; (5) resize 640x271; (6) flip vertical.
just add "null transform" and then click "cropping"


for post-processing nothing beats AviSynth (http://avisynth.org/mediawiki/Main_Page) which is controlled by simple, easy to learn scripting language

cropping the borders and subtitles from KreMov01.bik

AviSource("KreMov01.avi")
Crop(0, 260, -0, -260)

open in VirtualDub and save as lossless or feed to encoder that accepts *.avs input (or raw yuv input and reading from stdin, and pipe with avs2yuv)



KreMov01.bik is a "good" example of "high quality" video which looks horrible
I'm guessing they didn't bother to render it again, instead they took low quality interlaced source, upscaled it and thought it's good. Then later realised it's interlaced and tried to deinterlace it creating a lot of aliasing in the process

Here's something I tried on it, fixes most of the aliasing but also destroys a lot of detail near the edges
Frame 500
Source: http://a.imagehost.org/view/0101/KreMov1_1
Result: http://a.imagehost.org/view/0313/KreMov1_1

Frame 1100
Source: http://a.imagehost.org/view/0191/KreMov1_2
Result: http://a.imagehost.org/view/0891/KreMov1_2

Frame 2525
Source: http://a.imagehost.org/view/0300/KreMov1_3
Result: http://a.imagehost.org/view/0498/KreMov1_3

avisource("KreMov01.avi", audio=false)
crop(0, 260, -0 , -260)
a=last
b=a.turnleft().sangnom().turnright().sangnom().spl ine64resize(width, height/2).tisophote(12, 0.7, 0).eedi2()
edgemask1 = mt_edge("prewitt", 14, 14).mt_inpand()
edgemask2 = mt_edge("prewitt").mt_expand().mt_deflate()
mask = mt_hysteresis(edgemask1, edgemask2)
mt_merge(a, b, mask)
lsfmod(defaults="fast", smode=5)
fastlinedarkenmod(80)

the script requires these plugins:
mt_masktools (http://manao4.free.fr/masktools-v2.0a36.zip)
SangNom (http://manao4.free.fr/SangNom.zip)
EEDI2 (http://bengal.missouri.edu/~kes25c/EEDI2v092.zip)
RemoveGrain 1.0pre (http://home.arcor.de/kassandro/prerelease/RemoveGrain-1.0.rar)
WarpSharp (http://avisynth.org/warpenterprises/files/warpsharppackage_25_dll_20031103.zip)
TIsophote (http://web.missouri.edu/~kes25c/TIsophotev091.zip)
LSFmod (http://latoninf.free.fr/d9/LM/LSFmod.v1.8.avsi)
FastLineDarkenMOD (http://forum.doom9.org/showpost.php?p=1060081&postcount=14)

N**
07-30-2009, 04:44 PM
just add "null transform" and then click "cropping"
Nice. I don't get around to video editing much, but thanks for the cool tip. :-)

Aliryn
07-30-2009, 06:42 PM
Awesome! This looks like great fun, doesn't it? (<--not being sarcastic at all)

I had noticed that the actual video was 271, but I didn't realize how unequal it was. (I don't know why.) I tried to do a crop with RAD, but I didn't seem to be able to specify which parts to crop, so it just chopped off the bottom . . . I hate reading directions, so it's probably my fault . . . But I can usually figure things out . . .

Thanks a lot for all the help (with both tool resources and method), guys! We'll see how I do now . . .



_______________________

I managed to crop the movie! Yay!

Except when I convert back to bik the file size has grown almost exponentially. (Well, not quite. That's an exaggeration.)

Here are the file sizes:


Original KotORI file [09.bik] = 22.7MB
Converted to lossless avi =1.19GB
Cropped avi = 921MB
Converted back to bik (try 1) = 197MB
Converted back to bik (try 2) = 101MB
Converted back to bik (try 3) = 197MB again (though I tried different settings)


The different converting back to bik tries were different in what Bink Compressor settings I used. I tried to convert with as little compression as possible to preserve quality, but the file size really is ridiculous. Not that it doesn't work; IT DOES! (HALLELUJAH!) But I have a lot of disk space on my computer. Not everyone does. My brother is constantly trying to delete things to make room.

Well, I can do these for my own use now, but if anyone thinks other people might like this, it would be great if you can help me figure out how to compress to the original size, or near it, without losing any picture or sound quality.

Thanks very much for all your help! I keep pestering everyone . . .

Tonttu
07-31-2009, 04:54 AM
Well, I can do these for my own use now, but if anyone thinks other people might like this, it would be great if you can help me figure out how to compress to the original size, or near it, without losing any picture or sound quality.
lower the data rate and peak data rate multiplier
use higher value for audio compression

when re-encoding you always lose image/sound quality unless you're using lossless codec
whether you can distinguish re-encoded from original is another matter (visual transparency)