Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25-06-2022, 05:06
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 265
Thanks: 190
Thanked 325 Times in 119 Posts
elit is on a distinguished road
Bink 2 encoder: real one

I dont know if this is known already, but someone released bink 2 encoder on github:
https://github.com/marcussacana/Bink2
Here are the files:
Bink2.7z

and here is proof of concept I just tested:

kb2proof.png

Also read this:
https://github.com/marcussacana/Bink2/issues/1

PS(You don't need those dll's to encode, only for game to play, but only 32bit were provided.)

Last edited by elit; 25-06-2022 at 05:40.
Reply With Quote
The Following 2 Users Say Thank You to elit For This Useful Post:
kj911 (25-06-2022), ScOOt3r (01-07-2022)
Sponsored Links
  #2  
Old 01-07-2022, 03:56
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Further clarification included.

Quote:
Originally Posted by elit View Post
I dont know if this is known already, but someone released bink 2 encoder on github:
https://github.com/marcussacana/Bink2
Here are the files:
Attachment 31912

and here is proof of concept I just tested:

Attachment 31913

Also read this:
https://github.com/marcussacana/Bink2/issues/1

PS(You don't need those dll's to encode, only for game to play, but only 32bit were provided.)
Firstly the "n" revision of the Bink2 encoder has been available for a while now

Unfortunately the current encoding suite isn't all that useful (for now) for re-encoding FMVs in titles that utilise older Bink 2 revisions, since the "i" iteration (by far the most common revision) and older revisions, uses a substantially different video codec (v2.0 - v2.2), compared to the "j", and current revision "n", making re-coding a given input with the current revision ("n") and switching out the 0x04 byte for a revision code-letter (that predates the "j" revision) a fruitless endeavor as decoding will fail in a spectacular fashion (seriously make sure to turn down your volume and avoid if prone to seizures from flashing lights).

Currently we're only able to successfully re-code videos for titles that utilise the "j" or "n" revision, OR in some cases update the ".dll" to accept the newer encoded outputs.

This is currently limited to engines/titles that don't require custom functions to be called, and I've only had limited success so far with a handful of Unity titles.

This may not be a permanent hurdle however, as if someone who is well-versed enough in reverse-engineering and modifying ".dll" libraries comes along we may be able to have a higher rate of compatibility.

I do know of a handful of individuals who may know of a means to process and encode videos natively under the "i" revision, however due to a series of factors, including my over-excitement at having found such a case, as well as a challenging of these users' egos', further communication, at least with myself, is not possible. As I was not able to form a substantial correspondence it's still unclear if a legitimate methodology has been figured out, if an earlier leaked build of the encoder was obtained, or if something else entirely had happened.

The only real leaked version of the SDK I've been able to find is the 1.9c version, but as you may have guessed this isn't too useful given it's not a 2.0 or 2.2 release (attached below for the curious).
Attached Files
File Type: rar Bink_SDK_v1.9c.rar (2.31 MB, 56 views)

Last edited by L33THAK0R; 01-07-2022 at 05:41.
Reply With Quote
  #3  
Old 01-07-2022, 11:38
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 265
Thanks: 190
Thanked 325 Times in 119 Posts
elit is on a distinguished road
1.9c you mean regular "bik" right? No that wouldn't be same. Maybe as the time pass, more future games will be possible to encode with what we currently have.
Reply With Quote
  #4  
Old 02-07-2022, 05:31
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by elit View Post
1.9c you mean regular "bik" right? No that wouldn't be same. Maybe as the time pass, more future games will be possible to encode with what we currently have.
Yeah, should have clarified versions prior to v2.0 are Bink1, and after v2.0 are Bink2, my point was any useful versions of the Bink2 encoder are unfortunately not public (yet), but yes, going forward this is a useful resource for future titles that utilise FMVs encoded with Bink2, but given how most developers are pivoting towards H.264/5 or VP6 for their FMVs I wouldn't be surprised if Bink2 becomes less popular going forwards.
Reply With Quote
  #5  
Old 29-09-2022, 08:43
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 265
Thanks: 190
Thanked 325 Times in 119 Posts
elit is on a distinguished road
I found the first game that work out of the box with recoded bink2 encoder from above: Squad 51 vs. the Flying Saucers
Reply With Quote
  #6  
Old 29-09-2022, 08:56
panker1992's Avatar
panker1992 panker1992 is offline
Registered User
 
Join Date: Oct 2015
Location: Always Somewhere
Posts: 564
Thanks: 116
Thanked 881 Times in 319 Posts
panker1992 is on a distinguished road
i have an idea, use hex editor to check the header of video bink2 used on the original bink video,

then use the encoder and after it's done use the header of the original video on the encoded video.

maybe this will work, will test my theory

(again this is an idea and a theory)!!!!
__________________
My projects : Masked Compression, lzma2(xz) on Freearc, Zstd compressor for windows
My optimizations : packjpg.exe, zstd, lzham, precomp-dev-0.45.
Reply With Quote
The Following User Says Thank You to panker1992 For This Useful Post:
shazzla (29-09-2022)
  #7  
Old 29-09-2022, 18:14
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by panker1992 View Post
i have an idea, use hex editor to check the header of video bink2 used on the original bink video,

then use the encoder and after it's done use the header of the original video on the encoded video.

maybe this will work, will test my theory

(again this is an idea and a theory)!!!!
Unfortunately the current encoder (with the identifier of the "n" revision of the Bink 2 codec) revision has fundamental changes in both video and audio decoding in the codec which makes this unfortunately not possible. The best we can do is for any files using the "j" revision (the immediate revision predating the current "n" revision, and succeeding the commonly used "i" revision), however this comes with the caveat that the original "j" revision audio be extracted, re-encoded and then mixed as Bink 1 audio. However this revision was rarely used, with the "n" revision being used throughout the majority of Bink 2's lifespan. If anyone is able to port the audio/video changes over to older DLL libraries we might have a chance at getting this to work but currently the only publicly available source code is for Bink 1 functions (I posted this in an earlier post on the topic).
Reply With Quote
  #8  
Old 13-03-2023, 06:43
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 231
Thanks: 158
Thanked 88 Times in 62 Posts
kj911 is on a distinguished road
See the post: https://forum.videohelp.com/threads/...ro#post2624534 !

Real Bink2 video plugin from Premiere Pro! How to find??
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to find Bink video compression ffmla Conversion Tutorials 12 13-03-2023 07:26
How can I compress much smaller than LZMA, that I want repack games? Unjk223 Conversion Tutorials 18 18-02-2022 14:14
Freearc Next Compression, Custom Freearc, Massive Multimedia Converter, Bink Encoder panker1992 Conversion Tutorials 31 14-07-2018 04:28
video encoding guide using Adobe Media Encoder - LONG READ!! Kitsune1982 Conversion Tutorials 1 06-04-2018 05:18
Help! Garry's Mod Compressor rinaldo Conversion Tutorials 24 28-01-2016 10:14



All times are GMT -7. The time now is 21:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com