lfnetwork.com mark read register faq members calendar

Thread: .bik Movie Subtitles
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 07-27-2009, 11:15 PM   #1
Aliryn
Rookie
 
Aliryn's Avatar
 
Join Date: Jan 2009
Location: .......was I supposed to know?
Posts: 23
Current Game: Bouncing around.
.bik Movie Subtitles

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~


"I want to see how your green ideals would change the country that was built up by that King Bradley, who doesn't even fear God." —Arakawa Hiromu, Fullmetal Alchemist
I prefer to look on the future as something which is not written in stone. —Star Trek: The Next Generation
'So that is the King of Rohan!' said Pippin in an undertone. 'A fine old fellow. Very polite.' —J.R.R. Tolkien,
The Lord of the Rings
Remember: Pink drummer bunnies are fascist. And may Pepsi fill your soul.

Aliryn is offline   you may: quote & reply,
Old 07-28-2009, 03:23 AM   #2
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,695
Forum Veteran Helpful! 
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.
DarthParametric is offline   you may: quote & reply,
Old 07-28-2009, 05:17 AM   #3
Tonttu
Lurker
 
Join Date: Jul 2009
Posts: 9
Convert to lossless with RAD Video Tools (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
Tonttu is offline   you may: quote & reply,
Old 07-28-2009, 09:24 AM   #4
Robespierre
Junior Member
 
Robespierre's Avatar
 
Join Date: Aug 2007
Posts: 493
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.



"We must use daring, daring and more daring." - Georges Jacques Danton
Robespierre is offline   you may: quote & reply,
Old 07-28-2009, 09:50 AM   #5
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,695
Forum Veteran Helpful! 
Quote:
Originally Posted by Robespierre View Post
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.

Quote:
Originally Posted by Robespierre View Post
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.
DarthParametric is offline   you may: quote & reply,
Old 07-28-2009, 05:29 PM   #6
Aliryn
Rookie
 
Aliryn's Avatar
 
Join Date: Jan 2009
Location: .......was I supposed to know?
Posts: 23
Current Game: Bouncing around.
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 . . .


"I want to see how your green ideals would change the country that was built up by that King Bradley, who doesn't even fear God." —Arakawa Hiromu, Fullmetal Alchemist
I prefer to look on the future as something which is not written in stone. —Star Trek: The Next Generation
'So that is the King of Rohan!' said Pippin in an undertone. 'A fine old fellow. Very polite.' —J.R.R. Tolkien,
The Lord of the Rings
Remember: Pink drummer bunnies are fascist. And may Pepsi fill your soul.


Last edited by Aliryn; 07-28-2009 at 07:05 PM.
Aliryn is offline   you may: quote & reply,
Old 07-29-2009, 12:12 AM   #7
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,695
Forum Veteran Helpful! 
Lossless just means no compression. Something like a raw AVI.
DarthParametric is offline   you may: quote & reply,
Old 07-30-2009, 01:17 AM   #8
Aliryn
Rookie
 
Aliryn's Avatar
 
Join Date: Jan 2009
Location: .......was I supposed to know?
Posts: 23
Current Game: Bouncing around.
Thanks, DarthParametric. Got that down.

But . . . I'm having problems again 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!)


"I want to see how your green ideals would change the country that was built up by that King Bradley, who doesn't even fear God." —Arakawa Hiromu, Fullmetal Alchemist
I prefer to look on the future as something which is not written in stone. —Star Trek: The Next Generation
'So that is the King of Rohan!' said Pippin in an undertone. 'A fine old fellow. Very polite.' —J.R.R. Tolkien,
The Lord of the Rings
Remember: Pink drummer bunnies are fascist. And may Pepsi fill your soul.

Aliryn is offline   you may: quote & reply,
Old 07-30-2009, 06:19 AM   #9
N**
Rookie
 
Join Date: Jun 2009
Posts: 44
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.
N** is offline   you may: quote & reply,
Old 07-30-2009, 10:13 AM   #10
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,695
Forum Veteran Helpful! 
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.
DarthParametric is offline   you may: quote & reply,
Old 07-30-2009, 11:49 AM   #11
Tonttu
Lurker
 
Join Date: Jul 2009
Posts: 9
Quote:
Originally Posted by DarthParametric View Post
Lossless just means no compression. Something like a raw AVI.
...or lossless compression (huffyuv, ffv1, lagarith, x264 (lossless mode), snow (lossless mode), ut, ...)

Quote:
Originally Posted by N** View Post
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 which is controlled by simple, easy to learn scripting language

cropping the borders and subtitles from KreMov01.bik
Code:
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
Code:
avisource("KreMov01.avi", audio=false)
crop(0, 260, -0 , -260)
a=last
b=a.turnleft().sangnom().turnright().sangnom().spline64resize(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
SangNom
EEDI2
RemoveGrain 1.0pre
WarpSharp
TIsophote
LSFmod
FastLineDarkenMOD
Tonttu is offline   you may: quote & reply,
Old 07-30-2009, 04:44 PM   #12
N**
Rookie
 
Join Date: Jun 2009
Posts: 44
Quote:
Originally Posted by Tonttu View Post
just add "null transform" and then click "cropping"
Nice. I don't get around to video editing much, but thanks for the cool tip. :-)
N** is offline   you may: quote & reply,
Old 07-30-2009, 06:42 PM   #13
Aliryn
Rookie
 
Aliryn's Avatar
 
Join Date: Jan 2009
Location: .......was I supposed to know?
Posts: 23
Current Game: Bouncing around.
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 . . .


"I want to see how your green ideals would change the country that was built up by that King Bradley, who doesn't even fear God." —Arakawa Hiromu, Fullmetal Alchemist
I prefer to look on the future as something which is not written in stone. —Star Trek: The Next Generation
'So that is the King of Rohan!' said Pippin in an undertone. 'A fine old fellow. Very polite.' —J.R.R. Tolkien,
The Lord of the Rings
Remember: Pink drummer bunnies are fascist. And may Pepsi fill your soul.


Last edited by Aliryn; 07-30-2009 at 09:57 PM.
Aliryn is offline   you may: quote & reply,
Old 07-31-2009, 04:54 AM   #14
Tonttu
Lurker
 
Join Date: Jul 2009
Posts: 9
Quote:
Originally Posted by Aliryn View Post
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)
Tonttu is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > .bik Movie Subtitles

Tags
bik, movie, subtitle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:18 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.